* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #142f48;
    --navy-light: #214865;
    --teal: #248b80;
    --teal-dark: #197167;
    --teal-light: #e6f4f2;

    --cream: #f5f3ed;
    --white: #ffffff;

    --text: #263a44;
    --muted: #6b7d85;
    --border: #d6e0e1;

    --orange: #c97832;
    --orange-light: #fff6eb;
    --red: #c94c4c;
}

body {
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;

    color: var(--text);
    background: var(--cream);
}


/* HEADER */

.topbar {
    min-height: 110px;

    padding: 22px 7%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 25px;

    color: white;
    background: var(--navy);
}

.level {
    color: #78d9cc;

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 1.7px;
}

.topbar h1 {
    margin: 7px 0 4px;

    font-size: 28px;
}

.topbar p {
    color: #bed0db;

    font-size: 14px;
}

.timer-box {
    min-width: 160px;

    padding: 13px 21px;

    text-align: center;

    background: rgba(255,255,255,.08);

    border: 1px solid rgba(255,255,255,.18);
    border-radius: 9px;
}

.timer-box small {
    display: block;

    margin-bottom: 4px;

    color: #c2d2dc;

    font-size: 10px;
}

.timer-box strong {
    font-size: 26px;

    letter-spacing: 2px;
}


/* LAYOUT */

.container {
    width: 92%;
    max-width: 1000px;

    margin: 35px auto 60px;
}

.panel {
    background: white;

    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow:
        0 7px 24px rgba(20, 47, 72, .05);
}


/* START */

.start-screen {
    padding: 45px;

    text-align: center;
}

.reading-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    background: var(--teal);

    border-radius: 50%;

    font-size: 30px;
    font-weight: bold;
}

.eyebrow {
    color: var(--teal);

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 2px;
}

.start-screen h2 {
    margin: 8px 0;

    color: var(--navy);

    font-size: 31px;
}

.description {
    max-width: 700px;

    margin: 10px auto 28px;

    color: var(--muted);

    line-height: 1.7;
}


/* STATS */

.stats {
    max-width: 650px;

    margin: 0 auto 30px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border: 1px solid var(--border);
    border-radius: 9px;

    overflow: hidden;
}

.stats div {
    padding: 18px;

    border-right: 1px solid var(--border);
}

.stats div:last-child {
    border: none;
}

.stats strong {
    display: block;

    color: var(--teal);

    font-size: 26px;
}

.stats span {
    color: var(--muted);

    font-size: 12px;
}


/* TASK LIST */

.task-list {
    max-width: 720px;

    margin: auto;

    text-align: left;
}

.task-list div {
    min-height: 52px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid var(--border);
}

.task-list span {
    width: 48px;

    color: var(--teal);

    font-weight: bold;
}

.task-list p {
    flex: 1;
}

.task-list strong {
    color: var(--navy);
}


/* WARNING */

.warning {
    max-width: 720px;

    margin: 25px auto;

    padding: 15px 17px;

    color: #795535;
    background: var(--orange-light);

    border-left: 4px solid var(--orange);

    font-size: 13px;
    line-height: 1.6;

    text-align: left;
}


/* BUTTONS */

button {
    font-family: inherit;
}

.primary-btn,
.secondary-btn,
.submit-btn {
    padding: 13px 24px;

    border-radius: 6px;

    font-size: 13px;
    font-weight: bold;

    cursor: pointer;

    transition: .2s;
}

.primary-btn {
    color: white;
    background: var(--teal);

    border: 1px solid var(--teal);
}

.primary-btn:hover {
    background: var(--teal-dark);
}

.secondary-btn {
    color: var(--navy);
    background: white;

    border: 1px solid var(--border);
}

.secondary-btn:hover {
    background: #f1f5f5;
}

.submit-btn {
    color: white;
    background: var(--navy);

    border: 1px solid var(--navy);
}

.submit-btn:hover {
    background: var(--navy-light);
}


/* PROGRESS */

.progress-info {
    margin-bottom: 7px;

    display: flex;
    justify-content: space-between;

    font-size: 12px;
}

#sectionName {
    color: var(--teal);

    font-weight: bold;
}

.progress-track {
    height: 7px;

    margin-bottom: 15px;

    background: #dae2e3;

    border-radius: 20px;

    overflow: hidden;
}

#progressBar {
    width: 5%;
    height: 100%;

    background: var(--teal);

    transition: width .3s;
}


/* QUESTION */

.question-card {
    min-height: 470px;

    padding: 35px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow:
        0 5px 18px rgba(20,47,72,.04);
}

.question-label {
    color: var(--teal);

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 1.5px;
}

.question-card h2 {
    margin: 8px 0;

    color: var(--navy);

    font-size: 22px;
}

.instruction {
    margin-bottom: 22px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.6;
}


/* PASSAGES */

.passage {
    margin-bottom: 22px;

    padding: 21px;

    color: #31464f;
    background: #f5f8f8;

    border-left: 4px solid var(--teal);

    line-height: 1.85;
}


/* ANSWER OPTIONS */

.options {
    display: grid;

    gap: 10px;
}

.option {
    padding: 14px 15px;

    display: flex;
    align-items: center;

    gap: 12px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 7px;

    cursor: pointer;
}

.option:hover {
    background: var(--teal-light);

    border-color: var(--teal);
}

.option input {
    width: 18px;
    height: 18px;

    accent-color: var(--teal);
}


/* REORDER */

.order-list {
    display: grid;

    gap: 10px;
}

.order-item {
    padding: 14px;

    display: flex;
    align-items: center;

    gap: 12px;

    background: #f6f8f8;

    border: 1px solid var(--border);
    border-radius: 7px;
}

.order-position {
    width: 30px;
    height: 30px;

    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    color: white;
    background: var(--teal);

    border-radius: 50%;

    font-size: 12px;
    font-weight: bold;
}

.order-text {
    flex: 1;

    line-height: 1.6;
}

.order-controls {
    display: flex;

    gap: 5px;
}

.order-controls button {
    width: 34px;
    height: 32px;

    color: white;
    background: var(--navy);

    border: none;
    border-radius: 4px;

    cursor: pointer;
}


/* FILL BLANKS */

.blank-passage {
    font-size: 17px;

    line-height: 2.7;
}

.blank-select {
    padding: 7px 10px;

    color: var(--navy);
    background: white;

    border: 2px solid var(--teal);
    border-radius: 5px;

    font-weight: bold;
}


/* DRAG DROP */

.word-bank {
    margin-bottom: 22px;

    padding: 18px;

    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    background: var(--teal-light);

    border-radius: 8px;
}

.word {
    padding: 9px 15px;

    color: var(--navy);
    background: white;

    border: 1px solid var(--teal);
    border-radius: 5px;

    font-weight: bold;

    cursor: grab;
}

.word:hover {
    color: white;
    background: var(--teal);
}

.drop-zone {
    min-width: 135px;
    min-height: 36px;

    padding: 3px 12px;

    display: inline-block;

    vertical-align: middle;

    color: var(--navy);
    background: white;

    border: 2px dashed #879ca1;
    border-radius: 5px;

    text-align: center;
    line-height: 28px;

    cursor: pointer;
}

.drop-zone.filled {
    background: var(--teal-light);

    border-color: var(--teal);
    border-style: solid;

    font-weight: bold;
}


/* NAVIGATION */

.navigation {
    margin-top: 20px;

    display: flex;
    justify-content: space-between;

    gap: 10px;
}


/* RESULT */

.result-screen {
    padding: 50px;

    text-align: center;
}

.result-check {
    width: 60px;
    height: 60px;

    margin: 0 auto 17px;

    color: white;
    background: var(--teal);

    border-radius: 50%;

    font-size: 30px;
    line-height: 60px;
}

.result-screen h2 {
    margin-top: 8px;

    color: var(--navy);
}

.score-circle {
    width: 155px;
    height: 155px;

    margin: 28px auto;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border: 11px solid var(--teal-light);
    border-top-color: var(--teal);
    border-radius: 50%;
}

.score-circle strong {
    color: var(--navy);

    font-size: 36px;
}

.score-circle span {
    color: var(--muted);

    font-size: 11px;
}

#resultMessage {
    max-width: 620px;

    margin: auto;

    color: var(--muted);

    line-height: 1.7;
}

.result-stats {
    max-width: 650px;

    margin: 30px auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.result-stats div {
    border-right: 1px solid var(--border);
}

.result-stats div:last-child {
    border: none;
}

.result-stats strong {
    display: block;

    color: var(--navy);

    font-size: 25px;
}

.result-stats span {
    color: var(--muted);

    font-size: 11px;
}


/* OTHER */

.hidden {
    display: none !important;
}

footer {
    padding: 25px;

    color: var(--muted);

    font-size: 12px;

    text-align: center;
}


/* RESPONSIVE */

@media(max-width: 700px) {

    .topbar {
        flex-direction: column;

        text-align: center;
    }

    .start-screen,
    .question-card,
    .result-screen {
        padding: 24px 18px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stats div {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .result-stats {
        grid-template-columns: repeat(2,1fr);

        gap: 20px;
    }

    .result-stats div {
        border: none;
    }
}