@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700;800;900&family=Kaushan+Script&family=Montserrat:wght@200;300;400;500;600;700;800;900&display=swap');

:root{
    --Inter: 'Inter', sans-serif;
    --Kaushan: 'Kaushan Script', cursive;
    --Mont: 'Montserrat', sans-serif;
}

.logo {
    text-align: center;
    font-size: 4em;
    font-weight: bold;
    text-transform: capitalize;
    letter-spacing: 3px;
    color: white;
    font-family: Georgia, 'Times New Roman', Times, serif;
  }

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

header {
    display: flex;
    justify-content: center;
    margin: 2%;
  }


  .carta {
    margin: 5% 10%;
  }

  
  .navbar a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 8px 10px;
    text-decoration: none;
    margin: 0 1%;
  }

  .navbar a:hover{
    background-color: white;
    color: #000000;
    border-radius: 30px;
  }

  .navbar .icon {
    display: none;
  }
  
  /* Use flexbox to center the navbar links */
  .navbar {
    display: flex;
    justify-content: center;
  }


.menu{
    margin: 2rem 0;
}

img{
    width: 100%;
    display: block;
}

.menu-head{
    text-align: center;
    color: #fffafa;
}

.menu-head h2{
    font-family: var(--Kaushan);
    font-size: 2.6rem;
}

.menu-head p{
    font-weight: 300;
    padding: 1.8rem 0;
}

.menu-btns{
    padding: 0.6rem 0;
    display: flex;
    justify-content: center;
    color: #fffafa;
}

.menu-btn{
    font-family: var(--Inter);
    text-transform: uppercase;
    font-size: 1.1rem;
    font-weight: 600;
    background: none;
    border: none;
    color: #ffffff;
    display: block;
    margin: 0 1rem;
    cursor: pointer;
    outline: 0;
    transition: opacity 0.4s ease-out;
}
.menu-btn::after{
    content: "";
    display: block;
    height: 2px;
    margin-left: auto;
    margin-right: auto;
    background: #fffffe;
    margin-top: 0.5rem;
    width: 0;
    transition: width 0.4s ease-out;
}
.menu-btn:hover::after{
    width: 100%;
}
.menu-btn:hover{
    opacity: 0.8;
}
.active-btn{
    color: #77fa73;
}
.food-items{
    margin: 2rem 0;
}
.food-item{
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    color: #000;
    margin: 0.6rem 0;
    box-shadow: 0 0 16px -4px rgba(0, 0, 0, 0.75);
    display: ;
    animation: fadeIn 2s;
}
@keyframes fadeIn{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}
.food-img img{
    border-radius: 4px;
}
.food-content{
    padding: 1rem;
}
.food-name{
    font-family: var(--Inter);
    color: #854e03;
    font-weight: 500;
    text-transform: capitalize;
}
.line{
    width: 100px;
    height: 3px;
    background: #ff9505;
}
.food-price{
    padding: 0.4rem 0;
    font-weight: 600;
    font-size: 1.4rem;
    opacity: 0.8;
}
.rating{
    display: flex;
    list-style: none;
}
.rating .fa-star{
    margin-right: 0.4rem;
    color: #44355b;
    width: 10px;
}

.category{
    padding-top: 0.2rem;
    font-size: 1rem;
    font-weight: 800;
    font-family: var(--Inter);
}
.category span{
    font-weight: 500;
}

footer {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #011601;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ffffff;
    margin-top: 10%;
  }
  
  footer p {
    margin: 0;
    color: white;
  }

@media screen and (min-width: 600px){
    .food-item{
        display: grid;
        grid-template-columns: 25% auto;
        align-items: center;
        padding: 1rem;
        column-gap: 1rem;
    }
    .food-content{
        padding: 0;
    }
}

@media screen and (min-width: 768px){
    .menu-head p{
        width: 70%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (min-width: 992px){
    .menu-head p{
        width: 50%;
    }
    .food-items{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
    }
}