/* quiz.css - modern professional look */

.quiz-page-wrapper {
    max-width: 820px;
    margin: 30px auto;
    padding: 0 15px;
}

/* subject badge on top */
.quiz-subject-badge {
    display: inline-block;
    background: linear-gradient(90deg, #ff7a18, #af002d 60%);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(175,0,45,0.2);
    margin-bottom: 20px;
    font-size: 18px;
}

/* quiz card */
#quizApp {
    background: linear-gradient(180deg, #ffffff, #fbfbff);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(23,40,80,0.08);
    padding: 24px;
    transition: transform 0.2s;
}

/* question text */
.quiz-question {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #162447;
}

/* option */
.option {
    background: #f7f9ff;
    border: 1px solid rgba(21,34,68,0.06);
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.12s, background 0.12s, border-color 0.12s;
    color: #0b2340;
    display: flex;
    align-items: center;
}
.option:hover {
    transform: translateY(-3px);
    background: #eef6ff;
    border-color: rgba(0,123,255,0.18);
}
.option.selected {
    background: linear-gradient(90deg,#e6f0ff,#d9eaff);
    border: 2px solid #3b82f6;
    box-shadow: 0 6px 18px rgba(59,130,246,0.08);
}

/* correct / wrong */
.option.correct {
    background: linear-gradient(90deg,#e6ffed,#d4f7dc) !important;
    border-color: #2fa84f !important;
}
.option.wrong {
    background: linear-gradient(90deg,#ffe6e6,#ffd7d7) !important;
    border-color: #e03b3b !important;
}

/* controls row */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    gap: 10px;
    flex-wrap: wrap;
}
.controls-left { display:flex; gap:10px; align-items:center; }
.level-btn {
    border: none;
    background: #eef2ff;
    color: #2b3a67;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.level-label {
    background: #fff7ed;
    color: #b45309;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight:700;
    box-shadow: 0 6px 14px rgba(180,83,9,0.06);
}

/* submit/skip */
.btn {
    padding: 9px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
}
.btn-submit {
    background: linear-gradient(90deg,#00c6ff,#0072ff);
    color: white;
    box-shadow: 0 8px 20px rgba(0,114,255,0.12);
}
.btn-skip {
    background: #f3f4f6;
    color: #111827;
}

/* feedback */
.feedback {
    margin-top: 12px;
    font-weight: 700;
}

/* explanation text */
.explanation {
    margin-top: 8px;
    color: #334155;
    font-size: 14px;
}

/* timer bar */
.timer-wrap {
    margin-top: 14px;
    background: #f1f5f9;
    height: 10px;
    border-radius: 8px;
    overflow: hidden;
}
.timer-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg,#34d399,#059669);
    transition: width 1s linear, background 0.3s;
}

/* level end summary */
.level-end {
    text-align: center;
    padding: 24px;
}
.level-end h2 { margin-bottom:12px; }
.level-end p { font-size:16px; margin-bottom:12px; }

/* responsive */
@media (max-width:600px) {
    .quiz-subject-badge { font-size:16px; padding:10px 14px; }
    .quiz-question { font-size:18px; }
}
