@font-face {
    font-family: 'Georgia';
    src: url('../fonts/Georgia/Georgia.ttf') format('truetype');
}
@font-face {
    font-family: 'Georgia';
    src: url('../fonts/Georgia/Georgia-Bold-Italic.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-weight: 100;
    font-style: normal;
    src: url('../fonts/Inter/Inter_28pt-Thin.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    font-weight: 700;
    font-style: normal;
    src: url('../assets/fonts/Inter/Inter_28pt-Bold.ttf') format('truetype');
    font-display: swap;
}

:root {
    --main-font: 'Inter', Arial, sans-serif;
    --secondary-font: 'Georgia', Times, serif;
}

body,
.error-page {
    margin: 0 auto;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.error-page figure {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0;
}

.error-page figure:after {
    content: '';
    width: 100vw;
    height: 100vh;
    background-color: rgb(0 0 0 / 50%);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate3d(-50%, -50%, 0);
    z-index: 1;
}

.error-page figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.error-page .container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate3d(-50%, -50%, 0);
    z-index: 2;
}

.text {
    color: white;
}

h1,
h2 {
    margin: 0;
    padding: 0;
}

.error-code {
    font-family: var(--main-font);
    font-size: 84px;
}

.error-message {
    font-family: var(--secondary-font);
    font-size: 60px;
}

.error-description {
    font-family: var(--main-font);
    font-size: 30px;
}

.error-actions {
    display: flex;
    gap: 20px;
}

.btn {
    background-color: #ff5d17;
    color: white;
    border-radius: 10rem;
    padding: 10px 20px;
    font-size: 18px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-weight: 700;
    font-family: var(--main-font);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 1;

    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
        217.79deg,
        #ffea08 -3.31%,
        #ff7943 37.07%,
        #ff610b 61.3%
    );
    border-radius: 10rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: -1;
}

.btn:hover::before {
    opacity: 1;
}

@media (max-width: 990px) {
    .error-page .container {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    .error-code {
        font-size: 60px;
    }

    .error-message {
        font-size: 40px;
    }

    .error-description {
        font-size: 20px;
    }

    .error-actions {
        display: flex;
        gap: 20px;
        flex-direction: column;
        margin-top: 40px;
    }

    .btn {
        width: fit-content;
    }
}
