.flip-container {
  -webkit-perspective: 1000;
  background: #f1f1f1;
  margin: 100px auto;}

// flip the pane when clicked //
.flip-container:hover .flipper, .flip-container.hover .flipper {
  -webkit-transform: rotateY(180deg);}

.flip-container {
width: 100%;
height: 300px;}

.front, .back
{width: 100%;
height: auto;
height: 300px;}

// flip speed goes here //
.flipper {
-webkit-transition: 0.6s;
-webkit-transform-style: preserve-3d;
position: relative;}
// hide back of pane during swap //
.front, .back {
-webkit-backface-visibility: hidden;
position: absolute;
top: 0;
left: 0;}
// front pane, placed above back //
.front {
z-index: 2;
background: #666666;}
// back, initially hidden pane //
.back {
-webkit-transform: rotateY(180deg);
background: #333333;}

// optional, style text //

.flip-text h2, .flip-text p, .flip-text h1, .flip-text h2, .flip-text h3, .flip-text a
{text-align: center;
color: #ffffff;
padding-top: 100px;
padding-bottom: 100px;
padding-right: 25px;
padding-left: 25px;}