body {
  background-image: url("images/image2.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  color: #333;
  font-family: "Quintessential", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(2px);
  z-index: -1;
}

.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.floating {
  position: absolute;
  width: 40px;
  height: 40px;
  animation: float2 10s infinite ease-in-out;
  opacity: 0;
  pointer-events: none;
  animation-fill-mode: forwards;
}

.container {
  margin: 120px auto;
  max-width: 600px;
}

header {
  margin-bottom: 30px;
}

h1 {
  color: white;
  text-align: center;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.6;
  text-shadow: 0 0 5px #fff, 0 0 10px #f5e9af, 0 0 15px #f5e9af,
    0 0 20px #f8c6e0;
  animation: glow 2s ease-in-out infinite alternate;
}

form {
  background-color: rgba(215, 206, 147, 0.9);
  opacity: 0.8;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 0 15px #fceabb, 0 0 30px #f8c6e0, 0 0 45px #ffe6fa;
  display: flex;
  animation: float 6s ease-in-out infinite,
    glowForm 3s ease-in-out infinite alternate;
}

.instructions {
  padding: 15px;
  width: 80%;
  border: none;
  outline: none;
  border-radius: 40px;
  font-size: 16px;
  line-height: 20px;
  font-family: "Quintessential", sans-serif;
}

.submit-btn {
  border: none;
  padding: 20px;
  color: black;
  font-weight: bold;
  background-color: rgb(239, 235, 224);
  border-radius: 30px;
  margin-left: 10px;
  font-size: 16px;
  font-family: "Quintessential", sans-serif;
}

.submit-btn:hover {
  background-color: rgb(239, 235, 224);
  border: 2px solid white;
}

.submit-btn:active {
  background-color: #a3a380;
}

.poem {
  font-family: "Quintessential", sans-serif;
  text-shadow: 0 0 5px #fceabb, 0 0 10px #f8c6e0, 0 0 20px #efebce;
  font-size: 22px;
  line-height: 2;
  margin-top: 40px;
  margin-bottom: 50px;
  background-color: rgba(216, 164, 143, 0.85);
  opacity: 0.8;
  padding: 20px;
  color: white;
  box-shadow: 0 0 10px #ffd3e0, 0 0 25px #fcd9ff, 0 0 40px #ffe6fa;
  border-left: 5px solid black;
  animation: fadeIn 3s ease-in-out, glowPoem 4s ease-in-out infinite alternate,
    float 6s ease-in-out infinite;
}

.hidden {
  display: none;
}

footer {
  margin-top: 10px;
  color: white;
  text-align: center;
  text-shadow: 0px 0px 4px #d7ce93;
  font-size: 12px;
}

a {
  color: black;
}

.generating {
  animation: blink-animation 1s steps(5, start) infinite;
}

@keyframes flyAcross {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(100vw, 100vh);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes float2 {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

@keyframes blink-animation {
  to {
    visibility: hidden;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glow {
  0% {
    text-shadow: 0 0 5px #fff, 0 0 10px #f5e9af, 0 0 15px #f5e9af,
      0 0 20px #f8c6e0;
  }
  100% {
    text-shadow: 0 0 10px #fff, 0 0 20px #f5e9af, 0 0 25px #f5e9af,
      0 0 30px #f8c6e0;
  }
}

@keyframes glowForm {
  0% {
    box-shadow: 0 0 10px #fceabb, 0 0 20px #f8c6e0, 0 0 30px #ffe6fa;
  }
  100% {
    box-shadow: 0 0 20px #fceabb, 0 0 40px #f8c6e0, 0 0 60px #ffe6fa;
  }
}

@keyframes glowPoem {
  0% {
    box-shadow: 0 0 10px #ffd3e0, 0 0 20px #fcd9ff, 0 0 30px #ffe6fa;
  }
  100% {
    box-shadow: 0 0 20px #ffd3e0, 0 0 35px #fcd9ff, 0 0 50px #ffe6fa;
  }
}
