body {
  background: linear-gradient(
    90deg,
    hsla(167, 100%, 88%, 1) 0%,
    hsla(269, 8%, 49%, 1) 100%
  );
}

a {
  color: #4d6a61;
}

header {
  margin-bottom: 30px;
}

h1 {
  text-align: center;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.5;
  color: #272044;
}

.container {
  max-width: 650px;
  margin: 120px auto;
  font-family: "Merriweather", serif;
  font-optical-sizing: auto;
  font-style: normal;
  /* Added: horizontal padding so content doesn't touch screen edges on mobile */
  padding: 0 20px;
  box-sizing: border-box;
}

.wellness-form {
  margin-bottom: 20px;
  padding: 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0px 110px 100px rgba(27, 22, 38, 0.08);
}

#input-user {
  font-family: "Merriweather";
}

form .input-keywords {
  background: #d7eddb;
  width: 70%;
  padding: 15px;
  border: none;
  transition: 5px border black 0.01s ease;
  font-size: 15px;
  border-radius: 20px;
  line-height: 20px;
  color: #272044;
  margin-right: 10px;
  box-sizing: border-box;
}

#instructions-input {
  border: none;
  transition: border 1px solid black 0.3s ease;
}

#instructions-input:focus {
  border: 1px solid black;
  outline: 1px solid transparent;
}

form .input-button {
  background: #d7eddb;
  color: #272044;
  border: none;
  width: 110px;
  font-size: 16px;
  border-radius: 50px;
  padding: 14px 24px;
  cursor: pointer;
}

form .input-button:hover {
  background: hsla(269, 8%, 49%, 1) 100%;
  color: white;
}

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

main .generated-answer {
  background: white;
  padding: 15px;
  line-height: 1.4;
  border-radius: 10px;
  box-shadow: 0px 20px 60px rgba(65, 50, 100, 0.08);
  border-left: 3px solid #4d6a61;
}

#summary em {
  display: block;
  text-align: initial;
  margin: 2px 0;
  padding: 0;
  font-style: italic;
}

.summary strong {
  color: #885df1;
  margin-bottom: 50px;
}

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

.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: 768px) {
  .container {
    margin: 60px auto;
    padding: 0 16px;
  }

  h1 {
    font-size: 26px;
  }

  .wellness-form {
    padding: 20px;
  }

  #input-user {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  form .input-keywords {
    width: 100%;
    margin-right: 0;
  }

  form .input-button {
    width: 100%;
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 30px auto;
    padding: 0 12px;
  }

  h1 {
    font-size: 22px;
    line-height: 1.4;
  }

  .wellness-form {
    padding: 16px;
  }

  main .generated-answer {
    font-size: 14px;
  }

  footer {
    font-size: 12px;
    padding-bottom: 20px;
  }
}
