@import '/static/css/constants.css';

.error {
    margin-block: 30vh;
}

.error-container {
    display: flex;
}

.error-code {
    font-size: 4em;
    line-height: 0.8em;
    display: flex;
    align-items: center;
    padding: 0.4em 0.6em 0.5em;
    border-radius: var(--br-05r);
    margin-right: 2rem;
    background-color: var(--clr-navy-hue-2);
    color: var(--clr-white-hue-3);
}

.error-header {
    font-size: 3em;
    line-height: 1em;
}

.error-description {
    padding-top: 1em;
    font-size: 1.5em;
}

.error-btn-block {
    margin-top: 2em;
    display: flex;
}

.error-btn {
    display: flex;
    justify-content: center;
    width: 10em;
    padding: 1rem 0.5rem;
    color: var(--clr-navy-hue-4);
    font-size: 1.5em;
    line-height: 1em;
    border: 1px solid var(--clr-navy-hue-4);
    border-radius: var(--br-05r);
    transition: 0.2s ease;
}

.error-btn:hover {
    background-color: var(--clr-light-blue-hue);
}

.error-btn + .error-btn {
    margin-left: 1em;
}


@media (max-width: 920px) {

    .error-code {
        font-size: 3.5em;
    }

    .error-header {
        font-size: 2.5em;
    }

    .error-description {
        font-size: 1.5em;
    }

    .error-btn {
        width: 100%;
        font-size: 1.2em;
    }

}

@media (max-width: 770px) {

    .error {
        margin-block: 15vh;
    }

    .error-container {
        flex-direction: column;
    }

    .error-description {
        font-size: 1.4em;
    }

    .error-code {
        max-width: fit-content;
        margin: 0 0 1rem 0;
    }

}

@media (max-width: 500px) {

    .error-code,
    .error-header,
    .error-description {
        margin-left: 5px;
    }

    .error-code {
        font-size: 3em;
        line-height: 1em;
    }

    .error-header {
        font-size: 2em;
        line-height: 1em;
    }

    .error-description {
        font-size: 1rem;
        line-height: 1.5em;
    }

    .error-btn-block {
        flex-wrap: wrap;
        justify-content: space-between;
        margin-top: 1em;
    }

    .error-btn {
        flex: 1;
        white-space: nowrap;
        padding: 0.7em 1rem;
        margin: 5px;
    }

    .error-btn + .error-btn {
        margin-left: 5px;
    }

}