/*
colors to use:
#E46F3B - orang (orange)
#190D08 - blac  (black)
#88972D - geen  (green)
#9B3B23 - poo   (brown)
#948474 - stone (grey)

fonts to use:
headers:
font-family: "Luckiest Guy", cursive;

subheaders:
font-family: "Montserrat", sans-serif;
font-weight: 400;
font-style: italic;

body text:
font-family: "Mulish", sans-serif;
*/

/* Undefined */
*{
    box-sizing: border-box; 
    font-family: sans-serif;
    padding: 0;
    margin: 0;
}

body {
    font-family: "Mulish", sans-serif;
    font-size: 1.2rem;
    color: #190D08;
    background-color: #948474;
}

h1 {
    font-family: "Luckiest Guy", cursive;
    font-size: 3rem;

}
h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-style: italic;
}

button {
    border: 5px solid #190D08;
    border-radius: 25px;
    padding: 0.6rem 2rem;
    background-color: #E46F3B;
    color:white;
    font-family: "Luckiest Guy", cursive;
    letter-spacing: 2px;
    font-size: 1.4rem;
    transform: scale(1);
    margin: 0.5rem;
    transition: all .3s;
}

button:hover {
    border: 5px solid #E46F3B;
    background-color: #190D08;
    color:#948474;

    cursor: pointer;
    transform: scale(1.1);
}

/* Hamburger Icon */
.hamburger{
    display: none;
    cursor: pointer;
    width: calc(100% - 925px);
    margin: 0;
}
.hamburger h1
{
    text-align: center;
    width: 100px;
    height: 100px;
}

.bar{
    width: 100%;
    height: 3px;
    background-color: #190D08;
    border-radius: 5px;
    transition: all 0.3s ease;
}

a {
    cursor: pointer;
}

/* Header */
header{z-index: 10; top: 0; box-shadow: 0px -100px 10px 100px; background-color: #E46F3B; position: fixed; left: 0; right: 0; height: 150px;}
header div{z-index: 1; display: inline; margin-left: 5%; float: left; width: 150px; text-align: center; height: 150px; border-right: 3px dashed #9B3B23;}
header img{z-index: 1; width: 100%; background-image: radial-gradient(#9B3B23 0%, #E46F3B 75% 100%);}
header h1{z-index: 1; text-align: center; height: 150px; align-content: center; font-size: 300%; width: 500px; float: left;}
header h1 a{z-index: 1; color: #190D08; font-family: "Luckiest Guy", cursive;}

nav{z-index: 1; width: calc(100% - 925px);float: left; height: 150px; align-content: center; border-left: 3px dashed #9B3B23; border-right: 3px dashed #9B3B23; display: inline;}
nav ul{z-index: 1; padding: 10px; text-align: center;}
nav ul *{z-index: 1; display: inline-block;}
nav ul li{z-index: 1; padding: 5px 20px; border: 3px #9B3B23 dashed; border-radius: 10px; cursor: pointer; margin: 2px;}
nav ul li *{z-index: 1; font-family: "Mulish", sans-serif; font-weight: 900;}

header ul li a{color: #9B3B23; transition: 0.25s;}
header ul li a:hover{color: #bc472a;}

.CurrentlyOn{color: #190D08;}
.CurrentlyOn:hover{color: #4e2919;}
#Profile{margin-left: 25px; padding: 0; width: 100px; height: 100px; border-radius: 100px; display: inline; border: 3px #9B3B23 dashed; cursor: pointer; position: relative; top: 50%; transform: translateY(-50%); background-size: 100%; float: left;}

/* Article */
article{background-color: rgba(255, 255, 255, 0.1); margin: 5%; padding: 5%; margin-top: calc(5% + 150px); border-radius: 100px;}
section:first-child{margin-top: 0px;}
section{margin-top: 100px;}

/* Footer */
footer{background-color: #E46F3B; position: relative; top: 100%; left: 0; right: 0; height: 150px; padding: 0% 5%;}
footer div{width: 40%; border-right: #9B3B23 3px dashed; height: 150px; align-content: center; float: left; padding: 0% 5%;}
footer p{text-align: center; color: #9B3B23;}

footer ul{list-style-type: none; border: #9B3B23 3px dashed; border-radius: 10px; width: 15%; float: right; position: relative; top: 50%; transform: translateY(-50%);}
footer li{padding: 0; text-align: center; border-top: #9B3B23 3px dashed;}
footer li:first-child{border-top: none;}

footer a{color: #9B3B23; transition: 0.25s;}
footer a:hover{color: #bc472a;}

/* Home */
#contact form, #signupForm, #loginForm{
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
}

#contact input, textarea, #signupForm input, #loginForm input{
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 1rem;
    resize: none;
    margin-bottom: 10px;
}

#hero {
    display: flex;
    justify-content: center;
}

#hero img {
    border-radius: 50px;
    margin: 0 3rem;
    width: 50vh;
}

#hero .heroText {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


section {
    text-align: center;
}

/* Sidebar */
#sidebar-menu{align-content: start; display: block; position: fixed; width: 100%; height: calc(100vh - 150px); top: -100%; right: 0; left: 0; background-color: #E46F3B; transition: 0.5s; z-index: 5; border: none; border-top: #9B3B23 3px dashed;}
#sidebar-menu.active{top: 150px;}

#sidebar-menu ul{z-index: 1; padding: 10px; text-align: center; display: flex; margin: 10px; justify-content: space-evenly; flex-wrap: wrap; align-items: center;}
#sidebar-menu ul li{z-index: 1; border: 3px #9B3B23 dashed; border-radius: 20px; cursor: pointer; display: inline; float: left; background-color: #fd7b43; transition: 0.3s; padding: 0;}
#sidebar-menu ul li a{color: #9B3B23; font-size: 1.5rem; font-family: "Mulish", sans-serif; font-weight: 700; text-decoration: none; padding: 1.5rem 1rem; border-radius: 20px; transition: all 0.3s; min-width: 200px;}
#sidebar-menu ul li a:hover{color: #bc472a; text-shadow: 0 0 8px #190D08; transform: scale(1.1); text-shadow: 0 0 8px #E46F3B;}

#sidebar-menu ul li:hover{background-color: #ff8551;}
#sidebar-menu .CurrentlyOn{color: #190D08;}
#sidebar-menu .CurrentlyOn:hover{color: #4e2919;}

.close-btn{width: calc(200px + 25%); position: absolute; display: flex; justify-self: center; justify-content: center; bottom: 5%; font-size: 2rem; background: none; border: none; background-color: #fd7b43; border: 3px dashed #9B3B23; color: #190D08; cursor: pointer; transition: all 0.3s;}

.close-btn:hover{background-color: #190D08; font-size: 2rem; color: #4e2919; border: 3px dashed #9B3B23; background-color: #ff8551;}


#Profile2{background-size: 100%; border-radius: 100%; float: right; right: 0;}
.Link{color: #9B3B23;}
.Link:hover{color: #bc472a;}
.TransformCenter{position: relative; left: 50%; transform: translateX(-50%);}
#ManageLink{display: none;}
#ManageLink2{display: none;}

/*MENU PREVIEW*/
#menuCarouselContainer {
    max-width: 1000px;
    margin: 2rem auto;
    position: relative;
}

.carouselViewport {
    overflow: hidden;
    padding: 5px;
    display: flex;
    justify-content: flex-start;
}

#menuPreviewWindow {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1rem;
}

.homeMenuItem {
    flex: 0 0 clamp(240px, 28%, 320px);
    box-sizing: border-box;
    padding: 1rem;
    background-color: white;
    border: 5px solid #9B3B23;
    border-radius: 2rem;
    text-align: center;
}

.homeItemImage {
    width: 80%;
    border-radius: 1rem;
}

/* Arrows (move them OUTSIDE the overflow area) */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 22px;
    padding: 14px 18px;
    border-radius: 50%;
    user-select: none;
    z-index: 2;
    transition: 0.3s;
}

.prev:hover, .next:hover {
    color: #190D08;
}

.prev {
    left: -45px; /* Now visible outside box */
}

.next {
    right: -45px;
}

/* Tablets and Small Laptops */
@media screen and (max-width: 1250px) {

    article {
        border-radius: 50px;
    }

    header h1{border-right: #9B3B23 3px dashed;}

    .hamburger h1{border: none;}

    nav{display: none;}

    .hamburger{display: flex; float: left; align-items: center; justify-content: center;}

    /* Menu */
    #main div#menuContainer{width: 100%;}
    .menuItem{width: 90%; margin: 0.75rem auto;}
    .itemImage{width: 95%;}
    
    /* Cart Layout */
    .cartItem{flex-direction: column; text-align: center;}
    .cartItemImage{width: 60%; margin: 0 auto 1rem auto;}
    .cartItemNameBlock{flex-direction: column;}
    .cartItemQuantityBlock{flex-direction: column;}
    .cartItemName{font-size: 1.4rem;}

    /* Checkout Forms */
    #guestCheckoutForm, #userCheckoutForm{max-width: 90%; padding: 1.5rem;}


    .mgrOrderItem .primaryInfo,
    .custOrderItem .primaryInfo{
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        text-align: left;
    }

    .mgrOrderItem .orderId,
    .custOrderItem .orderId{
        font-size: 1.4rem;
    }
    
    .mgrOrderItem .primaryInfo p,
    .custOrderItem .primaryInfo p{
        font-size: 1rem;
    }

    .mgrOrderItem .orderFoodItem,
    .custOrderItem .orderFoodItem{
        width: 45%;
        margin: 0.5rem auto;
    }

    button,
    .displaymenuButton,
    .viewOrdersButton,
    .custInfoButton,
    .displayCustOrdersButton,
    #editButton,
    #saveButton,
    .btn{
        display: block;
        width: 80%;
        max-width: 300px;
        margin: 1rem auto;
        padding: 0.8rem 1rem;
        font-size: 1.2rem;
    }

    #editItemsToggle, #viewOrdersToggle{
        width: 100%;
        box-sizing: border-box;
    }

    #ordersContainer{
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .mgrOrderItem .custOrderItem{
        width: 100%;
        box-sizing: border-box;
        padding: 0.8rem;
    }
}


/* Mobile Phone */
@media screen and (max-width: 1024px){
    header h1{display: none;}

    .hamburger h1{display: block;}

    .hamburger{width: calc(100% - 375px);}

    /* Menu */
    .menuItem{width: 45% !important;}
    .foodName{font-size: 1.4rem;}

    /* Cart Layout */
    .cartItemImage{width: 100%; margin: 10px;}
    #cartSection p, #cartSection h2{font-size: 1.1rem;}
    #menuTextResponsive{text-align: center;}
    #cartTotal{text-align: center;}

    /* Checkout Forms */
    #guestCheckoutForm input,
    #guestCheckoutForm select,
    #userCheckoutForm input,
    #userCheckoutForm select{
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .flexBoxContainer{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .flex2, .flex3, .flex1{
        width: 100%;
    }

    .about-wrapper img, .about-wrapper p{
        width: 90%;
        margin: 0 auto;
    }
    
    .mgrOrderItem .primaryInfo,
    .custOrderItem .primaryInfo{
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .mgrOrderItem, .primaryInfo .btn,
    .custOrderItem .primaryInfo .btn{
        width: 100%;
        margin: 0.5rem 0
    }

    .mgrOrderItem, .primaryInfo h3,
    .custOrderItem .primaryInfo h3,
    .mgrOrderItem, .primaryInfo p
    .custOrderItem .primaryInfo p{
        font-size: 1rem;
    }

    .mgrOrderItem .secondaryInfo,
    .custInfoItem .secondaryInfo{
        display: none;
        flex-direction: column;
        gap: 0.5rem;
    }

    button,
    .displaymenuButton,
    .viewOrdersButton,
    .custInfoButton,
    .displayCustOrdersButton{
        width: 80%;
    }

    #editButton,
    #saveButton{
        width: 70%;
        font-size: 1rem;
        margin: 0.5rem auto;
        display: block;
    }

    /* Footer */
    footer{height: auto; padding: 20px 5%;}
    footer p{margin: 20px;}
    footer div{width: 100%; float: none; border-right: none; margin-bottom: 15px; text-align: center; height: auto;}
    footer ul{width: 100%; float: none; position: relative; top: 0; transform: none; display: flex; justify-content: center; flex-wrap: wrap;}
    footer li{border-top: none; border-left: #9B3B23 3px dashed; padding: 10px 15px;}
    footer li:first-child{border-left: none;}

    

    #hero img {
        
        width: 30vh;
    }
}

@media screen and (max-width: 768px){
    .menuItem{width: 90%; margin: 1rem auto;}
    .itemImage{width: 95%;}

    button,
    .displaymenuButton,
    .viewOrdersButton,
    .custInfoButton,
    .displayCustOrdersButton,
    #editButton,
    #saveButton{
        width: 90%;
        padding: 0.8rem;
    }

    
    .flexBoxContainer{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px
    }

    [class*="flex"]{
        width: 95%;
        float: none;
        box-sizing: border-box;
        padding: 15px;
    }

    .about-wrapper img{
        width: 50%;
        height: auto;
        margin: 0 auto 20px auto;
    }

    .about-wrapper p,
    .about-wrapper h2,
    .about-wrapper h3,
    .about-wrapper h4{
        width: 100 !important;
        text-align: center;
        margin-bottom: 10px;
    }

    #hero {
        flex-direction: column;
        align-items: center;
    }

    #hero img {
        width: 40vh;
    }

    #hero .heroText {
        text-align: center;
        margin-top: 1rem;
    }

}

@media screen and (max-width: 480px){
    .menuItem{width: 95% !important;}
    .foodName{font-size: 1.4rem !important;}

    .mgrOrderItem,
    .custOrderItem{
        padding: 0.6rem;
    }

    .orderId{font-size: 1.2rem;}

    .orderFoodName{font-size: 1.1rem;}
    .orderFoodItemPrice,
    .orderFoodItemQuantity{font-size: 0.95rem;}

    button, 
    .displaymenuButton,
    .viewOrdersButton,
    .custInfoButton,
    .displayCustOrdersButton,
    #editButton,
    #saveButton{
        width: 90%;
        padding: 0.8rem;
    }

    #hero img {
        width: 100%;
    }
}