:root {
  font-size: 100%;
  font-family: 'flexa', 'roboto'; /* Dieser Name korrespondiert mit den Einstellungen in fonts.css */
}
body {
  background: black;  
  display: grid;
   place-items: center; 
  height: 100vh;
  margin: 0;
  width: 100%;


}
h1 {
  position: absolute;
  top: 10%;
  font-size: 100px;
  text-align: center;
  color: white;

}

span {
  animation-name: dance;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: linear;
  /* Tipp: */
  display: inline-block; /* erlaubt Transformation in der Zeile*/
}

/* Verzögerung mit animation-delay */
#j { animation-delay: 0.0s;}
#u { animation-delay: 0.3s;}
#s {animation-delay: 0.6s;}
#t1 { animation-delay: 0.9s;}
#d { animation-delay: 1.2s;}
#o { animation-delay: 1.5s;}
#i { animation-delay: 1.8s; }
#t2 { animation-delay: 2.1s;}


@keyframes dance {
  from {

   transform: rotate(-15deg)

  }
  to {

    transform: translateY(-70px) rotate(15deg)}

    /* Transformationen funktionieren bei
       span und anderen inline-Elementen
       nur, wenn display: inline-block
       eingestellt ist.
    */
   /*  transform: translateY(-30px);*/
   }


@media screen and (max-width: 390px) {
  h1 {
    font-size: 50px; /* Passe die Schriftgröße für kleine Bildschirmbreiten an */
padding-left: 20px;
  }
}






