*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    height: 100vh;
    width: 100vw;
     padding-top: 80px;
    /* background-image: url(menuBackground.png); */
    background-image:
linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
url(menuBackground.png);
    background-size: cover;
    color: white;
    background-attachment: fixed;
  
}
nav{
      position: fixed;
    top: 0;
    left: 0;
     
    /* width: 100%; */
    z-index: 1000;
    height: 13vh;
    width: 100vw;
    background-color:transparent;
         /* background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px); */
    border-bottom: 1px solid rgba(212,175,55,0.4);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}
h1{
    margin-left: 4vw;
    Color: #D4AF37; 
    font-family: 'Poppins', sans-serif;  
    font-size: 2.5rem;   
    
}
.nav-list{
    display: flex;
    gap: 55px;
    margin-right: 5vw;
   
}
a{
    color: white;
    text-decoration: none;
}
a:hover{
    color: #D4AF37;
}
input{
    padding: 8px;
    border-radius: 6px;
       margin-left: 30vw;
       margin-top: 2.5vh;
       width: 21vw;
       border: 1px solid rgba(212,175,55,0.4);
       background-color:rgba(20,20,20,0.85);
       color: #FFFFFF;
     
}
input::placeholder{
    color: #A0A0A0;
}
focus{
    outline: #D4AF37;
}
#search{
    padding: 8px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(212,175,55,0.4);
    width: 10vw;
    margin-left: 1vw;
     background-color: #1A1A1A;
    color:white;
}
#search:hover{
    background-color: #D4AF37;
    color: #111111;
    transform: translateY(-2px);
}
h2{
    margin-top: 2vh;
    margin-left: 3vw;
    font-size: 1.99rem;
    
}
.categories{
    
    display: flex;
    justify-content: center;
    height: 20vh;
    width: 90vw;
    gap: 40px;
    color: antiquewhite;
    margin-left: 5vw;
    margin-top: 3vh;
    text-align: center;
    border-bottom: 1px solid rgba(212,175,55,0.4);
}
.span{
    background-color: #1A1A1A;
    color: #FFFFFF;
    height: 13vh;
    width: 9vw;
    border-radius: 6px;
    border:1px solid black;
    margin-top: 2vh;
    font-size: 19px;
    font-weight: 900;
    margin: 9px;
    padding: 10px;
    cursor: pointer;
    border: 1px solid rgba(212,175,55,0.4);
}
.span:hover{
    background-color: #F4C542;
    color: black;
}
.menu-list{
    height: 110vh;
    width:99vw;
    display: flex;
    justify-content: center;
    gap: 27px;
  flex-wrap: wrap;
}
 .menu-card{
    height: 50vh;
    width: 22vw;
  border: 2px solid rgba(212,175,55,0.4);
    margin-top: 3vh;
    background-color:rgba(18,18,18,0.82);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    cursor: pointer;

}
.menu-card:hover{
    transform: scale(1.05);
    transition: 0.3s;
    background-color: #D4AF37;
    box-shadow: 0 12px 30px rgba(212,175,55,.22);
} 


img{
    height: 30vh;
    object-fit: cover;
   border-radius: 9px;
    width: 21vw;
    margin-left: 0.33vw;
    margin-top: 1vh;

}
#cart-btn{
    width: 6vw;
    padding: 6px;
    background-color: #D4AF37;
    color: #111111;
    margin-left: 11vw;
    border: 1px solid rgba(212,175,55,0.4);
    position: relative;
  top: 3vh;
  cursor: pointer;
  border-radius: 5px;
}
#cart-btn:hover{
    background-color: black;
    color:  #F4C542;
    transform: translateY(-2px);
}
#rating{
  position: relative;
  top: 3vh;
  left: 1vw;
  font-size: 1rem;
  color: white;
}
#name{
    position: relative;
    left: 1vw;
    font-size: 1.2rem;
    color: white;
}

#price{
    position: relative;
    font-size: 1rem;
    color: white; 
    margin-left: 17vw;
     bottom: 2vh;

}
p{
   position: relative;
    left: 1vw;
    color: white;
    font-size: 1rem;
    bottom: 1vh;
}
@media (max-width: 768px) {

    body {
        width: 100%;
        padding-top: 70px;
        background-attachment: scroll;
    }

    nav {
        height: 70px;
        width: 100%;
        padding: 0 15px;
    }

    h1 {
        margin-left: 0;
        font-size: 1.6rem;
    }

    .nav-list {
        gap: 15px;
        margin-right: 0;
    }

    input {
        margin-left: 0;
        margin-top: 15px;
        width: 45vw;
    }

    #search {
        width: auto;
        margin-left: 5px;
    }

    h2 {
        margin-left: 15px;
        font-size: 1.5rem;
    }

    .categories {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
        height: auto;
        gap: 10px;
        flex-wrap: wrap;
        padding-bottom: 15px;
    }

    .span {
        width: 25vw;
        height: auto;
        min-height: 55px;
        font-size: 14px;
        margin: 5px;
        padding: 8px;
    }

    .menu-list {
        width: 100%;
        height: auto;
        gap: 15px;
        padding: 10px;
    }

    .menu-card {
        width: 43vw;
        height: auto;
        min-height: 300px;
        margin-top: 10px;
    }

    img {
        width: calc(100% - 10px);
        height: 170px;
        margin: 5px;
    }

    #cart-btn {
        width: 25vw;
        margin-left: 15vw;
        top: 10px;
    }

    #rating {
        top: 10px;
        left: 10px;
    }

    #name {
        left: 10px;
        font-size: 1rem;
    }

    #price {
        margin-left: 65%;
        bottom: 5px;
    }

    p {
        left: 10px;
        bottom: 5px;
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {

    body {
        width: 100%;
        padding-top: 60px;
    }

    nav {
        height: 60px;
        padding: 0 8px;
    }

    h1 {
        font-size: 1.5rem;
        margin-left: 0;
    }

    .nav-list {
        gap: 8px;
        margin-right: 0;
        font-size: 16px;
    }

    input {
        width: 40vw;
        margin-left: 0;
        margin-top: 10px;
        padding: 5px;
    }

    #search {
        padding: 5px;
        font-size: 12px;
        width: auto;
        margin-left: 3px;
    }

    h2 {
        margin-left: 10px;
        font-size: 1.2rem;
    }

    .categories {
        width: 95%;
        height: auto;
        gap: 5px;
        margin: 10px auto;
        padding-bottom: 10px;
    }

    .span {
        width: 22vw;
        min-height: 45px;
        font-size: 11px;
        margin: 3px;
        padding: 5px;
    }

    .menu-list {
        width: 100%;
        height: auto;
        gap: 10px;
        padding: 5px;
    }

    .menu-card {
        width: 44vw;
        min-height: 260px;
        height: auto;
        margin-top: 5px;
        border-radius: 12px;
    }

    img {
        width: calc(100% - 8px);
        height: 130px;
        margin: 4px;
    }

    #name {
        left: 6px;
        font-size: 0.85rem;
    }

    #rating {
        left: 6px;
        top: 5px;
        font-size: 0.75rem;
    }

    #price {
        margin-left: 60%;
        font-size: 0.8rem;
        bottom: 0;
    }

    p {
        left: 6px;
        font-size: 0.75rem;
        bottom: 0;
    }

    #cart-btn {
        width: 25vw;
        margin-left: 12vw;
        top: 5px;
        padding: 4px;
        font-size: 11px;
    }
}