body {
    margin: 0;
    padding: 0;
    background-color: #2c3e50;
    font-family: 'Press Start 2P', cursive;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    text-align: center;
}

h1 {
    color: #ffd700;
    text-shadow: 4px 4px #8e44ad;
    margin-bottom: 20px;
    font-size: 40px;
}

canvas {
    background-color: #34495e;
    /* Road/Sky base */
    border: 4px solid #ffd700;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: block;
}

#ui-layer {
    position: absolute;
    top: 60px;
    /* Below h1 */
    left: 0;
    width: 100%;
    height: 400px;
    pointer-events: none;
}

#score {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    color: #fff;
    text-shadow: 2px 2px #000;
}

#start-screen,
#game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #fff;
    pointer-events: auto;
    /* Allow clicking buttons */
}

.hidden {
    display: none;
}

button {
    background: #ffd700;
    border: none;
    padding: 15px 30px;
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    cursor: pointer;
    color: #000;
    margin-top: 20px;
}

button:hover {
    background: #fff;
}