html {background-color:#486966; 

}

#score {text-align: center;
        color: aliceblue;
    font-family: "Monaco", monospace;
}



#game {
    background-color: gainsboro;
    width: 600px;
    height: 300px;
    margin: auto;
    background: url(Bilder/background/backround.png);
    background-repeat: repeat;
    background-size: auto 100%;
    animation: animatedBackground 500s linear infinite;
}





@keyframes animatedBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -10000px 0;
  }
}













#player {
    height: 75px;
    width: 75px;
    position: relative;
    top: 225px;
    background-image: url(Bilder/run/run1.png);
    background-size: cover;
    background-position: center;
    background-color: ;
    transform: scale(1.2);
    
}

.run-animation{
    animation: run 1.33s infinite;
}

@keyframes run {
    00%{background-image: url(Bilder/run/run1.png);}
    12.5%{background-image: url(Bilder/run/run2.png);}
    25%{background-image: url(Bilder/run/run3.png);}
    37.5%{background-image: url(Bilder/run/run4.png);}
    50%{background-image: url(Bilder/run/run5.png);}
    62.5%{background-image: url(Bilder/run/run6.png);}
    75%{background-image: url(Bilder/run/run7.png);}
    87.5%{background-image: url(Bilder/run/run8.png);}
}


.attack-animation {
    animation: attack 0.5s;
}

@keyframes attack {
    00%{background-image: url(Bilder/attack/attack1.png);
     background-size: cover;
    background-position-y: 4px;
    background-position-x: -3px;
    width: 90px;
    transform: scale(1.6);}
    12.5%{background-image: url(Bilder/attack/attack2.png);
    background-size: cover;
    background-position-y: 4px;
        background-position-x: -3px;
   width: 90px;
    transform: scale(1.6);}
    25%{background-image: url(Bilder/attack/attack3.png);
    background-size: cover;
    background-position-y: 4px;
        background-position-x: -3px;
    width: 90px;
    transform: scale(1.6);}
    37.5%{background-image: url(Bilder/attack/attack4.png);
    background-size: cover;
    background-position-y: 4px;
        background-position-x: -3px;
    width: 90px;
    transform: scale(1.6);}
    50%{background-image: url(Bilder/attack/attack5.png);
    background-size: cover;
    background-position-y: 4px;
        background-position-x: -3px;
    width: 90px;
    transform: scale(1.6);}
    62.5%{background-image: url(Bilder/attack/attack6.png);
    background-size: cover;
    background-position-y: 4px;
        background-position-x: -3px;
    width: 90px;
    transform: scale(1.6);}
    75%{background-image: url(Bilder/attack/attack7.png);
    background-size: cover;
    background-position-y: 4px;
        background-position-x: -3px;
    width: 90px;
    transform: scale(1.6);}
    87.5%{background-image: url(Bilder/attack/attack8.png);
    background-size: cover;
    background-position-y: 4px;
        background-position-x: -3px;
    width: 90px;
        transform: scale(1.6);}
}


.hit-animation {
    animation: hit 0.5s;
}

@keyframes hit {
     0%{opacity: 100%;
    left: 50px}
    25%{opacity: 75%;
    left: 50px}
    50%{opacity: 50%;
    left: 50px;
    }
    75%{opacity: 25%;
    left: 50px}
    100%{opacity: 0%;
   left: 50px}
}

#enemy{
    position: relative;
    background-color: ;
    left: 550px;
}

.enemy1{
    height: 50px;
    width: 50px;
    background-image: url(Bilder/enemy/enemy1.png);
    background-size: cover;
    top: 175px;

}

.enemy2{
    height: 60px;
    width: 50px;
    background-image: url(Bilder/enemy/enemy2.png);
    background-size: cover;
    transform: scale(2.5);
    background-position-y: 5px;
    top: 115px;
   
}

.enemy-animation {
    animation: e 1.33s infinite;
}

@keyframes e {
    0%{left: 550px;}
    100%{left: -50px;}
}


.jump-animation {
    animation: jump 0.5s;
    
}

@keyframes jump {
    0%{top: 225px;}
    50%{top: 65px;}
    75%{top: 65px;}
    100%{top: 225px;}
}

#start { 
    width: 400px;
    height: 100px;
    margin: auto;
    margin-top: 100px;
    padding-top: 50px;
    background-color: black;
    color: white;
    text-align: center;
    font-size: 40px;
    border-radius: 100px;
    font-family: "Trebuchet MS",sans-serif;
}


#start:hover {
    opacity: 80%;
}

#text {
    margin-top: 50px;
    text-align: center;
    color: aliceblue;
    font-family: "Monaco", monospace;
}




