:root {
  font-size: 100%;
  font-family: 'Antarctica'; /* Dieser Name korrespondiert mit den Einstellungen in fonts.css */
}

*{
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

p {
  font-family: 'Antarctica', Helvetica, sans-serif;
}

.back {
  position: absolute;
  top: 20px;
  left: 25px;
  z-index: 8;
  padding: 20px 30px 20px 20px;
  transition: 200ms;
}
.back:hover {
  transform: translateX(-10px);
  transition: 200ms;
}
.long-arrow-left{
  display: block;
  width: 25px;
  height: 25px;
  border-top: 4px solid antiquewhite;
  border-left: 4px solid antiquewhite;
  transform: rotate(-45deg);
}

.long-arrow-left::after{
  content: "";
  display: block;
  width: 4px;
  height: 45px;
  background-color: antiquewhite;
  transform: rotate(-45deg) translate(15px, 4px);
  left: 0;
  top: 0;
}

.container {
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  grid-template-columns: 1fr;
  background-color: antiquewhite;
  align-items: center;
  padding: 10% 40px 5%;
  animation: 3000ms cubic-bezier(0.87, 0, 0.13, 1) nacht alternate infinite;
}


.titel {
  font-size: 20em;
  -webkit-text-stroke: 3px tomato;
  color: rgb(20, 20, 20);
  text-shadow: tomato 1px 1px 20px;
  /* animation: schrift 3000ms cubic-bezier(0.87, 0, 0.13, 1) alternate infinite;
  mix-blend-mode: difference; */
  line-height: 0.2;
}


.up {
  grid-row: 2/3;
  grid-column: 1/2;
  justify-self: end;
  animation: zug2 6000ms cubic-bezier(0.87, 0, 0.13, 1) infinite;
  z-index: 2;

}

 .down {
  grid-row: 3/4;
  grid-column: 1/2;
  justify-self: start;
  animation: zug3 6000ms cubic-bezier(0.87, 0, 0.13, 1) infinite 0.3s;
  z-index: 3;
  font-variation-settings: 'wght' 200, 'wdth' 190, "CNTR" 0;
} 

.line-up {
  grid-row: 1/2;
  grid-column: 1/2;
  justify-self: start;
  transform-origin: left;
  padding-left: 10%;
  animation: zug1 6000ms cubic-bezier(0.87, 0, 0.13, 1) infinite 1s;
  z-index: 1;
  font-variation-settings: 'wght' 400, 'wdth' 30, "CNTR" 0;
}

.line-down {
  grid-row: 4/5;
  grid-column: 1/2;
  justify-self: end;
  transform-origin: right;
  padding-right: 15%;
  animation: zug4 6000ms cubic-bezier(0.87, 0, 0.13, 1) infinite 2s;
  z-index: 4;
  font-variation-settings: 'wght' 950, 'wdth' 50, "CNTR" 50;
}

@keyframes zug1 {
  0%{
    transform: translateX(-900px);
  }

  40%{
    transform: translateX(0px);
  }

  60%{
    transform: translateX(0px);
  }

  100%{
    transform: translateX(1800px);
    
  }
}

@keyframes zug2 {
  0%{
    transform: translateX(1200px);
    font-variation-settings: 'wght' 600, 'wdth' 120, "CNTR" 100, "ital" 12;
  }

  40%{
    transform: translateX(0px);
    font-variation-settings: 'wght' 600, 'wdth' 120, "CNTR" 100, "ital" 1;
  }

  60%{
    transform: translateX(0px);
    font-variation-settings: 'wght' 600, 'wdth' 120, "CNTR" 100, "ital" 1;
  }

  100%{
    transform: translateX(-1800px);
    font-variation-settings: 'wght' 600, 'wdth' 120, "CNTR" 100, "ital" 12;
  }
}

@keyframes zug3 {
  0%{
    transform: translateX(-1700px);
    font-variation-settings: "ital" 12;
  }

  40%{
    transform: translateX(0px);
    font-variation-settings: "ital" 1;
  }

  60%{
    transform: translateX(0px);
    font-variation-settings: "ital" 1;
  }

  100%{
    transform: translateX(1900px);
    font-variation-settings: "ital" 12;
  }
}

@keyframes zug4 {
  0%{
    transform: translateX(1400px);
    font-variation-settings: 'wght' 950, 'wdth' 50, "CNTR" 50, "ital" 12;
  }

  40%{
    transform: translateX(0px);
    font-variation-settings: 'wght' 950, 'wdth' 50, "CNTR" 50, "ital" 1;
  }

  60%{
    transform: translateX(0px);
    font-variation-settings: 'wght' 950, 'wdth' 50, "CNTR" 50, "ital" 1;
  }

  100%{
    transform: translateX(-1700px);
    font-variation-settings: 'wght' 950, 'wdth' 50, "CNTR" 50, "ital" 12;
  }
}

@keyframes schrift {
  0% {
    font-variation-settings: 'wght' 450, 'wdth' 100, "CNTR" 100;
  }
  
  15% {
    font-variation-settings: 'wght' 450, 'wdth' 100, "CNTR" 100;
  }

  85% {
    font-variation-settings: 'wght' 200, 'wdth' 120, "CNTR" 0;
  }

  100% {
    font-variation-settings: 'wght' 200, 'wdth' 120, "CNTR" 0;
  }
}


@keyframes nacht {
  0% {
    background-color: rgb(20, 20, 20);
  }

  15% {
    background-color: rgb(20, 20, 20);
  }

  85% {
    background-color: rgb(20, 20, 20);
  }

  100% {
    background-color: rgb(20, 20, 20);
  }
}
