
/*** Menu Total ***/
nav, nav *, nav *:before, nav *:after {
    box-sizing: border-box;	/* !important! */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;	
}

/*** Menu Design ***/

nav ul {
    transition: all .3s ease-in-out;
	-webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
	padding: 0;
	margin: 0;
}

nav {
	display: block;
    position: relative;
/*    font-family: 'Dosis', sans-serif;*/
    z-index: 999;
}

nav > ul {
    z-index: 990;
}


/********** Sub Menu ************/

nav ul ul, nav > ul > li > .visible-box >  ul:before {
	visibility:hidden;
	opacity:0;
	position: absolute;
}

nav ul ul, nav > ul > li > .visible-box > ul:before, nav > ul > li > .visible-box > ul > li {
    transition: all .5s ease-in-out;
	-webkit-transition: all .5s ease-in-out;
    -moz-transition: all .5s ease-in-out;
    -ms-transition: all .5s ease-in-out;
    -o-transition: all .5s ease-in-out;
}

nav ul li:hover > .visible-box > ul, nav ul li:hover > .visible-box > ul:before, nav ul li:hover > ul{
	visibility:visible;
	opacity:1;
}

nav > ul > li > .visible-box > ul {
	left: 500px;
	top: -1000px;
}

nav > ul > li > .visible-box >  ul:before {
	content: "";
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    left: calc(-50% - 1px);
    top: 0;
}

nav > ul > li > .visible-box > ul > li {
	left: -50%;
    top: 0;
}
	
nav .right + ul {
	top: -1000px;
	left: calc(100% + 4px);
}

nav .left + ul {
	top: -1000px;
	right: calc(100% + 4px);
}

nav > ul > li:hover > .visible-box >  ul:before {
    top: calc(1000px + 25px - 1px);
}

nav > ul > li:hover > .visible-box > ul > li {
    top: calc(1000px + 25px);
}
	
nav li:hover > .right + ul {
	top: 0;
}

nav li:hover > .left + ul {
	top: 0;
}

nav ul ul li, nav ul ul a {
	display: block;
	position: relative;
	white-space: nowrap; /* !important! */
}

/********** Sub Menu Design **********/

nav ul ul a {
	height: 0px;
	line-height: 0px;
	padding: 0px 25px;
	color: #37C6F5;
	text-decoration: none;
	font-size: 16px;
    transition: all .7s ease-in-out;
	-webkit-transition: all .7s ease-in-out;
    -moz-transition: all .7s ease-in-out;
    -ms-transition: all .7s ease-in-out;
    -o-transition: all .7s ease-in-out;
}

nav ul li:hover > .visible-box > ul > li > a, nav ul li:hover > ul > li > a {
	height: 40px;
	line-height: 40px;
	padding: 0px 25px!important;
}

nav ul ul li > a:hover, nav ul ul li:hover > a {
	color: #FFFFFF;
	text-decoration: none;
    transition: color .0s step-start;
	-webkit-transition: color .0s step-start
    -moz-transition: color .0s step-start
    -ms-transition: color .0s step-start
    -o-transition: color .0s step-start
}

nav ul ul li:hover {
    background: #37C6F5;
}

nav ul ul li:first-child {
	border-radius: 3px 3px 0 0;
}

nav ul ul li:last-child {
	border-radius: 0px 0px 3px 3px;
}

nav > ul > li > .visible-box > ul:before, nav ul ul ul {
	background: #FFFFFF;
    border: 1px solid white;
	box-shadow: 0 0 10px rgba(0,0,0,0.7), 0px 0px 0px 1px rgb(0, 217, 153);
	border-radius: 3px;
}

/************ Arrow *************/

nav > ul > li > a.arrow:after {
	content: "";
    display: block;
    position: absolute;
    border: 6px solid transparent;
    border-top-color: inherit;
    z-index: 999;
    height: 0;
    width: 0;
    left: calc(50% - 6px);
    top: 65%;
}

nav a.arrow.right:after {
  content: "";
  display: block;
  position: absolute;
  height: 0;
  width: 0;
  top: calc(50% - 6px);
  right: 2%;
  border: 6px solid transparent;
  border-left-color: inherit;
}

nav a.arrow.left:after {
  content: "";
  display: block;
  position: absolute;
  height: 0;
  width: 0;
  top: calc(50% - 6px);
  right: 95%;
  border: 6px solid transparent;
  border-right-color: inherit;
}

/************ Transfer *************/

nav > ul > li > a.arrow:hover:before, nav > ul > li:hover > a.arrow:before {
	content: "";
    display: block;
    position: absolute;
	width: 100%;
	height: 100%;
	top: 100%;
	left: 0%;
}

nav li > a.arrow.right:hover:before, nav li:hover > a.arrow.right:before {
	content: "";
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	left: 5%;
}

nav li > a.arrow.left:hover:before, nav li:hover > a.arrow.left:before {
	content: "";
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	right: 5%;
}


/*** visible/hidden ***/
.visible-box {
	visibility:hidden;
	opacity:0;
    position: absolute;
    width: auto;
    height: auto;
    top: 80px;
    left: calc(50% - 500px);
    overflow: hidden;
}

.hidden-box {
	visibility:hidden;
	opacity:0;
    position: relative;
    width: 0px;
    height: 0px;
    top: 0px;
}

.hidden-box, .visible-box {
    transition: all .5s ease-in-out;
	-webkit-transition: all .5s ease-in-out;
    -moz-transition: all .5s ease-in-out;
    -ms-transition: all .5s ease-in-out;
    -o-transition: all .5s ease-in-out;
}

li:hover > .visible-box, li:hover > .visible-box > .hidden-box {
	visibility:visible;
	opacity:1;
}	

li:hover > .visible-box > .hidden-box {
    width: 1000px;
    height: 1000px;
    top: calc(25px - 1px);
}

.visible-box > ul {
	z-index: 10001;
}

.visible-box > .hidden-box {
	z-index: 10000;
}

.visible-box > .hidden-box:hover {
	z-index: 10002;
    width: 0px!important;
    height: 0px!important;
    transition: width .5s step-end, height .5s step-end;
	-webkit-transition: width .5s step-end, height .5s step-end;
    -moz-transition: width .5s step-end, height .5s step-end;
    -ms-transition: width .5s step-end, height .5s step-end;
    -o-transition: width .5s step-end, height .5s step-end;
}

.visible-box > .hidden-box:hover + ul:before, .visible-box > .hidden-box:hover + ul > li {
    top: 0!important;
    transition: all .5s ease-in-out;
	-webkit-transition: all .5s ease-in-out;
    -moz-transition: all .5s ease-in-out;
    -ms-transition: all .5s ease-in-out;
    -o-transition: all .5s ease-in-out;
}


