body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #222;
    font-family: Arial, sans-serif;
    color: white;
    touch-action: none; /* Prevents scrolling on touch devices when interacting with canvas */
}

.game-container {
    position: relative; /* For positioning score and game over message */
    border: 2px solid #555;
}

#gameCanvas {
    display: block; /* Removes extra space below canvas */
    background-color: #333;
}

#scoreDisplay {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    color: #fff;
}

#gameOverMessage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 28px;
}

#gameOverMessage button {
    font-size: 20px;
    padding: 10px 20px;
    margin-top: 15px;
    cursor: pointer;
}