@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Bungee&family=Cinzel+Decorative:wght@700&display=swap');

@property --top-color {
  syntax: '<color>';
  initial-value: #ff416c;
  inherits: false;
}

html,body,#content {
  min-height: 100dvh;
  padding: 0;
  margin: 0;
}

body {
  text-align: center;
  color: white;
}

#content {
  background: linear-gradient(to bottom, var(--top-color), #4a00e0);
  animation: changeTopColor 6s infinite alternate;
}

@keyframes changeTopColor {
  0% {
    --top-color: #ff416c; /* Starts as pink-red */
  }
  50% {
    --top-color: #8e2de2; /* Morphs into purple */
  }
  100% {
    --top-color: #00c6ff; /* Morphs into bright blue */
  }
}

#prompt {
  position: absolute;
  bottom: 10px;
  left: 20px;
  right: 20px;
  min-height: 50px;
  background-color: #121212;
  border-radius: 20px;
  padding: 5px 10px 65px 10px;
}

@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

#submit {
  position: absolute;
  right: 35px;
  width: 123px;
  bottom: 25px;
  height: 40px;
  border-radius: 20px;
  background: linear-gradient(var(--gradient-angle), #6a11cb 0%, #2575fc 100%);
  animation: rotate-linear 8s linear infinite;
  border: 0;
  color: white;
}

@keyframes rotate-linear {
  from {
    --gradient-angle: 0deg;
  }
  to {
    --gradient-angle: 360deg;
  }
}

#prompt:empty::before {
  content: "Enter your prompt...";
  color: #aaa;
  pointer-events: none; /* Allows user to click through the text */
}

#header {
  position: absolute;
  top: 0;
  width: 100%;
}

h1 {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
}

#mask {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0,0,0,0.5);
  display: grid;
  place-items: center;
}

#wait {
  display: flex;
  flex-direction: column;
  width: 170px;
}

#animation {
  display: flex;
  width: 100%;
  justify-content: space-between;
  height: 45px;
}

#animation div {
  background-color: white;

  height: 15px;
  width: 15px;
  
  /*transform-origin: top; 
  
  transform: scaleY(1); */
  
  animation: stretchVertical 3s ease-in-out infinite;

  animation-delay: calc((sibling-index() - 1) * 250ms);

  border-radius: 15px;
}

@keyframes stretchVertical {
  0% {
    height: 15px;
  }
  8.33% {
    height: 45px;
  }
  16.66% {
    height: 15px;
  }
  100% {
    height: 15px;
  }
}

#play {
  width: 80px;
  height: 80px;
  border-radius: 100px;
  background-color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40px, -40px);
  display: flex;
  justify-content: center;
  align-items: center;
}

#play div {
  background-color: #121212;
  width: 25px;
  height: 30px;
  clip-path: polygon(0% 0%, 0% 100%, 100% 50%);
  transform: translateX(3px);
}

h3 {
  color: yellow;

  transform-origin: top; 
  transform: scale(1,1); 
  
  animation: rickrolledText 1058ms ease-in-out infinite;
}

@keyframes rickrolledText {
  0% {
    transform: scale(1,1);
  }
  50% {
    transform: scale(2,2);
  }
  100% {
    transform: scale(1,1);
  }
}