@font-face {
  font-family: 'CaraqueVF_Trial_WghtMelt';
  src: url('fonts/CaraqueVF_Trial_WghtMelt.woff2') format('woff2');
}

html, body {
  margin: 0;
}

body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  display: grid;
  justify-items: center;
  align-items: center;
  transform: translateY(7vw)
}

h1,
.center {
  grid-column: 1/-1;
  grid-row: 1/-1;
}

h1 {
  font-family: 'CaraqueVF_Trial_WghtMelt';
  font-size: 32rem;
  color: rgb(251, 248, 248);
  text-shadow: -10px -10px 0 red, 10px -10px 0 red, -10px 10px 0 red,
    10px 10px 0 red;
  font-weight: 1000;
  text-align: center;
  letter-spacing: -1.5rem;
  line-height: 0.1%;

  animation: vars 4s infinite ease-in-out;
  z-index: 0; /* vorne */
}

@keyframes vars {
  0%, 100% {
    font-variation-settings: 'wght' 400, 'MELT' 1;
  }
  50% {
    font-variation-settings: 'wght' 1000, 'MELT' 100;
    
  }
}

.text {
  font-size: 24px;
}

.center {
}

.center {
  z-index: -1; /* hinten */
  width: 200px;
  height: 200px;
  background-color: red;
  border-radius: 40px;
  animation: grow 2s infinite linear;
}

@keyframes grow {
  0% {
    transform: rotate(45deg) scale(1) translateX(1rem) translateY(1rem); 
  }
  
  50% {
    transform: rotate(45deg) scale(15) translateX(1rem) translateY(1rem); 
  }
  100% {
    transform: rotate(45deg) scale(1) translateX(1rem) translateY(1rem); 
  }
}

