* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: white;
}

.container {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    font-size: 1.1rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 10px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #4CAF50;
    width: 0%;
    transition: width 0.3s ease;
}

.question-container {
    margin: 25px 0;
    text-align: left;
}

.question {
    font-size: 1.3rem;
    margin-bottom: 20px;
    line-height: 1.5;
    color: #ffd700;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.option {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.option:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffd700;
    transform: translateX(5px);
}

.option.correct {
    background-color: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
}

.option.incorrect {
    background-color: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
}

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

.feedback {
    font-size: 1.2rem;
    margin: 20px 0;
    min-height: 40px;
    font-weight: bold;
    padding: 10px;
    border-radius: 8px;
}

.feedback.correct {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.feedback.incorrect {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
}

.explanation {
    margin: 15px 0;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: left;
    font-style: italic;
}

button {
    padding: 12px 25px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    margin: 5px;
}

#next {
    background-color: #2196F3;
    color: white;
}

#next:hover {
    background-color: #0b7dda;
}

#restart {
    background-color: #ff9800;
    color: white;
}

#restart:hover {
    background-color: #e68900;
}

.results {
    margin: 25px 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.score {
    font-size: 2rem;
    color: #ffd700;
    margin: 10px 0;
}

.category-select {
    margin: 20px 0;
}

select {
    padding: 10px 15px;
    font-size: 1.1rem;
    border: 2px solid #ffd700;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    cursor: pointer;
}

.instructions {
    margin-top: 25px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: left;
}

.instructions a {
    color: #ffd700 !important;
    text-decoration: none;
}

.instructions h2 {
    margin-bottom: 10px;
    color: #ffd700;
}

.instructions ul {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
}

.footer {
    margin-top: 25px;
    padding: 15px;
    text-align: center;
    color: #b8b8b8;
}

.footer a {
    color: #b8b8b8 !important;
}

@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .option {
        padding: 12px;
    }
}
