/* BASE STYLES */
/* Main body background and reset */
body {
    background-color: #E6F3FF;
    margin: 0;
    padding: 0;
} 

/* QUIZ CONTAINER */
/* Main container for quiz content */
.quiz-container {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1.2rem;
}

/* Quiz title styling */
#quiz-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

/* QUESTION SECTION */
/* Question container with toggle display */
.quiz-container .question-container {
    display: none;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Active question animation */
.quiz-container .question-container.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* NAVIGATION CONTROLS */
/* Navigation buttons container */
.quiz-container .navigation {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Navigation button styling */
.quiz-container .navigation button {
    padding: 12px 24px;
    font-size: 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #3498db;
    color: white;
}

/* Navigation button hover effects */
.quiz-container .navigation button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* HINT BUTTON */
/* Hint button specific styling */
.quiz-container #show-hint {
    background-color: #2ecc71;
}

.quiz-container #show-hint:hover {
    background-color: #27ae60;
}

/* QUIZ COMPONENTS */
/* Question information display */
.quiz-container .question-info {
    margin-bottom: 15px;
    font-weight: 600;
    color: #34495e;
    font-size: 1.2rem;
}

/* Result display section */
.quiz-container #result {
    margin-top: 25px;
    padding: 15px;
    font-size: 1.3rem;
    text-align: center;
    border-radius: 6px;
}

/* Retry button styling */
.quiz-container #retry {
    display: none;
    margin: 20px auto;
    padding: 12px 24px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-container #retry:hover {
    background-color: #c0392b;
}

/* Hint display section */
.quiz-container #hint {
    margin-top: 15px;
    padding: 15px;
    font-size: 1.2rem;
    color: #000000;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    display: none;
}

/* ANIMATIONS */
/* Fade in animation for questions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* QUIZ TYPOGRAPHY */
/* Question text sizing */
.quiz-question {
    font-size: 2.5rem;
}

/* Options text sizing */
.quiz-options {
    font-size: 1.2rem;
}

/* ACCESSIBILITY STYLES */
/* Large text support for better readability */
.large-text .quiz-container {
    font-size: 1.4rem;
}

.large-text #quiz-title {
    font-size: 3rem;
}

.large-text .quiz-container .navigation button {
    font-size: 1.4rem;
}

.large-text .quiz-container .question-info {
    font-size: 1.4rem;
}

.large-text .quiz-container #result {
    font-size: 2rem;
}

.large-text .quiz-container #hint {
    font-size: 1.4rem;
}

.large-text .quiz-question {
    font-size: 3rem;
}

.large-text .quiz-options {
    font-size: 1.4rem;
}