/* hero section css **************************************************************************/

#hero-section .wrraper{
    display: flex;
    margin-top: 80px;
    align-items: center;
    border-bottom: 1px solid var(--warm_light_gray);
    padding-bottom: 50px;
}

#hero-section .wrraper > div:first-child{
    flex: 2;
    margin-right: 50px;
}

#hero-section .wrraper > div:last-child{
    flex: 1;
}

#hero-section .wrraper > div:last-child img{
    width: 100%
}

#hero-section h1{
    font-size: 2.75em;
    margin-top: 0px;
}


@media only screen and (max-width: 1150px) {
    #hero-section h1{
        font-size: 2em;
    } 
}

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

    #hero-section h1{
        text-align: center;
        margin-top: 10px;
        margin-bottom: 45px;
    }

    #hero-section .wrraper{
        width: 100%;
        padding-bottom: 20px;
        flex-direction: column-reverse;
    }

    #hero-section .wrraper > div:first-child{
        flex: 1;
        margin-right: 0px;
    }
 
} 



/* cuisine section css ********************************************************************/

#cuisines .wrraper{
    width: 1200px;
    margin-top: 50px;
}

#cuisines .wrraper div{
    display: flex;
}

#cuisines .wrraper > div{
    display: grid;
    grid-gap: 30px;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
}

#cuisines .cuisine-type{
    background-color: var(--Light_beige);
    border-radius: 5px;
    align-items: center;
    box-shadow: 2px 2px 6px 1px #00000029;
}

#cuisines .image-icon-container{
    margin: 9px;
}

#cuisines h1{
    font-size: 1.8em;
}

#cuisines h2{
    font-size: 1.1em;
    margin: 15px;
}


@media only screen and (max-width: 1000px) {
    #cuisines .wrraper{
        margin-top: 40px;
    }
}



/* restaurant liste section css * **************************************************************/

.restaurant-list .wrraper{
    width: 1200px;
    overflow: hidden;
    padding: 0.7%;
    margin: 10px 4% 0px 4%;
}

.restaurant-list:nth-child(4) .wrraper{
    margin-top: 80px;
}

.restaurant-list:nth-child(6) .wrraper{
    margin-top: 80px;
}

.restaurant-list .wrraper > div:first-child{
    display: flex;
    justify-content: space-between;
}

.restaurant-list .wrraper > div:first-child h1{
    font-size: 1.7em;
}

.swiper-buttons{
    display: flex;
    align-items: center;
}

.swiper-buttons span{
    padding: 10px 8px;
    font-size: 1.5em;
    color: gray;
}

.swiper-buttons div{
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background-color: var(--lighter_warm_gray);
}

.swiper-buttons div:hover{
    background-color: var(--warm_light_gray);
}

.swiper-container{
    display: flex;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.restaurant-card{
    width: 250px;
    height: 97%;
    border-radius: 5px;
    padding: 5px;
    margin-right: 45px;
}

.restaurant-card:hover{
    box-shadow: 0px 2px 7px 4px rgba(0, 0, 0, 0.10);
}

.restaurant-card-image-container{
    width: 250px;
    height: 160px;
    border-radius: 5px 5px 0px 0px;
    overflow: hidden;
}

.restaurant-card-image-container img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.restaurant-card-info-container{
    display: flex;
    justify-content: space-between;
}

.restaurant-card-info-container  h1{
    font-size: 1.2em;
    margin: 12px 0px;
}

.restaurant-card-info-container .infos {
    overflow: hidden;
}

.restaurant-card-info-container .infos p{
    margin: 5px 0px;
    font-size: 0.95em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


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

    .restaurant-list:nth-child(6) .wrraper {
        margin-top: 50px;
    }

}



/* promo section  css ****************************************************************************/

#promo-section .wrraper{
    margin-top: 100px;
    display: flex;
    justify-content:space-between;
}

#promo-section .wrraper > div{
    box-sizing: border-box;
    width: 48%;
    border-radius: 5px;
    padding: 30px;
}

#promo-section .wrraper> div:first-child{
    background-color: var(--red);
}

#promo-section .wrraper > div:last-child{
    background-color: var(--orange);
}

#promo-section div p{
    margin-top: 0px;
    color: white;
    font-size: 2em;
}

#promo-section .call-to-action{
    float: right;
}

#promo-section .call-to-action a{
    padding:10px;
    border-radius:5px;
    background-color:white;
    display: inline-block;
}

#promo-section .call-to-action a:hover{
    background-color: var(--Light_beige);
}

#promo-section .wrraper > div:first-child a{
    color: var(--red);
}

#promo-section .wrraper > div:last-child a{
    color: var(--orange);
}


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

    #promo-section .wrraper{
        flex-wrap: wrap;
        margin-top: 50px;
    }
    
    #promo-section .wrraper > div{
        width: 100%;
        margin:20px 0px;
    }

    #promo-section div p{
        font-size: 1.7em;
    }

}



/* info box section  css *****************************************************************************/

#info-box-section .wrraper{
    margin-top: 120px;
    display: flex;
    justify-content: space-between;
}

#info-box-section .info-box{
    box-sizing: border;
    width: 20%;
}

.info-box .icon img{
    width: 70px;
}

.info-box h1{
    font-size: 1.2em;
}

.info-box p{
    font-size: 1em;
}


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

    #info-box-section .wrraper{
        flex-wrap: wrap;
        justify-content: center;
        text-align:center;
        margin-top: 80px;
    }
    
    #info-box-section .info-box{
        width: 100%;
        margin:20px 0px;
    }

}



/* restaurant-registration section  css ***************************************************************/

#restaurant-registration-section .wrraper{
    margin-top: 120px;
    display: flex;
    border-top: 1px solid var(--warm_light_gray);
}

#restaurant-registration-section .wrraper > div{
    width: 50%;
    box-sizing: border-box;
}

#restaurant-registration-section .wrraper > div img{
    width: 100%;
}

#restaurant-registration-section .wrraper > div:last-child{
    padding: 30px;
}

#restaurant-registration-section .wrraper > div:last-child h1{
    font-size: 2em;
    margin-top: 0px;
}

#restaurant-registration-section .wrraper > div:last-child p{
    font-size: 1.4em;
    margin: 50px 0px;
}

#register-restaurant-button a{
    padding:10px;
    border-radius:5px;
    border: 2px solid var(--orange);
    color: var(--orange);
    font-weight: bold;
}

#register-restaurant-button a:hover{
    border: 2px solid var(--orange);
    background-color: var(--orange);
    color: white;
}


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

    #restaurant-registration-section .wrraper{
        flex-wrap: wrap;
        border-top: none;
        border-left: 1px solid var(--warm_light_gray);
    }
    
    #restaurant-registration-section .wrraper > div{
        width: 100%;
    }

}

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

    #restaurant-registration-section .wrraper > div:last-child{
        padding: 20px;
    } 

    #restaurant-registration-section .wrraper > div:last-child h1{
        font-size: 1.6em;
    }
    
    #restaurant-registration-section .wrraper > div:last-child p{
        font-size: 1.3em;
        margin-top: 30px;
        margin-bottom: 50px;
    }

}