* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f5f3;
    color: #2e3935;
}


/* HEADER */

.topbar {
    min-height: 90px;

    padding: 18px 6%;

    background: #ffffff;

    border-bottom: 1px solid #d7dfda;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar h1 {
    margin: 0;
    color: #304d43;
    font-size: 25px;
}

.topbar p {
    margin: 5px 0 0;
    color: #76827d;
}


/* MAIN */

.container {
    width: min(1180px, 92%);
    margin: 35px auto;
}

.card {
    background: #ffffff;

    border: 1px solid #dce2df;
    border-radius: 18px;

    box-shadow:
        0 8px 30px rgba(40, 60, 53, 0.07);
}


/* START */

.start-screen {
    padding: 50px;
    text-align: center;
}

.badge {
    display: inline-block;

    padding: 8px 15px;

    background: #e4eee9;
    color: #376050;

    border-radius: 20px;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 1px;
}

.start-screen h2,
.result-screen h2 {
    color: #29453b;
    margin: 20px 0 10px;
}

.description {
    max-width: 680px;
    margin: 0 auto 35px;

    color: #697670;

    line-height: 1.7;
}


/* TEST INFORMATION */

.test-information {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    margin-bottom: 30px;
}

.info-box {
    padding: 25px;

    background: #f8faf8;

    border: 1px solid #dce4df;
    border-radius: 13px;
}

.info-box h3 {
    margin-top: 0;
    color: #4e675e;
}

.info-box strong {
    display: block;

    margin-bottom: 8px;

    color: #2c463d;

    font-size: 20px;
}

.info-box p {
    color: #7c8782;
}


/* INSTRUCTIONS */

.instructions {
    max-width: 750px;

    margin: 30px auto;

    padding: 22px 30px;

    text-align: left;

    background: #f8faf8;

    border-radius: 12px;
}

.instructions h3 {
    color: #385348;
}

.instructions li {
    margin: 9px 0;
    line-height: 1.5;
}


/* BUTTONS */

button {
    font: inherit;
    cursor: pointer;
}

.primary-button {
    border: none;

    background: #486f60;
    color: #ffffff;

    padding: 13px 26px;

    border-radius: 9px;

    font-weight: bold;
}

.primary-button:hover {
    background: #36594c;
}

.secondary-button {
    padding: 12px 25px;

    background: #ffffff;

    border: 1px solid #becbc5;

    color: #405950;

    border-radius: 9px;

    font-weight: bold;
}

.secondary-button:hover {
    background: #f1f5f2;
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/* TIMER */

.timer {
    padding: 8px 15px;

    border: 1px solid #d9e1dc;
    border-radius: 10px;

    text-align: right;
}

.timer small {
    display: block;

    margin-bottom: 2px;

    color: #7c8983;

    font-size: 10px;
}

.timer strong {
    color: #304f44;
    font-size: 24px;
}


/* MODULE HEADER */

.module-header {
    margin-bottom: 18px;

    padding: 17px 23px;

    background: #ffffff;

    border: 1px solid #dae2dd;
    border-radius: 12px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-header span,
.module-header strong {
    display: block;
}

#moduleName {
    margin-bottom: 4px;

    font-size: 12px;
    font-weight: bold;

    color: #77857f;
}

.difficulty {
    padding: 8px 15px;

    color: #426455;
    background: #e8f0ec;

    border-radius: 20px;

    font-weight: bold;
}


/* TEST LAYOUT */

.test-layout {
    display: grid;

    grid-template-columns: 220px 1fr;

    gap: 20px;
}


/* QUESTION NAVIGATOR */

.navigator {
    height: fit-content;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #dce3df;
    border-radius: 14px;
}

.navigator h3 {
    margin-top: 0;
}

.question-navigator {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 7px;
}

.nav-btn {
    width: 31px;
    height: 31px;

    padding: 0;

    background: #ffffff;

    border: 1px solid #cad4cf;
    border-radius: 6px;

    color: #4d5f57;
}

.nav-btn.answered {
    background: #dcebe3;
    border-color: #a5c8b7;
}

.nav-btn.current {
    background: #496f60;
    color: #ffffff;

    border-color: #496f60;
}


/* QUESTION CARD */

.question-card {
    min-height: 560px;

    padding: 35px;
}

.question-top {
    display: flex;

    justify-content: space-between;
    align-items: center;
}

#questionNumber {
    color: #718079;

    font-weight: bold;
}

.skill {
    padding: 6px 11px;

    border-radius: 6px;

    background: #edf2ef;

    color: #60736b;

    font-size: 12px;
}


/* PASSAGE */

.passage {
    margin: 25px 0;

    padding: 22px;

    background: #f7f9f7;

    border-left: 4px solid #789a8c;

    border-radius: 0 10px 10px 0;

    color: #3d4a45;

    line-height: 1.75;
}


/* QUESTION */

.question-text {
    margin: 24px 0 20px;

    font-size: 19px;

    line-height: 1.5;
}


/* ANSWERS */

.choices {
    display: grid;

    gap: 11px;
}

.answer-btn {
    width: 100%;

    padding: 15px 18px;

    text-align: left;

    color: #34413c;
    background: #ffffff;

    border: 1px solid #cad4cf;
    border-radius: 9px;

    line-height: 1.5;
}

.answer-btn:hover {
    background: #f5f8f6;
    border-color: #809a8f;
}

.answer-btn.selected {
    background: #e2eee8;

    border: 2px solid #507969;
}

.answer-letter {
    width: 30px;
    height: 30px;

    margin-right: 11px;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;

    background: #edf2ef;

    font-weight: bold;
}


/* NAVIGATION BUTTONS */

.buttons {
    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;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 9px solid #dcebe4;
    border-radius: 50%;

    color: #345b4c;
}

.score-circle.big {
    width: 160px;
    height: 160px;
}

.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: #f6f8f6;

    border-radius: 10px;
}

.results-grid span,
.results-grid strong {
    display: block;
}

.results-grid span {
    margin-bottom: 8px;
    color: #73817b;
}

.results-grid strong {
    color: #344c43;
    font-size: 21px;
}

.result-buttons {
    margin-top: 25px;

    display: flex;
    gap: 12px;

    justify-content: center;
}


/* REVIEW */

.review-heading {
    margin-bottom: 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-card {
    margin-bottom: 16px;

    padding: 25px;

    background: #ffffff;

    border: 1px solid #dce3df;
    border-radius: 12px;
}

.review-card.correct {
    border-left: 5px solid #57a472;
}

.review-card.incorrect {
    border-left: 5px solid #c86666;
}

.review-card h3 {
    margin-top: 0;
}

.review-card p {
    line-height: 1.6;
}

.correct-answer {
    color: #34704b;
}

.incorrect-answer {
    color: #a84747;
}


/* FOOTER */

footer {
    padding: 35px;

    text-align: center;

    color: #89938f;

    font-size: 13px;
}


/* HIDE ELEMENTS */

.hidden {
    display: none !important;
}


/* MOBILE */

@media (max-width: 800px) {

    .test-information,
    .results-grid {
        grid-template-columns: 1fr;
    }

    .test-layout {
        grid-template-columns: 1fr;
    }

    .navigator {
        order: 2;
    }

    .question-navigator {
        grid-template-columns: repeat(9, 1fr);
    }

    .start-screen,
    .question-card,
    .result-screen {
        padding: 25px;
    }

    .topbar {
        padding: 15px 4%;
    }

    .review-heading {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }
}