#landing{
    background-color: var(--primary-beige);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding-bottom: 8rem;
    padding-top: 4rem;
    box-shadow: 0px 12px 16px rgba(0,0,0,0.1);
}

#landing{
   display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#landing > span{
    width: 55%;
    background-color: var(--primary-beige);
    padding-left: 1%;
    padding-right: 1%;
    font-weight: 400;
    font-size: 4.2rem;
    text-align: center;
    align-items: center;
}

#landing > img{
    width: 80%;
    height: 40rem;
    object-fit: cover;
    object-position: center;
    border-radius: 2rem;
}

#landing > p{
    width: 70%;
    text-align: center;
    font-size: 2rem;
    font-weight: 400;
}

/* Discover section */

#discover{
    background-color: var(--primary-white);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3rem;
    margin-top: 6rem;
}

#discover > img{
    position: absolute;
}

#discover > img#apple-tree{
    right: 0;
    margin-top: 10%;
}

#discover > img#food-plate{
    left: 0;
    margin-top: 1700px;
}

#discover #heading{
    font-size: 4rem;
    font-weight: 500;
    margin-bottom: 10%;
}

#discover > #products{
    width: 100%;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-evenly
}

#discover > #mobile-products{
    display: none;
}

#discover > #products .card{
    height: 50rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

#discover > #products .card:nth-child(2){
    justify-content: flex-end;
}
#discover > #products .card:nth-child(3){
    justify-content: flex-start;
}

#discover > #products .card #wheat-products-card{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 10%;
    border-radius: 1rem;
    font-size: 1.15rem;
    font-weight: 400;
    background-color: #fff2df;
    height: 45%;
    justify-content: flex-end;
    align-items: center;
}

#discover > #products .card #wheat-products-card #header{
    font-size: 2rem;
    font-weight: 500;
}

#discover > #products .card #wheat-products-card #link{
    margin-top: 1rem;
    font-weight: 500;
}

#discover > #products .card .food-img{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    transition: all 0.3s ease-in;
}

#discover > #products .card .food-img#wheat > img{
    margin-bottom: 14rem;
    margin-right: 2rem;
}

#discover > #products .card .food-img#fruit > img{
    margin-bottom: 5rem;
}

#discover > #products .card .food-img#meat > img{
    margin-bottom: 5rem;
    margin-left: 2rem;
}

#discover > #products .card .food-img#egg > img{
    margin-bottom: 5.5rem;
}

#discover > #products .card .food-img .bgdiv{
    border-radius: 50%;
    width: 420px;
    height: 420px;
}

#discover > #products .card .food-img .bgdiv#wheat{
    background-color: #fff2df;
}
#discover > #products .card .food-img .bgdiv#fruits{
    background-color: #ffe4cc;
}

#discover > #products .card .food-img .bgdiv#meats{
    background-color: #FFE7E7;
}

#discover > #products .card .food-img .bgdiv#eggs{
    background-color: #FFF4CC;
}

#discover > #products .card .food-img > img{
    transition: all 0.3s ease-in;
    position: absolute;
    z-index: 1;
}

#discover > #products .card .food-img > span#header{
    margin-top: 2.5rem;
    font-size: 3rem;
    font-weight: 500;
}

#discover > #products .card .food-img > span#link{
    text-decoration: underline;
}

#discover #brands{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: linear-gradient(var(--primary-white) 50%, var(--primary-beige) 50%);
    padding-bottom: 10rem;
}

#discover #brands #header{
    font-size: 3.5rem;
}

#discover #brands #text{
    font-size: 1.5rem;
}

#discover #brands #cards{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 85%;
    margin-top: 3%;
}

#discover #brands #cards .card#fakiha{
    background-image: url('../assets/fakha.jpg');
}

#discover #brands #cards .card#red-diamond{
    background-image: url('../assets/red_diamond.jpg');
}

#discover #brands #cards .card{
    display: flex;
    flex-direction: column;
    width: 42%;
    height: 42rem;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 2rem;
}

#discover #brands #cards .card .overlay{
    width: 95%;
    height: 100%;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: linear-gradient(rgba(0,0,0,0) 1%, rgba(0,0,0,0.5) 90%);
    background-color: rgba(0,0,0,0.5);
    padding: 2.5%;
    transition: 0.3s all ease-in;
}

#discover #brands #cards .card .overlay:hover{
    background-color: rgba(0,0,0,0.15);
}

#discover #brands #cards .card .overlay > img{
    width: 50%;
    margin-bottom: 15%;
    transition: 0.3s all ease-in;
}

#discover #brands #cards .card .overlay:hover > img{
    margin-bottom: 2%;
    width: 40%;
}

#discover #brands #cards .card .overlay .hover-comp{
    opacity: 0;
    transition: 0.3s all ease-in;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

#discover #brands #cards .card .overlay:hover .hover-comp{
    opacity: 1;
}

@media only screen and (max-width: 900px) {
    *{
        font-size: 0.9rem;
    }

    #landing{
        padding-bottom: 4rem;
    }
    
    #landing > span{
        width: 90%;
        background-color: var(--primary-beige);
        font-weight: 500;
        font-size: 2rem;
    }
    
    #landing > img{
        width: 90%;
        height: 20rem;
    }
    
    #landing > p{
        width: 90%;
        font-size: 1.25rem;
    }
    
    /* Discover section */
    
    #discover{
        background-color: var(--primary-white);
        width: 100%;
        justify-content: center;
        gap: 3rem;
    }
    
    #discover > img{
        position: absolute;
    }
    
    #discover > img#apple-tree{
        display: none;
    }
    
    #discover > img#food-plate{
        display: none;
        left: 0;
        margin-top: -900px;
        width: 5rem;
    }
    
    #discover #heading{
        width: 90%;
        text-align: center;
        font-size: 2.5rem;
        font-weight: 500;
        margin-bottom: 10%;
    }
    
    #discover > #products{
        display: none;
    }

    #discover > #mobile-products{
        width: 100%;
        display: flex;
    }

    /* Carousel */

    .scroll{
        width: 100%;
        display: inline-flex;
        margin-top: 0;
        margin-bottom: 0;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .scroll #etb-cardrow{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 98%;
        gap: 0.5rem;
    }

    .scroll #etb-cardrow .scroller{
        display: flex;
        flex-direction: row;
        margin-bottom: 2rem;
        gap: 2rem;
        align-self: center;
        width: 95%;
        white-space: nowrap;
        overflow-y: hidden;
        overflow-x: scroll;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .scroll #etb-cardrow .scroller::-webkit-scrollbar{
        display: none;
    }

    /* Style of arrows */
    .scroll #etb-cardrow .arrow {
        z-index: 2;
        color: white; 
        font-size: 13px;
        transform: translate(0%, -50%); 
        padding-left: 8px;
        padding-right: 8px;
        padding-top: 4px;
        padding-bottom: 4px;
        background-color: rgba(0,0,0,0.5); 
        transition: background-color 0.3s ease; 
    }

    .scroll #etb-cardrow .arrow:hover {
        cursor: pointer;
        background-color: rgba(0,0,0,0.3); 
    }

    .scroll #etb-cardrow #next {
        border-radius: 0.5rem;
    }

    .scroll #etb-cardrow #previous {
        border-radius: 0.5rem;
    }

    #discover > #mobile-products .card{
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 10%;
        border-radius: 1rem;
        font-size: 0.5rem;
        font-weight: 400;
        height: 25rem;
        width: 13.5rem;
        justify-content: flex-end;
        align-items: center;
    }

    #discover > #mobile-products .card#wheat{
        background-color: #fff2df;
    }

    #discover > #mobile-products .card#fruit{
        background-color: #ffe4cc;
    }

    #discover > #mobile-products .card#meat{
        background-color: #FFE7E7;
    }
    
    #discover > #mobile-products .card#egg{
        background-color: #FFF4CC;
    }

    #discover > #mobile-products .card .food-img{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    #discover > #mobile-products .card .food-img *{
        font-size: 0.75rem;
    }
    
    #discover > #mobile-products .card .food-img > img{
        width: 16rem;
    }

    #discover > #mobile-products .card .food-img > span#header{
        margin-top: 2.5rem;
        font-size: 1.5rem;
        font-weight: 500;
    }

    #discover > #mobile-products .card .food-img > span#link{
        font-size: 0.85rem;
        font-weight: 500;
        text-decoration: underline;
    }
/* ----------------------------------- */
    #discover #brands #text{
        width: 90%;
        margin-top: 1rem;
    }
    
    #discover #brands #header{
        font-size: 2.25rem;
        text-align: center;
        width: 90%;
    }
    
    #discover #brands #text{
        font-size: 1rem;
    }
    
    #discover #brands #cards{
        flex-direction: column;
        justify-content: center;
        width: 90%;
        margin-top: 2rem;
        gap: 1rem;
    }
    
    #discover #brands #cards .card{
        width: 100%;
        height: 30rem;
        border-radius: 1rem;
    }

    #discover #brands #cards .card .overlay{
        border-radius: 1rem;
    }
    
    #discover #brands #cards .card .overlay:hover > img{
        margin-bottom: 5%;
    }
}