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

body {
    color: #333;
    text-align: center;
}

.navbar{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2rem;
    padding: 15px, 30px;
    position: sticky;
    background: white;
    color: black;
    z-index: 10;
}

.nav-links{
    display: flex;
    color: black;
    font-size: 1rem;
    padding: 8px;
}

.nav-links li{
    margin-left: 10rem;  /*adds margins to items inside the list*/
    padding-right: 2rem;
}

.nav-links a{
    color: black;
}

#logo {
    width: 200px;
    padding: 10px;
}

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

.main-section{
    background: white;
}

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

.image-container { 
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    overflow: hidden; /* Prevent image from overflowing */
}

.back-img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;  /*ensures all parts of the images won't get cut on different screens*/
}


.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;
}

.info{
    line-height: 3rem;
}

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

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

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

.index-header{
    margin-bottom: 0.5rem; /*separates header for index lists*/
}


.site-index a{
    color: black;
}


@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;
        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: 15px 0;
        margin-left: 20px;  /*Ensures the links and the hide-menu symbol show*/
    }

    .nav-link{
        margin-right: 5px; /*Separates links from hide-menu symbol*/
    }

    #logo{
        margin-right: 0.5rem;
    }
    
    .site-container{
        display: grid;
    }

    .menu-toggle, .hide-menu{
        display: block;
        position: absolute;
    }
    
    .menu-toggle {
        top: 70px;
        left: 10px;
    }

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

    .site-index{
        display: flex;
        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)  {
    .site-index{
        display: flex;
        flex-direction: column;
    }

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

