*{
    background-color:#cce6ff ;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    /* Einstellungen der Seite */
}


.game{
    width: 500px;
    height: 200px;
    border: 1px solid black;
    margin: auto;
    background-color:#fae6ff ;
    /* Einstellungen der Spielfläche */
}

#character{
    width: 20px;
    height: 50px;
    background-color: #ffea00;
    position:relative;
    top: 150px;
    /* Einstellungen des Hauptcharackters */
}

.animate{
    animation: jump 0.4s linear;
    /* Einstellung der aimation */
}

@keyframes jump{
    0%{top: 150px;}
    30%{top: 100px;}
    50%{top: 90px;}
    70%{top: 100px;}
    80%{top: 115px;}
    90%{top: 130px;}
    95%{top: 140px;}
    100%{top: 150px;}
    /* Einstellung der animation in Prozent wie viele Pixel bewegung */
}

:root {
    --number: 1s;
}

#block{

    
    background-color: #310762;
    width: 20px;
    height: 20px;
    position: relative;
    top: 130px;
    left: 500px;

    animation: var(--number) block infinite linear;

    /* Einstellung des Hindernisses */
}


 

@keyframes block{
    0%{left: 500px}
    100%{left: -15px}
    /* Einsellung des Hindernisses Geschwindigkeit */
}

p{
    text-align: center;
    /* Einstellung ders Textes unter dem Game */
}