* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: #333;

    background-image: url("images/background.jpg");

    background-size: cover;

    background-position: center;

    background-attachment: fixed;
}

/*sections*/
section {
    background: rgba(255, 255, 255, 0.3);
    padding: 60px 10%;
    text-align: center;
}


h1, h2, h3 {
    font-family: "Noto Serif JP", serif;
}


/* Navigation */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    color: white;
    padding: 20px 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}


nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


nav ul {
    display: flex;
    list-style: none;
    gap: 18px;
}


nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 999px;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

nav a:hover,
nav a:focus {
    color: #ff4d4d;
    background-color: rgba(255, 77, 77, 0.12);
    transform: translateY(-1px);
    text-decoration: none;
}


#home {
    background-image: 
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url("images/main_image.jpg");

    background-size: cover;
    background-position: center;

    color: white;

    padding: 180px 10%;
}


h2 {
    font-size: 40px;
    margin-bottom: 20px;
}


/* Menu */

.menu-items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}


.food-card {
    border: 3px solid #110b0b;
    padding: 25px;
    width: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: white;
}


button {
    margin-top: 20px;
    padding: 12px 25px;
    background: black;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover,
button:focus {
    color: #ff4d4d;
    text-decoration: underline;
    text-decoration-color: #ff4d4d;
}


footer {
    background: black;
    color: white;
    padding: 20px;
    text-align: center;
}

#order {
    background: #f5f5f5;
}


.order-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}


.order-buttons a {
    text-decoration: none;
    background: black;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
}


.order-buttons a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* Making images fit into their specific product boxes*/
.food-card img {

    width: 100%;
    height: 180px;

    object-fit: cover;

    border-radius: 10px;

    margin-bottom: 15px;

}

@media (max-width: 900px) {
    section {
        padding: 50px 6%;
    }

    .menu-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .food-card {
        width: 100%;
    }
}

@media (max-width: 700px) {
    body {
        background-attachment: scroll;
    }

    header {
        padding: 16px 20px;
    }

    nav {
        flex-direction: column;
        gap: 12px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    #home {
        padding: 120px 6%;
    }

    h2 {
        font-size: 28px;
    }

    .menu-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .order-buttons a {
        text-align: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 5%;
    }

    h2 {
        font-size: 24px;
    }

    nav a {
        font-size: 0.95rem;
        padding: 6px 8px;
    }

    .food-card {
        padding: 18px;
    }

    .food-card img {
        height: 160px;
    }
}
