.card {
  color: inherit;
  cursor: pointer;
  width: 100%;
  min-width: calc(33% - 2rem);
  height: 400px;
  min-height: 400px;
  perspective: 1000px;
  margin: 0;
  position: relative;
}
@media screen and (max-width: 800px) {
  .card {
    width: calc(50% - 2rem);
  }
}
@media screen and (max-width: 500px) {
  .card {
    width: 100%;
  }
}

.front,
.back {
  display: flex;
  background-position: center;
  background-size: cover;
  text-align: center;
  justify-content: center;
  align-items: center;
  position: absolute;
  height: 100%;
  width: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: ease-in-out 600ms;
}

.front {
  background-size: cover;
  padding: 15px;
}
.front h3{
	position: absolute;
	padding: 0 1em;
	line-height: 2;
	z-index: 1;
	top: 15px;
	left: 82px;
	color: #FFF;
	background: #03f;
	font-size: .6875rem !important;
	font-family: 'Basis Grotesque Pro Bold';
	letter-spacing: 1px;
	text-transform: uppercase;
}
.front p{
	color: #FFF;
	margin: 0;
	line-height: 1.4 !important;
	text-shadow: rgba(0,0,0,0.4) 0 0 3px;
	font-family: 'Basis Grotesque Pro Bold';
	text-align: left;
	position: absolute;
	bottom: 15px;
	left: 15px;
	right: 15px;
}
.front:before {
  position: absolute;
  display: block;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,rgba(21,18,17,0) 0,rgba(21,18,17,0) 40%,rgba(21,18,17,.8) 100%);
  z-index: -1;
}
.card:hover .front {
  transform: rotateY(180deg);
}
.card:nth-child(even):hover .front {
  transform: rotateY(-180deg);
}

.back {
  /*background: linear-gradient(to bottom left,#f46911 0,#f8a01e 40%,#fcbc48 100%);*/
  /*background: #001489;	*/
    background: url("https://www.igmprepa.com/images/bg-orange.jpg") no-repeat;
	background-size: cover;
  transform: rotateY(-180deg);
  padding: 25px;
	text-align: left;
}
/*.back::before{
	content: "";
	height: calc(100% - 20px);
	width: calc(100% - 20px);
	position: absolute;
	top: 10px;
	left: 10px;
	border: rgba(255,255,255,0.5) solid 2px;
}*/
.back p{
	line-height: 1.2 !important;
	margin-bottom: 14px;
	font-size: 15px;
	text-align: justify;
}
.back h5{
	font-size: 20px !important;
	margin-bottom: 5px;
	font-family: 'Oswald', sans-serif;
}
.back .button {
  background: linear-gradient(135deg, #1a9be6, #1a57e6);
}
.back .button:before {
  box-shadow: 0 0 10px 10px rgba(26, 87, 230, 0.25);
  background-color: rgba(26, 87, 230, 0.25);
}
.card:hover .back {
  transform: rotateY(0deg);
}
.card:nth-child(even) .back {
  transform: rotateY(180deg);
}
.card:nth-child(even) .back .button {
  background: linear-gradient(135deg, #e61a80, #e61a3c);
}
.card:nth-child(even) .back .button:before {
  box-shadow: 0 0 10px 10px rgba(230, 26, 60, 0.25);
  background-color: rgba(230, 26, 60, 0.25);
}
.card:nth-child(even):hover .back {
  transform: rotateY(0deg);
}

.button {
  transform: translateZ(40px);
  cursor: pointer;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  font-weight: bold;
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 100px;
  font: inherit;
  border: none;
  position: relative;
  transform-style: preserve-3d;
  transition: 300ms ease;
}
.button:before {
  transition: 300ms ease;
  position: absolute;
  display: block;
  content: "";
  transform: translateZ(-40px);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  height: calc(100% - 20px);
  width: calc(100% - 20px);
  border-radius: 100px;
  left: 10px;
  top: 16px;
}
.button:hover {
  transform: translateZ(55px);
}
.button:hover:before {
  transform: translateZ(-55px);
}
.button:active {
  transform: translateZ(20px);
}
.button:active:before {
  transform: translateZ(-20px);
  top: 12px;
}