@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

*{
  box-sizing: border-box;
}
body{
  background: #D3CCE3;
  background: -webkit-linear-gradient(to right, #E9E4F0, #D3CCE3);
  background: linear-gradient(to right, #E9E4F0, #D3CCE3);

  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
}
img{
  width: 100%;
}
.mobile-container{
  background-color: #fff;
  box-shadow: 0 0 10px 2px #3333331a;
  border-radius: 3px;
  overflow: hidden;
  width: 400px;
}
header{
  border: 1px solid red;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
header input{
  background-color: #eee;
  border: none;
  border-radius: 3px;
  font-family: inherit;
  padding: 0.5rem 1rem;
}
header button{
  background-color: transparent;
  border: none;
  color: rgb(131, 125, 125);
  font-size: 1.5rem;
  margin-left: 10px;
}
.fav-container{
  background-color: rgba(240, 10, 136, 0.527);
  padding: 0.25rem 1rem;
  text-align: center;
}
.fav-meals{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style-type: none;
  padding: 0;
}
.fav-meals li{
  cursor: pointer;
  position: relative;
  margin: 5px;
  width: 75px;
}
.fav-meals li .clear{
  background-color: transparent;
  border: none;
  opacity: 0;
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  font-size: 1.2rem;
  cursor: pointer;
}
.fav-meals li:hover .clear{
  opacity: 1;
}
.fav-meals li img{
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px #3333331a;
  object-fit: cover;
  width: 70px;
  height: 70px;
}
.fav-meals li span{
  display: inline-block;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 75px;
}
.meal{
  border-radius: 5px;
  box-shadow: 0 0 10px 2px #3333331a;
  cursor: pointer;
  margin: 1.5rem;
  overflow: hidden;
}
.meal-header{
  position: relative;
}
.meal-header .random{
  position: absolute;
  top: 1rem;
  background-color: #fff;
  padding: 0.25rem 1rem;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}
.meal-header img{
  object-fit: cover;
  height: 250px;
  width: 100%;
}
.meal-body{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}
.meal-body h4{
  margin: 0;
}
.meal-body .fav-btn{
  border: none;
  background-color: transparent;
  color: rgb(131, 125, 125);
  cursor: pointer;
  font-size: 1.2rem;
}
.meal-body .fav-btn.active{
  color:  rgba(158, 3, 88, 0.774);
}

.popup-container{
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
.popup-container.hidden{
  opacity: 0;
  pointer-events: none;
}
.popup{
  position: relative;
  background-color: #fff;
  padding: 0 2rem;
  border-radius: 5px;
  overflow: auto;
  max-height: 100vh;
  max-width: 800px;
  width: 100%;
}
.popup .close-popup{
  background-color: transparent;
  border: none;
  font-size: 1.5rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}
.meal-info h1{
  text-align: center;
}