body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #1a1a1a;
    color: #fff;
    font-family: Arial, sans-serif;
    padding: 20px;
}

.game-info {
    display: flex;
    gap: 20px;
    font-size: 20px;
    margin: 10px 0;
}

.game-info div {
    color: #4CAF50;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.controls {
    margin: 15px 0;
    display: flex;
    gap: 10px;
}

#difficulty {
    padding: 8px;
    border-radius: 5px;
    background: #333;
    color: white;
    border: 1px solid #4CAF50;
}

button {
    padding: 8px 20px;
    font-size: 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #45a049;
    transform: scale(1.05);
}

#game-container {
    margin-top: 20px;
    position: relative;
}

#gameCanvas {
    border: 3px solid #4CAF50;
    border-radius: 5px;
    background: #000;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #4CAF50;
    display: none;
}

.instructions {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    max-width: 400px;
}

.instructions h3 {
    color: #4CAF50;
    margin-top: 0;
}

.instructions ul {
    list-style-type: none;
    padding-left: 0;
}

.instructions li {
    margin: 5px 0;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.power-up {
    animation: pulse 0.5s infinite;
}

#gameContainer {
    position: relative;
    width: fit-content;
    margin: 20px auto;
}

#controls {
    text-align: center;
    margin-top: 10px;
}

button {
    padding: 8px 16px;
    font-size: 16px;
    margin: 0 5px;
    cursor: pointer;
}

#gameOver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
}