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

body {
    background-color: #111;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    image-rendering: pixelated;
}

#ui-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    color: white;
    font-size: 16px;
}

#health-bar {
    width: 200px;
    height: 20px;
    background-color: #333;
    margin-bottom: 5px;
    position: relative;
}

#health-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #f00;
}

#ammo-display {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 3px;
    margin-bottom: 5px;
}

#score-display {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 3px;
}

#menu {
    position: absolute;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
}

#menu h1 {
    font-size: 48px;
    margin-bottom: 30px;
    color: #ff0;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
}

#menu button {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    font-size: 18px;
    background-color: #f00;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

#menu button:hover {
    background-color: #ff0;
    color: #000;
    transform: scale(1.05);
}

.hidden {
    display: none !important;
}