/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: Arial, sans-serif;
    /*overflow-x: hidden;*/
}

body {
    text-align: center;
}

i {
    color: #D0C0E5;
}

header{
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    padding: 15px 30px;
    background: white;
    /*position: sticky;
    top: 0;*/
    /*z-index: 10; Ensure navbar is on top */
}

#logo {
    width: 80px; /*Adjust as needed*/
}

.menu-toggle {
    display: none; /* Hide by default on large screens */
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #D0C0E5;
}

.nav-links{
    display: flex;
    color: #D0C0E5;
    font-size: 1rem;
    padding: 0.5rem;
    gap: 20px;
    margin-left: 5rem;
}

.store-nav{
    display: flex;
    margin-left: 1rem;
    margin-right: 2rem;
    gap: 20px;
    font-size: 1.5rem;
}

.hide-menu {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #D0C0E5;
}

.mobile-cart{
    display: none;
    font-size: 1.5rem;
}

.account-link{
    display: none;
}

/* Links Styling */
.nav-links a {
    color: #D0C0E5;
    font-size: 18px;
}

.site-container{
    display: grid;
    margin: 0 auto;
}

.main-section{
    background: white;
}

/* Image Section */
.image-container {
    position: relative; /* Needed for overlay */
    width: 100%;
    height: auto;
}

.back-img {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 1; /* Behind nav menu */
}

.overlay-content {
    text-align: center;
    margin-bottom: 100px; /* Space between text and button */
    font-size: 2rem;
}

.featured-header {
    padding-top: 50px;
    padding-bottom: 30px;
}

.featured-item-row{
    display: grid; 
    grid-gap: 20px;
    justify-content: center;  /*Centers the information inside the columns*/
    grid-template-columns: repeat(2, calc(33.33% - 50px)); 
}

.item-info img{
    width: 200px;
}

#item-name{
    padding-top: 10px;
    padding-bottom: 10px;
}

.site-footer{
    width: 100%;
    height: 100%;
    background: white;
    color: #D0C0E5;
    padding: 20px;
    margin-top: 30px;
    position: sticky;
}

.social-links{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    font-size: 1.8rem;
}

/*.social-links img {
    width: 40px;
    margin: 10px;
    color: #D0C0E5;
}*/

.site-index{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    margin-top: 10px;
    margin-bottom: 10px;
}

.site-index ul{
    text-align: left;
}

.site-index a{
    color: #D0C0E5;
}

.index-header{
    margin-bottom: 0.5rem;
}

#contact{
    padding-bottom: 0.5rem;
}


/* Responsive Design: Mobile Navigation */
@media screen and (width <= 960px) {
    .nav-links {
        display: none; /* Hide menu initially */
        position: fixed; /* Ensure it floats */
        top: 0;
        right: 0; /*Ensures the entire menu shows with no cuts*/
        width: 100%;
        flex-direction: column;
        padding: 10px;
        /*margin-left: auto; Ensures the entire menu shows with no cuts*/
        /*justify-content: center;
        align-items: center;*/
        background: white;
        z-index: 9999; /* Ensure menu is on top */
    }

    /* Show menu when active */
    .nav-links.active {
        display: flex;
        text-align: center;
    }

    .nav-links li {
        padding: 10px 0;
    }

    .account-link {
        display: flex;
        justify-content: center;
    }

    .store-nav {
        display: none;
    }

    #logo{
        margin-left: 0.5rem;
    }

    .mobile-cart{
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .hide-menu{
        display: block;
        margin-left: 700px;
    }

    .site-container{
        display: grid;
    }

    .overlay-content{
        font-size: 1.5rem;
    }

    .featured-header{
        padding-top: 50px;
        padding-bottom: 30px;
        font-size: 2rem;
    }

    .site-index{
        display: flex;
        /*flex-direction: column;*/
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .site-index ul{
        margin-left: 5px;
    }
}

@media screen and (width <= 500px)  {
    .overlay-content{
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .featured-header{
        font-size: 1.25rem;
    }

    .featured-item-row{
        display: flex;            
        flex-direction: column;  /*Shows featured items in a column*/
    }

    .site-index{
        display: flex;
        flex-direction: column;
    }

    .site-index ul{
        text-align: center;
    }
    
}

@media screen and (width <= 745px)  { /*Adjusted for Landscape orientation in Tablets and Phones*/
    .hide-menu{
        margin-left: 650px;   /*Ensures that the hide-menu-toggle symbol (X) is shown in Landscape orientation*/
    }

    .nav-links li{
        padding: 2px 0;  /*Ensures that some portion of the body is shown and scrollable*/
    }

}

/*@media screen and (width <= 713px)  { 
    .nav-links {
        padding: 0.5px 0;
        font-size: 0.2rem;
    }
    .nav-links li {
        padding: 2px 0;
    }

}*/

@media screen and (width <= 690px)  {
    .hide-menu{
        margin-left: 380px;
    }
    
}

@media screen and (width <= 400px)  {
    .hide-menu{
        margin-left: 330px;
    }

    .overlay-content{
        font-size: 0.75rem;
    }

}

@media screen and (width <= 350px)  {
    .hide-menu{
        margin-left: 275px;
    }

    .overlay-content{
        font-size: 0.7rem;
        margin-bottom: 2.7rem;
    }

}
