
/*
    BASIC STYLING SLIDING MENU
*/
.mod_navigation ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.mod_navigation .level_1 {
    overflow: hidden;
}

.mod_navigation li,
.burgermenu {
    padding: 5px 10px;
    background-color: rgba(255,255,255,0.8);
}
    .mod_navigation .level_2 li {
        background-color: transparent;
    }


.mod_navigation a {
    display: inline;
    margin-right: 10px;
    text-decoration: none;
    color: dimgrey;
    transition: 0.5s;
}

.mod_navigation strong {
    margin-right: 10px;
    font-weight: normal;
}


/* Style the buttons that are used to open and close the accordion panel */
.mod_navigation .level_1 > li {
    cursor: pointer;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 1.2s;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.mod_navigation .--submenu_opened,
.mod_navigation .level_1 > li:hover,
.mod_navigation li.trail,
.mod_navigation .level_1 > .active {
    background-color: rgba(255, 170, 0,0.7);
}

/* Style the accordion panel. Note: hidden by default */
.mod_navigation .level_2 {
    max-height: 0; /* JS-related */
    overflow: hidden; /* JS-related */
    transition: max-height 0.2s ease-out; /* JS-related */
}



/*
    STYLING MORE
*/

.mod_navigation {
    position: fixed;
    top: 20px;
    left: 20px;
    overflow: visible;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.mod_navigation a.trail,
.mod_navigation .active,
.mod_navigation a.active > span {
    color: #000;
}

.mod_navigation .level_2 a,
.mod_navigation .--submenu_opened a.submenu,
.mod_navigation .--submenu_opened strong.submenu,
.mod_navigation .--submenu_opened .forward {
    color: #fff;
}

.mod_navigation a:hover,
.mod_navigation .level_2 li:hover a {
    color: #000;
}

.mod_navigation strong.submenu:after,
.mod_navigation a.submenu:after {
    content: '\002B'; /* Unicode character for "plus" sign (+) */
    position: relative;
    top: -1px;
    font-size: 15px;
    float: right;
}

.mod_navigation .--submenu_opened strong.submenu:after,
.mod_navigation .--submenu_opened a.submenu:after {
    content: "\2212"; /* Unicode character for "minus" sign (-) */
}




/*
    BURGERMENU MOBILE
*/

.burgermenu {
    display: none;
    cursor: pointer;
    text-align: right;
    overflow: hidden;
}

.burgermenu h1 {
    display: block;
    float: left;
    margin-bottom: 0;
    font-size: 15px;
    color: dimgrey;
}

.barwrapper {
    display: block;
    float: right;
}

.bar1, .bar2, .bar3 {
    width: 20px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.4s;
}
.bar1 {
    margin-top: 1px;
}
.bar3 {
    margin-bottom: 0;
}


/* Rotate first bar */
.--burgerclose .bar1 {
    -webkit-transform: rotate(-45deg) translate(-2px, 5px) ;
    transform: rotate(-45deg) translate(-2px, 5px) ;
}

/* Fade out the second bar */
.--burgerclose .bar2 {
    opacity: 0;
}

/* Rotate last bar */
.--burgerclose .bar3 {
    -webkit-transform: rotate(45deg) translate(-5px, -8px) ;
    transform: rotate(45deg) translate(-5px, -8px) ;
}






/*
    MEDIAQUERIES
*/

@media only screen and (max-width: 767px) {

    .burgermenu {
        display: block;
    }

    .mod_navigation {
        top: 0;
        left: 0;
        width: 100%;
    }

    .mod_navigation .level_1 {
        height: 0;
        opacity: 0;
        transition: 2s;
    }

    .mod_navigation .level_1.--mobilenavi_visible {
        height: auto;
        opacity: 1;
    }
}