/* MENU */
@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@-webkit-keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

#overlay {
    position: fixed; /* Sit on top of the page content */
    display: none; /* Hidden by default */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5); /* Black background with opacity */
    z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
    animation: fadeIn 0.25s;
}

#burger-button-desktop,
#menu-close-desktop:hover,
#burger-button:hover {
    cursor: pointer;
}

#burger-button-desktop,
#burger-button {
    margin-top: -34px;
}

.menu-social-media-icon-size {
    /* max-width: 100%; */
    /* max-height: 100%; */
    /* min-width: 80%; */
    /* min-height: 80%; */
}

.menu-level {
    opacity:0;
    width: 25%;
    max-height: 100%;
    min-height: 100%;
    overflow: auto;
    top: 0px;
    display: none;
    padding-left: 3rem;
    padding-right: 3rem;

}

.first-level {
    background-color: #00346d;
    right: 0;
}

.second-level {
    background-color: #004f9b;
    right: 0;
}

.third-level {
    background-color: #006fc3;
    right: 0;
}

.first-level.second-level-open {
    right: 25%;
    background-color: rgb(0,52,109,0.85);
}

.first-level.second-level-open>ul>li{
    opacity: 0.8;
}

.first-level.second-level-open>#menu-social-media-icons{
    opacity: 0.8;
}

.first-level.third-level-open {
    right: 50%;
    background-color: rgb(0,52,109,0.75);

}

.second-level.third-level-open {
    right: 25%;
    background-color: rgb(0,79,155,0.85);
}

.second-level.third-level-open>ul>li {
    opacity: 0.8;
}

.menu-visible {
    display: block;
    position: fixed;
    z-index: 1000;
    opacity: 1;
    padding-top: 140px;
    animation: fadeIn 0.25s;
}

#main-nav-desktop .menu-selected {
    color: #00bcef;
}

#main-nav-desktop ul {
    padding-left: 0px;
}

.menu {
    position: fixed;
    z-index: 100;
    width: 100%;
    top: 0;
    height: 138px
}

#menu-close-desktop {
    right: 3.5rem;
    position: fixed;
    margin-top: -6rem;
    z-index: 10000;
}

.menu-lock-icon {
    background-image: url("../Images/schloss.png");
    background-repeat: no-repeat;
    background-position: 100%;
}

#main-nav-desktop li.menu-has-sub-icon.menu-has-sub-clicked-icon {
    background-image: url("../Images/arrow_right_blue.png");
    background-position: 100%;
}

.menu-is-locked {
    color: #b4c2c8 !important;
}

#menu-bottom {
    margin-top: 10rem;
}

#menu-middle {
    margin-top: 10rem;
}

@media only screen and (max-height: 1200px){
    .menu-level {
        padding-top: 120px;
    }
    #menu-close-desktop {
        margin-top: -5rem;
    }
    #menu-devider {
        margin-top: 0rem !important;
    }
    #menu-social-media-icons {
        margin-top: 2rem !important;
    }
    #main-nav-desktop h5 {
        margin-bottom: 2rem;
    }
    #menu-middle {
        margin-top: 8rem;
    }
    #menu-bottom {
        margin-top: 8rem;
    }
}

@media only screen and (max-height: 1070px){
    .menu-level {
        padding-top: 100px;
    }
    #menu-close-desktop {
        margin-top: -4.5rem;
    }
    #main-nav-desktop h5 {
        margin-bottom: 1.5rem;
    }
    #menu-middle {
        margin-top: 5rem;
    }
    #menu-bottom {
        margin-top: 5rem;
    }
}

@media only screen and (max-height: 880px){
    #menu-divider {
        margin-top: 0rem !important;
    }
    #menu-social-media-icons {
        margin-top: 1rem !important;
    }
    #main-nav-desktop h5 {
        margin-bottom: .5rem;
    }
}

@media only screen and (max-width: 1450px){
    .menu-level {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    #menu-close-desktop {
        right: 2rem;
    }
}

@media only screen and (max-width: 1250px){
    .menu-level {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    #menu-close-desktop {
        right: 1rem;
    }
}

/* #main-nav-desktop{ */
/*     visibility: visible; */
/* } */
/* #main-nav{ */
/*     visibility: hidden; */
/* } */

/* @media only screen and (max-width: 1300px){ */
/*     #main-nav-desktop{ */
/*         visibility: hidden; */
/*     } */
/*     #main-nav{ */
/*         visibility: visible; */
/*     } */
/* } */

.nav-item-link a{
    color: white;
}
#burger-button{
    margin-top: -2.1rem;
}
.menu {
    position: fixed;
    z-index: 100;
    width: 100%;
    top: 0;
}
.nav-title{
    color: #00aae6 !important;
}
.nav-container{
    background: #00346d !important;
}
li{
    margin-bottom: 0;
}
.pb-6{
    padding-bottom: 4rem;
}

.hc-offcanvas-nav ul.bottom-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    border-top: 1px solid rgba(0,0,0,0.15);
}
.hc-offcanvas-nav ul.bottom-nav li {
    flex: auto;
}
/*Bootstrap fix for ::before ::after elements for Menu Lib*/
.nav-close-button ::before, ::after{
    box-sizing: unset;
}

.hc-offcanvas-nav .nav-item-link {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.1;
    font-family: my-montserrat, Verdana, sans-serif;
}

.menu-scrollbar {
    scrollbar-color: #2f649a #00346d;
    scrollbar-width: thin;
    display: none;
}

.menu-middle {
    margin-top: 11.5rem;
}

.menu-bottom {
    margin-top: 11.5rem;
}

@media only screen and (max-height: 1200px){
    .menu-middle {
        margin-top: 7.5rem;
    }
    .menu-bottom {
        margin-top: 7.5rem;
    }
}

@media only screen and (max-height: 1070px){
    .menu-middle {
        margin-top: 4rem;
    }
    .menu-bottom {
        margin-top: 4rem;
    }
}

.nav-content::-webkit-scrollbar {
    width: 0.35em;
}

.nav-content::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.nav-content::-webkit-scrollbar-thumb {
    background-color: #2f649a;
    outline: 1px solid #00346d;
}
