#sections > h1 {
    text-shadow: 1px 1px 14px black;
    font-size: 30px;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin-top: 50px;
}


#item_menu {
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

#item_menu > div {
    width: 100%;
    border-radius: 17px;
    background-color: white;
    overflow: hidden;

}

#item_menu > div:hover {
    animation: scale 500ms forwards;
    cursor: pointer;
}

#item_menu > div img {
    width: 100%;
    object-fit: contain;
}
#item_menu > div .title {
    margin: 10px 15px 10px 15px;
    
    font-size: 22px;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 400;
    
    display: flex;
    justify-content: space-between;

    border-bottom: 1px black solid;
    padding-bottom: 5px;
}

#item_menu > div .prix {
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

button{
    cursor: pointer;
}



#item_menu > div .discription {
    font-size: 15px;
    margin: 5px 20px 10px 15px;
}

.dash {

    width: 50px;
    height: 5px;
    border-radius: 50px;
    background-color: rgb(94, 87, 87);
    justify-self: center; 
    margin-top: 20px;
}

.extra {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.extra > div , .supplements {
    display: flex;
}

.extra > p {
    margin: 0px 0px 0px 35px;
    font-size: 20px;
    width: max-content;
    border-bottom: 1px black solid;
}

.extra > div  , .supplements {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-self: center;
    justify-content: center;
    text-align: center;
}

.extra > div > div > div , .supplements > div > div {
    height: 30vw;
    width: 40vw;
    border-radius: 15px;
    border: 1px black solid;
    display: flex;
    overflow: hidden;
}

.extra_sauce img {
    width: 100%;
    object-fit: contain;
}
.quantity-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    gap: 15px;
}
.quantity-selector > span {
    font-size: 20px;
}
.quantity-selector > button {
    border-radius: 50%;
    background-color: black;
    color: white;
    font-size: 20px;
    height: 25px;
    width: 25px;
    border: none;
    box-shadow: 0px 1px 8px rgba(255, 255, 255, 0.433);

}

.resume {
    width: 90%;
    height: auto;
    
    border-radius: 10px;
    justify-self: center;
    padding-left: 15px;
    padding-top: 15px;
    padding-bottom: 15px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.resume p {
    margin: 0%;
}
.resume .titre {
    justify-self: center;
}

.resume ul {
    margin: 0%;
    padding: 0%;
    list-style: none;
}

.confirmer_les_choix {
    display: flex;
    justify-self : center;
    align-items: center;
    justify-content: center;


    height: 50px;
    width: max-content;
    border-radius: 50px;
    border: none;

    font-size: 17px;
    font-family:'Times New Roman', Times, serif;

    margin-top: 22px;
    margin-bottom: 50px ;

    padding-left: 25px;
    padding-right: 25px;
}

.pop_up {
    width: 100%;
    height: 75%;
    border-radius: 50px 50px 0px 0px;
    background: linear-gradient( 135deg ,rgb(239, 99, 0) 30% , white) ;    
    box-shadow: -1px -1px 25px;
    position: fixed;
    top : 25.5%;
    margin: 0%;

    overflow: scroll;
    scrollbar-width: none;
    scroll-behavior: auto;
    scroll-snap-type: x mandatory;


    display: none;
    transform: translateY(100%);
    transition: transform 300ms ease-out; /* Add a smooth animation for opening/closing */

    z-index: 1;

}



    #containner_desserts #item_menu > div , #containner_boissons #item_menu > div {
        width: 240px;

    }

    #containner_desserts #item_menu > div img , #containner_boissons #item_menu > div img {
        width: 240px;
    }
    #containner_desserts #item_menu > div .title , #containner_boissons #item_menu > div .title{
        font-size: 15px;
    }

    #item_menu > div .discription {
        font-size: 13px;
    }




#containner_boissons .title {
    margin: 10px 15px 0px 15px;
}







@keyframes scroller {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 7));
    }
}










@-webkit-keyframes AnimationName {
    0%{background-position:24% 0%}
    50%{background-position:77% 100%}
    100%{background-position:24% 0%}
}
@-moz-keyframes AnimationName {
    0%{background-position:24% 0%}
    50%{background-position:77% 100%}
    100%{background-position:24% 0%}
}
@keyframes AnimationName {
    0%{background-position:24% 0%}
    50%{background-position:77% 100%}
    100%{background-position:24% 0%}
}

@keyframes scale {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}



/* --- Media Queries for Responsiveness --- */

@media (min-width: 650px) {
    #nav_barr  > div{
        height: 80px;
    }

    #item_menu {
        width: 80%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    /* #sections > div is not a direct child h1 is, changing selector */
    #sections > h1 {
        font-size: 40px; /* Fixed font size for desktop */
    }

    #item_menu > div {
        width: 45% ; /* Two items per row with some gap */
    }
    
    /* Pop-up adjustments for desktop */
    .meat_cook > div > div , .extra > div > div > div , .supplements > div > div {
        width: 24vw;
        height: 18vw;
    }



    #containner_desserts #item_menu > div , #containner_boissons #item_menu > div {
        width: 300px;

    }

    #containner_desserts #item_menu > div img , #containner_boissons #item_menu > div img {
        width: 300px;
    }


}

@media (min-width: 1024px) {
    #item_menu {
        width: 60%; /* Tighter menu for large screens */
    }
    #item_menu > div {
        width: 45%; 
    }



    .meat_cook > div > div , .extra > div > div > div , .supplements > div > div {
        width: 20vw;
        height: 15vw;
    }

    #containner_desserts #item_menu > div , #containner_boissons #item_menu > div {
        width: 300px;

    }

    #containner_desserts #item_menu > div img , #containner_boissons #item_menu > div img {
        width: 300px;
    }

}





.disabled-div {
    pointer-events: none;
    opacity: 0.8; /* Optional: gives a visual cue that it's disabled */
}

.disabled-div:hover {
    pointer-events: none;
    opacity: 0.8; /* Optional: gives a visual cue that it's disabled */
}