:root {
    --primary-color: #4ECDC4;
    --secondary-color: #FF6B6B;
    --dark-color: #2C3E50;
    --light-color: #ECF0F1;
    --accent-color: #F39C12;
    --font-family: 'Arial', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.game-container {
    position: relative;
    width: 800px;
    height: 600px;
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

#gameCanvas {
    display: block;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 100%);
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.screen.hidden {
    display: none;
}

.logo-container {
    margin-bottom: 20px;
    background: white;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.question-container .logo-container {
    width: 90px;
    height: 90px;
    padding: 10px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-align: center;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    color: var(--accent-color);
}

p {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.game-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.game-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.game-button:active {
    transform: translateY(0);
}

.instructions {
    margin-top: 30px;
    text-align: center;
    opacity: 0.8;
}

.question-container {
    max-width: 600px;
    padding: 30px;
    text-align: center;
}

.question-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

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

.option-button {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    border: 2px solid var(--primary-color);
    padding: 15px 20px;
    font-size: 1.1em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-button:hover {
    background: rgba(78, 205, 196, 0.2);
    transform: translateX(5px);
}

.option-button.correct {
    background: rgba(46, 204, 113, 0.3);
    border-color: #2ecc71;
}

.option-button.incorrect {
    background: rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
}

.question-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1em;
}

.question-feedback.correct {
    background: rgba(46, 204, 113, 0.2);
    border: 2px solid #2ecc71;
    color: #2ecc71;
}

.question-feedback.incorrect {
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid #e74c3c;
    color: #e74c3c;
}

.game-ui {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-ui div {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1em;
    border: 2px solid var(--primary-color);
}

.score-display, .stats-display {
    font-size: 1.5em;
    margin: 20px 0;
    text-align: center;
}

.score-display {
    color: var(--accent-color);
}

.stats-display {
    color: var(--primary-color);
}

@media (max-width: 850px) {
    .game-container {
        width: 95vw;
        height: 70vh;
    }
    
    #gameCanvas {
        width: 100%;
        height: 100%;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .question-container {
        max-width: 90%;
        padding: 20px;
    }
    
    .question-text {
        font-size: 1.1em;
    }
    
    .option-button {
        font-size: 1em;
        padding: 12px 15px;
    }
}
