/**
 * Header
 */

header {
    position: fixed;
    z-index: 9999;
    background-color: var(--headerColor);
    box-shadow: 0 0 10px var(--transparentBackgroundColor);
}

.headerWrapper {
    width: 100%;
    max-width: var(--layoutWidthMax);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    
    padding: var(--headerPadding);
}

.headerWrapper h1 {
    flex: 1;
    font-size: var(--logoHeight);
    letter-spacing: var(--logoLetterSpacing);
}

.headerWrapper h1 a {
    display: flex;
    color: var(--accentColor);
    flex-direction: row;
    align-items: center;
    font-weight: var(--fontWeightBold);
}

.headerWrapper h1 a span {
    padding-bottom: calc(var(--logoHeight) / 10);
}

.headerWrapper h1 img {
    width: auto;
    height: var(--logoHeight);
    margin-right: var(--logoInnerMargin);
}

header .menu {
    width: 100%;
    flex: 1;
    z-index: 3000;
}

header .menuWrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
}

.menuClose {
    display: none;
}

.headerWrapper nav {
    margin-right: 20px;
}

.headerWrapper nav ul {
    display: flex;
}

.headerWrapper nav li:not(:first-child) {
    margin-left: 10px;
}

.headerWrapper nav li:not(:last-child) {
    margin-right: 10px;
}

.headerWrapper nav .menuItem {
    color: var(--textColorLighter);
    font-weight: var(--fontWeightNormal);
    position: relative;
}

.developersBody .headerWrapper nav .menuItem {
    color: var(--whiteColor);
}

.headerWrapper nav .menuItem .submenu h3 {
    font-weight: 425;
    font-size: 16px;
    margin-bottom: 10px;
}

.headerWrapper nav .menuItem .submenu a {
    color: var(--textColorLighter) !important;
}

.headerWrapper nav .submenu {
    opacity: 0;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    padding-top: 15px;
    /*
    width: 1000%;
    max-width: 300px;
    */
    width: 370px;
    transition: opacity 0.2s ease-in-out;  
    z-index: 1000;
}

.headerWrapper .menuItem:hover .submenu {
    visibility: visible;
    opacity: 1;
}

.headerWrapper .submenu ul {
    background-color: var(--whiteColor);
    padding: 15px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5), 0px 0px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    z-index: 1000;
    position: relative;
}

/*
.headerWrapper nav .submenu ul:before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: rotate(45deg) translate(-50%, -50%);
    transform-origin: center center;
    width: 20px;
    height: 20px;
    background-color: var(--whiteColor);
}
*/

.headerWrapper nav .submenu li a {
    display: flex;
    flex-direction: row;
    font-size: 16px;
    padding: 5px;
}

.headerWrapper nav .submenu li a:hover {
    background-color: #fafafa;
}

.headerWrapper nav .submenu li img {
    margin-right: 10px;
}

.headerWrapper nav .submenu li h3 {
    margin-bottom: 5px;
    color: var(--textColorAlways);
    font-weight: 425;
}

.headerWrapper nav .submenu p {
    font-weight: 300;
    color: var(--textColorLightest);
}

.linkVerso {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #00ae99;
    color: var(--whiteColor);
    font-size: 16px;
    font-weight: var(--fontWeightBold);
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.1s ease-in-out;
    position: relative;
}

.linkVerso:hover {
    background-color: #018a79;
}

.linkVerso svg {
    margin-left: 5px;
}

.menuOpenButton {
    display: none;
    height: 23px;
}

@media screen and (max-width: 600px) {
    .closedMenu {
        display: none;
        opacity: 0;
    }

    .menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        transition: opacity 0.2s ease-in-out;
        opacity: 1;
        padding: var(--gutterWidth);
    }

    header .menuWrapper {
        width: 100%;
        background-color: var(--whiteColor);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: var(--gutterWidth);
        box-shadow: var(--menuShadow);
        border-radius: var(--gutterWidth);
        position: relative;
    }

    .menuClose {
        display: flex;
        position: absolute;
        top: 0;
        right: 0;
        padding: 0;
        margin: 0;
        background: none;
        border: none;
    }

    .headerWrapper nav {
        width: 100%;
    }

    .headerWrapper nav ul {
        flex-direction: column;
    }

    .headerWrapper nav li:not(:last-child) {
        margin-right: 0;
    }
    .headerWrapper nav li:not(:first-child) {
        margin-left: 0;
    }

    .headerWrapper nav li.menuItem,
    .headerWrapper nav a.menuItem {
        padding-bottom: var(--gutterWidth);
        margin-bottom: var(--gutterWidth);
        border-bottom: 1px dashed #d0d0d0;
        width: 100%;
    }

    .headerWrapper nav .submenu {
        position: relative;
        visibility: visible;
        opacity: 1;
        width: 100%;
        max-width: 100%;
        transform: none;
        bottom: auto;
        left: auto;
        padding-top: 0;
    }

    .headerWrapper nav .submenu ul {
        box-shadow: none;
        padding: 0;
    }

    .headerWrapper nav .submenu ul:before {
        content: '';
        display: none;
    }

    .headerWrapper nav .submenu ul p {
        display: none;
    }

    .menuOpenButton {
        display: inline-block;
        width: 20px;
        cursor: pointer;
        padding: 0;
        background: none;
        border: none;
    }

    .menuOpenButton img {
        width: 100%;
    }


    .menuItem > span, a.menuItem {
        font-weight: var(--fontWeightBold) !important;
        color: var(--textColorGray) !important;
        text-transform: uppercase;
        font-size: 14px;
        margin-bottom: var(--gutterWidth);
        display: inline-block;
    }

    .headerWrapper nav .menuItem .submenu h3 {
        text-align: center;
    }

    .headerWrapper nav .menuItem .submenu h3 {
        margin: 0;
        font-size: 14px;
    }

    .linkVerso {
        margin: 0 auto;
    }
}

.mainNavigation {
    display: none;
    width: 100%;
    height: 60px;
    overflow-x: scroll;
    border-top: 1px solid var(--menuBorderColor);
    border-bottom: 1px solid var(--menuBorderColor);
}

@media (max-width: 600px) {
    .mainNavigation {
        display: block;
    }   
}

.mainNavigation ul {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.mainNavigation li {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}

.mainNavigation li a {
    padding: 16px 10px;
    color: var(--textColor);
    text-transform: uppercase;
    letter-spacing: -0.6px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.mainNavigation li a:first-child {
    padding: 16px;
}

.submenuArrow {
    transform-origin: center;
    transition: transform 0.1s ease-in-out;
    margin-left: 5px;
}

.submenuActive {
    background-color: var(--menuBorderColor);
}

.submenuActive .submenuArrow {
    transform: rotate(-180deg);
}

.submenu_content {
    position: absolute;
    top: 136px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--menuBorderColor);
    overflow-y: scroll;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transition: height 0.1s ease-in-out;
}

.submenu_content ul {
    height: auto;
}

.submenu_content img {
    margin-right: 10px;
}

.submenu_content h3,
.submenu_content p {
    text-transform: none;
    font-size: 16px;
}

.submenu_content h3 {
    font-weight: var(--fontWeightSemiBold);
    margin-bottom: 10px;
}

.submenuActive .submenu_content {
    height: calc(100vh - 136px);
}

.html_submenu_active {
    height: 100vh;
    overflow-y: hidden;
}