.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.quiz-header {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.quiz-header h2 {
    margin: 0 0 10px;
    color: #333;
}

.quiz-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-info span {
    font-weight: bold;
    color: #666;
}

#timer {
    color: #e74c3c;
    font-size: 1.1em;
}

.quiz-start {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 2px solid #3498db;
    border-radius: 8px;
}

.start-quiz-btn {
    background: #3498db;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 15px;
}

.start-quiz-btn:hover {
    background: #2980b9;
}

.quiz-question {
    background: white;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quiz-question h3 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.question-image {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 5px;
}

.question-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

.quiz-options {
    margin: 20px 0;
}

.quiz-option {
    display: block;
    margin: 12px 0;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    background-color: #f8f9fa;
    border-color: #3498db;
}

.quiz-option input[type="radio"] {
    margin-right: 12px;
}

.quiz-navigation {
    margin-top: 25px;
    text-align: center;
}

.quiz-navigation button {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.prev-question, .next-question {
    background: #95a5a6;
    color: white;
}

.prev-question:hover, .next-question:hover {
    background: #7f8c8d;
}

.submit-quiz {
    background: #27ae60;
    color: white;
    padding: 12px 25px;
    font-size: 16px;
}

.submit-quiz:hover {
    background: #229954;
}

.quiz-results {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
}

.quiz-results h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.score-summary {
    text-align: center;
    margin-bottom: 25px;
}

.final-score {
    font-size: 24px;
    font-weight: bold;
    color: #27ae60;
    margin: 0;
}

.detailed-results h4 {
    color: #34495e;
    margin-bottom: 15px;
}

.detailed-results ul {
    list-style: none;
    padding: 0;
}

.detailed-results li {
    padding: 8px 12px;
    margin: 5px 0;
    border-left: 4px solid #3498db;
    background: white;
}

@media (max-width: 768px) {
    .quiz-container {
        padding: 10px;
    }
    .quiz-info {
        flex-direction: column;
        gap: 10px;
    }
    .quiz-question {
        padding: 15px;
    }
    .quiz-navigation button {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}
.quiz-actions {
    text-align: center;
    margin-top: 30px;
}

.next-quiz-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.next-quiz-btn:hover {
    background: #2980b9;
}