body {
    background-color: #003443;
    color: #fff;
    font-family: 'Arial', sans-serif;
    margin: 0;
    height: 100vh;
}

#game-container {
    position: relative;
    width: 100%;
    height: 90vh;  /* Adjusted height for better visibility of buttons and score */
    overflow: hidden;
}

#character {
    position: absolute;
    bottom: 5%;
    width: 8vmin;
    height: 8vmin;
    border-radius: 50%;
}

.ballot {
    position: absolute;
    width: 6vmin;
    height: 6vmin;
    font-size: 3vmin;
    color: #fff;
}

#start-button,
#stop-button,
#score-board,
#difficulty-display,
#difficulty-select {
    margin: 10px;
}

#start-button,
#stop-button,
#difficulty-select {
    background-color: #004f62;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#start-button:disabled,
#stop-button:disabled,
#difficulty-select:disabled {
    background-color: #666;
    cursor: not-allowed;
}

#score-board,
#difficulty-display {
    font-size: 18px;
}

.confetti {
    position: absolute;
    width: 2vw;
    height: 2vw;
    background-color: #fff;
    animation: confettiAnimation 2s ease-out;
}

.star {
    position: absolute;
    width: 20px;
    height: 20px;
    transform-origin: center;
    animation: spinStar 1s infinite linear, shootStar 5s forwards;
}

@keyframes spinStar {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes shootStar {
    from {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(100vw, 100vh) scale(0.2);
        opacity: 0.5;
    }
}

@keyframes confettiAnimation {
    0% { transform: translate(0, 0) rotate(0); }
    100% { transform: translate(100vw, 100vh) rotate(720deg); }
}


/* Media Query for Mobile View */
@media screen and (max-width: 600px) {
    body {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: 100vh;
        margin: 0;
    }

    #game-controls {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 90%; /* Adjusted width for meaningful spacing */
        margin-top: 10px; /* Added margin for top spacing */
    }

    #start-button,
    #stop-button,
    #score-board,
    #difficulty-display,
    #difficulty-select {
        margin: 10px;
    }

    #game-container {
        height: 100%; /* Take the remaining space */
        width: 100%;
        position: relative;
        overflow: hidden;
    }

    #character {
        width: 13vw;
        height: 13vw;
        bottom: 10%;
    }

    .ballot {
        width: 10vw;
        height: 10vw;
        font-size: 8vw;
    }

    .star {
        position: absolute;
        width: 10px;
        height: 10px;
        transform-origin: center;
        animation: spinStar 1s infinite linear, shootStar 5s forwards;
    }
}