* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    padding: 40px;
    animation: fadeIn 0.5s;
}

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

header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 1.2rem;
    color: #666;
}

.score-board span {
    font-weight: 600;
}

#score {
    color: #667eea;
    font-weight: bold;
}

/* Quiz Selection Section */
.selection-section {
    text-align: center;
}

.selection-section h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2rem;
}

.quiz-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.quiz-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quiz-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

.quiz-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
    font-size: 1rem;
}

.quiz-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.quiz-card p {
    color: #666;
    margin-bottom: 20px;
}

.quiz-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.quiz-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Quiz Section */
.quiz-section {
    animation: fadeIn 0.5s;
}

.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #5a6268;
    transform: translateX(-5px);
}

.quiz-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
}

.question-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.word {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

.instruction {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

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

.option {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
    text-align: left;
}

.option:hover:not(.disabled) {
    border-color: #667eea;
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

.option.correct {
    background: #d4edda;
    border-color: #28a745;
    animation: pulse 0.5s;
}

.option.wrong {
    background: #f8d7da;
    border-color: #dc3545;
    animation: shake 0.5s;
}

.option.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.navigation {
    text-align: center;
}

#next-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

#next-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Result Section */
.result-section {
    text-align: center;
    animation: fadeIn 0.5s;
}

.result-section h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.final-score {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.final-score p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.final-score h3 {
    color: #667eea;
    font-size: 3rem;
    margin-bottom: 15px;
}

#percentage {
    font-size: 1.3rem;
    font-weight: 600;
    color: #28a745;
}

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

.result-actions button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.result-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .word {
        font-size: 1.8rem;
    }
    
    .score-board {
        flex-direction: column;
        gap: 10px;
    }
    
    .quiz-cards {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
}
