* {
  box-sizing: border-box;
  list-style: numeric;
}
body {
  font-family: Arial, sans-serif;
  background-color: #fff6f0;
  color: #333;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 900px;
  margin: 30px auto;
  text-align: center;
  padding: 0 15px;
}
h1 {
  color: #ff7043;
}
.search-box {
  margin: 20px 0;
}
#searchInput {
  padding: 10px;
  width: 70%;
  border: 2px solid #ff7043;
  border-radius: 5px;
  outline: none;
  font-size: 16px;
}
#searchBtn {
  padding: 10px 20px;
  background-color: #ff7043;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}
#searchBtn:hover {
  background-color: #ff5722;
}
.recipes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.recipe-card {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  cursor: pointer;
}
.recipe-card:hover {
  transform: scale(1.03);
}
.recipe-card img {
  width: 100%;
  border-radius: 10px;
}
.recipe-card h3 {
  margin: 10px 0 5px;
  color: #ff7043;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 700px;
  width: 90%;
  text-align: left;
  overflow-y: auto;
  max-height: 80vh;
}
.modal-content h2 {
  color: #ff7043;
}
.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
  color: #ff7043;
}
.ingredients {
  margin-top: 10px;
  padding-left: 15px;
}
.ingredients li {
  margin-bottom: 5px;
}

