/* Import Montserrat from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

/* Global Styles */
body {
  font-family: "Montserrat", Verdana, Geneva, Tahoma, sans-serif;
  background-color: #fff8f0; /* soft cream background */
  margin: 0;
  padding: 0;
  color: #333333;
}

a {
  color: #4dabf7; /* fun blue for links */
  text-decoration: none;
  font-weight: 500;
}

.container {
  margin: 60px auto; /* smaller top margin */
  max-width: 700px;
  padding: 0 20px;
}

header {
  margin-bottom: 30px;
}

h1 {
  text-align: center;
  color: #ff6b6b; /* coral heading */
  font-size: 42px;
  font-weight: 700;
  line-height: 1.4;
}

/* Form Container */
.form-container {
  padding: 25px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* lighter shadow */
  border: 1px solid #ffe6e6; /* subtle border for distinction */
}

form {
  display: flex;
  gap: 10px;
}

.form-text-input {
  padding: 16px 20px;
  font-size: 17px;
  border: 1px solid #ddd;
  border-radius: 30px;
  width: 100%;
  background-color: #f0f0f0; /* light input */
  color: #333;
  font-weight: 400; /* lighter body text */
  transition: border 0.2s ease-in-out;
}

.form-text-input:focus {
  border-color: #ff8787; /* gentle coral highlight */
  outline: none;
}

.submit-button {
  padding: 16px 30px;
  font-size: 17px;
  font-weight: 500;
  border: none;
  border-radius: 30px;
  background-color: #ff6b6b; /* bright coral button */
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
  box-shadow: 0px 4px 0px #d94c4c; /* subtle shadow */
}

.submit-button:hover {
  background-color: #ff8787; /* lighter coral hover */
}

.submit-button:active {
  transform: translateY(2px);
  box-shadow: 0px 1px 0px #d94c4c;
}

/* Hint Text */
.hint {
  color: #888888; /* muted grey */
  padding-top: 12px;
  font-size: 14px;
}

/* Recipe Container */
#recipe {
  padding: 30px;
  font-size: 18px;
  background-color: #ffffff; /* clean recipe card */
  color: #333333;
  margin-top: 30px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #ff6b6b; /* coral accent */
  line-height: 1.1;
  opacity: 0;
  animation: recipe-fade-in 0.8s ease forwards;
  transition: transform 0.2s ease-in-out; /* for hover effect */
}

#recipe:hover {
  transform: translateY(-2px); /* subtle hover lift */
}

@keyframes recipe-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blink {
  animation: gentle-blink 1.9s ease-in-out infinite;
}

@keyframes gentle-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* Footer */
footer {
  text-align: center;
  font-size: 14px;
  color: #888888;
  margin-top: 40px;
}

/* Hidden Class */
.hidden {
  display: none;
}
