
html {
    scroll-behavior: smooth;
}




/* =====================================================
    PAGE
===================================================== */

.road-page {

    width:
        min(
            1100px,
            calc(100% - 32px)
        );

    margin:
        45px auto 70px;
}


/* =====================================================
    HEADER
===================================================== */

.road-header {

    text-align: center;
    margin-top: 100px;
    margin-bottom: 32px;

    animation:
        fadeUp .6s ease both;
}


.road-label {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        8px 14px;

    border-radius: 999px;

    background:
        rgba(
            255,
            255,
            255,
            .1
        );




    backdrop-filter: blur(15px);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 2px;
}


.road-header h1 {

    margin:
        16px 0 10px;

    font-size:
        clamp(
            34px,
            6vw,
            58px
        );

    line-height: 1.05;

    letter-spacing:
        -1.8px;

    font-weight: 900;
}


.road-header p {

    margin: 0;

    font-size: 16px;
}


/* =====================================================
    PROGRESS GRID
===================================================== */

.progress-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

    margin-bottom: 22px;
}


.progress-card {
    backdrop-filter: blur(15px);

    min-height: 90px;

    padding: 10px;

    border-radius: 35px;

    display: flex;

    align-items: center;

    gap: 14px;

    animation:
        fadeUp .6s ease both;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
    box-shadow: var(--box-shadow);
    background-color: color-mix(in srgb, var(--c-glass) 12%, transparent);

}


.progress-icon {

    width: 48px;

    height: 48px;

    flex-shrink: 0;

    border-radius: 35px;

    display: flex;

    align-items: center;

    justify-content: center;

    background-color: color-mix(in srgb, var(--fg) 18%, transparent);

    font-size: 23px;

    box-shadow: var(--box-shadow);
}


.progress-card small {

    display: block;

    margin-bottom: 4px;

    font-size: 12px;

    font-weight: 700;
}


.progress-card strong {

    display: block;

    font-size: 26px;

    line-height: 1;
}


/* =====================================================
    START CARD
===================================================== */

.quiz-start-card {

    backdrop-filter: blur(15px);

    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 32px;

    margin-bottom: 22px;

    border-radius: 35px;

    background:none;

    border: none;

    box-shadow: var(--box-shadow);

    animation:
        fadeUp .7s ease both;
    background-color: color-mix(in srgb, var(--c-glass) 12%, transparent);

}


.quiz-start-card::before {

    content: "";

    position: absolute;

    width: 260px;

    height: 260px;

    right: -80px;

    top: -130px;

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            .09
        );

    filter:
        blur(3px);
}


.quiz-start-card::after {

    content: "";

    position: absolute;

    width: 180px;

    height: 180px;

    left: -100px;

    bottom: -110px;

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            .07
        );
}


.quiz-start-content {

    position: relative;

    z-index: 2;
}


.quiz-count {

    display: inline-block;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 2px;

    opacity: .65;
}


.quiz-start-card h2 {

    margin:
        8px 0 8px;

    font-size:
        clamp(
            24px,
            4vw,
            32px
        );

    line-height: 1.15;
}


.quiz-start-card p {

    margin: 0;
    line-height: 1.6;
}


/* =====================================================
    BUTTON
===================================================== */

.start-quiz-button {

    position: relative;

    z-index: 3;

    border: 0;

    border-radius: 35px;

    padding:
        15px 24px;

    min-width: 145px;

    font-size: 15px;

    font-weight: 850;

    cursor: pointer;
    background-color: color-mix(in srgb, var(--fg) 18%, transparent);
    box-shadow: var(--box-shadow);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
    color: var(--fg);
}


.start-quiz-button:hover {

    transform:
        translateY(-3px);
}


.start-quiz-button:active {

    transform:
        translateY(0);
}


.start-quiz-button:disabled {

    opacity: .6;

    cursor:
        not-allowed;

    transform: none;
}


/* =====================================================
    QUIZ SECTION
===================================================== */

.quiz-section {

    padding: 28px;

    border-radius: 35px;

    animation:
        fadeUp .45s ease both;
}


.quiz-top {

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 15px;

    margin-bottom: 12px;

    font-size: 14px;

    font-weight: 800;
}


#questionXP {

    color:#71defc;
}


.quiz-progress {

    width: 100%;

    height: 8px;

    overflow: hidden;

    margin-bottom: 30px;

    border-radius: 999px;

    background:
        rgba(
            110,
            125,
            150,
            .12
        );
}


#quizProgressBar {

    width: 10%;

    height: 100%;

    border-radius: inherit;

    background:#71defc;

    transition:
        width .35s ease;
}


.question-card {

    max-width: 850px;

    margin: auto;
}


.question-meta {

    display: inline-flex;

    padding:
        8px 13px;

    border-radius: 999px;

    border: none;

    background-color: color-mix(in srgb, var(--c-glass) 12%, transparent);

    font-size: 12px;

    font-weight: 800;

    margin-bottom: 15px;
}


#questionText {

    margin:
        0 0 25px;

    font-size:
        clamp(
            22px,
            4vw,
            34px
        );

    line-height: 1.35;

    letter-spacing:
        -.5px;
}


/* =====================================================
    ANSWERS
===================================================== */

.options-road {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 14px;

    color: var(--fg);
}


.answer-option {

    width: 100%;

    border: none;

    background-color: color-mix(in srgb, var(--c-glass) 12%, transparent);


    padding: 18px;

    border-radius: 35px;

    cursor: pointer;

    text-align: left;

    display: flex;

    align-items: center;

    gap: 14px;

    font-size: 16px;


    -webkit-backdrop-filter:
        blur(15px);

    box-shadow: var(--box-shadow);

    transition: all 0.4s ease;

    color: var(--fg);
    backdrop-filter: blur(15px);
}


.answer-option:hover:not(:disabled) {

    transform:
        translateY(-3px);
    background-color: color-mix(in srgb, var(--fg) 18%, transparent);

    
}


.answer-option:disabled {

    cursor:
        default;
    opacity: 0.5;
}


.option-letter {

    width: 36px;

    height: 36px;

    min-width: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background-color: color-mix(in srgb, var(--c-glass) 12%, transparent);

    font-weight: 900;
}


.answer-option.correct {
    background-color: rgba(
            55,
            160,
            105,
            .4
        );
    opacity: 1;
}


.answer-option.wrong {
    opacity: 1;

    background-color:
        rgba(
            220,
            80,
            90,
            .35
        );
}


/* =====================================================
    EXPLANATION
===================================================== */

.explanation {

    margin-top: 20px;
    backdrop-filter: blur(15px);
    padding: 18px;

    border-radius: 35px;

    background-color: color-mix(in srgb, var(--fg) 10%, transparent);

    border: none;

    box-shadow: var(--box-shadow);

    line-height: 1.7;
    font-size: 15px;
}


.next-button {

    margin-top: 20px;
    margin-bottom: 20px;

    padding:
        13px 22px;

    border: 0;

    border-radius: 35px;

    cursor: pointer;

    font-weight: 850;

    font-size: 18px;

    background-color: color-mix(in srgb, var(--fg) 18%, transparent);

    box-shadow: var(--box-shadow);
    backdrop-filter: blur(15px);

    transition:
        transform .2s ease;
    
    color: var(--fg);
}


.next-button:hover {

    transform:
        translateY(-2px);
}


/* =====================================================
    RESULT
===================================================== */

.result-section {

    display: flex;

    justify-content: center;

    animation:
        fadeUp .5s ease both;
}


.result-card {

    width:
        min(
            600px,
            100%
        );

    padding: 42px;

    text-align: center;

    border-radius: 35px;

    background-color: color-mix(in srgb, var(--c-glass) 12%, transparent);

    border: none;

    box-shadow: var(--box-shadow);

    backdrop-filter:
        blur(24px);

    -webkit-backdrop-filter:
        blur(24px);
}


.result-icon {

    font-size: 55px;

    margin-bottom: 5px;
}


.result-card h2 {

    margin:
        5px 0 10px;

    font-size: 32px;
}


.result-score {

    font-size: 55px;

    font-weight: 900;

    margin:
        15px 0 30px;
}


.reward-row {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;

    margin-bottom: 25px;
}


.reward-row > div {

    padding: 18px;

    border-radius: 35px;

    background-color: color-mix(in srgb, var(--c-glass) 12%, transparent);

    border: none;
}


.reward-row strong {

    display: block;

    font-size: 22px;

    margin-bottom: 5px;
}


.reward-row span {

    font-size: 13px;
}


/* =====================================================
    HIDDEN
===================================================== */

.hidden {

    display:
        none !important;
}


/* =====================================================
    ANIMATION
===================================================== */

@keyframes fadeUp {

    from {

        opacity: 0;

        transform:
            translateY(15px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }

}


/* =====================================================
    MOBILE
===================================================== */

@media (
    max-width: 800px
) {

    .progress-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .quiz-start-card {

        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .start-quiz-button {

        width: 100%;
    }

}


@media (
    max-width: 600px
) {

    .road-page {

        width:
            min(
                100% - 20px,
                1100px
            );

        margin-top: 25px;
    }


    .progress-grid {

        gap: 10px;
    }


    .progress-card {

        min-height: 50px;

        padding: 15px;

        border-radius: 35px;
    }


    .progress-icon {

        width: 40px;

        height: 40px;

        border-radius: 35px;

        font-size: 19px;
    }


    .progress-card strong {

        font-size: 22px;
    }


    .quiz-start-card {

        padding: 24px;

        border-radius: 35px;
    }


    .quiz-section {

        padding: 18px;

        border-radius: 35px;
    }


    .options-road {

        grid-template-columns:
            1fr;
    }


    .result-card {

        padding: 30px 20px;

        border-radius: 35px;
    }


    .reward-row {

        grid-template-columns:
            1fr;
    }

}
