* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
  font-family: "Raleway", sans-serif;
}

body {
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100vw;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url("./assets/bg.jpg");
  background-position: center;
  background-size: cover;
}

.container {
  width: 90%;
  max-width: 375px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #eee;
  padding: 20px;
  padding-right: 42px;
  padding-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.25);
  border: 1px solid #333;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.logo {
  margin-bottom: 2.4ex;
}
.logo h1 {
  color: #895c2b;
}
.logo h4 {
  margin-top: -5px;
  color: #ddd;
  font-weight: 500;
  font-size: 0.95rem;
}

.input-section {
  margin-bottom: 20px;
}

#ingredients {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #333;
  border-radius: 4px;
  background-color: #222;
  color: #eee;
  font-size: 1rem;
}
#ingredients::placeholder {
  color: #999;
  opacity: 0.9;
}

#search-button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  border-radius: 4px;
  background-color: #5e3f1d;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

#search-button:hover {
  background-color: #8e5f2c;
}

#recipe-display {
  text-align: left;
  display: none; /* Hidden initially */
}

#recipe-name {
  font-weight: bold;
  margin-bottom: 0px;
}

#recipe-ingredients,
#missing-ingredients {
  margin-bottom: 10px;
}

#download-button {
  display: none;
}

.text-center {
  text-align: center !important;
}

#recipe-display {
  margin-top: 2ex;
}
#recipe-display h2 {
  font-size: 20px;
}

.buttons {
  margin-top: 2ex;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.button {
  border: none;
  outline: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  background-color: rgba(255, 132, 0, 0.95);
  color: #222;
  border: 1px solid rgba(255, 132, 0, 0.95);
  border-radius: 24px;
  transition: 0.3s;
  flex: 1;
}

#next-recipe-button,
#download-button {
  background-color: transparent;
  border: 1px solid #ddd;
  color: #ddd;
}
#next-recipe-button:hover,
#download-button:hover {
  background-color: #eaeaea;
  border: 1px solid #eaeaea;
  color: #000;
}

#next-recipe-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#next-recipe-button:disabled:hover {
  background-color: transparent;
  color: #eaeaea;
}

textarea:focus,
input:focus {
  outline: none;
  outline: 2px solid #5e3f1d;
}

#cooking-time {
  margin-top: 10px;
  font-style: italic;
  color: #ca9255;
}

#entered-ingredients {
  display: none; /* Hide ingredient info initially to avoid clutter */
  padding: 10px;
  border-radius: 4px;
  width: 100%;
  margin-top: 10px;
  background-color: rgba(68, 93, 19, 0.85);
  color: #fff;
}

#recipe-ingredients,
#missing-ingredients {
  padding: 10px;
  border-radius: 4px;
  width: 100%;
  margin-top: 10px;
}
#missing-ingredients {
  background-color: rgba(182, 125, 8, 0.7);
  color: #fff;
}

.match-count {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #c48642;
  font-weight: bold;
}
