html, body {
    height: 100%;
    margin: 0;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #9bad83, #288d65);   
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

canvas {
    border: 1px solid black;
}

.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #9bad83, #288d65);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
    z-index: 9999;
    text-align: center;
}

.start-screen h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.start-screen p {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.start-btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background: linear-gradient(to bottom, rgb(221, 103, 90), #d11016);
}

.instructions {
    margin-top: 20px;
    text-align: left;
    position: absolute;
    top: 160px; /* Adjust as needed */
    left: 20px; /* Adjust as needed */
}

.instructions h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.instructions ul {
    list-style-type: none;
    padding: 0;
}

.instructions li {
    font-size: 1.2em;
    margin-bottom: 5px;
}

#gameScreen.hidden {
    display: none;
}

canvas {
    background-image: url(images/background2.jpg);
    background-size: cover;
}

#game-container {
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    height: 100vh; 
    width: 100%; 
}

#scoreboard {	
    font-size: 32px; /* Increase font size */
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 40px; /* Increase padding */
    border-radius: 8px;
    margin-bottom: 10px;
    position: absolute; /* Position the scoreboard */
    top: 20px; /* Adjust as needed */
    left: 20px; /* Adjust as needed */
}
#currentScore {
    font-size: 32px; /* Increase font size */
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 40px; /* Increase padding */
    border-radius: 8px;
    margin-bottom: 10px;
    position: absolute; /* Position the scoreboard */
    top:20px; /* Adjust as needed */
    left: 20px; /* Adjust as needed */
}
   #currentHighScore, #highestHighScore {
        font-size: 32px; /* Increase font size */
        background: rgba(0, 0, 0, 0.5);
        padding: 20px 40px; /* Increase padding */
        border-radius: 8px;
        margin-bottom: 10px;
        position: absolute; /* Position the scoreboard */
        top: 190px; /* Adjust as needed */
        left: 20px; /* Adjust as needed */
    }
#highestHighScore {
     font-size: 32px; /* Increase font size */
     background: rgba(0, 0, 0, 0.5);
     padding: 20px 40px; /* Increase padding */
     border-radius: 8px;
     margin-bottom: 10px;
     position: absolute; /* Position the scoreboard */
     top: 115px; /* Adjust as needed */
     left: 20px; /* Adjust as needed */
 }
#leaderboard {
    margin-top: 20px;
    text-align: center;
}

#leaderboard h2 {
    font-size: 24px;
}

#leaderboard-list {
    list-style-type: none;
    padding: 0;
}

#leaderboard-list li {
    font-size: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 8px;
    margin-bottom: 5px;
}

canvas {
    background-image: url(images/background2.jpg);
    background-size: cover;
    margin-top: 10px;
}
@media (max-width: 768px) {
    .start-screen h1 {
        font-size: 2em;
    }

    .start-screen p {
        font-size: 1.2em;
    }

    .start-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    #scoreboard, #currentScore, #currentHighScore, #highestHighScore {
        font-size: 24px;
        padding: 15px 30px;
    }

    #leaderboard h2 {
        font-size: 20px;
    }

    #leaderboard-list li {
        font-size: 18px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .start-screen h1 {
        font-size: 1.5em;
    }

    .start-screen p {
        font-size: 1em;
    }

    .start-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    #scoreboard, #currentScore, #currentHighScore, #highestHighScore {
        font-size: 18px;
        padding: 10px 20px;
    }

    #leaderboard h2 {
        font-size: 18px;
    }

    #leaderboard-list li {
        font-size: 16px;
        padding: 3px 6px;
    }
}