/* ======== START: NAV SECTION ======== */
nav {
    width: 250px;
    height: 100vw;
    box-sizing:border-box; 
    position: fixed;
    display:block;
    flex-direction: column;
    background-color: var(--link);
    z-index: 100;
}

nav > ul > li a {
    flex-direction: column;
    font-size: 1.5em;
    text-align: center;
    text-decoration: none;
    color: var(--light);
    display: flex;
    transition: background-color .2s ease-in-out, color .2s ease-in-out;
}

nav > .logo{
    top: 0;
    color: white;
    font-size: 3em;
    text-align: center;
    margin-bottom: 100px;
    margin-top: 20px;
}

.fleur-de-leah-regular {
    font-family: "Fleur De Leah", cursive;
    font-weight: 400;
    font-style: normal;
  }

nav > ul > li a:hover {
    color: var(--light);
    background-color: whitesmoke;
}

nav > ul > li {
    padding: 30px 0px;
    list-style-type: none;
    text-align: center;
}

nav > ul {
    list-style: none;
    display: flex;
    margin: 0;
    flex-direction: column;
}

nav.center ul li {
    position: relative;
}



.button-link {
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 10px;
    background-color: var(--link);
    color: var(--light);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
}

.button-link:hover {
    background-color: grey;
    color: var(--light);
}

#backToTop {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000; /* Ensure it appears above other elements */
    font-size: 1.5em;
    background-color: var(--link);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 15px 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0; /* Start hidden */
    transition: opacity 0.3s ease-in-out; /* Smooth fade */
}

#backToTop.show {
    display: block;
    opacity: 1; /* Fully visible */
}

#backToTop:hover {
    background-color: grey;
}

/* Filter toggle styles */
.filter-container {
    position: relative; /* Ensure it's part of the normal flow */
}

.filter-toggle {
    position: absolute;
    top: 0px;
    right: 30px;
    z-index: 100;
    background-color: var(--link);
    border-radius: 5px;
}

#filterDropdown {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--dark);
    background-color: white;
    color: var(--dark);
    font-size: 1em;
    cursor: pointer;
    width: 300px;
    text-align: center;
}

#filterDropdown:hover {
    border-color: var(--accent);
}



/* Dropdown menu styling */
nav.center ul li .dropdown {
    display: none;
    width: 100%; /* Match width to parent li */
    top: 100%;
    left: 0;
    background-color: #f9f9f9;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Dropdown item styling */
nav.center ul li .dropdown li a {
    font-size: 1em; /* Smaller font for dropdown */
    padding: 10px 20px; /* Adjust padding for dropdown items */
    color: rgb(255, 255, 255);
    background-color: rgb(10, 11, 17);
    text-decoration: none;
    display: block;
    transition: background-color .2s ease-in-out, color .2s ease-in-out;
}

/* Keep parent menu highlighted when dropdown is active */
nav.center ul li:hover > a {
    background-color: rgba(128, 128, 128, 0.247);
    color: var(--light);
}

nav.center ul li .dropdown li a:hover {
    color: var(--link);
    background-color: white;
}

nav.center ul li:hover .dropdown {
    display: block;
}

nav.left > ul {
    justify-content: flex-start;
}

nav.center > ul {
    justify-content: center;
}

nav.right > ul {
    justify-content: flex-end;
}

nav.full > ul > li {
    flex: 1;
}

@media (max-width: 768px) {
    nav.center {
        flex-direction: column; /* Stack the nav items vertically */
        align-items: flex-start; /* Align items to the left */
        width: 100%; /* Make the nav bar take the full width */
        position: relative; /* Allow the navbar to take up space normally in the layout */
        padding: 10px 0; /* Optional: adds spacing for the navbar */
    }

    nav ul {
        display: block; /* Stack the list items vertically */
        width: 100%; /* Make the list items take up full width */
        margin: 0;
        padding: 0;
    }

    nav ul li {
        margin-left: 0; /* Remove left margin */
        padding: 0px; /* Add padding to space out the items */
        width: 100%; /* Make each nav item take up full width */
        text-align: center; /* Center the text */
    }

    /* Adjust the logo for small screens */
    .logo {
        font-size: 2em; /* Reduce the size of the logo */
        text-align: center;
        margin-bottom: 10px; /* Add margin below the logo */
    }

    /* Add padding or margin to the content below the navbar */
    main {
        padding-top: 0px; /* Adjust this value based on the navbar height */
    }

    .left-margin{
        margin-left: 0px;
    }
    nav.center ul li .dropdown {
        display: none;
        width: 100%; /* Match width to parent li */
        top: 100%;
        left: 0;
        background-color: #f9f9f9;
        list-style: none;
        padding: 0;
        margin: 0;
        min-width: 150px;
        box-shadow: none;
        z-index: 1;
    }
    
    /* Dropdown item styling */
    nav.center ul li .dropdown li a {
        font-size: 1em; /* Smaller font for dropdown */
        padding:0;/* Adjust padding for dropdown items */
        color: rgb(255, 255, 255);
        background-color: rgb(10, 11, 17);
        text-decoration: none;
        display: block;
        transition: background-color .2s ease-in-out, color .2s ease-in-out;
    }

    .filter-toggle {
        position:relative;
        display: flex;
        justify-content: center;
        width: 100%;
        z-index: 100;
        background-color: var(--link);
        border-radius: 5px;
        margin-top: 0;
        top:0;
        right:0;
    }
    
    #filterDropdown {
        border-radius: 5px;
        border: 1px solid var(--dark);
        background-color: white;
        color: var(--dark);
        font-size: 1em;
        cursor: pointer;
        width: 100%;
        text-align: center;
    }
    
    #filterDropdown:hover {
        border-color: var(--accent);
    }

    h1{
        padding-top: 20px;
        margin: 0 auto;
        text-align: center;
    }

    .line{
        text-decoration: none;
    }

    .hero{
        display:none;
    }

    
}
/* ======== END: NAV SECTION ======== */
