.panels {
	float: left;
	width: 255px;
	height: 210px;
	position: relative;
	-webkit-perspective: 600px;
	perspective: 600px;
}
/* -- make sure to declare a default for every property that you want animated -- */
  /* -- general styles, including Y axis rotation -- */
.panels .front {
	float: none;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 900;
	width: inherit;
	height: inherit;
	color:#333;
	text-align: center;
	
	-webkit-transform: rotateX(0) rotateY(0);
	transform: rotateX(0) rotateY(0);
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	/* -- transition is the magic sauce for animation -- */
	-webkit-transition: all .4s ease-in-out;
	transition: all .4s ease-in-out;
}
.panels.flip .front {
	z-index: 900;
	background: #b23b37;
	-webkit-transform: rotateY(180deg);
	transform: rotateY(180deg);
}
.panels .back {
	float: none;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 800;
	width: inherit;
	height: inherit;
	background: #204a6c;
	-webkit-transform: rotateY(-179deg);
	transform: rotateY(-179deg);
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	/* -- transition is the magic sauce for animation -- */
	-webkit-transition: all .4s ease-in-out;
	transition: all .4s ease-in-out;
}
.panels.flip .back {
	z-index: 1000;
	background-color:#000;
	-webkit-transform: rotateX(0) rotateY(0);
	transform: rotateX(0) rotateY(0);
	
}
.panels .back h1{
	font-family: 'PT Sans', sans-serif;
	font-size: 25px;
	text-align: center;
	color: #FFF;
	line-height: 40px;
}
.panels .back h2{
	font-family: 'PT Sans', sans-serif;
	font-size: 14px;
	text-align: center;
	color: #FFF;
	line-height: 20px;
}
