/* GENERAL LAYOUT */
body {
  font-family: "Poppins", sans-serif;
  background: #f7f2ff;
  margin: 0;
  padding: 40px 20px;
  color: #333;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* TITLE */
h1 {
  font-size: 28px;
  color: #6a2c91;
  margin-bottom: 25px;
}

/* FORM */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
  width: 100%;
  max-width: 500px;
}

label {
  font-size: 16px;
  font-weight: 500;
  color: #6a2c91;
}

input[type="text"] {
  padding: 12px 15px;
  border: 2px solid #d8c7ff;
  border-radius: 10px;
  font-size: 16px;
  transition: 0.3s;
}

input[type="text"]:focus {
  border-color: #b28bff;
  outline: none;
  box-shadow: 0 0 8px rgba(178, 139, 255, 0.4);
}

/* BUTTON */
button {
  background: #6a2c91;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #8a3bb8;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(178, 139, 255, 0.3);
}

/* LOADING SHIMMER */
.loading {
  display: none;
  height: 20px;
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f3eaff, #ffffff, #f3eaff);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-top: 20px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* POEM BOX */
#poem {
  display: none;
  background: #f3eaff;
  padding: 25px 30px;
  border-radius: 15px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: #4a2b6f;
  border-left: 6px solid #b28bff;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 0.8s ease-in-out;
}

/* FADE IN ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
