/* Some sections to define card content areas. */

.section {
  margin-bottom: 40px;
}

.section__title {
  font-size: 40px;
}

.section__content {
  padding-left: 3px;
}

/**
 * The cards
 *
 * Each card plays home to a front and back. I've set them up as squares here
 * by using the padding technique, but you may set them up in any dimensions
 * you like based on your site design.
 */
.card {
  position: relative;
  float: left;
  padding-bottom: 25%;
  width: 100%;
  text-align: center;
}

.card:nth-child(1) {
  margin-left: -3px;
  margin-right: 1px;
}

.card:nth-child(2),
.card:nth-child(3) {
  margin-right: 1px;
}

/* card fronts and backs */
.card__front,
.card__back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.card__front,
.card__back {
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-transition: -webkit-transform 0.3s;
          transition: transform 0.3s;
}

.card__front {
  background-color: #fff;
}

.card__back {
  background-color: #fff;
  -webkit-transform: rotateY(-180deg);
          transform: rotateY(-180deg);
}

/* card text */
.card__text {
	font-family: 'Lora', Georgia, Times, serif;
	display: inline-block;
	position: absolute;
	top: 0;
	right: 0;
  	bottom: 0;
  	left: 0;
  	margin: auto;
	height: 78px;
	color: #666;
	line-height: 20px;
	font-weight: 700;
	font-size: 18px;
}

.card__text1 {
	font-family: 'Lora', Georgia, Times, serif;
	display: inline-block;
	position: absolute;
	top: 63px;
	right: 0;
	bottom: 0;
	left: 0;
	margin: auto;
	height: 37px;
	color: #666;
	line-height: 21px;
	font-size: 14px;
	width: 67%;
	text-align: center;
}

/* click effect */
.card.effect__click.flipped .card__front {
  -webkit-transform: rotateY(-180deg);
          transform: rotateY(-180deg);
}

.card.effect__click.flipped .card__back {
  -webkit-transform: rotateY(0);
          transform: rotateY(0);
}
