* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#game-container {
    position: relative;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#game-canvas {
    display: block;
    background-color: #87CEEB;
}

#game-over, #game-start {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    z-index: 100;
}

#game-start h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

#game-start p {
    margin-bottom: 10px;
    font-size: 16px;
}

#start-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

#start-btn:hover {
    background-color: #45a049;
}

#game-over h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

#game-over-message {
    margin-bottom: 20px;
    font-size: 18px;
}

#restart-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#restart-btn:hover {
    background-color: #45a049;
}

#question-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 99;
    max-width: 600px;
    width: 90%;
}

#question-text {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.5;
}

#options-container {
    margin-bottom: 20px;
}

.option-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    font-size: 16px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.option-btn:hover {
    background-color: #e0e0e0;
    transform: translateX(5px);
}

.option-btn.correct {
    background-color: #4CAF50;
    color: white;
}

.option-btn.incorrect {
    background-color: #f44336;
    color: white;
}

#wrong-count {
    font-size: 14px;
    color: #666;
    text-align: right;
}

#game-info {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}

#game-info p {
    margin-bottom: 5px;
}

.hidden {
    display: none;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.obstacle {
    animation: slide-in 2s linear infinite;
}