body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background-color: #2c3e50;
    font-family: Arial, sans-serif;
}

.game-container {
    position: relative;
    background-color: #34495e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

#gameCanvas {
    background-color: #2c3e50;
    border-radius: 5px;
}

.score-display, .high-score {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.controls {
    color: white;
    margin-top: 20px;
    text-align: center;
}

#gameOver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
}

#restartButton {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

#restartButton:hover {
    background-color: #c0392b;
}

.hidden {
    display: none;
}

.mobile-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.horizontal-controls {
    display: flex;
    gap: 20px;
}

.mobile-controls button {
    width: 60px;
    height: 60px;
    font-size: 24px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    cursor: pointer;
}

.mobile-controls button:active {
    background-color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 769px) {
    .mobile-controls {
        display: none;
    }
}
