/* 🌈 Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600&display=swap');

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
  background-attachment: fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
  color: #2e2e2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(-45deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05), rgba(0,0,0,0.05));
  animation: moveGradient 12s ease infinite;
  z-index: -1;
}

@keyframes moveGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.content {
  text-align: center;
  margin-top: 60px;
  width: 90%;
  max-width: 700px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: #ffffff;
  text-shadow: 0 3px 6px rgba(0,0,0,0.2);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

h2 {
  color: #fff9;
  font-weight: 400;
  margin-bottom: 2rem;
  font-size: 1.25rem;
  letter-spacing: 0.3px;
}
.info-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  margin: 20px auto 40px;
  transition: all 0.4s ease;
}

.info-box:hover {
  transform: translateY(-4px);
}
form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.instructions {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid transparent;
  border-radius: 50px;
  font-size: 1rem;
  background: rgba(255,255,255,0.85);
  color: #333;
  transition: all 0.3s ease;
}

.instructions:focus {
  border-color: #f1b963;
  outline: none;
  box-shadow: 0 0 8px rgba(241,185,99,0.5);
}

.submit-button {
  background: #f1b963;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  background: #f8d56b;
  transform: scale(1.05);
}
#poem {
  font-size: 1.2rem;
  line-height: 1.9;
  color: #222;
  white-space: pre-line;
  background: rgba(255,255,255,0.7);
  border-radius: 16px;
  padding: 25px;
  margin-top: 25px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
#copyBtn {
  margin-top: 25px;
  padding: 12px 24px;
  background: linear-gradient(90deg, #f1b963, #f8f398);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#copyBtn:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #f8f398, #f1b963);
}
.loading {
  color: #fff;
  font-style: italic;
  margin-top: 15px;
  font-size: 1.1rem;
}
@media (max-width: 600px) {
  h1 { font-size: 2.2rem; }
  .info-box { padding: 25px; }
  .instructions { width: 100%; }
  #poem { font-size: 1.05rem; }
}


