/* stylesheet for mobile navigation hamburger menu */

input, textarea {
  -webkit-appearance: none;
  -webkit-border-radius: 0;
}

.showRightPush {
    width: 40px;
    height: 30px;
    margin: 0 auto;
    border: none;
    background: url(../images/navigation/hamburgerMenu.svg);
    background-repeat: no-repeat;
    color: #fff;
    display: block;
    cursor: pointer;
    /*margin: 10px 0;*/
    font-size: 0.8em;
    z-index:999;
}
#buttonBox {
    display:none;
    position: absolute;
    top: 22px;
    right: 6%;   
    z-index: 1001;
    -moz-transition: 200ms ease-out, margin 200ms ease-out;
    transition: 200ms ease-out, margin 200ms ease-out;
}

.overlay-hugeinc {
    display: none;
}


/* Overlay style */
.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .95);
    z-index:1001;
}



/* Overlay closing cross */
.overlay .overlay-close {
    width: 40px;
    height: 40px;
    position: absolute;
    right: 6%;
    top: 20px;
    overflow: hidden;
    border: none;
    background: url(../images/navigation/Xout.svg) no-repeat center center;
    text-indent: 200%;
    color: transparent;
    outline: none;
    z-index: 100;
    cursor:pointer;
}
/* Menu style */
.overlay nav {
    text-align: center;
    position: relative;
    top: 40%;
    height: 50%;
    font-size: 36px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}
.overlay ul {
    list-style: none;
    padding: 0;
    width: 100%;
    margin: 0 auto;
    display: inline-block;
    height: 100%;
    position: relative;
}
.overlay ul li {
    display: flex;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    height: 20%;
    height: calc(100% / 5);
    min-height: 54px;
    border-top: 1px solid #EBEBEC;
    border-bottom: 1px solid #EBEBEC;
}

.overlay ul li:first-child {
    border-top: 2px solid #EBEBEC;
}
.overlay ul li:last-child {
    border-bottom: 2px solid #EBEBEC;
}

.overlay ul li a {
    font-weight: 300;
    height: 100%;
    width: 100%;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
    text-transform: uppercase;
    font-family: "lato",sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 26px;
}

/*.mobileNavLink:hover,
.mobileNavLink:focus {
    color: white;
    background: linear-gradient(117.77deg, rgba(125, 207, 237, 1) 0.09%, rgba(0, 138, 227, 1) 100%);
}*/
/* Effects */
.overlay-hugeinc {
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity 0.5s, visibility 0s 0.5s;
    transition: opacity 0.5s, visibility 0s 0.5s;
}
.overlay-hugeinc.open {
    opacity: 1;
    visibility: visible;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
}
.overlay-hugeinc nav {
    -webkit-perspective: 1200px;
    perspective: 1200px;
}
.overlay-hugeinc nav ul {
    opacity: 0.4;
    -webkit-transform: translateY(-25%) rotateX(35deg);
    transform: translateY(-25%) rotateX(35deg);
    -webkit-transition: -webkit-transform 0.5s, opacity 0.5s;
    transition: transform 0.5s, opacity 0.5s;
}
.overlay-hugeinc.open nav ul {
    opacity: 1;
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
}
.overlay-hugeinc.close nav ul {
    -webkit-transform: translateY(25%) rotateX(-35deg);
    transform: translateY(25%) rotateX(-35deg);
}
#mobileNavSocial {
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 4%;
}





@media screen and (max-height: 30.5em) {
    .overlay nav {
        height: 40%;
        font-size: 26px;
    }
    .overlay ul li {
        min-height: 28%;
    }
}

@media (max-width: 1199px) {
    #buttonBox {
        display:inline-block;
        top: 35px;

    } 
    .overlay-hugeinc {
        display: block;
    }
}

@media (max-width: 767px) {
    #buttonBox {
        top: 30px;
    }
}

@media (max-width: 479px) {
    .overlay ul li a {
        font-size: 24px;
    }
}