header {
    background-color: black;
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-left: 25px;
    padding-right: 25px;
    box-shadow: 2px 2px 5px rgb(255, 254, 254);
}

a {
    color: white;
    font-size: 24px;
}

header img {
    height: 80px;
}

header a:hover{
    color: orange;
    text-decoration: underline;
    cursor: pointer;
}

main{
    display: flex;
    position: relative;
}

#content{
    flex-grow: 1;
    width: calc(100% - 300px);
}

footer {
    background-color: rgb(47, 46, 46);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    color: white;
}

footer a:hover{
    text-decoration: underline;
    color: orange;
    cursor: pointer;
}



#background-head {
    background-image: url(./img/meat-6222139_1280.jpg);
    height: 1000px;
    background-position: bottom;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.menu {
    margin-top: -60px;
    height: 250px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.785);
}

.menu span{
    color: rgb(228, 164, 27);
}



#background-head img {
    height: 250px;
    border-radius: 100px;
    z-index: 1;
    padding-left: 40px;
}


.menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.food-classes a {
    color: black;
    font-weight: bold;
    padding: 50px;
}

#products h2 {
    padding: 20px;
}

.product-card, .product-card-pizza, .product-card-dessert {
    display: flex;
    justify-content: space-between;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.21);
    margin: 20px;
}

.img-category{
    height: 200px;
    width: 90%;
    object-fit: cover;
    object-position: top;
    margin-left: 5%;
    border-radius: 50px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.566);
}

.product-info{
    width: 100%;
}

#cart{
    background-color: rgb(128, 123, 123);
    box-shadow: 2px 2px 6px black;
    width: 300px;
    max-width: 300px;
   flex-grow: 1;
   transition: all 0.60s;
}

#cart-content{
    position: sticky;
    top: 12px;
    background-color: white;
    border: 1px solid black;
    border-radius: 8px;
    min-height: 70vh;
    margin: 12px;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

#order-endprice{
    display: flex;
    justify-content: space-around;
    padding-bottom: 20px;
}

/* Scrollbar track */
#order::-webkit-scrollbar {
    width: 5px;
}

/* Scrollbar color */
#order::-webkit-scrollbar-thumb {
    background-color:  #777676d4; /* Color of the scroll thumb */
    border-radius: 20px; /* Rounded edges for the thumb */
}

/* Scrollbar track color */
#order::-webkit-scrollbar-track {
    background-color: #e2aa7300;
    border-radius: 10px;
}

/* Hover effect on scrollbar thumb */
#order::-webkit-scrollbar-thumb:hover {
    background-color: #cf933fa9; 
    cursor: grab;
}
#order::-webkit-scrollbar-thumb:active{
    background-color: #cf933fa9;
    cursor: grabbing;
}

#cart-content h2{
    padding-top: 24px;
    text-align: center;
}

#cart-content h3{
    padding-top: 20px;
}

hr{
    height: 1px;
    width: 80%;
    margin-left: 10%;
    margin-top: 24px;
    margin-bottom: 24px;
}

.order{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 5px;
    padding-bottom: 20px;
}

#order{
    padding-bottom: 20px;
    max-height: 50vh;
    overflow-y: scroll;
}

.total-price, .order-amount{
    border: 1px solid black;
    border-radius: 5px;
    height: 30px;
    width: 65px;
    text-align: center;
    padding-top: 4px;
    background-color: #fffbf4;
}

#button{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

button{
    background-color: orange;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 12px;
    border-radius: 50px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.499);
}

button:hover{
    transform: scale(1.1);
    cursor: pointer;
}

.cart-buttons{
    border: 1px solid orange;
    width: 30px;
    border-radius: 50%;
    background-color: lightgrey;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.641));
    transition: all 60ms;
}

.cart-buttons img{
    transform: scale(0.6);
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.641));
}

.cart-buttons:hover{
    transform: scale(1.05);
    cursor: pointer;
    transition: all 60ms;
    background-color: rgb(185, 182, 182);
}

.order-buttons{
    border: 2px solid orange;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 35px;
    background-color: lightgray;
    filter: drop-shadow(1px 1px 1px black);
    margin-top: 35px;
}

.order-buttons img{
    height: 40px;
    filter: drop-shadow(1px 1px 1px black);
}

.order-buttons:hover{
    transform: scale(1.1);
    cursor: pointer;
    background-color: rgb(186, 186, 186);
    filter: drop-shadow(1px 1px 1px black);
    transition: all 75ms;
}

.no-items{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.no-items{
    color: #acbee5;
}

.food-classes{
    display: flex;
    align-items: center;
    gap: 20px;
}

.food-classes a:hover{
text-decoration: underline;
color: orange;
}

.navbar{
    margin: 10px;
}

h4{
    color: rgb(101, 101, 101);
}

#order-overlay{
    position: fixed;
    top: 0;
    z-index: 20;
    width: 100%;
    height: 120vh;
    background-color: rgba(0, 0, 0, 0.456);
    display: flex;
    justify-content: center;
    align-items: center;
}

#overlay-container{
    background-color: white;
    height: 400px;
    width: 80%;
    margin-bottom: 15%;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

#overlay-container h3{
    width: 60%;
    text-align: center;
}

#overlay-container h4{
    width: 60%;
    text-align: center;
}

.d_none{
    visibility: hidden;
}

@media (max-width: 1000px) {
    .menu{
        height: 350px;
    }

    .menu h2{
        text-align: center;
        font-size: 20px;
        width: 300px;
        padding-top: 20px
    }
    .food-classes{
        flex-direction: column;
    }

    .navbar {
        height: 20px;
    }

    .food-classes a{
        font-size: 18px;
    }  
}

@media (max-width: 800px) {
    .order-buttons{
        height: 50px;
        width: 50px;
    }

    .order-buttons img{
        height: 40px;
    }
}

@media (max-width: 768px){
    .main{
        transform:translateX(100%);
        transition: all 10ms;
        margin-left: 0px;
    }

    .toggle{
        transform:translateX(150%);
        transition: all 10ms;
    }
    
    .main-overflow{
        overflow-x: hidden;
    }

    #cart{
        position: absolute;
        height: 100vh;
        top: 0px;
        right: 0px;
        z-index: 10;
        border-radius: 20px;
    }

    #cart-content{
        height: 97.5%;
        border-radius: 20px;
        margin: 5px;
    }

    #background-head img{
        height: 200px;
    }

    footer a{
        font-size: 18px;
    }
    .clicked{
        text-decoration: underline;
        color: orange;
    }
}

@media (max-width: 500px){
    .product-card{
        margin: 10px;
        padding: 15px;
    }

    .product-card-pizza{
        margin: 10px;
        padding: 15px;
    }

    .product-card-dessert{
        margin: 10px;
        padding: 15px;
    }

    .order-buttons{
        height: 40px;
        width: 40px;
    }

    .order-buttons img{
        height: 30px;
    }
    h3{
        font-size: 16px;
    }

    p{
        font-size: 14px;
    }

    h4{
        font-size: 14px;
    }

    .product-info{
        width: 200px;
    }

    header img{
        height: 50px;
    }

    header a {
        font-size: 20px;
    }
    footer a{
        font-size: 14px;
    }
    main {overflow: hidden;}
}

@media (max-width: 380px){
    header{
    padding-left: 10px;
    padding-right: 10px; 
    }
}