/* basic menu styles */
.block-menu {
	display: block;
	background: #ffa7a6;
	width: 1018px;
	margin-left:12px;
	
	
}

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

.block-menu li a {
	color: #000;
	display: block;
	text-decoration: none;
	font-family: 'Passion One', Arial, sans-serif;
	font-smoothing: antialiased;
	overflow: visible;
	line-height: 20px;
	font-size: 20px;
	padding-top: 15px;
	padding-bottom:15px;
	padding-right:20px;
	padding-left:20px;
	
	
}

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

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

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

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

.front, .back {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0px;
	background: #ff0000;
	padding-bottom:15px;
	padding-left:15px;/*text padding inside box*/
	padding-right:15px;
	padding-top:15px;
	color: #fff; /*color of text menu*/
	pointer-events: none;
	box-sizing: border-box;
}
