/* General Reset */
body {
  background: url('Recipe1.jpg') no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
  }
  
  /* Header */
  .header {
    background-color: #ff6347;
    color: white;
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .header input {
    margin-top: 10px;
    padding: 10px;
    width: 80%;
    max-width: 400px;
    border: none;
    border-radius: 5px;
  }
  
  /* Categories */
  .categories {
    text-align: center;
    margin: 20px 0;
  }
  
  .categories button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    background-color: #ff6347;
    color: white;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .categories button:hover {
    background-color: #e55337;
  }
  
  /* Recipe List */
  .recipes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
  }
  
  .recipe-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 300px;
    cursor: pointer;
    transition: transform 0.2s;
  }
  
  .recipe-card:hover {
    transform: scale(1.05);
  }
  
  .recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .recipe-card .info {
    padding: 15px;
  }
  
  .recipe-card h3 {
    margin: 0 0 10px;
  }
  
  .recipe-card p {
    font-size: 14px;
    color: #555;
  }
  
  /* Modal */
  .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;
    z-index: 1000;
  }
  
  .modal-content {
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    position: relative;
  }
  
  .modal-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #555;
  }
  
  .modal-content img {
    width: 100%;
    border-radius: 10px;
  }
  
  .modal-content h2 {
    margin: 20px 0 10px;
  }
  
  .modal-content ul {
    list-style-type: disc;
    padding-left: 20px;
  }
  /* Add Recipe Form */
.add-recipe-form {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 20px auto;
  max-width: 600px;
  display: none;
}

.add-recipe-form h2 {
  margin-top: 0;
}

.add-recipe-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.add-recipe-form label {
  font-weight: bold;
}

.add-recipe-form input,
.add-recipe-form select,
.add-recipe-form textarea,
.add-recipe-form button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.add-recipe-form button {
  background-color: #ff6347;
  color: white;
  border: none;
  cursor: pointer;
}

.add-recipe-form button:hover {
  background-color: #e55337;
}

/* Add Recipe Button */
.add-recipe-btn {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 5px;
}

.add-recipe-btn:hover {
  background-color: #45a049;
}


