* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

:root {
    --back-color: #FFFAFA;
    --desc-text-color: #333;
    --accent: #D0C0E5;
    --secondary-text-color:#FAF9F6;
}

body {
    background-color: var(--back-color);
    color: var(--desc-text-color);
    text-align: center;
}

i {
    color: var(--accent);
}

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: var(--back-color);
}

#logo {
    width: 80px; 
}

.menu-toggle, .hide-menu {
    display: none; /*Ensures the icon will only show on devices with max width: 960px*/
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent);
}

.nav-links, .store-nav, .social-links, .site-index{
    display: flex; /*Ensures the items are displayed in a row*/
}

.nav-links{
    color: var(--accent);
    font-size: 1rem;
    padding: 0.5rem;
    gap: 20px;
    margin-left: 5rem;
}

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

.mobile-cart, .account-link{
    display: none;
}

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


.nav-links a {
    color: var(--accent);
    font-size: 18px;
}

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

.image-container {
    position: relative; 
    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: var(--secondary-text-color);
    z-index: 1; 
}

.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: 50px;
    justify-content: center;  /*Centers the information inside the columns*/
    grid-template-columns: repeat(3, calc(33.33% - 50px)); 
}

.item-info img{
    width: 200px; /*Ensures that the item pictures don't get cut in multiple screens*/
}

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

.price-button{
    color: var(--secondary-text-color);
    background-color: var(--accent);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    border: none;
}

.site-footer{
    width: 100%;
    height: 100%;
    background-color: var(--back-color);
    color: var(--accent);
    padding: 20px;
    margin-top: 30px;
}

.site-index{
    justify-content: center;
    gap: 2rem;
}

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

.site-index a{
    color: var(--accent);
}

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

#contact{
    padding-bottom: 0.5rem;
}

@media screen and (max-width: 960px) {
    .nav-links {
        display: none; 
        position: fixed; 
        top: 0;
        right: 0; /*Ensures the entire menu shows with no cuts*/
        width: 100%;
        flex-direction: column;
        padding: 10px;
        background: var(--back-color);
        z-index: 9999; /* Ensure menu is on top */
    }

    .nav-links.active {
        display: flex;
        text-align: center;
    }

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

    .nav-link{
        padding-left: 20px;
    }

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

    .store-nav {
        display: none;
    }

    #logo{
        margin-left: 0.5rem;
    }

    .menu-toggle, .mobile-cart, .hide-menu{
        display: block;
    }

    .hide-menu{
        position: absolute;
        top: 20px;
        right: 30px;
    }

    .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 (max-width: 745px)  { /*Adjusted for Landscape orientation in Tablets and Phones*/
    .nav-links li{
        padding: 2px 0;  /*Ensures that some portion of the body is shown and scrollable*/
    }
}

@media screen and (max-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 {
        flex-direction: column;
        align-items: center;
    }

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

@media screen and (max-width: 400px)  {
    .overlay-content{
        font-size: 0.75rem;
    }

}

@media screen and (max-width: 350px)  {
    .overlay-content{
        font-size: 0.7rem;
        margin-bottom: 2.7rem;
    }

}

