@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: poppins, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: beige;
}

header {
  background-color: #4caf50;
  width: 100%;
  padding: 1rem;
  text-align: center;
  color: white;
}

main {
  padding: 1rem;
  width: 90%;
  max-width: 800px;
}

#hero {
  padding: 20px;
  text-align: center;
}

#hero h2 {
  font-size: 2.5rem;
  color: #4caf50;
}

#hero p {
  font-size: 1rem;
  color: #333;
  max-width: 600px;
  margin: 0 auto;
}

#search-section {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

#ingredient-input {
  width: 70%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#search-button {
  padding: 0.5rem 1rem;
  border: none;
  background-color: #4caf50;
  color: white;
  cursor: pointer;
  border-radius: 4px;
  margin-left: 1rem;
}

#search-button:hover {
  background-color: #45a049;
}

#results-section {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  gap: 20px;
}

.results-heading {
  font-size: 2rem;
  color: #333;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
}

.recipe-card {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.recipe-card img {
  width: 100%;
  border-radius: 8px;
}

.recipe-card h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
}

.recipe-card button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.recipe-card button:hover {
  background-color: #45a049;
}

#instructions-section {
  display: none;
  flex-direction: column;
  align-items: center;
}

#instructions-section p {
  font-size: 1rem;
  color: #333;
}


.popup-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}


.popup-card {
  width: 60%;
  max-width: 400px;
  background-color: #4caf50;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.popup-card h2 {
  margin-top: 0;
  color: black;
  font-size: 20px;
  text-align: center;
}

.popup-card ol {
  padding-left: 20px;
}

.popup-card li {
  margin-bottom: 10px;
  line-height: 1.5;
  color: white;
}

.popup-card button {
  display: block;
  margin: 20px auto 0;
  padding: 10px 20px;
  background-color: white;
  color: #4caf50;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.message {
  font-size: 1.2rem;
  color: #ff0000;
  text-align: center;
  margin-top: 20px;
  animation: fadeOut 5s forwards;
}


