/* Quiz specific styles */

.quiz-section {
    padding: 40px 0;
}

.quiz-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

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

.quiz-header h1 {
    color: #4361ee;
    margin-bottom: 10px;
}

.level-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.level-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.level-card h3 {
    color: #4361ee;
    margin-bottom: 10px;
}

.level-btn {
    margin-top: 15px;
    width: 100%;
}

.tutorial-section {
    background: #eef1ff;
    border-radius: 10px;
    padding: 25px;
    margin-top: 40px;
}

.tutorial-section h3 {
    color: #4361ee;
    margin-bottom: 15px;
}

.tutorial-section ol {
    padding-left: 20px;
}

.tutorial-section li {
    margin-bottom: 10px;
}

.hidden {
    display: none;
}

.quiz-progress {
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.progress-bar-container {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.question-container {
    margin-bottom: 30px;
}

.question-container h2 {
    margin-bottom: 20px;
    color: #333;
}

.option {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    background: #eef1ff;
    border-color: #4361ee;
}

.option.selected {
    background: #eef1ff;
    border-color: #4361ee;
    font-weight: 500;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
}

.results-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #4361ee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto;
}

.score-details {
    flex: 1;
    min-width: 250px;
}

.score-details h3 {
    color: #4361ee;
    margin-bottom: 15px;
}

.level-description {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 15px;
    color: #4361ee;
}

.level-explanation {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.level-explanation h3 {
    color: #4361ee;
    margin-bottom: 20px;
    text-align: center;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.level-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.level-item h4 {
    color: #4361ee;
    margin-bottom: 10px;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .quiz-container {
        padding: 20px;
    }
    
    .level-selector {
        grid-template-columns: 1fr;
    }
    
    .results-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .results-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}