@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
/* here i imported poppins font */
@import url('https://fonts.googleapis.com/css2?family=Merienda:wght@400;700&display=swap');
/* Here is imported Merienda font */

* {
    /* Here i selected the root element to remove all margins and paddings */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'poppins', sans-serif;
}

/* ########################## Utility classes ######################### */

.container {
    max-width: 1200px;
    margin: auto;
}

.btn {
    display: inline-block;
    padding: 1em 2.5em;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    outline: none;
    margin-top: 1em;
    text-transform: uppercase;
    font-weight: 500;
}

.btn-primary {
    color: #fff;
    background: #248C5C;
    transition: background 0.2s ease-in;
}

.btn-primary:hover {
    background: #E41E24;
}

/* ########################### Navbar Styling ############################### */

/* for desktop mode*/
.navbar input[type='checkbox'],
.navbar .hamburger-lines {
    display: none;
}

.navbar {
    box-shadow: 0px 5px 10px 0px rgb(82, 81, 81);
    position: fixed;
    width: 100%;
    background: #000000;
    color: #248C5C;
    opacity: 0.85;
    z-index: 999;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    height: 64px;
    align-items: center;
}

.menu-items {
    display: flex;
}

.menu-items li {
    list-style: none;
    margin-left: 1.5rem;
    font-size: 1.8rem;
}

.logo {
    font-size: 3rem;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.navbar a:hover {
    color: #248C5C;
}

/* ############################## Hero section Styling ############################# */

.showcase-area {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.747), rgba(0, 0, 0, 0.719)), url("images/Food\ truck.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.showcase-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.8rem;
    color: #ffffff;
}

.main-title {
    font-family: 'Merienda', cursive;
    text-transform: uppercase;
    font-size: 7rem;
}

.main-text {
    font-family: 'Merienda', cursive;
    font-size: 6rem;
}

/* ################################# About Us styling ###############################  */

#about {
    padding: 50px 0px;
    background: #f5f5f7;
    overflow-x: hidden;
}

.about-wrapper {
    display: flex;
    flex-wrap: wrap;
}

#about h2 {
    font-size: 3.2rem;
}

#about p {
    font-size: 1.6rem;
    color: #555;
}

#about .small {
    font-size: 1.6rem;
    color: #555;
    font-weight: 600;
}

.about-img {
    flex: 1 1 400px;
    padding: 30px;
    transform: translateX(150%);
    animation: about-img-animation 1s ease-in-out forwards;
}

@keyframes about-img-animation {
    100% {
        transform: translate(0);
    }
}

.about-text {
    flex: 1 1 400px;
    padding: 30px;
    margin: auto;
    transform: translateX(-150%);
    animation: about-text-animation 1s ease-in-out forwards;
}

@keyframes about-text-animation {
    100% {
        transform: translateX(0);
    }
}

.about-img img {
    display: block;
    height: 400px;
    max-width: 100%;
    margin: auto;
    object-fit: cover;
    object-position: right;
}

/* ############################ Food Category Styling ################################ */

#food {
    padding: 5rem 0 10rem 0;
}

#food h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: #555;
}

.food-container {
    display: flex;
    justify-content: space-between;
}

.food-container img {
    display: block;
    width: 100%;
    margin: auto;
    max-height: 300px;
    object-fit: cover;
    object-position: center;
}

.img-container {
    margin: 0 1rem;
    position: relative;
}

.img-content {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.img-content h3 {
    color: #fff;
    font-size: 3rem;
}

.img-content a {
    font-size: 1.2rem;
}

.img-container::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.871);
    z-index: 1;

    transform: scaleY(0);
    transform-origin: 100% 100%;
    transition: all 0.3s ease-in-out;
}

.img-container:hover::after {
    opacity: 1;
    transform: scaleY(1);
}

.img-container:hover .img-content {
    opacity: 1;
    top: 50%;
}

/* ########################### Footer Styling ############################ */

#footer h2 {
    text-align: center;
    font-size: 1.1rem;
    padding: 3rem;
    font-weight: 500;
    color: #ffffff;
    background: #000000;
}

/* ################################ Food menu Styling ############################### */

.food-menu-heading {
    padding-top: 10rem;
    font-size: 4rem;
    text-align: center;
    font-weight: 400;
    color: #666;
}

.food-menu-container {
    display: flex;
    flex-wrap: wrap;
    padding: 50px 0px 30px 0px;
}

.food-menu-container img {
    display: block;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;

}

.food-menu-item {
    display: flex;
    flex: 1 1 600px;
    justify-content: space-evenly;
    margin-bottom: 3rem;
}

.food-description {
    margin: auto 1.5rem;
}

.food-title {
    font-size: 2.2rem;
    font-weight: 400;
    color: #444;
    padding-bottom: 1.5rem;
}

.food-description p {
    font-size: 1.4rem;
    color: #555;
    font-weight: 500;
    padding-bottom: 1rem;
}

.food-description .food-price {
    color: #248C5C;
    font-weight: 700;
}

/* ############################ Gallery styling ############################ */
.customer {
    font-size: 4em;
    font-weight: 400;
    text-align: center;
    padding-top: 10rem;
    color: #555;
}

#gallery {
    display: flex;
    flex-wrap: wrap;
    padding: 4rem 5rem;
}

.column {
    flex: 33.33%;
    max-width: 33.33%;
    padding: 0 4px;
}

.column img {
    vertical-align: middle;
    margin-top: 8px;
}

.column:nth-child(even) {
    display: flex;
    flex-direction: column-reverse;
}


/* ############################ Contact Us styling ############################ */

#contact {
    padding: 5rem 0rem;
    background: rgb(226, 226, 226);
}

.contact-container {
    display: flex;
    background: #fff;
    margin-top: 10rem;
}

.map {
    width: 50%;
}

.form-container {
    padding: 1rem;
    width: 50%;
    margin: auto;

}

.form-container h2 {
    font-size: 3rem;
    font-weight: 400;
    color: #444;
    margin-bottom: 1rem;
}

.form-container input {
    display: block;
    width: 100%;
    border: none;
    border-bottom: 2px solid #ddd;
    padding: 1rem 0;
    box-shadow: none;
    outline: none;
    margin-bottom: 1rem;
    color: #444;
    font-weight: 400;
}

.form-container textarea {
    display: block;
    width: 100%;
    border: none;
    border-bottom: 2px solid #ddd;
    padding: 1rem 0;
}

.form-container a {
    font-size: 1.2rem;
}

/* ############################## Media queries for responsiveness of website (768 px) ############################# */

@media (max-width: 768px) {
    .navbar {
        opacity: 0.95;
    }

    .navbar-container input[type='checkbox'],
    .navbar-container .hamburger-lines {
        display: block;
    }

    .navbar-container {
        display: block;
        position: relative;
        height: 64px;
    }

    .navbar-container input[type='checkbox'] {
        position: absolute;
        display: block;
        height: 32px;
        width: 40px;
        top: 20px;
        left: 20px;
        z-index: 5;
        opacity: 0;
    }

    .navbar-container .hamburger-lines {
        display: block;
        height: 32px;
        width: 40px;
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .navbar-container .hamburger-lines .line {
        display: block;
        height: 4px;
        width: 100%;
        border-radius: 10px;
        background: #ffffff;
    }


    .navbar-container .hamburger-lines .line1 {
        transform-origin: 0% 0%;
        transition: transform 0.4s ease-in-out;
    }

    .navbar-container .hamburger-lines .line2 {
        transition: transform 0.4s ease-in-out;
    }

    .navbar-container .hamburger-lines .line3 {
        transform-origin: 0% 100%;
        transition: transform 0.4s ease-in-out;
    }

    .navbar .menu-items {
        padding-top: 100px;
        background: #000000;
        height: 100vh;
        max-width: 300px;
        transform: translateX(-150%);
        display: flex;
        flex-direction: column;
        margin-left: -40px;
        padding-left: 50px;
        transition: transform 0.5s ease-in-out;
        box-shadow: 5px 0px 10px 0px #aaa;
    }

    .navbar .menu-items li {
        margin-bottom: 3rem;
        font-size: 2rem;
        font-weight: 500;
    }

    .logo {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 3rem;
    }

    .navbar-container input[type='checkbox']:checked~.menu-items {
        transform: translateX(0);
    }

    .navbar-container input[type='checkbox']:checked~.hamburger-lines .line1 {
        transform: rotate(45deg);
    }

    .navbar-container input[type='checkbox']:checked~.hamburger-lines .line2 {
        transform: scaleY(0)
    }

    .navbar-container input[type='checkbox']:checked~.hamburger-lines .line3 {
        transform: rotate(-45deg);
    }

    .column {
        flex: 50%;
        max-width: 50%;
    }


    /* ############################### Famous Dishes Section Media Queries ############################ */

    .food-container {
        flex-direction: column;
        align-items: stretch;
    }

    .food-type:not(:last-child) {
        margin-bottom: 3rem;
    }

    .food-type {
        box-shadow: 5px 5px 10px 0px #aaa;
    }

    .img-container {
        margin: 0;
    }

    .contact-container {
        display: flex;
        flex-direction: column;
    }
}


/* ############################### Media queries for Small Screen (500px) ################################# */

@media (max-width: 500px) {
    html {
        font-size: 50%;
    }

    .testimonial-container {
        flex-direction: column;
        text-align: center;
    }

    .food-menu-item {
        flex-direction: column;
        text-align: center;
    }

    .food-menu-container img {
        margin: auto;
    }

    .column {
        flex: 100%;
        max-width: 100%;
    }

    .form-container {
        width: 90%;
    }

    .contact-container {
        display: flex;
        flex-direction: column;
    }
}