@import url('https://fonts.googleapis.com/css2?family=Wavefont:wght,ROND,YELA@4..1000,0..100,-100..100&display=swap');

:root {
  font-size: 100%;
}

/* Violet #a023e6 */
/* Grün #00f000 */
/* Wavefont: Weight 4-1000, Roundness 0-100, Align -100-100  */

body {
  height: 100vw;
  background-color: #a023e6;
  color: #00f000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}



p {
  font-family: "Wavefont";
  font-size: 30vw;
  line-height: 1;
  text-align: center;
  letter-spacing: 2px;
  white-space: nowrap;
  text-transform: lowercase;
  color: #00f000;
  font-variation-settings: 'wght' 100, 'ROND' 100, 'YELA' 0;
}

#line-1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.letter {
  display: inline-block;
  animation: swoosh 2.5s ease-in-out infinite alternate-reverse;
}

@keyframes swoosh {
  0% {
    font-variation-settings: 'wght' 100, 'ROND' 100, 'YELA' 0;
  }

  20% {
    font-variation-settings: 'wght' 900, 'ROND' 100, 'YELA' -300;
  }

  40% {
    font-variation-settings: 'wght' 500, 'ROND' 100, 'YELA' 200;
  }

  60% {
    font-variation-settings: 'wght' 700, 'ROND' 100, 'YELA' -100;
  }

  80% {
    font-variation-settings: 'wght' 300, 'ROND' 100, 'YELA' 50;
  }

  100% {
    font-variation-settings: 'wght' 100, 'ROND' 100, 'YELA' 0;
  }
}

.letter:nth-child(1) { animation-delay: 0s; }
.letter:nth-child(2) { animation-delay: 0.1s;     z-index: 1; }
.letter:nth-child(3) { animation-delay: 0.2s; }
.letter:nth-child(4) { animation-delay: 0.3s;     z-index: 1; }
.letter:nth-child(5) { animation-delay: 0.4s; }
.letter:nth-child(6) { animation-delay: 0.5s; }
.letter:nth-child(7) { animation-delay: 0.6s;     z-index: 1; }
.letter:nth-child(8) { animation-delay: 0.7s; }
.letter:nth-child(9) { animation-delay: 0.8s; }
.letter:nth-child(10) { animation-delay: 0.9s; }
.letter:nth-child(11) { animation-delay: 1s; }



#nike-position {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  z-index: 0;
  animation: layering 3s infinite ease-in-out;
  mix-blend-mode: difference;

} 

@keyframes layering {
  0% {
    z-index: 1;
  }
  50% {
    z-index: -1;
  }
  0% {
    z-index: 1;
  }
}

.nike-style {
  fill: rgba(160, 35, 230, 1);
  filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 20px #fff);
  stroke-width: .3vw;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: nikey 3s infinite ease-in-out;
}

/* @keyframes nikey {
  0% {
    width: 50vw;
    transform: skew(25deg, 25deg);
  }

  100% {
    width: 50vw;

  }
} */

@keyframes nikey {
  0% {
    stroke-dashoffset: 500;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -500;
  }
}



#navigation-buttons {
  position: fixed;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

#navigation-buttons a button {
  font-size: 1.5rem;
  font-family: 'Acumin';
  font-variation-settings: 'wght' 800, 'wdth' 50, 'slnt' 0;
  padding: 10px 20px 5px 20px;
  border: 3px solid #fff;
  text-transform: uppercase;
  background-color: transparent;
  border-radius: 40px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease-out;
}

#navigation-buttons a button:hover {

  font-size: 1.5rem;
  font-family: 'Acumin';
  font-variation-settings: 'wght' 800, 'wdth' 115, 'slnt' 12;
  background-color: #fff;
  color: #a023e6;
}
