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

#instructions, #game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 10;
    cursor: pointer;
}

#game-over {
    display: none;
    background: rgba(50, 0, 0, 0.8);
}

#instructions h1, #game-over h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
}

p {
    font-size: 1.2rem;
    margin: 5px;
}

#hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none; /* Hidden until game starts */
}

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

#stats {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#health {
    color: #ff4444;
}

#score {
    color: #44ff44;
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    background: white;
    border: none;
    border-radius: 5px;
    color: black;
    pointer-events: auto;
}

button:hover {
    background: #ccc;
}
