body {
  background-color: #f5f8f1;
  background-image: url("../images/vegetables.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

a {
  color: #2f6b4f;
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 600px;
  margin: 70px auto;
  padding: 0 20px;
}

header {
  text-align: center;
  margin-bottom: 35px;
}

h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}

header p {
  color: #617468;
  font-size: 15px;
}

.form-container {
  background-color: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(47, 107, 79, 0.08);
  margin-bottom: 25px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hint {
  font-size: 12px;
  color: #617468;
  margin-top: 15px;
  text-align: center;
}

.instructions {
  padding: 16px;
  border: 1px solid #dcebdd;
  width: 95%;
  font-size: 16px;
  border-radius: 10px;
  line-height: 20px;
  color: #26352b;
  background-color: #ffffff;
}

.instructions:focus {
  outline: 2px solid #2f6b4f;
  outline-offset: 2px;
}

.submit-button {
  background-color: #2f6b4f;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 16px;
  margin-top: 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-button:hover {
  background-color: #24563e;
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.recipe {
  background-color: white;
  padding: 30px;
  border-radius: 18px;
  border-left: 4px solid #2f6b4f;
  box-shadow: 0 15px 45px rgba(47, 107, 79, 0.08);
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.recipe h2 {
  color: #2f6b4f;
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 15px;
}

.recipe h3 {
  color: #26352b;
  font-size: 18px;
  margin-top: 25px;
  margin-bottom: 10px;
}

.recipe ul,
.recipe ol {
  padding-left: 20px;
}

.recipe li {
  margin-bottom: 8px;
}

.recipe strong {
  color: #2f6b4f;
}

.hidden {
  display: none;
}

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

.generating {
  color: #2f6b4f;
  animation: blink-animation 1.5s ease-in-out infinite;
}

@keyframes blink-animation {
  50% {
    opacity: 0.4;
  }
}

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

.recipe-options {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.option {
  flex: 1;
  min-width: 0;
}

.option label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26352b;
}

.option select {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid #dcebdd;
  border-radius: 10px;
  background-color: white;
  color: #26352b;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: right 20px center;
}

.option select:focus {
  outline: 2px solid #2f6b4f;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .recipe-options {
    flex-direction: column;
  }
}
