@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Young+Serif&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Young+Serif&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

.container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* height: 100vh; */
    box-sizing: border-box;
    overflow: scroll;
    background-color: hsl(29, 51%, 90%);
    padding: 1rem;
}

#card{
    font-size: 16px;
    box-sizing: border-box;
    /* overflow-y: auto; */
    width: 20rem;
    border-radius: 0.5rem;
    background-color: white ;
    /* background-color: yellow; */
    padding: 0.8rem;
}

#card img{
    width: 18rem;
    object-fit: cover;
}

#card h1{
    font-family: 'Young Serif', sans-serif;
    font-size: 0.8rem;
    text-align: left;
}

#card p{
    margin-top: 0.3rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.5rem;
    /* color: hsl(29, 51%, 40%); */
}

#prep h4{
    color: hsl(332, 51%, 32%);
}

#prep{
    background-color: hsl(29, 30%, 90%);
    padding: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.5rem;
    line-height: 20px;
    margin-left: 0.8rem;
    border-radius: 5px;
}

.ingredients{
    display: flex;
    font-family: 'Outfit', sans-serif;
    font-size: 0.5rem;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 0.1px solid gray;
    padding: 1rem;
    text-align: left;
    line-height: 1rem;

    /* line-height: 20px; */
}


.ingredients h4{
    font-size: 1rem;
    font-family: 'Young Serif', sans-serif;
    color: hsl(14, 45%, 36%);
}

.nutrition{
    display: flex;
    font-family: 'Outfit', sans-serif;
    font-size: 0.5rem;
    flex-direction: column;
    gap: 1rem;
    /* border-bottom: 0.1px solid black; */
    padding: 1rem;
    text-align: left;

    /* line-height: 20px; */
}

.nutrition h4{
    font-size: 1rem;
    font-family: 'Young Serif', sans-serif;
    color: hsl(14, 45%, 36%);
}

.nutrition-values{
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
   
}

.nutrition-values span{
     color: hsl(14, 45%, 36%);
    font-family: 'Outfit', sans-serif;
    font-size: 0.5rem;
    font-weight: 600;
}

.nutrition-item{
    display: flex;
    justify-content: space-between;
     border-bottom: 1px solid gray;
     padding-top: 0.2rem;
     padding-bottom: 0.6rem;
}

.nutrition-item-last{
    display: flex;
    justify-content: space-between;
     padding: 0.2rem 0;
}

@media screen and (max-width: 600px) {
    #card{
        width: 100%;
    }

    #card img{
        width: 100%;
    }

    .container{
        padding: 0rem;
    }

    #prep{
        margin-left: 0;
        width: 100%;
    }

    .ingredients, .nutrition{
        padding: 0.5rem;
    }
    
}