/* BODY */
body {
    margin: 0;
    width: 100%;
}

/* HEADER */

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 100px;
}

.header img {
    height: 93px;
    margin: 40px 0 20px 0;
}

.search_section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.search_bar {
    width: 100%;
    background: #E7E7E7;
    border: none;
    border-radius: 5px 0 0 5px;
    padding: 25px;
    font-size: 18px;
}

.search_section i {
    border-radius: 0 5px 5px 0;
    background: #E7E7E7;
    padding: 26.5px;
    font-size: 18px;
}


/* TAGS */

.tag_section {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 20px 100px 0 100px;
    gap: 20px;
}

.tag {
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: white;
    width: auto;
    height: 37px;
    border-radius: 5px;
    font-family: Lato;
    font-size: 14px;
    font-weight: 700;
    gap: 7px;
    padding: 0 10px;
}

.tag p {
    width: 100%;
}

/* FILTERS */

.filter_section {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 20px 100px;
    font-size: 18px;
    gap: 20px;
    z-index: 1;
}

.container button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: none;
    border-radius: 5px;
    color: white;
    font-family: 'Lato';
}

.container input {
    border: none;
    background-color: transparent;
    color: white;
    font-size: 18px;
    font-family: 'Lato';
    width: 30em;
    height: 50px;
}

.container_display_none button{
    display: none;
    /* position: absolute;
    width: 60%; */
}

button h2 {
    font-size: 18px;
}

.ingredients {
    background-color: #3282F7;
}

.appliances {
    background-color: #68D9A4;
}

.ustensils {
    background-color: #ED6454;
}

.button{
    width: 170px;
}

.input-btn {
    width: 100%;
}

.input-btn,
.ingredients_list,
.appliances_list,
.ustensils_list {
    display: flex;
    flex-direction: column;
}

.align-inside-btn input::placeholder {
    color: white;
    opacity: 0.7;
}

.ingredients_list,
.appliances_list,
.ustensils_list {
    width: 667px;
}

.align-inside-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.input-btn,
.ingredients_list,
.appliances_list,
.ustensils_list {
    display: none;
}

.align-ingredients-list,
.align-appliances-list,
.align-ustensils-list {
    text-align: start;
    column-count: 3;
    gap: 7em;
    width: 100%;
}

.element-in-list {
    display: block;
}

/* RECIPE CARDS */

.card_section {
    display: flex;
    justify-content: center;
    width: -webkit-fill-available;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0 100px;
    gap: 50px;
    position: absolute;
    top: 390px;
}

.search-null {
    justify-content: center;
    font-family: 'Lato';
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.recipe_card {
    width: 30%;
    height: 360px;
    background: #E7E7E7;
    border-radius: 5px;
}

.recipe_card img {
    width: 100%;
    height: 178px;
    border-radius: 5px 5px 0px 0px;
}

.recipe_card h2 {
    font-weight: 400;
}

.recipe_card h3 {
    font-weight: 700;
}

.recipe_card h2,
.recipe_card h3,
.recipe_card li {
    font-family:  'Lato';
}

.card_content {
    display: flex;
    justify-content: space-between;
    margin: 0 20px;
    font-size: 11px;
}

.card_header {
    align-items: center;
    font-size: 13px;
    gap: 1em;
}

.card_header div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.card_main {
    gap: 2em;
    padding-bottom: 2em;
}
.card_main div {
    width: 50%;
    display: flex;
    gap: 0.5em;
    justify-content: flex-start;
}

ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

li {
    width: fit-content;
}

.bold {
    font-weight: bold;
}

.card_main p{
    width: 50%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.card_main p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    font-family:  'Roboto';
}

.card_main div p {
    width: 100%;
}

/* MEDIA QUERIES */

@media screen and (max-width: 430px){

    .input-btn {
        width: 75%;
    }
    
    .header,
    .card_section {
        padding: 0 20px;    
        top: 470px;
    }

    .search_bar{
        height: 4em;
    }

    .search_section i {
        padding: 31px;
    }
    
    .ingredients_list,
    .appliances_list,
    .ustensils_list {
        width: 400px;
    }

    .align-ingredients-list,
    .align-appliances-list,
    .align-ustensils-list {
        column-count: 2;
    }

    .card_section {
        flex-direction: column;
        align-items: center;
    }

    .recipe_card {
        width: 100%;
        height: auto;
    }

    .recipe_card img {
        height: 200px;
    }

    .card_content,
    .input-btn {
        font-size: 18px;
    }

    .search_bar,
    .container input,
    .card_header,
    i,
    button h2 {
        font-size: 20px;
    }
}

@media screen and (max-width: 1023px) and (min-width: 430px){
    .header,
    .card_section {
        padding: 0 50px;    
    }
    
    .ingredients_list,
    .appliances_list,
    .ustensils_list {
        width: 550px;
    }

    .card_section {
        flex-direction: column;
        align-items: center;
    }

    .recipe_card {
        width: 100%;
        height: auto;
    }

    .recipe_card img {
        height: 150px;
    }
}

@media screen and (max-width: 1149px) and (min-width: 1023px){
    .card_section {
        gap: 28px;
    }

    .recipe_card {
        width: 31%;
        height: 400px !important;
    }

    .card_main {
        padding-bottom: 1em;
    }

    .card_content {
        font-size: 10px;
    }

    .card_header {
        font-size: 12px;
    }
}

@media screen and (max-width: 1423px) and (min-width: 1023px){
    .card_section {
        gap: 28px;
    }

    .recipe_card {
        width: 31%;
        height: 374px;
    }

    .card_main {
        padding-bottom: 1em;
    }

    .card_content {
        font-size: 10px;
    }

    .card_header {
        font-size: 12px;
    }
}

@media screen and (max-height: 430px) and (orientation: landscape){
    .search_bar,
    .container input,
    .card_header,
    i,
    button h2 {
        font-size: 20px;
    }

    .search_bar {
        height: 4em;
    }

    .search_section i {
        padding: 31px;
    }

    .button {
        width: 230px;
        height: 90px;
    }

    .input-btn {
        width: 100%;
    }

    .card_content,
    .input-btn {
        font-size: 18px;
    }

    .card_main p {
        -webkit-line-clamp: 6;
    }

    .card_section {
        flex-direction: row;
    }

    .recipe_card {
        width: 48%;
    }
}
