/* Common styles for quiz pages */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    color: #2196f3;
    margin-bottom: 1.5rem;
}

/* Control buttons */
.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #2196f3;
    color: white;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #1976d2;
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Question styles */
.question-card {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.question {
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: 500;
}

/* Options styles */
.option-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.option-btn:hover {
    background-color: #f0f0f0;
}

.option-btn.correct {
    background-color: #4caf50;
    color: white;
}

.option-btn.wrong {
    background-color: #f44336;
    color: white;
}

/* Feedback styles */
.feedback {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.feedback.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.feedback.error {
    background-color: #ffebee;
    color: #c62828;
}

.explanation {
    margin-top: 15px;
    padding: 10px;
    background-color: #e3f2fd;
    border-radius: 4px;
}

/* Navigation controls */
.navigation-controls {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 20px;
}

/* Summary styles */
#summary {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.hidden {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .controls {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}