/* Horizontal menu - default */
:root {
    --menu-bg-color: transparent;
    --menu1-color: white;
    --menu1-highlight-color: #f40a90;;
    --menu1-highlight-bg-color: transparent;
    --menu1-bg-color: transparent;
    --menu1-selected-bg-color: transparent;
    --menu1-selected-color: #a81569;
    --menu2-bg-color: #2c2b2a;
    --menu2-bg-image: linear-gradient(#e9e9e9, #aaaaaa);
    --menu2-color: white;
    --menu2-highlight-bg-color: #55616f;
    --menu2-highlight-color: white;
    --menu2-border: 1px solid rgb(150,150,150,0.15);
    --touchmenu-bg-color: hsla(0, 0%, 80%, 0.95);
    --touchmenu-color: black;
    --touchmenu-border: 1px solid black;
    --touchmenu-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.26);
    --touchmenu2-bg-color: #1f2026;
    --touchmenu2-color: #efefef;
    --touchmenu2-border: 1px solid white;
}

/* Mobile menu switches */
#wbgmainmenuswitch, .wbgmenuswitch {
    display: none;
}

/* Menu 1 */
.horizontal-nav {
    display: inline-block;
    position: relative;
    width: 70%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}
.boxedfhd .horizontal-nav {
    max-width:1920px;
}
.boxedhd .horizontal-nav {
    max-width:1300px;
}

/* 1st level container */
.horizontal-nav > ul {
    display: flex;
    position: relative;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    width: auto;
    height: 3.75rem;
    margin: 0;
    padding-right: 10%;
    list-style-position: outside;
    list-style-type: none;
    list-style-image: none;
    font-size: 100%;
    line-height: 1.5;
    text-align: right;
    text-transform: uppercase;
    background-color: var(--menu-bg-color);
}
/* First level menu item containers */
.horizontal-nav .menulevel1 {
    display: inline-block;
    position: relative;
    flex-grow: 0;
    flex-shrink: 0;
    height: 1.8rem;
    margin:0 1rem 0 0;
    padding: 0 0.6rem;
    font-weight: normal;
    font-size: 1.3rem;
    line-height: 1.8rem;
    text-align: left;
    background-color: var(--menu1-bg-color);
}
.horizontal-nav .menulevel1:last-child {
    border-right: none;
}
.horizontal-nav .menulevel1:hover, .horizontal-nav .menulevel1:focus {
    background-color: var(--menu1-highlight-bg-color);
    color: var(--menu1-highlight-color);
}
.horizontal-nav .menulevel1:hover .menulevela1, .horizontal-nav .menulevel1:focus .menulevela1 {
    color: var(--menu1-highlight-color);
}
.horizontal-nav .menulevel1.current {
    background-color: var(--menu1-selected-bg-color);
}
/* First level menu items */
.horizontal-nav .menulevela1 {
    margin: 0;
    padding: 0.25rem 1rem 0.25rem 0;
    color: var(--menu1-color);
    font-weight: bold;
    font-size: 80%;
    text-decoration: none;
    transition: all 0.3s ease 0s;
}
.horizontal-nav .menulevel1.current .menulevela1 {
    color: var(--menu1-selected-color);
}
.horizontal-nav .menulevela1.haschild::after {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 70%;
    content: "\25BC";
}


/* 2nd level menu container */
.horizontal-nav .menulevel1 > ul {
    display: block;
    opacity: 0;
    z-index: 1000;
    position: absolute;
    top: 1.8rem;
    left: -2rem;
    width: 14em;
    max-height: 0;
    padding: 0;
    border-right:var(--menu2-border);
    border-bottom: var(--menu2-border);
    border-left:var(--menu2-border);;
    overflow: hidden;
    list-style-position: outside;
    list-style-type: none;
    list-style-image: none;
    font-size: 80%;
    background-color: var(--menu2-bg-color);
    box-shadow: 2px 2px 0 rgba(150,150,150,0.15);
    transition: all 0.3s ease 0s;
    transform: scaleY(0);
    transform-origin: 0 0 0;
}
/* Effect */
.horizontal-nav .menulevel1:hover > ul,
.horizontal-nav .menulevel1:focus > ul {
    opacity: 1;
    max-height: initial;
    box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.75);
    transition: all 0.3s ease 0s;
    transform: scaleY(1);
    transform-origin: 0 0 0;
}
.horizontal-nav .menulevel2 {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 0.3rem;
    padding: 0.5rem;
    border-bottom: var(--menu2-border);
    color: var(--menu2-color);
    line-height: 1.1;
    transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out;
}
.horizontal-nav .menulevel2:first-child {
    padding-top: 0.25rem;
}
.horizontal-nav .menulevel2:last-child {
    border-bottom: none;
}
.horizontal-nav .menulevel2:hover {
    background-color: var(--menu2-highlight-bg-color);
    transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out;
}
.horizontal-nav .menulevela2 {
    display: block;
    padding: 0 1rem;
    color: var(--menu2-color);
    font-size: 85%;
    line-height:2;
    text-align:center;
    text-decoration: none;
}
.horizontal-nav .menulevel2:hover .menulevela2 {
    color:var(--menu2-highlight-color);
}
/* Responsive menu for touch devices */
body.touch .horizontal-nav {
    z-index: 2000;
    position: fixed;
    top: 0;
    left:-100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
}

body.touch #wbgmainmenuswitch {
    display: block;
    z-index: 2001;
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border: var(--touchmenu-border);
    border-radius: 0.5rem;
    color: var(--touchmenu-color);
    font-size: 2rem;
    line-height: 1;
    text-align: center;
    background-color: var(--touchmenu-bg-color);
    box-shadow: var(--touchmenu-shadow);
}

#wbgmainmenuswitch::after {
    content: "\2261";
}

#wbgmenu_0:checked + label::after {
    margin-top: -10px;
    content: "\2716";
}

body.touch .horizontal-nav {
    display: block;
    z-index: 2000;
    position: fixed;
    top: 0;
    left: -100vw;
    height: 100vh;
    padding: 2rem 0 0 0;
    overflow-y: auto;
    color: var(--touchmenu-color);
    background-color: var(--touchmenu-bg-color);
    transition: transform 0.2s ease-out;
    transform: translateX(0);
    will-change: transform;
}

body.touch .horizontal-nav>ul {
    text-align: left;
}

#wbgmenu_0:checked ~ nav {
    transition: transform 0.2s ease-in;
    transform: translateX(100vw);
}

body.touch .horizontal-nav .menulevel1 {
    display: block;
    width:100%;
    height:auto;
    min-height: 2.5em;
    padding: 0;
    border-bottom: var(--touchmenu2-border);
    line-height: 1.2;
    text-align: left;
    background-color: var(--touchmenu2-bg-color);
}

body.touch .horizontal-nav .menulevela1 {
    display: inline-block;
    padding: 1rem 0 1rem 1rem;
    color: var(--touchmenu2-color);
    text-align:left;
}

body.touch .horizontal-nav .menulevela1.haschild::after {
    content: "";
}

body.touch .horizontal-nav .menulevel1 > label {
    display: inline-block;
    margin: 0.7rem 0 0.7rem 1rem;
    padding: 0.3rem 0.5rem;
    border: var(--touchmenu2-border);
    border-radius: 0.25rem;
    color: var(--touchmenu2-color);
    background-color: var(--touchmenu2-bg-color);
}

body.touch .horizontal-nav .menulevel1 label::after {
    content: "\25bc";
}

body.touch .horizontal-nav .menulevel1 input:checked + label::after {
    content: "\25b2";
}

body.touch .horizontal-nav .menulevel1 > ul {
    display: block;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
}

body.touch .horizontal-nav .menulevel1 input ~ ul {
    max-height: 0;
    background-color: var(--touchmenu2-bg-color);
    transition: height 0.3s ease;
}

body.touch .horizontal-nav .menulevel1 input:checked ~ ul {
    height: 100%;
    max-height: initial;
    transition: height 0.3s ease;
    transform: initial;
    -webkit-transform: initial;
}

body.touch .horizontal-nav .menulevel2 {
    padding: 0.8rem 0 0.8rem 2rem;
    border-bottom: var(--touchmenu2-border);
    text-align:left;
}

body.touch .horizontal-nav .menulevel2:last-child {
    border-bottom: none;
}
body.touch .horizontal-nav .menulevela2 {
    font-size:110%;
    color: var(--touchmenu2-color);
    text-align: left;
}
/* Responsive definitions for portrait view */
@media screen and (orientation: portrait) and (max-width: 599px) {
    .horizontal-nav {
        position: relative;
        right: 0;
        width:100%;
        height:100%;
        margin:0;
    }

    .horizontal-nav > ul {
        height: auto;
        padding-right: 0;
    }
}
@media screen and (min-width: 600px) and (max-width: 1024px),
    screen and (orientation: landscape) and (max-width: 1024px) {
    .horizontal-nav > ul {
        height: auto;
        padding-right: 0;
    }
}