﻿#navmenubar-wrapper {
    display: block;
    width: 100%;
    padding: 5vh 0 3px 1vw;
    border-bottom: 0.5rem solid slateblue;
}

#menubar-root, #menubar-root ul, #menubar-root li {
    list-style: none;
}

#menubar-root {
    display: inline-block;
    margin: 0;
    padding: 0 0 3px 1px;
    box-sizing: border-box;
    font-size: 1px;
    white-space: nowrap;
}

    #menubar-root > li {
        display: inline-block;
        position: relative;
        margin: 0;
        padding: 0;
        line-height: 2.7;
    }

 .bar-btn {
    display: inline-block;
    box-sizing: border-box;
    margin: 0;
    padding: 0.2rem 1vw 0 1vw;
    border: 0.3rem solid darkgray;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 600;
    vertical-align:text-bottom;
    background-color: #E0E0E0;
}

    .bar-btn:focus, .bar-btn:hover {
        border-color: darkslateblue;
        background-color: #FACA00;
    }

.bar-btn[aria-expanded="true"] {
    border: inset white;
    color: white;
    background-color: navy;
}

 .bar-btn[aria-expanded="false"] ~ .popup-menu {
    display: none;
}

.bar-btn[aria-expanded] span {
    font-size: 50%;
    font-weight: 400;
}

a.bar-btn {
    text-decoration: none;
    color: blue;
}

    a.bar-btn:focus {
        text-decoration: underline;
    }

 .popup-menu {
    position: absolute;
    top: 100%;
    left: 1px;
        z-index: 5;
    display: inline-block;
    min-width: 10rem;
    margin: 0;
    padding: 0;
    border: 5px solid gray;
    box-shadow: 4px 4px 4px 14px rgb(96, 96, 205, .6);
}

.popup-menu > li {
    margin: 0;
    padding: 0;
    border-bottom: 3px solid gray;
}

.popup-menu a {
    display: block;
    margin: 0;
    padding: 0.6rem 0.3rem 0.5rem 0.3rem;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 2;
    color: blue;
    background-color: #E0E0E0;
    text-decoration: none;
}

    .popup-menu a:hover, .popup-menu a:focus {
        background-color: #EFEA00;
        text-decoration: underline;
    }

 a[aria-disabled="true"] {
    color: #1F1F1F !important; /* Foreground-background contrast here is 7.5. Good accessibility.*/
    background-color: #AFAFAF !important;
    cursor: none !important;
}
