body {
  background-color:#f4f4f7;
  font-family: Helvetica, Arial, sans-serif;
  font-family: 'Inter', sans-serif;
}

a {
  color: #885df1;
}

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

h1 {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.5;
  color: #2c2c2c;
  text-align: center;
  margin-bottom: 10px;
}

header {
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.form-container {
  background-color: whitesmoke;
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  background-color: white;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0px 20px 60px rgba(65, 50, 100, 0.8);
}

form {
  display: flex;
}

.hint {
  line-height: 1.5;
  margin-top: 5px;
  opacity: 0.6;
  font-size: 12px;
}

.hidden {
  display: none;
}

.instructions {
  padding: 16px;
  border: 1px solid rgba(39, 33, 66, 0.5);
  width: 100%;
  font-size: 16px;
  border-radius: 50px;
  line-height: 20px;
  color: #272044;
  background-color: #fdfdfd;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.submit-button {
  margin-left: 10px;
  background: linear-gradient(135deg, #885df1 0%, #6d48c6 100%);
  color: #fff;
  border: none;
  width: 150%;
  font-size: 16px;
  border-radius: 50px;
  cursor: pointer;  
  padding: 14px 24px;
  box-shadow: 0 4px 15px rgba(136, 93, 241, 0.3);
  transition: background-color 0.3s ease;
}


.submit-button:hover {
  background-color: #6d48c6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(136, 93, 241, 0.4);
  background: linear-gradient(135deg, #6d48c6 0%, #5a3ba3 100%);
}



.poem {
  font-size: 18px;
  background-color: #fff;
  backdrop-filter: blur(15px);
  padding: 24px;
  line-height: 1.8;
  border-left: 5px solid #885df1;
  box-shadow: 0px 10px 40px  rgba(65, 50, 100, 0.2);
  margin-top: 20px;
  font-weight: 500;
  animation: slideIn 0.5s ease-out;
  border-radius: 12px;
}

  










footer {
  text-align: center;
  font-size: 13px;
  margin-top: 40px;
  color: #555;
  opacity: 0.8;
}

footer a {
  color: #885df1;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.poem strong {
  color: #885df1;
}

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

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(136, 93, 241, 0.4);
  background: linear-gradient(135deg, #6d48c6 0%, #5a3ba3 100%);
}

/* Simple stats widget */
.stats-widget {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
}

.stats-widget h3 {
  color: #885df1;
  margin: 0 0 10px 0;
  font-size: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: #885df1;
  display: block;
}

.stat-label {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}


:root {
  --bg-color: #f4f4f7;
  --text-color: #2c2c2c;
  --card-bg: rgba(255, 255, 255, 0.8);
  --border-color: rgba(255, 255, 255, 0.2);
}


body.dark-mode {
  --bg-color: #1a1a2e;
  --text-color: #eee;
  --card-bg: rgba(46, 46, 70, 0.8);
  --border-color: rgba(255, 255, 255, 0.1);
  
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: var(--text-color);
}

.dark-mode .form-container,
.dark-mode .poem,
.dark-mode .stats-widget {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-color);
}

.dark-mode h1 {
  color: var(--text-color);
}

/* Dark mode toggle button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(136, 93, 241, 0.2);
  border: 1px solid rgba(136, 93, 241, 0.3);
  border-radius: 50px;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  background: rgba(136, 93, 241, 0.3);
}