body {
  background-color: #e5e5f7;
  opacity: 0.7;
  background-image: radial-gradient(#f76b8a 0.55px, #e5e5f7 0.55px);
  background-size: 11px 11px;
  font-family: "Noto Serif", serif;
}

a {
  color: #f76b8a;
}

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

header {
  margin-bottom: 30px;
}

h1 {
  text-align: center;
  font-size: 40px;
  line-height: 1.5;
  color: #f76b8a;
}

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

form {
  display: flex;
}

.instructions {
  padding: 16px;
  border: 1px solid #e991a4;
  width: 80%;
  font-size: 16px;
  border-radius: 50px;
  line-height: 20px;
}

.hidden {
  display: none;
  }

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

.submit-button {
  margin-left: 10px;
  background-color: #f76b8a;
  color: white;
  border: none;
  width: 150px;
  font-size: 16px;
  border-radius: 50px;
  padding: 14 24px;
}

.poem {
  font-size: 16px;
  background-color: white;
  padding: 20px;
  line-height: 2;
  border-left: 3px solid #f76b8a;
  box-shadow: 0px 4px 30px 0px rgba(39, 33, 66, 0.3);
}

footer {
  text-align: center;
  font-size: 13px;
  margin-top: 30px;
}

.poem strong {
  color: #f76b8a;
}

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

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

@media (max-width: 600px) {
  .container {
    padding: 15px;
  }

  header h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  form {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .instructions, .submit-button  {
    font-size: 1rem;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    max-width: 300px;
    text-align: center;
  }

  .poem {
    font-size: 1.1rem;
    padding: 10px;
    text-align: center;
  }

  footer {
    font-size: 0.9rem;
    padding: 10px;
    text-align: center;
  }
}

