@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap');


* {
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    min-height: 100vh;
}

#bc-image {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -100;
}

:focus {
    outline: none;
}

img {
    max-width: 100%;
}

.mobile-container {
    box-shadow: 0 10px 2px #3333331A;
    border-radius: 3px;
    background-color: #fff;
    overflow: hidden;
    width: 400px;
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

header input {
    background-color: #eee;
    border: none;
    border-radius: 3px;
    font-family: inherit;
    padding: .5rem 1rem ;
}

header input:focus {
    outline: auto;
}

header button {
    background-color: transparent;
    border: none;
    color: rgb(138, 129, 141);
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: 10px;
}

header button:hover {
    color: rgb(94, 87, 97);
}

.fav-container {
    background-color: rgb(247 232 232);
    text-align: center;
    padding: .25rem 1rem;
}

.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;
    cursor: pointer;
    opacity: 0;
    position: absolute;
    top: -.5rem;
    right: -.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 6px 2px #3333331A;
    object-fit: cover;
    height: 70px;
    width: 70px;
}

.fav-meals li span {
    display: block;
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 75px;
}

.fa-window-close:before {
    color: #969595;
}

.meal {
    border-radius: 3px;
    box-shadow: 0 3px 10px 2px #3333331A;
    cursor: pointer;
    margin: 1.5rem;
    overflow: hidden;
}

.meal:hover {
    box-shadow: 0 4px 10px 2px #33333323;

    -webkit-transform: translate(0, -3px);
    -moz-transform: translate(0, -3px);
    -ms-transform: translate(0, -3px);
    -o-transform: translate(0, -3px);
    transform: translate(0, -3px);
    -webkit-transition: transform 0.4s 0s ease-in-out;
    -moz-transition: transform 0.4s 0s ease-in-out;
    -o-transition: transform 0.4s 0s ease-in-out;
    transition: transform 0.4s 0s ease-in-out;
}

.meal-header {
    position: relative;
}

.meal-header .random {
    position: absolute;
    top: 1rem;
    background-color: #fff;
    padding: .25rem 1rem;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.meal-header img {
    object-fit: cover;
    height: 250px;
    width: 100%;
}

.meal-body {
    cursor: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.meal-body h4 {
    display: inline-block;
    cursor: pointer;
    margin: 0;
}

.meal-body .fav-btn {
    border: none;
    background-color: transparent;
    color: rgb(197, 188, 188);
    cursor: pointer;
    font-size: 1.2rem;
}

.meal-body .fav-btn:hover {
    color: rgb(168, 158, 158);
}

.meal-body .fav-btn.active {
    color: rebeccapurple;
}

.meal-body .fav-btn.active:hover {
    color: rgba(102, 51, 153, 0.897);
}

.popup-container {
    background-color: rgba(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 {
    background-color: #fff;
    border-radius: 5px;
    padding: 0 2rem;
    overflow: auto;
    position: relative;
    max-height: 100vh;
    max-width: 600px;
    width: 100%;
}

.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;
}

/* media queries */

@media screen and (min-width: 1921px) {
    #bc-image {
        content:url("boardL.jpg");
    }
}

@media screen and (max-width: 1920px) {
    #bc-image {
        content:url("boardM.jpg");
    }
}

@media screen and (max-width: 960px) {
    .mobile-container {
        width: 375px;
    }
}

@media screen and (max-width: 850px) {
    .mobile-container {
        width: 350px;
    }
}

@media screen and (max-width: 760px) {
    .mobile-container {
        width: 330px;
    }
}

@media screen and (max-width: 700px) {
    .mobile-container {
        width: 315px;
    }
}

@media screen and (max-width: 630px) {
    #bc-image {
        content:url("boardS.jpg");
    }

    .mobile-container {
        width: 290px;
    }
}

@media screen and (max-width: 540px) {
    #bc-image {
        display: none;
    }

    .mobile-container {
        position: absolute;
        top: 0;
        min-height: 100vh;
        width: 100%;
    }
}