body {
    margin: 0;
    overflow: hidden;
    background-color: #87CEEB; /* Taivas */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

.game-container {
    position: relative;
    width: 800px;
    height: 600px;
    border: 2px solid #333;
    background-color: #add8e6; /* Vaaleampi taivas peli-alueelle */
    overflow: hidden;
}

.ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    background-color: #6B8E23; /* Maa */
}

.cannon {
    position: absolute;
    bottom: 50px; /* Maan päällä */
    width: 40px;
    height: 30px;
    background-color: #555;
    border-radius: 5px;
    left: calc(50% - 20px); /* Keskellä alussa */
    transition: left 0.1s linear; /* Tasainen liike */
}

.cannon::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 10px;
    width: 20px;
    height: 30px;
    background-color: #333;
    border-radius: 5px 5px 0 0;
}

.fireball {
    position: absolute;
    background-color: orange;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: shoot 1s forwards linear;
    z-index: 10;
}

.kite {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: red; /* Voit käyttää kuvia tai monimutkaisempia muotoja */
    border-radius: 5px;
    z-index: 5;
    animation: moveKite linear infinite;
}

.kite::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 80px;
    background-color: #333;
    transform: rotate(45deg);
    transform-origin: top left;
}

.score-display {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #333;
    font-size: 20px;
}

button {
    position: absolute;
    bottom: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

#startButton {
    left: 10px;
}

#stopButton {
    left: 120px;
}