.navbar-container {
    padding-bottom: 20px;
    /* Adjust the padding as needed */
    position: relative;
    z-index: 10;
    /* Ensure this is higher than the iframe's stacking context */
    transition: max-height 0.3s ease-in-out;
        /* Smooth expansion */
            max-height: none;

}
/* Default styles for larger screens */
.navbar-toggle-top,
.navbar-toggle {
    display: none;
}

/* Navbar for larger screens (horizontal layout) */
.navbar-content-top
 {
    /* display: flex; */
    justify-content: space-between;
    padding: 0;
    margin: 0;
    z-index: 1000;
        transition: max-height 0.3s ease-in-out;
            /* Smooth expansion */
}


.navbar-content {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    z-index: 900;
}

/* Styles for screens 600px and smaller */
@media (max-width: 600px) {

    .navbar-toggle-top,
    .navbar-toggle {
        display: block;
        background-color: #333;
        color: white;
        padding: 10px;
        border: none;
        font-size: 20px;
        cursor: pointer;
    }
    

    .navbar-content-top,
    .navbar-content {
        display: none;
        flex-direction: column;
        overflow: visible;
        max-height: none;
        /* Remove max height limitation */
        transition: max-height 0.3s ease-in-out;
    }

    .navbar-content-top.show,
    .navbar-content.show {
        display: flex;
        overflow-y: auto;
        /* Allow scrolling if needed */
    }
}

/* Styles for screens between 600px and 800px */
@media (min-width: 600px) and (max-width: 800px) {

    .navbar-toggle-top,
    .navbar-toggle {
        display: none;
    }

    .navbar-content-top,
    .navbar-content {
        display: flex;
        justify-content: space-between;
        flex-direction: row;
        /* Horizontal layout */
    }
}

/* General Navbar Styles */
.w3-bar {
 
    background-color: #333;
    color: white;
    padding: 0 20px;
    z-index: 901;
    overflow: visible;
    max-height: none;
}

/* Dropdown Styles */
.w3-dropdown-click {
    /* position: relative; */
    overflow: visible;
    /* Ensure dropdown is not clipped by its container */
    transition: max-height 0.3s ease-in-out;
}

.w3-dropdown-content {
    display: none;
    /* position: absolute; */
    top: 5%;
    z-index: 902;
    background-color: white;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    max-height: none;

}
.w3-dropdown-content.show {
    display: block;
    max-height: 500px;
    /* Adjust as needed to ensure all options are visible */
}
.w3-dropdown-content .w3-dropdown-content {
    top: 0;
    left: 100%;
    background-color: lightblue;
}

.w3-dropdown-click.show>.w3-dropdown-content {
    display: block;
}

.w3-bar-item.w3-button {
    padding: 10px 15px;
}

.w3-bar-item.w3-button.w3-hover-light-grey:hover {
    background-color: #ddd;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .w3-bar-item.w3-button {
        display: block;
        text-align: left;
    }

    .w3-bar-item.w3-button.w3-hide-small {
        display: none;
    }

    .w3-bar-item.w3-button.w3-hide-medium {
        display: block;
    }
}

@media (min-width: 600px) and (max-width: 800px) {
    .w3-bar-item.w3-button {
        display: block;
        text-align: left;
    }

    .w3-bar-item.w3-button.w3-hide-small {
        display: block;
    }

    .w3-bar-item.w3-button.w3-hide-medium {
        display: none;
    }
}

@media (min-width: 800px) {
    .w3-bar-item.w3-button.w3-hide-small {
        display: inline-block;
    }

    .w3-bar-item.w3-button.w3-hide-medium {
        display: none;
    }
}
.community-link {
    color: white;
    position: relative;
    /* relative container for the badge */
}

.message-badge {
    display: none;
    /* toggle with JS */
    position: absolute;
    top: 2px;
    right: 2px;
    background: red;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    padding: 2px 5px;
    line-height: 1;
    min-width: 14px;
    text-align: center;
}