﻿body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 5px;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: #fff;
    position: relative;
}

header img {
    display: block;
    margin: 0 auto;
}

nav ul {
    list-style-type: none;
    text-align: center;
    padding: 10px;
}

    nav ul li {
        display: inline;
        margin-right: 10px;
    }

nav a {
    text-decoration: none;
    color: #333;
    padding: 8px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

    nav a.button {
        background-color: #f0f0f0;
    }

        nav a.button:hover {
            background-color: #ddd;
        }

    #restaurant-navbar .navbar-nav .nav-link {
        color: #fff !important;
    }

        #restaurant-navbar .navbar-nav .nav-link:hover {
            color: #ddd !important;
        }

main {
    margin: 20px;
}

section {
    margin-bottom: 40px;
}

    section#restaurant-info,
    section#location {
        text-align: center;
    }

    section#menu ul {
        list-style-type: none;
    }

        section#menu ul li {
            margin-bottom: 10px;
        }

#ratings-reviews {
    padding: 20px; 
}
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f8f9fa; 
    padding: 10px 0; 
    text-align: center; 
}

.logo {
    width: 200px;
    height: auto;
    left: 20px; 
    transform: translateX(0);
}

.cart-icon {
    width: 20px;
    height: auto;
    left: 20px;
    transform: translateX(0);
}


section#restaurant-info h2,
section#menu h3,
section#menu p,
section#location h3,
section#timings h3 {
    color: black;
    text-align: center;
    font-style: italic;
}

section#price h3 {
    color: black;
}

section#menu h3 {
    text-align: center;
}

section#menu h4 {
    color: #333;
}

section#location p, section#timings p {
    font-style: italic;
}

.restaurant-image-small {
    width: 150px;
    height: auto;
    border-radius: 5px;
}

section#restaurant-info img.restaurant-image-small {
    width: 200px;
    height: auto;
    border-radius: 5px;
}

#carouselExampleControls {
    max-width: 600px;
    margin: 0 auto;
    height: 300px;
}

    #carouselExampleControls .carousel-item img {
        object-fit: contain;
        max-height: 100%;
        max-width: 50%;
    }


    #carouselExampleControls .carousel-item .special-offer {
        width:100%;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.5);
        color: #fff;
        padding: 10px;
        text-align: center;
    }

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

#menu {
    flex-basis: 45%;
    background-color: #f0f0f0;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

#price {
    flex-basis: 45%;
    padding: 40px 40px 40px 100px;
}

.dish-name {
    display: inline-block;
    width: 200px;
}

.special-offer {
    display: inline-block;
    width: 350px;
}

    section#timings h3 {
        text-align: right;
    }

    section#timings p {
        text-align: right;
    }



    section#location h3 {
        text-align: left;
    }

    section#location p {
        text-align: left;
    }

.ratings {
    margin-bottom: 20px;
}

.rating-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.stars {
    font-size: 24px;
    color: #FFD700;
    padding-left:10px;
}

section#social-media {
    margin-top: 40px;
    text-align: center;
}

.social-icons {
    margin-top: 20px;
}

    .social-icons a {
        display: inline-block;
        margin-right: 10px;
    }

.small-icon {
    width: 30px;
    height: 30px;
}

.add-to-cart-button {
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 100px;
}

.add-to-cart-button:hover {
    background-color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
}

.back-button {
    position: fixed;
    top: 15px;
    left: 15px;
    background-color: white;
}

section#ratings-reviews {
    text-align: left;
    float: left;
    margin-top: 40px;
    width: 50%;
}

section#social-media {
    text-align: right;
    float: right;
    margin-top: 40px;
    width: 50%;
}



#cart {
    position: fixed;
    top: 15px;
    right: 15px;
    border: 2px solid white;
    padding: 5px;
}


    #cart img {
        height: 30px;
        margin-right: 5px;
    }

@media only screen and (max-width: 1000px) {
    .flex-container {
        flex-direction: column;
    }

    #menu, #price {
        flex-basis: 100%;
    }

    #price {
        padding-left: 20px;
    }

    #price ul li {
        display: flex;
        align-items: center;
    }

    .dish-name {
        flex: 1;
    }

    .price, .add-to-cart-button {
        margin-left: 10px;
    }


    #menu {
        background-color: transparent;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
    }

}

#cart-count {
    font-size: 18px;
    background: black;
    color: #fff;
    padding: 0 5px;
    vertical-align: top;
}

.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

#salesChart, #averageSales {
    max-width: 600px;
    max-height: 400px;
    width: 100%;
    height: auto;
}

.carousel-inner img {
    margin: auto; 
}











