body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #111;
    color: white;
    font-family: Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    border: 2px solid #444;
    background-color: #000;
    overflow: hidden;
}

#player {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #0f0;
    border-radius: 50%;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.enemy {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #f00;
    border-radius: 4px;
}

.player-bullet {
    position: absolute;
    width: 4px;
    height: 12px;
    background-color: #ff0;
}

.enemy-bullet {
    position: absolute;
    width: 4px;
    height: 12px;
    background-color: #f88;
}

.bomb-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 0, 0.5);
    transform: translate(-50%, -50%);
    animation: bomb 0.5s ease-out forwards;
}

@keyframes bomb {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 200px; height: 200px; opacity: 0; }
}

#hud {
    display: flex;
    justify-content: space-between;
    width: 800px;
    padding: 10px 0;
}

.hud-item {
    background-color: rgba(50, 50, 50, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px;
    text-align: center;
    display: none;
    z-index: 100;
}

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

#restart-btn:hover {
    background-color: #45a049;
}

#controls {
    margin-top: 20px;
    background-color: rgba(50, 50, 50, 0.7);
    padding: 10px 20px;
    border-radius: 4px;
}

.control-key {
    display: inline-block;
    background-color: #333;
    border: 1px solid #666;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    border-radius: 4px;
    margin: 0 5px;
}