.main-header {
    background: transparent;
    width: 100%;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    transition: 0.4s ease-in-out;
    -webkit-transition: 0.4s ease-in-out;
    -moz-transition: 0.4s ease-in-out;
    -ms-transition: 0.4s ease-in-out;
    -o-transition: 0.4s ease-in-out;
    z-index: 9999;
}

.headBg {
    background: #2e2e2e;
    background-image: url(../img/krijtbord-mathmind.jpg);
    box-shadow: 0 4px 10px -10px rgba(0, 0, 0, 0.6);
}

.header-container {
    max-width: 136.8rem;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    padding: 2.7rem 3.6rem;
    vertical-align: middle;
    transition: padding 0.3s linear;
}

.header-logo .logo {
    height: 9rem;
    line-height: 9rem;
    transition: height 0.3s linear, font-size 0.3s linear;
    -webkit-transition: height 0.3s linear, font-size 0.3s linear;
    -moz-transition: height 0.3s linear, font-size 0.3s linear;
    -ms-transition: height 0.3s linear, font-size 0.3s linear;
    -o-transition: height 0.3s linear, font-size 0.3s linear;
    text-decoration: none;
    display: block;
}

.navbar {
    width: 100%;
    padding-right: 3.6rem;
}

.header-logo .logo img {
    width: auto;
    height: 100%;
    display: block;
    margin: auto;
}

.main-menu {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.main-menu .menu-link {
    text-decoration: none;
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    height: 100%;
    line-height: 1em;
    padding: 0 1.5rem;
    margin: 0 0.5rem;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    cursor: pointer;
}

.main-menu .menu-link:hover,
.main-menu .menu-link:focus,
.main-menu .menu-link.active {
    color: #ff6d00 !important;
}

.main-menu .menu-item:first-child .menu-link {
    padding-left: 0;
    margin-left: 0;
}

.main-menu .menu-item:last-child .menu-link {
    padding-right: 0;
    margin-right: 0;
}


.hamburger-menu {
    display: none;
}

.contact-dropdown {
    position: relative;
}

.contact-dropdown .contactSubmenu {
    position: absolute;
    top: 100%;
    min-width: 15rem;
    display: block;
    flex-direction: row;
    border: 2px solid #ff6d00;
    background-color: #ffffff;
    padding: 0;
    height: auto;
    overflow: hidden;
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    -ms-border-radius: 1rem;
    -o-border-radius: 1rem;
}

.contact-dropdown .contactSubmenu li {
    background-color: #ffffff;
    padding: 0.8rem 1.5rem;
    margin-right: 0;
    border-bottom: 1px solid #ff6d00;
    text-align: center;
}

.contact-dropdown .contactSubmenu li a {
    display: block;
}

.contact-dropdown .contactSubmenu li:last-child {
    border-bottom: 0;
}

.contact-dropdown .show-submenu#contactSubmenu {

    visibility: visible;
    height: auto;
}

.contact-dropdown #contactSubmenu {
    visibility: hidden;
    height: 0;
}

.contact-dropdown:hover {
    padding-bottom: 1rem;
}

.contact-dropdown:hover #contactSubmenu {
    visibility: visible;
    height: auto;
}

#email-button {
    background: transparent;
    background-size: auto 4rem;
    background-image: url(../img/email.png);
    background-repeat: no-repeat;
    background-position: center;
    width: 4rem;
    height: 4rem;
    border: none;
    cursor: pointer;
}

#phone-button {
    background: transparent;
    background-size: contain;
    background-image: url(../img/phone.png);
    background-repeat: no-repeat;
    background-position: center;
    width: 4rem;
    height: 4rem;
    border: none;
    cursor: pointer;
}

#whatapp-button {
    background: transparent;
    background-size: contain;
    background-image: url(../img/whatsapp.png);
    background-repeat: no-repeat;
    background-position: center;
    width: 4rem;
    height: 4rem;
    border: none;
    cursor: pointer;
}

#linkedin-button {
    background: transparent;
    background-size: contain;
    background-image: url(../img/linkedIn.png);
    background-repeat: no-repeat;
    background-position: center;
    width: 4rem;
    height: 4rem;
    border: none;
    cursor: pointer;
}

#email-button:hover {
    background-image: url(../img/email_hover.png);
}

#phone-button:hover {
    background-image: url(../img/phone_hover.png);
}

#whatapp-button:hover {
    background-image: url(../img/whatsapp_hover.png);
}

#linkedin-button:hover {
    background-image: url(../img/linkedIn_hover.png);
}

@media (max-width:990px) {
    .main-header {
        background: #2e2e2e;
        background-image: url(../img/krijtbord-mathmind.jpg) !important;
        box-shadow: 0 4px 10px -10px rgba(0, 0, 0, 0.6) !important;
    }

    .header-container {
        width: 100%;
        padding: 3rem 3.6rem;
    }

    .header-logo {
        padding: 0 !important;
    }

    .header-logo .logo {
        height: 6rem !important;
    }

    .hamburger-menu {
        display: block;
        color: #ffffff;
    }

    .faBars {
        width: 4.5rem;
        height: 4.5rem;
        display: none;
        cursor: pointer;
    }

    .faClose {
        width: 4.5rem;
        height: 4.5rem;
        display: none;
        cursor: pointer;
    }

    .fadeFa {
        display: block;
        animation: fadeFa 500ms ease-in-out;
        -webkit-animation: fadeFa 500ms ease-in-out;
    }

    @keyframes fadeFa {
        0% {
            transform: scale(0);
            -webkit-transform: scale(0);
            -moz-transform: scale(0);
            -ms-transform: scale(0);
            -o-transform: scale(0);
        }

        100% {
            transform: scale(1);
            -webkit-transform: scale(1);
            -moz-transform: scale(1);
            -ms-transform: scale(1);
            -o-transform: scale(1);
        }
    }

    .navbar {
        position: absolute;
        width: 50%;
        padding-left: 5rem;
        top: 100%;
        left: 0;
        height: 100vh;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        background: #05271c;
        transform: translateX(-200%);
        -webkit-transform: translateX(-200%);
        -moz-transform: translateX(-200%);
        -ms-transform: translateX(-200%);
        -o-transform: translateX(-200%);
        transition: 0.5s ease-in-out;
        -webkit-transition: 0.5s ease-in-out;
        -moz-transition: 0.5s ease-in-out;
        -ms-transition: 0.5s ease-in-out;
        -o-transition: 0.5s ease-in-out;
    }

    .mobileNav {
        transform: translateX(0%);
        -webkit-transform: translateX(0%);
        -moz-transform: translateX(0%);
        -ms-transform: translateX(0%);
        -o-transform: translateX(0%);
    }

    .main-menu {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .main-menu .menu-item:first-child .menu-link {
        padding: 2rem 1.5rem;
        margin: 2rem 0.5rem
    }

    .main-menu .menu-item .menu-link {
        padding: 2rem 1.5rem;
        margin: 2rem 0.5rem;
        font-size: 1.9rem;
    }
}

@media (max-width:768px) {
    .navbar {
        position: absolute;
        width: 70%;
    }
}

@media (max-width:520px) {
    .navbar {
        position: absolute;
        width: 80%;
    }
}