: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;

  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;
  z-index: 8;
}
.long-arrow-left{
 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(6, 1fr);
  grid-template-columns: 1fr;
  background-color: antiquewhite;
  align-items: center;
  padding: 10% 30px;
  animation: 3000ms cubic-bezier(0.87, 0, 0.13, 1) nacht alternate infinite;
}


.titel {
  font-size: 20em;
  overflow: hidden;
  -webkit-text-stroke: 3px tomato;
  text-shadow: tomato 0;
  animation: schrift 3000ms cubic-bezier(0.87, 0, 0.13, 1) alternate infinite;
}

.up {
  grid-row: 2/4;
  grid-column: 1/2;
  justify-self: end;
  animation: oben 3000ms cubic-bezier(0.87, 0, 0.13, 1) alternate infinite;
}

 .down {
  grid-row: 4/6;
  grid-column: 1/2;
  justify-self: start;
  animation: unten 3000ms cubic-bezier(0.87, 0, 0.13, 1) alternate infinite;
} 

.line-up {
  grid-row: 1/2;
  grid-column: 1/2;
  justify-self: start;
  transform-origin: left;
  overflow: hidden;
  animation: strich2 3000ms cubic-bezier(0.87, 0, 0.13, 1) alternate infinite;
}

.line-down {
  grid-row: 6/7;
  grid-column: 1/2;
  overflow: hidden;
  justify-self: end;
  transform-origin: right;
  animation: strich 3000ms cubic-bezier(0.87, 0, 0.13, 1) alternate infinite;
}

@keyframes strich {
  0% {
    font-variation-settings:'wdth' 10;
    transform: translate(0px);
  }
  15% {
    font-variation-settings:'wdth' 10;
    transform: translate(0px);
  }
  85% {
    font-variation-settings:'wdth' 950;
    transform: translate(-200px);
  }
  
  100% {
    font-variation-settings:'wdth' 950;
    transform: translate(-200px);
  }
}

@keyframes strich2 {
  0% {
    font-variation-settings:'wdth' 10;
    transform: translate(0px);
  }
  15% {
    font-variation-settings:'wdth' 10;
    transform: translate(0px);
  }
  85% {
    font-variation-settings:'wdth' 800;
    transform: translate(300px);
  }
  
  100% {
    font-variation-settings:'wdth' 800;
    transform: translate(300px);
  }
}




@keyframes schrift {
  0% {
    color: rgb(20, 20, 20);
    -webkit-text-stroke: 3px tomato;
    text-shadow: tomato 1px 1px 20px;
    font-variation-settings: 'wght' 450, 'wdth' 100, "CNTR" 100;
  }
  
  15% {
    color: rgb(20, 20, 20);
    -webkit-text-stroke: 3px tomato;
    text-shadow: tomato 1px 1px 20px;
    font-variation-settings: 'wght' 450, 'wdth' 100, "CNTR" 100;
  }

  85% {
    color: rgb(20, 20, 20);
    -webkit-text-stroke: 3px tomato;
    text-shadow: tomato 1px 1px 20px;
    font-variation-settings: 'wght' 200, 'wdth' 170, "CNTR" 0;
  }

  100% {
    color: rgb(20, 20, 20);
    -webkit-text-stroke: 3px tomato;
    text-shadow: tomato 1px 1px 20px;
    font-variation-settings: 'wght' 200, 'wdth' 170, "CNTR" 0;
  }
}


/* @keyframes oben {
  0% {
    justify-self: end;
  }

  35% {
    left: 0;
  }

  65% {
    right: 0;
  }

  100% {
    right: 0;
  }
} */

/* @keyframes unten {
  0% {
    justify-self: end;
  }

  35% {
    justify-self: end;
  }

  65% {
    justify-self: start;
  }

  100% {
    justify-self: start;
  }
} */


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

  15% {
    background-color: rgb(20, 20, 20);
    padding: 10% 30px;
  }

  85% {
    background-color: rgb(20, 20, 20);
    padding: 10% 80px;
  }

  100% {
    background-color: rgb(20, 20, 20);
    padding: 10% 80px;
  }
}
