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

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

.quiz-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 40px;
    max-width: 600px;
    width: 100%;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 10px;
}

.question {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.5;
}

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

.option {
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    position: relative;
    overflow: hidden;
}

.option:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.option.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.option.correct {
    background: linear-gradient(135deg, #56ab2f, #a8e6cf);
    color: white;
    border-color: #56ab2f;
}

.option.incorrect {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    border-color: #ff416c;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

button {
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

button:active {
    transform: translateY(0);
}

#submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

#submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#next-btn {
    background: linear-gradient(135deg, #56ab2f, #a8e6cf);
    color: white;
}

#restart-btn {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
}

.feedback {
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feedback.correct {
    background: linear-gradient(135deg, #56ab2f, #a8e6cf);
    color: white;
}

.feedback.incorrect {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
}

.score {
    text-align: center;
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.final-score {
    text-align: center;
    font-size: 2em;
    font-weight: 700;
    color: #333;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #ffd89b, #19547b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 600px) {
    .quiz-container {
        padding: 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .question {
        font-size: 1.1em;
    }
    
    .option {
        padding: 12px 15px;
        font-size: 1em;
    }
    
    button {
        padding: 12px 20px;
        font-size: 1em;
    }
    
    .controls {
        flex-direction: column;
        gap: 10px;
    }
}
