/* ========================
   RESET & BASE
======================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

/* ========================
   LAYOUT
======================== */
main {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

section {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    animation: fadeIn 0.25s ease;
}

/* ========================
   TYPOGRAPHY
======================== */
h1 {
    font-size: 24px;
    margin-bottom: 16px;
}

h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

#progress {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

/* ========================
   BUTTON BASE
======================== */
button {
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* ========================
   START BUTTON
======================== */
.btn-start {
    padding: 12px 24px;
    background: #4caf50;
    color: #fff;
}

.btn-start:hover {
    background: #43a047;
}

/* ========================
   ANSWERS
======================== */
.answer-container {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.btn-answer {
    padding: 12px;
    background: #f1f3f5;
    text-align: left;
    border: 1px solid transparent;
}

.btn-answer:hover {
    background: #e2e6ea;
}

/* Selected Answer */
.btn-answer.selected {
    background: #007bff;
    color: #fff;
    border-color: #0056b3;
}

/* ========================
   NEXT BUTTON
======================== */
.next-question {
    margin-top: 10px;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
}

.next-question:hover:not(:disabled) {
    background: #0056b3;
}

.next-question:disabled {
    background: #a0c4ff;
    cursor: not-allowed;
}

/* ========================
   SCORE SCREEN
======================== */
.score-number {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

/* ========================
   RESTART BUTTON
======================== */
.quiz-reload {
    margin-top: 16px;
    padding: 10px 20px;
    background: #dc3545;
    color: #fff;
}

.quiz-reload:hover {
    background: #c82333;
}

/* ========================
   ANIMATION
======================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}