:root {
  font-size: 100%;
  font-family: 'Bodoni Moda';
}

body {
  margin: 0;
  padding: 10%;
  display: flex;
  justify-content: left;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.rotating-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 50%;
  transform: scale(0.5) translate(-50%, -50%);
  animation: rotate-background 5s ease-in-out infinite;
  z-index: 2;
}

.rotating-svg2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 50%;
  animation: rotate-background 2s ease-in-out infinite;
  z-index: 2;
}

.rotating-svg3 {
  position: absolute;
  top: 25%;
  left: 58%;
  width: 50%;
  height: 20%;
  transform: scale(0.5) translate(-50%, -50%);
  animation: rotate-background1 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes rotate-background1 {
  0% {
    transform: translate(-50%, -50%) scaleY(0.6) rotate(0deg);
    fill: #ffbf00;
  }
  10% {
    transform: translate(-50%, -50%) scale(0.5) rotate(-180deg);
    fill: #FF5722;
    opacity: 20%;
  }
  50% {
    transform: translate(-50%, -50%) scale(0.5) rotate(-270deg);
    fill: #9C27B0;
  }
  80% {
    transform: translate(-50%, -50%) scale(1) rotate(-300deg);
    fill: #3F51B5;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.6) rotate(-360deg);
    fill: #ffbf00;
  }
}

@keyframes rotate-background {
  0% {
    transform: translate(-50%, -50%) scaleY(1) rotate(0deg);
    fill: #ffbf00;
  }
  10% {
    transform: translate(-50%, -50%) scale(0.5) rotate(180deg);
    fill: #FF5722;
  }
  20% {
    transform: translate(-50%, -50%) scale(0.5) rotate(270deg);
    fill: #9C27B0;
    opacity: 0;
  }
  30% {
    transform: translate(-50%, -50%) scale(1) rotate(280deg);
    fill: #3F51B5;
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(360deg);
    fill: #ffbf00;
  }
}

.container {
  margin-top: 30%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 300px;
  height: 500px;
  box-sizing: border-box;
  position: relative;
  justify-items: left;
  align-items: left;
}

.celltype1 {
  font-family: 'Bodoni Moda';
  font-variation-settings: 'wght' 800, 'opsz' 80;
  font-size: 10rem;
  text-align: left;
  color: #eaff00;
  transform: scaleY(1) scaleX(0.13) translateX(0%) translateY(2%);
  transform-origin: left;
}

.celltype2 {
  font-family: 'Bodoni Moda';
  padding-bottom: 10%;
  text-align: left;
  font-size: 9rem;
  color: #eaff00;
  transform: scaleY(2.15) scaleX(0.7) translateX(0%) translateY(1%);
  transform-origin: left;
}

.celltype3 {
  font-family: 'Bodoni Moda';
  font-size: 4.5rem;
  color: #eaff00;
  transform: scaleY(2.2) scaleX(0.9) translateX(0%);
  transform-origin: left;
}

.celltype4 {
  font-family: 'Bodoni Moda';
  font-size: 6rem;
  padding-left: 3.5rem;
  padding-right: 50px;
  color: #eaff00;
  transform: scaleY(2.2) scaleX(1.25) translateX(0%);
  width: 400%;
}

.celltype5 {
  font-family: 'Bodoni Moda';
  margin-left: 50;
  font-size: 10rem;
  color: #eaff00;
  width: 5%;
}

.celltype6 {
  font-family: 'Bodoni Moda';
  font-weight: 600;
  font-size: 5rem;
  color: #eaff00;
  transform: scaleY(2.2) scaleX(0.4) translateX(50px);
  padding-left: 50px;
  width: 800px;
  height: 117px;
}

.celltype7 {
  font-family: 'Bodoni Moda';
  font-weight: 600;
  font-size: 5rem;
  color: #eaff00;
  transform: scaleY(2.2) scaleX(0.4) translateX(0px);
  padding-left: 0px;
  width: 500px;
  height: 117px;
}

.celltype8 {
  font-family: 'Bodoni Moda';
  font-weight: 600;
  font-size: 5rem;
  color: #eaff00;
  transform: scaleY(2.2) scaleX(0.4) translateX(50px);
  padding-left: 50px;
  width: 800px;
  height: 117px;
}

.celltype9 {
  font-family: 'Bodoni Moda';
  font-weight: 600;
  font-size: 5rem;
  color: #eaff00;
  transform: scaleY(2.2) scaleX(0.4) translateX(50px);
  padding-left: 50px;
  width: 800px;
  height: 117px;
}

.cell {
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  overflow: hidden;
}

#cell-1 {
  z-index: 0;
  transform-origin: top left;
}

#cell-2 {
  z-index: 0;
  transform-origin: top left;
}

#cell-3 {
  z-index: 1;
  transform-origin: top left;
  transform: translateX(80%) translateY(5%);
}

#cell-4 {
  z-index: 0;
  transform-origin: top;
}

#cell-5 {
  z-index: -1;
}

#cell-6 {
  z-index: -1;
  transform-origin: bottom;
}

.celltype7:hover {
  transform: scaleX(2.35);
}

#cell-4:hover ~ #cell-7 {
  transform: scaleY(0.2) scaleX(1) translateX(58%);
  transform-origin: bottom left;
}

#cell-1:hover {
  transform: scaleX(2.35);
  transform-origin: left;
}

#cell-2:hover {
  transform: scaleX(2);
  transform-origin: top left;
}

#cell-3:hover {
  transform: scaleX(2.35) scaleY(1.05) translateX(-12.6%);
}

#cell-5:hover {
  transform: scaleY(0.2) scaleX(0.28);
  transform-origin: top left;
}

#cell-6:hover {
  transform: scaleY(1.1) scaleX(1) translateY(0px);
  transform-origin: bottom;
}

#cell-4:hover {
  transform: scaleY(1.8);
  transform-origin: top;
}

#cell-2:not(:hover) {
  transform: scale(1);
  transform-origin: top left;
}

#cell-5:not(:hover) {
  transform-origin: top right;
}

#cell-6:not(:hover) {
  transform: scaleY(1) scaleX(1);
  transform-origin: bottom;
}

#cell-5:not(:hover) {
  transform: scaleY(1) scaleX(1);
  transform-origin: top left;
}

#cell-2:hover ~ #cell-3 {
  transform: translateX(180%) translateY(5%) scaleX(0.1);
}

#cell-3:hover ~ #cell-2 {
  transform: translateX(0.2);
}

#cell-5:hover ~ #cell-8 {
  transform: scaleY(1.8) scaleX(0.28) translateX(0%);
  transform-origin: bottom left;
}

#cell-5:hover ~ #cell-9 {
  transform: scaleY(2.004) scaleX(1.72) translateX(0%);
  transform-origin: bottom right;
}

#cell-5:hover ~ #cell-6 {
  transform: scaleX(1.72) scaleY(0.2) translateX(0%);
  transform-origin: bottom;
}

#cell-1:hover ~ #cell-2 {
  transform: translateX(29%);
}

#cell-1:hover ~ #cell-3 {
  transform: translateX(125%) translateY(5%);
}

#cell-1:hover ~ #cell-4 {
  transform-origin: top left;
}

.flexible-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 2rem;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.flex-container span {
  font-size: 10rem;
  line-height: 7.5rem;
  display: inline-block;
  animation: my-super-weight 0.5s infinite alternate;
}
