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

#game-container {
    position: relative;
}

#game-canvas {
    background-color: #000022;
    border: 2px solid #444;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Make the overlay itself not block events */
}

#score-display {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    font-size: 18px;
}

#lives-display {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 18px;
}

#start-screen, #game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 50, 0.8);
    color: white;
    pointer-events: auto; /* Explicitly allow pointer events on these screens */
    z-index: 10; /* Ensure it appears above other elements */
}

#pause-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 50, 0.8);
    color: white;
    pointer-events: auto; /* Explicitly allow pointer events on pause menu */
    z-index: 10; /* Ensure it appears above other elements */
}

#pause-menu button {
    margin: 15px 0;
    padding: 12px 24px;
}

h2 {
    margin-bottom: 20px;
    font-size: 32px;
    color: #ffcc00;
}

button {
    padding: 10px 20px;
    background-color: #ffcc00;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    pointer-events: auto; /* Explicitly allow pointer events on buttons */
}

button:hover {
    background-color: #ff9900;
}

p {
    margin: 10px 0;
    font-size: 16px;
    text-align: center;
    max-width: 400px;
}