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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(to right, #2c3e50, #4a6491);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    padding: 30px;
    min-height: 400px;
}

#quiz-container {
    margin-bottom: 30px;
}

#question {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #2c3e50;
    line-height: 1.4;
}

.btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.answer-btn {
    background: linear-gradient(to bottom, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.answer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(to bottom, #3ca0db, #2c8bc9);
}

.answer-btn:active {
    transform: translateY(1px);
}

.answer-btn.correct {
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
}

.answer-btn.wrong {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
}

#result-container {
    text-align: center;
    padding: 30px;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#result-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

#score {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #2c3e50;
}

#restart-btn {
    background: linear-gradient(to bottom, #9b59b6, #8e44ad);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#restart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.25);
}

#progress-container {
    text-align: center;
    padding: 20px;
}

#progress-container p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

#progress-bar {
    width: 100%;
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

#progress {
    height: 100%;
    background: linear-gradient(to right, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.hidden {
    display: none;
}

footer {
    background: linear-gradient(to right, #2c3e50, #4a6491);
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .container {
        margin: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 20px 15px;
    }
    
    #question {
        font-size: 1.3rem;
    }
    
    .btn-grid {
        grid-template-columns: 1fr;
    }
    
    .answer-btn {
        padding: 12px;
        font-size: 1rem;
    }
}