body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #222; /* Dark background */
    margin: 0;
    font-family: sans-serif;
    color: #fff; /* Default text color */
}

#game-container {
    position: relative; /* Needed for absolute positioning of overlay elements */
    border: 2px solid #555;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.5); /* Neon glow effect */
}

#gameCanvas {
    display: block; /* Remove extra space below canvas */
    background-color: #001f3f; /* Dark blue sky */
    /* Add a subtle star background if desired */
    /* background-image: url('path/to/stars.png'); */
}

#score {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10; /* Ensure score is above canvas */
}

/* Common styles for overlay screens */
#gameOver, #startScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black overlay */
    display: flex; /* Use flexbox for centering */
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    text-align: center;
    z-index: 20; /* Ensure overlay is above score/canvas */
}

#gameOver {
    color: #ff4d4d; /* Red text for game over */
    font-size: 28px;
    font-weight: bold;
    /* display: none; controlled by JS */
}

#gameOver span {
    color: #ffa500; /* Orange for final score */
    font-size: 32px;
}

#startScreen {
     color: #00e6e6; /* Cyan text */
     font-size: 24px;
     /* display: flex; initially visible */
}

#startScreen h1 {
    margin-bottom: 20px;
    font-size: 48px;
    color: #fff;
}

#startScreen p {
    margin: 10px 0;
    font-size: 18px;
    color: #ccc;
}
