.navbar a {
    z-index: 9999; /* Set a high z-index value */
}
.navbar {
    text-align: center;
    width: fit-content;
    font-weight: 600;
    padding-bottom: 20px;
    border-bottom: solid 1px rgb(182, 182, 182);
    margin: auto;
    position: relative;
    z-index: 9999; /* Set a high z-index value for the navbar */
}
.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    z-index: 9999; /* Ensure the menu is on top */
}
.navbar li {
    margin-right: 20px;
    position: relative;
}
.navbar li.last {
    margin-right: 0;
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    background: none;
    border: none;
    color: black;
    position: absolute;
    top: 0;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease; /* Smooth hover effect */
    width: 100%; /* Full width button */
    align-items: center;
    z-index: 10000; /* Ensure hamburger button is on top */
    padding: none;
}
.menu-toggle:hover {
    background: none;
}

div.burger {
    width: fit-content;
    margin: auto;
}

button.menu-toggle {
    width: fit-content;
}

@media (max-width: 800px) {
    .menu-toggle {
        display: block;
    }
    .navbar ul {
        display: none;
        flex-direction: column;
        width: 100vw; /* Span full width of the viewport */
        background: white;
        position: fixed; /* Change to fixed positioning */
        left: 0; /* Align it to the left side of the screen */
        top: 50px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        padding: 10px;
        align-items: flex-start;
        z-index: 9998; /* Ensure the menu stays below the buttons but above the background */
    }
    .navbar ul.show {
        display: flex;
        width: 100vw; /* Ensure the dropdown spans the full width */
    }
    .navbar ul li {
        text-align: left;
        width: 100%;
        padding: 10px;
    }
}
