@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

:root {
    --azul: #1f286d;
    --negro: #202428;
    --gris: #4d5760;
    --blanco: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2.85rem 5.5rem;
    background: var(--blanco);
    color: var(--gris);
}

.header {
    align-self: flex-start;
}

.header .error {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.08em;
    text-transform: uppercase;
}

.error, .title, .footer-text {
    color: var(--negro)
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration img{
    width: 539px;
    height: auto;
}

.main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 586px;
    margin-left: 8.78rem;
}

.title {
    font-size: 64px;
    line-height: 95px;
    text-align: center;
    letter-spacing: -0.035em;
}

.info {
    font-weight: normal;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    letter-spacing: -0.035em;
    padding: 2.57rem 0 4.57rem 0;
}

.button-homepage {
    display: flex;
    align-self: center;
    text-decoration: none;
    font-weight: 700;
    background-color: var(--azul);
    color: var(--blanco);
    transition-duration: 0.3s;
    border-radius: 10px;
    letter-spacing: -0.035em;
    width: max-content;
    padding: 1.5em 3em;
}

.button-homepage:hover {
    color: var(--blanco);
    box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}

.a-risks-page-error {
    width: 200px;
    height: 50px;
}

.footer-text {
    text-decoration: none;
    font-weight: 700;
}

.footer-text:hover {
    text-decoration: underline;
}

@media screen and (max-width: 1280px) {
    .container {
        transform: scale(.7);
    }
}

@media screen and (max-width: 800px) {
    body {
        padding: 1.42rem 1.71rem;
    }

    .container {
        transform: scale(1);
        flex-direction: column;
    }

    .illustration {
        margin: 4.57rem 0 4.2rem 0;
    }

    .illustration img {
        width: 286px;
    }

    .container {
        margin-bottom: 6.85rem;
    }

    .main {
        margin-left: 0;
        width: 100%;
    }

    .title {
        font-size: 44px;
        line-height: 71px;
    }

    .info {
        font-size: 18px;
        line-height: 27px;
        padding: 2rem 0 4.78rem 0;
    }
}