@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&family=Roboto+Condensed&display=swap');
*{
    box-sizing: border-box;
}
body{
    font-family: 'Roboto Condensed', sans-serif;
    margin: 0;
    background-color: #eec0c6;
    background-image: linear-gradient(315deg, #eec0c6 0%, #7ee8fa 74%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;

}
.mobile-container{
    background-color: white;
    width: 400px;
    box-shadow: 0 0 10px 5px #3333331a;
    overflow: hidden;
}
img{
    width:100%;
}
header{
    padding: 1.5rem;
    display: flex;
    justify-content:center;
    align-items: center;
}
header input{
    padding:0.5rem 1rem;
    border-radius: 3px;
    border:none;
    background-color: #eee;
    font-family: inherit;
}
header button{
    background-color: transparent;
    margin-left: 10px;
    border: none;
    border-radius: 3px;
    color: #aaa;
}
.fav-container{
    padding: 0.25rem 1rem;
    text-align: center;
    background-color: rgb(232, 229, 235);
}
.fav-meals{
    display: flex;
    list-style-type: none;
    padding: 0;
    justify-content: center;    
    flex-wrap: wrap;
}
.fav-meals li{
    position: relative;
    width: 75px;
    margin: 5px;
    cursor: pointer;

}
.fav-meals li .clear{
    background-color: transparent;
    border: none; 
    cursor: pointer;  
    opacity: 0;
    position:absolute;
    top: -0.5rem;
    right: -0.5rem;
    font-size:1.2rem;

}
.fav-meals li:hover .clear{
    opacity:1;
}
.fav-meals li img{
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px #3333331a;
    object-fit: cover;
    height: 70px;
    width: 70px;
}
.fav-meals li span{
    display: inline-block;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 75px;
}
.meal{
    margin: 1.5rem;
    border-radius: 3px;
    box-shadow: 0 0 10px 2px #3333331a;
    overflow: hidden;
    cursor: pointer;
}
.meal-Header{
        position: relative;
}
.meal-Header .random{
    position: absolute;
    top: 1rem;
    background-color: white;
    padding: 0.25rem 0.5rem;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;

}
.meal-header img{
    object-fit: cover;
    width: 100%;
    height: 250px;
}
.meal-body{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}
.meal-body h4{
    margin: 0;
}
.meal-body .fav-btn{
    font-size: 1.2rem;
    border: none;
    background-color: transparent;
    cursor: pointer;
    color: gray;
}
.meal-body .fav-btn.active{
    color: rebeccapurple;
}

.popup-container{
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}
.popup-container.hidden{
    opacity: 0;
    pointer-events: none;
}
.popup{
    background-color:white;
    border-radius: 5px;
    padding:0 2rem;
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: auto;
    max-height: 100vh;
}
.popup .close-popup{
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    position: absolute;
    top:1rem ;
    right: 1rem;
}
.meal-info h1{
    text-align: center;
}
