.quiz-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.quiz-progress {
    width: 100%;
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
    width: 0;
}

.quiz-header {
    text-align: center;
    margin-bottom: 30px;
}

.quiz-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.question-counter {
    color: #666;
    font-size: 14px;
}

.quiz-content {
    min-height: 300px;
}

.question-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
}

.question-text {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-option:hover {
    border-color: #4CAF50;
    background: #f1f9f1;
}

.quiz-option.selected {
    border-color: #2196F3;
    background: #e3f2fd;
}

.quiz-option.correct {
    border-color: #4CAF50;
    background: #d4edda;
}

.quiz-option.incorrect {
    border-color: #f44336;
    background: #f8d7da;
}

.quiz-option.show-correct {
    border-color: #4CAF50;
    background: #d4edda;
}

.quiz-option.disabled {
    pointer-events: none;
    opacity: 0.7;
}

.option-letter {
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.quiz-option.selected .option-letter {
    background: #2196F3;
    color: #fff;
}

.quiz-option.correct .option-letter,
.quiz-option.show-correct .option-letter {
    background: #4CAF50;
    color: #fff;
}

.quiz-option.incorrect .option-letter {
    background: #f44336;
    color: #fff;
}

.option-text {
    font-size: 16px;
    color: #333;
}

.feedback-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    background: #e3f2fd;
    color: #2196F3;
}

.quiz-button {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 20px;
}

.quiz-button:hover {
    background: #45a049;
}

.quiz-results {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
}

.quiz-results h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.results-summary {
    margin: 20px 0;
    font-size: 18px;
    color: #666;
}

.results-summary p {
    margin: 10px 0;
}

.restart-quiz {
    background: #2196F3;
}

.restart-quiz:hover {
    background: #1976D2;
}

.loading {
    text-align: center;
    padding: 50px;
    color: #666;
}

/* Responsive styles */
@media (max-width: 768px) {
    .quiz-container {
        margin: 15px;
        padding: 15px;
    }
    
    .question-card {
        padding: 15px;
    }
    
    .quiz-option {
        padding: 10px 15px;
    }
    
    .option-letter {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }
    
    .option-text {
        font-size: 14px;
    }
}

/* Timer Styles */
.timer-container {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.timer-label {
    font-weight: 500;
    opacity: 0.9;
}

#timer-display {
    font-size: 24px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#timer-display.warning {
    background: rgba(255, 193, 7, 0.3);
    color: #ffc107;
    animation: pulse 1s infinite;
}

#timer-display.danger {
    background: rgba(220, 53, 69, 0.3);
    color: #dc3545;
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Timeout Message Style */
.feedback-message.timeout {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Mobile Responsive Timer */
@media (max-width: 768px) {
    .timer-container {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    #timer-display {
        font-size: 20px;
        padding: 3px 10px;
    }
}

.review-explanation {
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 14px;
    color: #856404;
    line-height: 1.6;
}

.review-explanation strong {
    color: #856404;
    display: block;
    margin-bottom: 5px;
}

.review-explanation em {
    color: #999;
    font-style: italic;
}