.panels {
	float: left;
	width: 210px;
	height: 163px;
	position: relative;
	-webkit-perspective: 600px;
	perspective: 600px;
	background: #fff;
}
/* -- 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: #fff;
	-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: #fff;
	-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 all;
	transition: all .4s all;
}
.panels.flip .back {
	z-index: 1000;
	background-color:#fff;
	-webkit-transform: rotateX(0) rotateY(0);
	transform: rotateX(0) rotateY(0);
	
}
.panels .back h1{font-family: 'PT Sans', sans-serif; font-size:18px; text-align:center; color:#333; line-height:25px;}
.panels .back h2{font-family: 'PT Sans', sans-serif; font-size:14px; text-align:center; color:#333; line-height:18px; margin: 0 5px;}
