*{
    margin: 0%;
    padding: 0;
    box-sizing: border-box;
    
} 


.container{  
    min-height: 100vh;
    width: 100%; 
    background-image: url(./backimage.jpg);
    background-size: cover ;
    background-repeat: no-repeat;
    background-position: center;
    background-color: red;
    
}

header{
    height: 10%;
    width: 100%;
    display: flex;
    gap: 40%;
    background-color: black;
}

header img{
    height: 70px;
    width: 150px;
    margin-left: 40px; 
    background-color: aliceblue; 
}


nav ul{
    width: 400px;
    display: flex;
    justify-content: space-evenly;
    gap: 15%;
    /* background-color: brown; */
    margin-top: 20px;
}

nav a{
    text-decoration: none;
    color: white;
    font-weight: bolder;
}
nav li{
    list-style-type: none;
}

.menu{
    color: white;
    font-size: 250%;
    margin-top: 20px;
    text-align: center;
}

h2{
    color: white;
    font-size: 250%;
    margin-top: 8px;
    text-align: center;
}

.wholecards{
    height: 380px;
    width: 85%;
    margin: 10px auto;
    /* background-color: red; */
    display: flex;
    gap: 20px;
}

.cards1 img{
    height: 90px;
    width: 100px;
    padding: 5px;
}

.cards2 img{
    height: 90px;
    width: 100px;
    padding: 5px;
}

.card1, .card2, .card3, .card4{
    display: flex;
    align-items: flex-start;
    gap:15px;
}

.text{
    display: flex;
    flex-direction: column;
    margin-top: 18px;
    color: #e6e6e6;
}

.pizza{
    display: flex;
    justify-content: space-between;
    width: 450px;
    font-weight: bold;
}

.pi_content{
    margin-top: 10px;
    font-size: 14px;
    color: #bfbfbf;
    width: 80%;
}

.lasagna{
    display: flex;
    justify-content: space-between;
    width: 450px;
    font-weight: bold;
}

.la_content{
    margin-top: 10px;
    font-size: 14px;
    color: #bfbfbf;
    width: 80%;
}

.burger{
    display: flex;
    justify-content: space-between;
    width: 450px;
    font-weight: bold;
}

.bur_content{
    margin-top: 10px;
    font-size: 14px;
    color: #bfbfbf;
    width: 80%;
}

.pasta{
    display: flex;
    justify-content: space-between;
    width: 450px;
    font-weight: bold;

}

.pa_content{
    margin-top: 10px;
    font-size: 14px;
    color: #bfbfbf;
    width: 80%;
}
 
.price{
    margin-left: 200px ;
    color: #c9a227;
}

.card5, .card6, .card7, .card8{
    display: flex;
    align-items: flex-start;
    gap:15px;
}

.text1{
    display: flex;
    flex-direction: column;
    margin-top: 18px;
    /* color: blueviolet; */
}

.content2{
    display: flex;
    justify-content: space-between;
    width: 450px;
    font-weight: bold;
    color: #e6e6e6;
    /* width: 80%; */
}

.price1{
    margin-left: 150px ;
    color: #c9a227;
}

.p_content{
    margin-top: 10px;
    font-size: 14px;
    color: #bfbfbf;
    /* text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); */
    width: 80%;
}

/* .wholecards img {
    width: 100%;
    transition: transform 0.3s ease;
} */
/* 
.wholecards img:hover {
    transform: scale(1.1);
} */

.cards1 img,
.cards2 img {
    height: 90px;
    width: 100px;
    padding: 5px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.card1:hover img,
.card2:hover img,
.card3:hover img,
.card4:hover img,
.card5:hover img,
.card6:hover img,
.card7:hover img,
.card8:hover img {
    transform: scale(1.2);
}


.card1,
.card2,
.card3,
.card4,
.card5,
.card6,
.card7,
.card8 {
    overflow: hidden;
}

.button{
    display: flex;
    gap: 60px;
    text-align: center;
}
.menu1{
    /* display: flex; */
    background-color: orange;
    color: white;
    border-radius: 50px;
    margin-left: 490%;
    margin-bottom: 20px;
    padding: 12px 30px;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.menu2{
    /* display: flex; */
    /* background-color: orange; */
    /* color: rgba(255, 255, 255, 0.644); */
    border-radius: 50px;
    margin-left: 490%;
    margin-bottom: 20px;
    padding: 12px 30px;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 768px){

    /* HEADER FIX */
    header{
        flex-direction: column;
        align-items: center;
        gap: 10px;
        height: auto;
        padding: 10px 0;
    }

    header img{
        margin-left: 0;
    }

    nav ul{
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }

    /* TEXT FIX */
    .menu, h2{
        font-size: 26px;
        padding: 0 10px;
    }

    /* CARD LAYOUT CHANGE */
    .wholecards{
        flex-direction: column;
        height: auto;
        width: 95%;
    }

    /* EACH CARD STACK */
    .card1, .card2, .card3, .card4,
    .card5, .card6, .card7, .card8{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* IMAGE SIZE */
    .cards1 img,
    .cards2 img{
        width: 120px;
        height: 100px;
    }

    /* REMOVE FIXED WIDTH (VERY IMPORTANT) */
    .pizza, .lasagna, .burger, .pasta,
    .content2{
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    /* PRICE ALIGN */
    .price, .price1{
        margin-left: 0;
    }

    /* DESCRIPTION */
    .pi_content, .la_content, .bur_content,
    .pa_content, .p_content{
        width: 100%;
        font-size: 13px;
    }

    /* BUTTON FIX */
    .button{
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .menu1, .menu2{
        margin-left: 0;
        margin-bottom: 10px;
        padding: 10px 20px;
    }
}