* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f2f4f2;

    color: #2c3934;
}


/* HEADER */

.topbar {
    min-height: 90px;

    padding: 18px 6%;

    background: #ffffff;

    border-bottom:
        1px solid #d6dfda;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar h1 {
    margin: 0;

    color: #29483e;

    font-size: 25px;
}

.topbar p {
    margin: 5px 0 0;

    color: #75817c;
}


/* PAGE */

.container {
    width: min(1180px, 92%);

    margin: 35px auto;
}

.card {
    background: #ffffff;

    border:
        1px solid #dae2de;

    border-radius: 18px;

    box-shadow:
        0 8px 30px
        rgba(35, 55, 47, 0.08);
}


/* START */

.start-screen {
    padding: 50px;

    text-align: center;
}

.badge {
    display: inline-block;

    padding: 8px 15px;

    border-radius: 20px;

    background: #e1ece7;

    color: #315b4c;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 1px;
}

.start-screen h2,
.result-screen h2 {
    margin: 20px 0 10px;

    color: #29473d;
}

.intro {
    max-width: 720px;

    margin: 0 auto 35px;

    color: #67756f;

    line-height: 1.7;
}


/* INFORMATION */

.test-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-bottom: 30px;
}

.info-card {
    padding: 25px;

    background: #f7f9f7;

    border:
        1px solid #dae3de;

    border-radius: 13px;
}

.info-card h3 {
    margin-top: 0;

    color: #48645a;
}

.info-card strong {
    display: block;

    color: #29453b;

    font-size: 21px;
}

.info-card p {
    color: #79857f;
}


/* INSTRUCTIONS */

.instructions {
    max-width: 750px;

    margin: 30px auto;

    padding: 22px 30px;

    text-align: left;

    background: #f8faf8;

    border-radius: 12px;
}

.instructions li {
    margin: 9px 0;

    line-height: 1.5;
}


/* BUTTONS */

button {
    font: inherit;

    cursor: pointer;
}

.primary-btn {
    padding: 13px 26px;

    border: none;

    border-radius: 9px;

    color: white;

    background: #426a5b;

    font-weight: bold;
}

.primary-btn:hover {
    background: #315347;
}

.secondary-btn {
    padding: 12px 25px;

    border:
        1px solid #bbc9c3;

    border-radius: 9px;

    color: #3d574e;

    background: white;

    font-weight: bold;
}

.secondary-btn:hover {
    background: #f1f5f2;
}

button:disabled {
    opacity: 0.45;

    cursor: not-allowed;
}


/* TIMER */

.timer {
    padding: 8px 15px;

    border:
        1px solid #d9e1dd;

    border-radius: 10px;

    text-align: right;
}

.timer span {
    display: block;

    color: #78857f;

    font-size: 10px;
}

.timer strong {
    color: #294b40;

    font-size: 24px;
}


/* MODULE */

.module-bar {
    margin-bottom: 18px;

    padding: 17px 23px;

    background: white;

    border:
        1px solid #d9e2dd;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.module-bar span,
.module-bar strong {
    display: block;
}

#moduleLabel {
    margin-bottom: 4px;

    color: #76847e;

    font-size: 12px;
    font-weight: bold;
}

.difficulty {
    padding: 8px 15px;

    background: #e5eee9;

    color: #3d6053;

    border-radius: 20px;

    font-weight: bold;
}


/* TEST */

.test-layout {
    display: grid;

    grid-template-columns:
        220px 1fr;

    gap: 20px;
}


/* NAVIGATOR */

.navigator {
    height: fit-content;

    padding: 20px;

    background: white;

    border:
        1px solid #dae3de;

    border-radius: 14px;
}

.navigator h3 {
    margin-top: 0;
}

.question-nav {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 7px;
}

.nav-btn {
    width: 31px;
    height: 31px;

    padding: 0;

    color: #4c5e57;

    background: white;

    border:
        1px solid #c8d3ce;

    border-radius: 6px;
}

.nav-btn.answered {
    background: #d9e9e1;

    border-color: #a0c4b3;
}

.nav-btn.current {
    color: white;

    background: #426a5b;

    border-color: #426a5b;
}


/* QUESTION */

.question-card {
    min-height: 580px;

    padding: 35px;
}

.question-heading {
    display: flex;

    justify-content: space-between;
    align-items: center;
}

#questionNumber {
    color: #708079;
}

.skill-badge {
    padding: 6px 11px;

    color: #5b7067;

    background: #edf2ef;

    border-radius: 6px;

    font-size: 12px;
}

.passage {
    margin: 25px 0;

    padding: 23px;

    background: #f7f9f7;

    border-left:
        4px solid #6f9184;

    border-radius:
        0 10px 10px 0;

    color: #384840;

    line-height: 1.8;
}

#questionText {
    margin: 24px 0 20px;

    font-size: 19px;

    line-height: 1.55;
}


/* ANSWERS */

.answers {
    display: grid;

    gap: 11px;
}

.answer-btn {
    width: 100%;

    padding: 15px 18px;

    text-align: left;

    background: white;

    color: #303f39;

    border:
        1px solid #c8d3ce;

    border-radius: 9px;

    line-height: 1.5;
}

.answer-btn:hover {
    background: #f4f8f5;

    border-color: #789489;
}

.answer-btn.selected {
    background: #deebe5;

    border:
        2px solid #456f5f;
}

.answer-letter {
    width: 30px;
    height: 30px;

    margin-right: 11px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    background: #edf2ef;

    border-radius: 50%;

    font-weight: bold;
}


/* NEXT PREVIOUS */

.navigation {
    margin-top: 35px;

    display: flex;

    justify-content: space-between;
}


/* RESULTS */

.result-screen {
    max-width: 760px;

    margin: auto;

    padding: 50px;

    text-align: center;
}

.score-circle {
    width: 135px;
    height: 135px;

    margin: 30px auto;

    border:
        9px solid #d8e9e1;

    border-radius: 50%;

    color: #31594b;

    display: flex;

    align-items: center;
    justify-content: center;
}

.score-circle.large {
    width: 165px;
    height: 165px;
}

.score-circle strong {
    font-size: 27px;
}

.results-grid {
    margin: 30px 0;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}

.results-grid div {
    padding: 20px;

    background: #f5f8f6;

    border-radius: 10px;
}

.results-grid span,
.results-grid strong {
    display: block;
}

.results-grid span {
    margin-bottom: 8px;

    color: #728078;
}

.results-grid strong {
    color: #324b42;

    font-size: 21px;
}

.result-buttons {
    margin-top: 25px;

    display: flex;

    gap: 12px;

    justify-content: center;
}


/* REVIEW */

.review-header {
    margin-bottom: 25px;

    display: flex;

    justify-content: space-between;
    align-items: center;
}

.review-card {
    margin-bottom: 16px;

    padding: 25px;

    background: white;

    border:
        1px solid #dae3de;

    border-radius: 12px;
}

.review-card.correct {
    border-left:
        5px solid #4f9d6b;
}

.review-card.incorrect {
    border-left:
        5px solid #c55e5e;
}

.review-card h3 {
    margin-top: 0;
}

.review-card p {
    line-height: 1.65;
}

.correct-text {
    color: #307047;
}

.wrong-text {
    color: #a44545;
}


/* FOOTER */

footer {
    padding: 35px;

    text-align: center;

    color: #87928d;

    font-size: 13px;
}

.hidden {
    display: none !important;
}


/* MOBILE */

@media (max-width: 800px) {

    .test-grid,
    .results-grid {
        grid-template-columns: 1fr;
    }

    .test-layout {
        grid-template-columns: 1fr;
    }

    .navigator {
        order: 2;
    }

    .question-nav {
        grid-template-columns:
            repeat(9, 1fr);
    }

    .start-screen,
    .question-card,
    .result-screen {
        padding: 25px;
    }

    .review-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }
}