body {
  background-color: #5d65d3;
  background-image: linear-gradient(to right, #5d65d3, #68459d);
  font-family:
    "Poppins", "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

.outer {
  background-color: white;
  width: 80%;
  min-height: 90vh;
  justify-self: center;
  text-align: center;
  padding-top: 10px;
  margin-top: 1%;
  border-radius: 6px;
}

.titleName {
  margin-bottom: 10px;
  font-weight: bolder;
}

#searchError {
  color: red;
  display: None;
}

.subText {
  margin-bottom: 20px;
}

.inputSearch {
  margin-bottom: 15px;
}

#resultTitle {
  font-size: 26px;
  font-weight: bolder;
}

.searchInput {
  width: 100%;
  max-width: 400px;
  height: 35px;
  border-radius: 6px;
  border: 3px solid rgb(236, 225, 225);
  padding: 5px 10px;
  margin-right: 5px;
  outline: None;
}

.searchInput:focus {
  border-color: #768bff;
}

.btn {
  height: 45px;
  width: 100%;
  max-width: 100px;
  background-color: #615ec5;
  background-image: linear-gradient(to right, #5d65d3, #68459d);
  color: white;
  border-radius: 6px;
  transition: 0.3s;
  border: 0px;
}

.btn:hover {
  background-image: linear-gradient(to right, #5d65d3, #68459d);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#resultData {
  margin-top: 20px;
  flex-wrap: wrap;
  display: flex;
  gap: 30px;
  justify-content: flex-start;
  padding: 20px;
}

.card {
  width: 30%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
  padding-bottom: 15px;
}

.card img {
  height: 300px;
  width: 100%;
  border-radius: 12px;
}

.card h3 {
  margin-left: 5%;
  text-transform: capitalize;
  font-weight: bolder;
}

.card button {
  padding: 5px 10px 5px 10px;
  background-image: linear-gradient(to right, #5d65d3, #68459d);
  margin-left: 5%;
  border-radius: 12px;
  color: white;
  border: 0px;
  text-transform: capitalize;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.backBtn {
  color: #768bff;
  border-radius: 6px;
  border: 2px solid #768bff;
  background-color: white;
  padding: 10px 10px;
  margin: 10px 0px 20px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}

.backBtn:hover {
  background-color: #768bff;
  color: white;
}

.detailsData {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 20px;
}

.left {
  width: 50%;
}

.foodImg {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.right {
  width: 50%;
  text-align: left;
}

.foodTitle {
  font-size: 40px;
  margin-top: 0px;
  margin-bottom: 10px;
  font-weight: 700;
}

.subData {
  gap: 10px;
  margin-bottom: 10px;
}

.locationType {
  padding: 6px 12px;
  margin-right: 5px;
  border-radius: 20px;
  background-color: rgb(240, 240, 240);
}

.category {
  background-color: rgba(90, 114, 233);
  color: white;
}

.subTitle {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 20px;
}

.ingredients {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 10px;
  margin-bottom: 20px;
}

.ingredientItems {
  background-color: rgb(246, 246, 246);
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 500;
}

.instructions {
  margin-bottom: 10px;
  font-weight: 500;
}

.youtubeBtn {
  color: white;
  background-color: red;
  border-radius: 6px;
  padding: 6px 12px;
  border: 0px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 20px;
}

.youtubeBtn:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  color: white;
}

#loading {
  width: 20px;
  height: 20px;
  border: 5px solid #eee;
  border-top: 5px solid #5d65d3;
  border-radius: 100%;
  animation: spin 0.5s linear infinite;
  justify-self: center;
  margin: 15px;
  display: None;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

hr {
  border: none;
  height: 2px;
  background-color: #e1e1e1;
  margin: 10px 0px;
}
