body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #2c3e50; /* Dark blue background */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

#gameContainer {
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

canvas {
    display: block;
    background-color: #87CEEB; /* Sky blue */
}

#ui-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    pointer-events: none; /* Allows clicks to go through to the canvas */
}

/* Common styles for pop-up screens */
#startScreen, #gameOverScreen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 80%;
    max-width: 300px;
}

#startScreen h1, #gameOverScreen h2 {
    margin-top: 0;
}

#gameOverScreen p:nth-of-type(2) {
    color: #4CAF50; /* Green for new high score */
    font-weight: bold;
    display: none; /* Hidden by default */
}

button {
    background-color: #4CAF50; /* Pickle green */
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #45a049;
}