:root {  
  --green: rgb(42, 252, 152);
  --blue: rgb(41, 121, 255);
}

@keyframes float {
  from, to {
    transform: translateY(-0%);
  }
  
  50% {    
    transform: translateY(-3%);
  }
}

@font-face {
    font-family: 'Yasahii';
    src: url('YasashiiW01Bold.ttf');
}

@keyframes background-pan {
  from {
    background-position: 1000% center;
  }
  
  to {
    background-position: 0% center;
  }
}

body {
  height: 100vh;
  background-color: black;
  margin: 2rem;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.line {
  display: flex;
  justify-content: space-between;
}

.word {
  padding: 15px;
  color: white;
  font-size: clamp(1rem, 7vw, 6rem);
  font-family: "Yasahii", sans-serif;
  margin: 0rem;
  text-transform: uppercase;
  transition: opacity 250ms ease;
}

a {
  text-decoration: none;
}

#text:has(.fancy:hover) .word:not(.fancy:hover) {
  opacity: 0.2;
}

.fancy span {
  display: inline-block;
}

.fancy > .outer {
  transition: transform 350ms ease;
}

.fancy:hover > .outer {
  transition-duration: 800ms;
}

.fancy:hover > .outer > .inner {
  animation: float 5s ease infinite;
}

.fancy:hover > .outer > .inner > .letter {
  background: linear-gradient(
    to right,
    var(--blue),
    var(--green),
    var(--blue)
  );
  background-size: 1000%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: background-pan 150s linear infinite;
}

.fancy:hover > .outer:nth-child(1) {
  transform: translate(-80%, 60%) rotate(8deg);
}

.fancy:hover > .outer:nth-child(2) {
  transform: translate(-40%, 20%) rotate(4deg);
}

.fancy:hover > .outer:nth-child(3) {
  transform: translate(-10%, 60%) rotate(-6deg);
}

.fancy:hover > .outer:nth-child(4) {
  transform: translate(0%, 8%) rotate(-8deg);
}

.fancy:hover > .outer:nth-child(5) {
  transform: translate(0%, -20%) rotate(5deg);
}

.fancy:hover > .outer:nth-child(6) {
  transform: translate(0%, 20%) rotate(-3deg);
}

.fancy:hover > .outer:nth-child(7) {
  transform: translate(0%, -40%) rotate(-5deg);
}

.fancy:hover > .outer:nth-child(8) {
  transform: translate(0%, 15%) rotate(10deg);
}

.fancy:hover > .outer:nth-child(9) {
  transform: translate(0%, -50%) rotate(8deg);
}

.fancy:hover > .outer:nth-child(10) {
  transform: translate(0%, 15%) rotate(-6deg);
}

.fancy:hover > .outer:nth-child(11) {
  transform: translate(50%, -10%) rotate(-3deg);
}

.fancy:hover > .outer:nth-child(12) {
  transform: translate(120%, -30%) rotate(-10deg);
}



/* RAHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH */
#text:has(.cool:hover) .word:not(.cool:hover) {
  opacity: 0.2;
}

.cool span {
  display: inline-block;
}

.cool > .outer {
  transition: transform 350ms ease;
}

.cool:hover > .outer {
  transition-duration: 800ms;
}

.cool:hover > .outer > .inner {
  animation: float 5s ease infinite;
}

.cool:hover > .outer > .inner > .letter {
  background: linear-gradient(
    to right,
    var(--blue),
    var(--green),
    var(--blue)
  );
  background-size: 1000%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: background-pan 150s linear infinite;
}

.cool:hover > .outer:nth-child(1) {
  transform: translate(-80%, 60%) rotate(8deg);
}

.cool:hover > .outer:nth-child(2) {
  transform: translate(-40%, 20%) rotate(4deg);
}

.cool:hover > .outer:nth-child(3) {
  transform: translate(-10%, 60%) rotate(-6deg);
}

.cool:hover > .outer:nth-child(4) {
  transform: translate(0%, 8%) rotate(-8deg);
}

.cool:hover > .outer:nth-child(5) {
  transform: translate(0%, -20%) rotate(5deg);
}

.coolncy:hover > .outer:nth-child(6) {
  transform: translate(0%, 20%) rotate(-3deg);
}

.cool:hover > .outer:nth-child(7) {
  transform: translate(0%, -40%) rotate(-5deg);
}

.cool:hover > .outer:nth-child(8) {
  transform: translate(0%, 15%) rotate(10deg);
}

.cool:hover > .outer:nth-child(9) {
  transform: translate(0%, -50%) rotate(8deg);
}

.cool:hover > .outer:nth-child(10) {
  transform: translate(0%, 15%) rotate(-6deg);
}

.cool:hover > .outer:nth-child(11) {
  transform: translate(50%, -10%) rotate(-3deg);
}

.cool:hover > .outer:nth-child(12) {
  transform: translate(120%, -30%) rotate(-10deg);
}


