.MenuBar {
    /*left align the toggle*/
    justify-content: flex-start;
}

.MenuBar .toggle {
    /*is inside flex container*/
    display:initial;
}

/*hide the menu component by default*/
.MenuBar > .ItemList {
    display: none;
}

/*hamburger menu is open - have class .normal have attribute open */
.MenuBar[open] > .ItemList {
    display: flex;

    position: absolute;

    /*center on viewport*/
    left: 50%;
    transform: translateX(-50%);

    /*below hamburger menu*/
    top: calc(100%);

    flex-direction: column;
    align-items: flex-start;

    /*!*/
    /*viewport width*/
    width: calc(100vw);
    height: auto;

    box-shadow: 0 0.2em 0.2em 0 rgba(0, 0, 0, 0.8);
    /*border-bottom:1px solid black;*/
    /*border-top:1px solid black;*/
}

.MenuBar[open] .ItemList .Item {

    align-items:flex-start;
    align-self: stretch;
    justify-content: flex-start;

    flex-direction:column;
    flex-wrap:wrap;
}

.MenuBar[open] .ItemList .Item[have_submenu="1"] {
    padding-bottom:0;
    padding-right:0;

}

/*only active items' submenu is visible*/
.MenuBar[open] .Item[active="1"] > .Submenu {

    position: relative;
    background-color: inherit;
    border: none;

    display:flex;
    flex-direction:column;
    align-items: flex-start;
    align-self:stretch;

    padding:0;
    padding-left:0.5em;

    /*margin-top:0.5em;*/
}
.MenuBar[open] .Item[active="1"] > .Submenu > .Item {
    padding-left:0em;
    color:white;
}
.MenuBar[open] .Item[active="1"] > .Submenu {
    margin-top:0.5em;
}
/*.MenuBar[open] .Item[active="1"] > .Submenu .Item:first-of-type {*/
/*    padding-top:1.5em;*/
/*}*/
.MenuBar[open] .Item {
    color: black;
    /*border-top: 1px dotted gray;*/
}
.MenuBar[open] .Item:first-of-type {
    border-top: none;
}