body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f8f8f8; /* Change this to an almost white color */
    font-family: Arial, sans-serif;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100vh;
    max-width: 800px;
    max-height: 600px;
    overflow: hidden;
    background-color: white; /* Add this line to ensure the container is white */
}

#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

#score, #speed {
    position: absolute;
    font-size: 18px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
}

#score {
    top: 10px;
    left: 10px;
}

#speed {
    top: 10px;
    right: 10px;
}

#controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

button {
    font-size: 16px;
    padding: 10px 20px;
    cursor: pointer;
}

@media (max-width: 600px) {
    #game-container {
        height: 80vh;
    }

    #score {
        font-size: 16px;
    }

    button {
        font-size: 14px;
        padding: 8px 16px;
    }
}
