body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background-color: #2e8b57;  /* Dark green background */
}

#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #4caf50, #8bc34a) no-repeat, url('grass-texture.png');
    background-size: cover;
}

#startButton, #restartButton {
    position: absolute;
    width: 180px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

#restartButton {
    display: none;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

#scoreDisplay {
    position: absolute;
    width: 180px;
    height: 60px;
    top: 20px;
    left: 20px;
    z-index: 2;
    pointer-events: none;
    transition: transform 0.2s ease-in-out;
}

#gameOverText {
    position: absolute;
    top: 40%;
    left: 50%;
    z-index: 1900; /* Just below buttons, but above other elements */
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #FF5722;
    display: none;
    text-align: center;
    width: 100%;
}

#modeToggle {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    font-size: 18px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 25px;
    z-index: 2000; /* Below leaderboard and scoreForm */
}

#radioContainer {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 200px;
    text-align: center;
    z-index: 1001; /* Below modeToggle */
}

#musicToggleButton {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1001; /* Same as radioContainer */
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#radioContainer {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 200px;
    text-align: center;
    z-index: 1000;
}

#changeRadioButton {

    width: 100%;
    margin-bottom: 5px;
    z-index: 1001;
    background-color: black;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
}

#radioDisplay {
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    color: white;
    font-size: 14px;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.5);
}

#musicToggleButton:hover {
    background-color: #45a049;
}