body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

#recipeApp {
  max-width: 900px;
  width: 100%;
}

h1 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.5em;
}

#addRecipeBtn {
  display: block;
  margin: 0 auto 20px;
  padding: 12px 25px;
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#addRecipeBtn:hover {
  background-color: #27ae60;
}

#recipeGallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.recipe-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.recipe-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 2px solid #ecf0f1;
}

.recipe-card:hover {
  transform: translateY(-5px);
}

#recipeDetails {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 20px;
  text-align: left;
  max-width: 100%;
}

#recipeDetails h3 {
  color: #e74c3c;
  margin-bottom: 10px;
}

#recipeDetails p {
  color: #34495e;
  line-height: 1.6;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.form-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.form-content h2 {
  color: #2c3e50;
  margin-bottom: 15px;
}

input, textarea {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
}

button {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

button:nth-child(odd) {
  background-color: #3498db;
  color: white;
}

button:nth-child(odd):hover {
  background-color: #2980b9;
}

button:nth-child(even) {
  background-color: #e74c3c;
  color: white;
}

button:nth-child(even):hover {
  background-color: #c0392b;
}