:root {
  font-size: 100%;
  font-family: 'Obviously'; /* Dieser Name korrespondiert mit den Einstellungen in fonts.css */
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
 }

body {
  background-color: antiquewhite;
  height: 100vh;
  display: grid;
  grid-template: repeat(10, 1fr) / repeat(10, 1fr);
}

p {
  font-family: 'Obviously', 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 #000;
  border-left: 4px solid #000;
}
.long-arrow-left{
 transform: rotate(-45deg);
}
.long-arrow-left::after{
  content: "";
  display: block;
  width: 4px;
  height: 45px;
  background-color: black;
  transform: rotate(-45deg) translate(15px, 4px);
  left: 0;
  top: 0;
}

.cell {
  width: 100%;
  height: 100%;
  z-index: 2;
}

.cell:nth-child(10n):hover~.content {
  --posX: 0;
}

.cell:nth-child(10n+2):hover~.content {
  --posX: 1;
}

.cell:nth-child(n+11):nth-child(-n+20):hover~.content {
  --posY: 1;
}

.cell:nth-child(10n+3):hover~.content {
  --posX: 2;
}

.cell:nth-child(n+21):nth-child(-n+30):hover~.content {
  --posY: 2;
}

.cell:nth-child(10n+4):hover~.content {
  --posX: 3;
}

.cell:nth-child(n+31):nth-child(-n+40):hover~.content {
  --posY: 3;
}

.cell:nth-child(10n+5):hover~.content {
  --posX: 4;
}

.cell:nth-child(n+41):nth-child(-n+50):hover~.content {
  --posY: 4;
}

.cell:nth-child(10n+6):hover~.content {
  --posX: 5;
}

.cell:nth-child(n+51):nth-child(-n+60):hover~.content {
  --posY: 5;
}

.cell:nth-child(10n+7):hover~.content {
  --posX: 6;
}

.cell:nth-child(n+61):nth-child(-n+70):hover~.content {
  --posY: 6;
}

.cell:nth-child(10n+8):hover~.content {
  --posX: 7;
}

.cell:nth-child(n+71):nth-child(-n+80):hover~.content {
  --posY: 7;
}

.cell:nth-child(10n+9):hover~.content {
  --posX: 8;
}

.cell:nth-child(n+81):nth-child(-n+90):hover~.content {
  --posY: 8;
}

.cell:nth-child(10n+10):hover~.content {
  --posX: 9;
}

.cell:nth-child(n+91):nth-child(-n+100):hover~.content {
  --posY: 9;
}

.cell:nth-child(10n+11):hover~.content {
  --posX: 10;
}

.cell:nth-child(n+101):nth-child(-n+110):hover~.content {
  --posY: 10;
}




.content {
  --posX: 0;
  --posY: 0;
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  perspective-origin: center;
}

.typo  {
  text-align: center;
  transform: rotate3d(1,0,0, calc(0deg + var(--posY) * 20deg));
  transition: all 0.4s;
  
}

.titel {
  display: inline;
  color: tomato;
  font-size: 20em;
  line-height: 1;
  font-variation-settings: 'wdth' 100, 'wght' calc(200 + var(--posX) * 70);
  transition: all 0.4s;
}


