@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:ital,wght@0,100;0,300;0,400;0,500;0,700;0,800;0,900;1,100;1,300;1,400;1,500;1,700;1,800;1,900&display=swap');

* {
    font-family: 'Alegreya Sans', sans-serif; 
}

.page-title {
    margin-bottom: 50px;
    font-weight: 400;
}

.page-title > span {
    font-family: "Allison Script";
    font-size: 70px;
    margin-right: 1rem;
}

.section-divider {
    display: flex;
    align-items: center;
}

.section-title {
    font-size: 22px;
}

.divider {
    border-top: 2px solid #819BE9;
    width: 100%;
    margin-left: 1rem;
}

.shoppinglist-recipes {
    margin: 0 20px;
    margin-top: 10px;
    margin-bottom: 50px;

    @media screen and (max-width: 768px) {
        margin-left: 5px;
        margin-right: 5px;
    }
}

.shoppinglist-recipe {
    display: flex;
    margin: 10px 0;
}

.shoppinglist-recipe-img {
    width: 150px;
    height: auto;
    border-radius: 5px;
}

.shoppinglist-recipe-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 5px 20px;
}

.shoppinglist-recipe-title-link {
    text-decoration: none;
    color: #000;
}

.shoppinglist-recipe-title {
    font-size: 18px;
    font-weight: 300;
}

.shoppinglist-ingredients, .shoppinglist-ingredients-empty {
    margin: 0 20px;
    margin-top: 15px;
    margin-bottom: 30px;

    @media screen and (max-width: 768px) {
        margin-left: 5px;
        margin-right: 5px;
    }
}

.shoppinglist-ingredients {
    background-color: #eeeeff;
    border-radius: 20px;
    padding: 5px 20px;
}

.shoppinglist-ingredients-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.shoppinglist-ingredients-list-item {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.shoppinglist-ingredient-name {
    font-size: 16px;
    font-weight: 300;
    margin: 0;
    margin-left: 50px;

    @media screen and (max-width: 768px) {
        margin-left: 20px;
    }
}

.change-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 138px;
    height: 34px;
    border: 1px solid #A6A6A6;
    border-radius: 17px;
}

.change-quantity-btn {
    border: none;
    height: 38px;
    width: 38px;
    border-radius: 19px;
    background-color: transparent;
    font-size: 24px;
    font-weight: 300;
}

.no-edit > .change-quantity-btn{
    display: none;
}

.change-quantity.ingredients.no-edit {
    width: 80px;
    justify-content: center;
}

.change-quantity.ingredients {
    background-color: #fff;
}

#shoppinglist-reset-btn {
    border: none;
    background-color: #D9D7FF;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    margin-left: 20px;
    margin-bottom: 20px;

    &:hover {
        background-color: #819BE9;
        color: #fff;
    }

    @media screen and (max-width: 768px) {
        margin-left: 5px;
    }
}

@media screen and (max-width: 575px) {
    .change-quantity {
        width: 160px;
    }

    .change-quantity-btn {
        width: 34px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: black;
    }

    .shoppinglist-recipe-portion {
        display: block;
        width: 70px;
        text-align: center;
    }

    .recipe-card.portrait .change-quantity {
        width: 140px;
    }

    .recipe-card.portrait .shoppinglist-recipe-portion {
        font-size: 0.9rem;
        width: 60px;
    }
}