/*
 * CSS for the Menu Button (Top Right)
 */

#menu-button {
    position: fixed;
    top: 9px;
    /* Align vertically with logo bar items */
    right: 16px;
    width: 32px;
    height: 32px;
    z-index: 3001;
    /* Must be at the very top (above logo bar 3000) to always be clickable */
    cursor: pointer;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}

#menu-button:hover {
    transform: scale(1.1);
}

#menu-button .material-symbols-outlined {
    color: white;
    font-size: 28px;
    /* Slightly larger icon */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    /* Drop shadow so it is visible over map or light backgrounds */
    transition: opacity 0.2s, transform 0.2s;
    position: absolute;
    /* Stack icons for crossfade */
}

/* Active icon swap logic (triggered when menu is open) */
#menu-button .icon-hover {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

#menu-button.active .icon-default {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

#menu-button.active .icon-hover {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Hide on desktop */
@media screen and (min-width: 769px) {
    #menu-button {
        display: none !important;
    }
}