/* basic menu styles */
.block-menu {
	display: block;
	background: #D4ED98;
	background-color: rgba(165, 204, 230, 1);
	margin:auto;
}

.block-menu li {
	display: inline-block;
}

.block-menu li a {
	color: #000;
	display: block;
	text-decoration: none;
	font-family: Monotype Corsiva;
	font-smoothing: antialiased;
	text-transform: uppercase;
	overflow: visible;
	line-height: 5px;
	font-size: 20px;
	padding: 15px 12px;
	
}

/* animation domination */
.three-d {
	perspective: 200px;
	transition: all .7s linear;
	position: relative;
	cursor: pointer;
}
	/* complete the animation! */
	.three-d:hover .three-d-box, 
	.three-d:focus .three-d-box {
		transform: translateZ(-30px) rotateX(180deg);
	}

.three-d-box {
	transition: all .7s ease-out;
	transform: translatez(-25px);
	transform-style: preserve-3d;
	pointer-events: none;
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
}

/* 
	put the "front" and "back" elements into place with CSS transforms, 
	specifically translation and translatez
*/
.front {  transform: rotatex(90deg) translatez(15px);}

.back {
	transform: rotatex(-90deg) translatez(15px);
	color: #ffe7c4;
}

.front{display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	font-weight:bold;
	top: 1;
	left: 0;
	background: #123;
	padding: 15px 10px;
	color: #000;
	pointer-events: none;
	box-sizing: border-box;
	
	border-radius:5px;
	}

 .back {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	font-weight:bold;
	top: -1;
	left: 0;
	background: #000;
	padding: 15px 10px;
	color: #fff;
	pointer-events: none;
	box-sizing: border-box;
	border-radius:5px;
	
}


/*----------- Start Sub Menu ---------- */


nav {    
  display: block;
  text-align: center;
}

nav ul {
  margin: 0;
  padding:0;
  list-style: none;
}

.nav a {
    display: block;
    background: #111;
    color: #fff;
    text-decoration: none;
    padding: 0.8em 1.1em 0.5em 1.8em;
    text-transform: uppercase;
    font-size: 80%;
    letter-spacing: 2px;
    text-shadow: 0 -1px 0 #000;
    position: relative;
}

.nav{  
  vertical-align: top; 
  display: inline-block;
  box-shadow: 
    1px -1px -1px 1px #000, 
    -1px 1px -1px 1px #fff, 
    0 0 6px 3px #fff;
  border-radius:6px;
}

.nav li {
  position: relative;
}

.nav > li { 
  float: left; 
  border-bottom: 4px #aaa solid; 
  margin-right: 1px; 
} 

.nav > li > a { 
  margin-bottom: 1px;
  box-shadow: inset 0 2em .33em -0.5em #555; 
}

.nav > li:hover, 
.nav > li:hover > a { 
  border-bottom-color: orange;
}

.nav li:hover > a { 
  color:orange; 
}

.nav > li:first-child { 
  border-radius: 4px 0 0 4px;
} 

.nav > li:first-child > a { 
  border-radius: 4px 0 0 0;
}

.nav > li:last-child { 
  border-radius: 0 0 4px 0; 
  margin-right: 0;
} 

.nav > li:last-child > a { 
  border-radius: 0 4px 0 0;
}

.nav li li a { 
  margin-top: 1px;
}

.nav li a:first-child:nth-last-child(2):before { 
  content: ""; 
  position: absolute; 
  height: 0; 
  width: 0; 
  border: 5px solid transparent; 
  top: 50% ;
  right:5px;  
 }
 
 
 /* submenu positioning*/
 
 
.nav ul {
  position: absolute;
  white-space: nowrap;
  border-bottom: 5px solid  orange;
  z-index: 1;
  left: -99999em;
}

.nav > li:hover > ul {
  left: auto;
  margin-top: 5px;
  min-width: 100%;
}

.nav > li li:hover > ul { 
  left: 50%;
  margin-left: 1px;
  top: -1px;
}

/* arrow hover styling */

.nav > li > a:first-child:nth-last-child(2):before { 
  border-top-color: #aaa; 
}

.nav > li:hover > a:first-child:nth-last-child(2):before {
  border: 5px solid transparent; 
  border-bottom-color: red; 
  margin-top:-5px
}

.nav li li > a:first-child:nth-last-child(2):before {  
  border-left-color: #aaa; 
  margin-top: -5px
}

.nav li li:hover > a:first-child:nth-last-child(2):before {
  border: 5px solid transparent; 
  border-right-color: red;
  right: 10px; 
}


/*-----------  Sub Menu End---------- */ 



/*----------- Responsive Start -------------*/




/*----------- End Responsive  -------------*/