@import url('https://fonts.cdnfonts.com/css/reddit-sans');

@font-face {
    font-family: Peyda;
    src: url('https://cdn.mxit.ir/fonts/Peyda/Peyda.eot');
    src: url('https://cdn.mxit.ir/fonts/Peyda/Peyda.eot') format('embedded-opentype'), url('https://cdn.mxit.ir/fonts/Peyda/Peyda.woff2') format('woff2'), url('https://cdn.mxit.ir/fonts/Peyda/Peyda.woff') format('woff'), url('https://cdn.mxit.ir/fonts/Peyda/Peyda.ttf') format('truetype');
}

:root {
    --Shade-20: #22967D;
    --Neutral-Foreground-2-Rest: #59595A;
    --Neutral-Background-2-Rest: #FFF;
    --Neutral-Stroke-1-Rest: #E2E4E6;
    --Corder-Radius-None: 0px;
    --Neutral-Foreground-1-Rest: #222323;
    --Brand-Stroke-Rest: #2ABB9C;
}

.text-right {
    text-align: right;
}

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

body {
    font-family: 'Peyda', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0.75;
    background: url('./background.png') lightgray 50% / cover no-repeat;
    background-color: var(--Neutral-Background-2-Rest, #FFF);
}

.container {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.icon {
    margin: 0 auto 40px;
    stroke: #20b2aa;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 130px;
    height: 130px;
    aspect-ratio: 1/1;
}

.title {
    margin-bottom: 30px;
    color: var(--Shade-20, #22967D);
    text-shadow: 2px 2px 0 rgba(17, 75, 62, 0.50);
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: #FFF;
    font-family: "Reddit Sans", serif;
    font-size: 68px;
    font-style: normal;
    font-weight: 700;
    line-height: 75px;
}

.subtitle {
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    color: var(--Neutral-Foreground-2-Rest, #59595A);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    line-height: 30px;
    text-transform: capitalize;
}

.footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 400;
    color: var(--Neutral-Foreground-2-Rest, #59595A);
    text-align: center;
    font-family: Peyda, serif;
    font-size: 14px;
    font-style: normal;
    line-height: 28px;
}

.error-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.error-code {
    color: var(--Neutral-Foreground-1-Rest, #222323);
    text-shadow: 2px 2px 0 rgba(18, 18, 18, 0.50);
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: #FFF;
    font-family: "Reddit Sans", serif;
    font-size: 80px;
    font-style: normal;
    font-weight: 300;
    line-height: 75px;
    letter-spacing: 4px;
}

.divider {
    background-color: #17a2b8;
    border-radius: 2px;
    width: 2px;
    height: 96px;
    background: var(--Brand-Stroke-Rest, #2ABB9C);
}

.error-content {
    max-width: 400px;
}

.error-title {
    margin-bottom: 1rem;
    color: var(--Neutral-Foreground-1-Rest, #222323);
    /* FA/Web/Title 3 */
    font-family: 'Peyda', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
}

.error-description {
    margin-bottom: 0.5rem;
    color: var(--Neutral-Foreground-2-Rest, #59595A);
    font-family: 'Peyda', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .error-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }

    .error-code {
        font-size: 6rem;
    }

    .divider {
        width: 80px;
        height: 4px;
    }

    .error-content {
        max-width: 100%;
    }

    .error-title {
        font-size: 1.25rem;
    }

    .error-description,
    .error-suggestion {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 4.5rem;
    }

    .error-title {
        font-size: 1.1rem;
    }

    .error-description,
    .error-suggestion {
        font-size: 0.85rem;
    }
}
