/*Common Menu Design */

#globalMenu {
    background-color: #efefef;
    height: 90px;
    margin-top: -15px;
    z-index: -5;
}

#globalMenu li {
    margin-top: 7px;
    list-style: none;
    float: left;
    -webkit-filter: drop-shadow(2px 2px 2px #ACABAB);
    filter: drop-shadow(2px 2px 2px #ACABAB);
}

/*++++++++++++++HUMBARGER MENU DESIGN START+++++++++++++++++++++++++*/

#menuToggle {
    display: block;
    top: 20px;
    left: 10px;
    z-index: 10;
    -webkit-user-select: none;
    user-select: none;
}

#menuToggle input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    left: -5px;
    cursor: pointer;
    opacity: 0;
    /* hide this */
    z-index: 2;
    /* and place it over the hamburger */
    -webkit-touch-callout: none;
}

/*
	* Just a quick hamburger
	*/

#menuToggle span {
    display: block;
    width: 30px;
    height: 6px;
    margin-bottom: 6px;
    position: relative;
    background: #3FB1E5;
    border-radius: 2px;
    z-index: 1;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0), opacity 0.55s ease;
}

#menuToggle span:first-child {
    transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
    transform-origin: 0% 100%;
}

/*
	* Transform all the slices of hamburger
	* into a crossmark.
	*/

#menuToggle input:checked~span {
    opacity: 1;
    transform: rotate(45deg) translate(4px, 4px);
    background: #C43C35;
}

/*
	* But let's hide the middle one.
	*/

#menuToggle input:checked~span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

/*
	* Ohyeah and the last one should go the other direction
	*/

#menuToggle input:checked~span:nth-last-child(2) {
    opacity: 1;
    transform: rotate(-45deg) translate(0, -1px);
}

/*
	* Make this absolute positioned
	* at the top left of the screen
	*/

#menu {
    position: absolute;
    width: 940px;
    margin: -80px 0 0 -30px;
    padding: 50px;
    padding-top: 40px;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    /* to stop flickering of text in safari */
    transform-origin: 0% 0%;
    transform: translate(-100%, 0);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

#menu li {
    padding: 10px 0;
    list-style: none;
    float: left;
    text-align: center;
}

/*
	* And let's fade it in from the left
	*/

#menuToggle input:checked~ul {
    transform: scale(1.0, 1.0);
    opacity: 1;
}

/*+++++++++++++++++++++++ ANIMATION +++++++++++++++++++*/

.bb,
.bb::before,
.bb::after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.bb {
    width: 30px;
    height: 30px;
    color: #C43C35;
}

.bb::before,
.bb::after {
    content: '';
    z-index: -1;
    margin: -10%;
    box-shadow: inset 0 0 0 2px;
    animation: clipMe 8s linear infinite;
}

.bb::before {
    animation-delay: -4s;
}

@keyframes clipMe {
    0%,
    100% {
        clip: rect(0px, 36px, 2px, 0px);
    }
    25% {
        clip: rect(0px, 2px, 36px, 0px);
    }
    50% {
        clip: rect(34px, 36px, 36px, 0px);
    }
    75% {
        clip: rect(0px, 36px, 36px, 34px);
    }
}

/*++++++++++++++HUMBARGER MENU DESIGN END+++++++++++++++++++++++++*/