#game-container {
    text-align: center;
    margin: 50px auto;
}

#controls-container {
    margin-bottom: 20px;
}

label {
    margin-right: 10px;
}

#spaceship {
    width: 50px;
    height: 25px;
    background-color: #3498db;
    margin: 0 auto;
    border-radius: 50%;
    margin-top: 20px;
}

#progress-bar-container {
    position: relative;
    width: 100%;
    height: 20px;
    background: url('spaceship.jpg') no-repeat;
    background-size: contain;
    background-position: 0 0;
    margin-top: 20px;
}

#timer {
    height: 100%;
    width: 0%;
}

#result {
    margin-top: 20px;
}

#balance-container {
    margin-top: 20px;
}

button {
    margin-top: 10px;
}
#spaceship {
    position: absolute;
    width: 50px; /* Adjust the size as needed */
    height: 50px; /* Adjust the size as needed */
    background: url('spaceship.jpg') no-repeat;
    background-size: contain;
    background-position: 0 0;
    animation: fly-right linear forwards;
}

@keyframes fly-right {
    from {
        left: 0;
    }
    to {
        left: 100%;
    }
}
Java