* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

 header {
 background: url('images/Screenshot (363).png');  
  color: #1d1313;
  padding: 20px;
  text-align: center;
 }

body {
  background: url('assets/ba') center/cover no-repeat fixed;
  color: #ffffff;
  line-height: 1.6;
  position: relative;
  font-size: larger;
}
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55); 
  z-index: -1;
}

header {
  background: transparent; 
  padding: 20px 10px;
  text-align: center;
  color: #ffffff;
}


header h1,
header p,
header nav {
  position: relative;
  z-index: 1; 
}
header h1 {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 5px;
}

header p {
  font-size: 1.3rem;
}

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

nav a {
  color: #FFEB3B;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

.recipes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  padding: 50px;
}

.recipe-card {
  background: #f1eded;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  -webkit-text-fill-color: black;
  transition: transform 0.3s ease;
  }

.recipe-card:hover {
  transform: translateY(-8px);
}

.recipe-card img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.recipe-card button {
  margin-top: 10px;
  padding: 8px 12px;
  background: #4CAF50;
  color: rgb(0, 0, 0);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.recipe-card button:hover {
  background: #45a049;
}
.back-btn {
  display: inline-block;
  margin: 20px;
  padding: 10px 15px;
  background: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s;
}

.back-btn:hover {
  background: #45a049;
}

.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  -webkit-text-fill-color: black;
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
  max-height: 80vh;      
  overflow-y: auto;     
 }
 
.close-btn {
  float: right;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.close-btn:hover {
  color: red;
}

.modal-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 10px 0;
}

footer {
  background: #333;
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

footer a {
  color: #ff9800;
  margin: 0 8px;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}