*{
  margin : 0;
  padding : 0;
  box-sizing: border-box;
}
body{
  width : 100%;
  min-height : 100vh;
  background:pink;
  font-family: sans-serif;
}
body.light{
  background: rgb(217, 61, 87);
  color: white;
}

body.dark{
  background: #121212;
  color: #fff;
}

body.dark .recipe-card{
  background: #1e1e1e;
  color: white;
}

body.dark .container{
  color: white;
}

body.dark input{
  background: #2a2a2a;
  color: white;
  border: 1px solid #444;
}

body.dark .searchBox button{
  background: #ff4d4d;
}
#themeToggle{
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 14px;
  border: none;
  background: crimson;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}
.container{
  background-image: url("background.png");
  background-size: cover;
  padding : 70px 20px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color:red
}
.container h1{
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
}
.container p{
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}
.searchBox{
  max-width: 600px;
  margin:15px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.searchBox input{
  padding:12px;
  width : 70%;
  border-radius: 5px 0 0 5px;
  border : 1px solid rgb(228,69,69);
  font-size: 1rem;
}
.searchBox button{
  padding: 12px 20px;
  background: rgb(240 , 72 ,72);
  border : 0;
  outline: none;
  border : 1px solid rgb(221,59,59);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0px 5px 5px 0px;
  cursor:pointer
}
.notFound{
  color:green;
  text-align: center;
  margin-top: 30px;
  font-size:20px;

}
.recipes{
  display:flex;
  flex-wrap: wrap;
  align-items: center;
  gap:20px;
  margin-top: 20px;
  justify-content: center;
}
.recipe-card{
  width:200px;
  height:auto;
  background: white;
  padding:20px;
  border-radius: 8px;
  margin-top: 30px;
  text-align: center;
}
.recipe-card img{
  width:100%;
  height:120px;
  border-radius: 8px;
  margin-bottom: 10px;

}
.recipe-card button{
  padding: 4px 10px;
  background-color: goldenrod;
  color:white;
}


.popup-card{
  position: fixed;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  background:white;
  width:320px;
  max-height:420px;
  overflow-y:auto;
  border-radius:12px;
  padding:20px;
  z-index:100;
  display: none;
}
.popup-card h3{
  margin : 12px 0;
  color : #333;
  font-size: 22px;

}
.popup-card p{
  margin : 12px 0;
  color : #333;
  font-size: 16px;
  max-height : 280px;
  padding-right: 16px;
  margin-right: 10px;
  overflow-y: auto;
}

 .close-btn{
  position:absolute;
  top:10px;
  right:10px;
  background:crimson;
  color:white;
  border:none;
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
}

.categories{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
}

.categories button{
  padding: 30px 10px;
  border-radius: 16px;
  border: none;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.categories button:hover{
  transform: translateY(-5px);
  background: crimson;
  color: white;
}
@media (max-width: 768px){
  .categories{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px){
  .categories{
    grid-template-columns: repeat(1, 1fr);
  }
}

.card-btns{
display:flex;
justify-content:space-between;
padding:10px;
}

.card-btns button{
border:none;
padding:6px 10px;
border-radius:6px;
cursor:pointer;
}