* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #17324d;
    --navy-light: #244966;

    --teal: #2b8f83;
    --teal-dark: #21756c;
    --teal-light: #e8f4f2;

    --cream: #f5f3ed;
    --white: #ffffff;

    --text: #253944;
    --muted: #708087;

    --border: #d8e0e2;
    --red: #c94d4d;
    --green: #25856f;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--cream);
    color: var(--text);
}


/* HEADER */

.top-header {
    min-height: 105px;
    padding: 20px 7%;

    background: var(--navy);
    color: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.top-header h1 {
    margin: 7px 0 4px;
    font-size: 27px;
}

.top-header p {
    color: #bfd0db;
    font-size: 14px;
}

.level-badge {
    color: #7ed6c9;

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 1.7px;
}

.timer-box {
    min-width: 150px;

    padding: 12px 18px;

    text-align: center;

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9px;
}

.timer-box span {
    display: block;

    color: #bdd0db;

    font-size: 10px;
    font-weight: bold;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-box strong {
    display: block;

    margin-top: 4px;

    color: white;

    font-size: 25px;
    letter-spacing: 2px;
}


/* CONTAINER */

.container {
    width: 92%;
    max-width: 1000px;

    margin: 35px auto 60px;
}


/* START SCREEN */

.start-screen {
    padding: 45px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 14px;

    text-align: center;

    box-shadow: 0 8px 25px rgba(23, 50, 77, 0.05);
}

.reading-icon {
    width: 68px;
    height: 68px;

    margin: auto auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--teal);
    color: white;

    border-radius: 50%;

    font-size: 30px;
    font-weight: bold;
}

.small-label {
    color: var(--teal);

    font-size: 11px;
    font-weight: bold;

    letter-spacing: 2px;
}

.start-screen h2 {
    margin-top: 8px;

    color: var(--navy);

    font-size: 32px;
}

.description {
    max-width: 650px;

    margin: 12px auto 28px;

    color: var(--muted);

    line-height: 1.7;
}


/* INFORMATION */

.info-grid {
    max-width: 650px;

    margin: auto auto 30px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border: 1px solid var(--border);
    border-radius: 9px;

    overflow: hidden;
}

.info-item {
    padding: 18px;

    border-right: 1px solid var(--border);
}

.info-item:last-child {
    border-right: none;
}

.info-item strong {
    display: block;

    color: var(--teal);

    font-size: 25px;
}

.info-item span {
    color: var(--muted);
    font-size: 12px;
}


/* SECTION LIST */

.section-list {
    max-width: 720px;

    margin: 0 auto 25px;

    text-align: left;
}

.section-list > div {
    min-height: 50px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid var(--border);
}

.section-list .number {
    width: 48px;

    color: var(--teal);

    font-weight: bold;
}

.section-list p {
    flex: 1;
}

.section-list strong {
    color: var(--navy);
}

.notice {
    max-width: 700px;

    margin: 25px auto;

    padding: 14px;

    color: #587079;
    background: #f3f8f7;

    border-left: 4px solid var(--teal);

    font-size: 13px;
    line-height: 1.6;

    text-align: left;
}


/* BUTTONS */

button {
    font-family: inherit;
}

.primary-btn,
.secondary-btn,
.submit-btn {
    padding: 13px 23px;

    border-radius: 6px;

    font-size: 13px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.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: #f2f5f5;
}

.submit-btn {
    color: white;
    background: var(--navy);

    border: 1px solid var(--navy);
}

.submit-btn:hover {
    background: var(--navy-light);
}


/* PROGRESS */

.progress-area {
    margin-bottom: 15px;
}

.progress-header {
    margin-bottom: 7px;

    display: flex;
    justify-content: space-between;

    font-size: 12px;
}

#sectionName {
    color: var(--teal);

    font-weight: bold;
}

#questionNumber {
    color: var(--navy);
}

.progress-track {
    height: 7px;

    background: #dbe2e3;

    border-radius: 20px;

    overflow: hidden;
}

#progressBar {
    width: 5%;
    height: 100%;

    background: var(--teal);

    transition: width 0.3s ease;
}


/* QUESTIONS */

.question-card {
    min-height: 450px;

    padding: 35px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow: 0 5px 18px rgba(23, 50, 77, 0.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.5;
}


/* PASSAGE */

.passage {
    margin: 0 0 22px;

    padding: 20px;

    background: #f5f8f8;

    border-left: 4px solid var(--teal);

    line-height: 1.8;
}


/* OPTIONS */

.options {
    display: grid;
    gap: 10px;
}

.option {
    padding: 13px 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: 17px;
    height: 17px;

    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;
}

.position-number {
    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-buttons {
    display: flex;
    gap: 5px;
}

.order-buttons button {
    width: 34px;
    height: 32px;

    color: white;
    background: var(--navy);

    border: none;
    border-radius: 4px;

    cursor: pointer;
}


/* FILL BLANK */

.blank-passage {
    font-size: 17px;
    line-height: 2.6;
}

.inline-select {
    padding: 6px 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: 9px;

    background: var(--teal-light);

    border-radius: 8px;
}

.word {
    padding: 8px 14px;

    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: 125px;
    min-height: 35px;

    padding: 3px 12px;

    display: inline-block;

    vertical-align: middle;

    color: var(--navy);
    background: white;

    border: 2px dashed #859da2;
    border-radius: 5px;

    line-height: 27px;
    text-align: center;

    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;
}


/* RESULTS */

.result-screen {
    padding: 50px;

    background: white;

    border: 1px solid var(--border);
    border-radius: 14px;

    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: 550px;

    margin: auto;

    color: var(--muted);

    line-height: 1.6;
}

.result-grid {
    max-width: 650px;

    margin: 30px auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.result-grid div {
    border-right: 1px solid var(--border);
}

.result-grid div:last-child {
    border: none;
}

.result-grid strong {
    display: block;

    color: var(--navy);

    font-size: 25px;
}

.result-grid span {
    color: var(--muted);

    font-size: 11px;
}


/* UTILITIES */

.hidden {
    display: none !important;
}


/* FOOTER */

footer {
    padding: 25px;

    color: var(--muted);

    font-size: 12px;

    text-align: center;
}


/* MOBILE */

@media (max-width: 700px) {

    .top-header {
        flex-direction: column;

        text-align: center;
    }

    .start-screen,
    .question-card,
    .result-screen {
        padding: 25px 18px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .result-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 20px;
    }

    .result-grid div {
        border: none;
    }

    .order-item {
        align-items: flex-start;
    }

}