.card-wrapper {
  display: inline-block;
  perspective: 1000px;
}
.card-wrapper .card {
  position: relative;
  cursor: pointer;
  transition-duration: 0.6s;
  transition-timing-function: ease-in-out;
  transform-style: preserve-3d;
}
.card-wrapper .card .front,
.card-wrapper .card .back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transform: rotateX(0deg);
}
.card-wrapper .card .front {
  z-index: 2;
}
.card-wrapper .card .back,
.card-wrapper.flip-right .card .back {
  transform: rotateY(180deg);
}
.card-wrapper:hover .card,
.card-wrapper.flip-right:hover .card {
  transform: rotateY(180deg);
}
.card-wrapper.flip-left .card .back {
  transform: rotateY(-180deg);
}
.card-wrapper.flip-left:hover .card {
  transform: rotateY(-180deg);
}

/* DEMO */

.shadow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  background:#000;
	border-radius:20px;
}


.card-first {
  width: 245px;
  height: 330px;
  margin:26px 15px 15px 25px;
	border-radius:20px;
	 background: #05447F;
}

.card-first h1{
	font-size: 36px;
	line-height: 36px;
	font-weight: bold;
	text-transform: uppercase;
	margin: 0;
	padding:30px 10px 15px 20px;
	color: #f9bf10;
	text-align: left;
}

.card-first p{
	font-size: 14px;
	line-height: 18px;
	font-weight: 400;
	margin: 0;
	padding:0 20px;
	color: #f9bf10;
	text-align: left;
}


.card-wrapper,
.card {
  width: 245px;
  height: 330px;
  margin: 15px;
	border-radius:20px;
}
.card .front,
.card .back {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #cde1e4;
  border-radius:20px;
}
.card .front {
  color: #FC545E;
  background: #cde1e4;
  font-weight: 700;
  font-size: 1rem;
	text-align: center;
}

.card .front img{
	margin: 0 0 0 0;
	border-radius:20px;
	
}

.card .front h3{
	font-size: 22px;
	margin: 0 auto;
	line-height: 28px;
	padding: 170px 40px 0 40px;
	font-weight: 600;
	color: #fff;
	position: absolute;
	text-transform: uppercase;
}

.card .back {
  font-size: 1.5rem;
  color: #fff!important;
  background: #05447F;
}

.card .back p{
	font-size: 16px;
	margin: 0;
	line-height: 22px;
	padding: 20px;
	font-weight: 400;
	text-align: center;	
	color: #f9bf10;
}

.card .back p span{
	color: #fff;
	text-decoration: underline;
}

/* Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) {
	
	.card-first {
	  width: 85%;
	  height: 330px;
	  margin:26px 15px 15px 25px;
		border-radius:20px;
		 background: #05447F;
	}

	.card-first h1{
		font-size: 36px;
		line-height: 36px;
		font-weight: bold;
		text-transform: uppercase;
		margin: 0;
		padding:30px 10px 15px 20px;
		color: #f9bf10;
		text-align: left;
	}

	.card-first p{
		font-size: 14px;
		line-height: 18px;
		font-weight: 400;
		margin: 0;
		padding:0 20px;
		color: #f9bf10;
		text-align: left;
	}


	.card-wrapper,
	.card {
	  width: 245px;
	  height: 330px;
	  margin:5px 15px;
		border-radius:20px;
	}
	.card .front,
	.card .back {
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  background: #cde1e4;
	  border-radius:10px;
	}
	.card .front {
	  color: #FC545E;
	  background: #cde1e4;
	  font-weight: 700;
	  font-size: 1rem;
		text-align: center;
	}

	.card .front img{
		margin: 0 0 0 0;
		border-radius:10px;

	}

	.card .front h3{
		font-size: 22px;
		margin: 0 auto;
		line-height: 28px;
		padding: 170px 40px 0 40px;
		font-weight: 600;
		color: #fff;
		position: absolute;
		text-transform: uppercase;
	}

	.card .back {
	  font-size: 1.5rem;
	  color: #f9bf10!important;
	  background: #05447F;
	}

	.card .back p{
		font-size: 16px;
		margin: 0;
		line-height: 22px;
		padding: 20px;
		font-weight: 400;
		text-align: center;	
		color: #f9bf10;
	}
}


/* Large devices (desktops, 992px and up)*/
@media (min-width: 992px) and (max-width: 1199.98px) { 
	
	.shadow-overlay {
	  position: absolute;
	  top: 0;
	  left: 0;
	  width: 100%;
	  height: 100%;
	  opacity: 0.6;
	  background:#000;
		border-radius:20px;
	}


	.card-first {
	  width: 205px;
	  height: 330px;
	  margin:26px 8px 8px 8px;
		border-radius:20px;
		 background: #05447F;
	}

	.card-first h1{
		font-size: 24px;
		line-height: 30px;
		font-weight: bold;
		text-transform: uppercase;
		margin: 0;
		padding:30px 10px 15px 20px;
		color: #f9bf10;
		text-align: left;
	}

	.card-first p{
		font-size: 14px;
		line-height: 18px;
		font-weight: 400;
		margin: 0;
		padding:0 20px;
		color: #f9bf10;
		text-align: left;
	}


	.card-wrapper,
	.card {
	  width: 220px;
	  height: 300px;
	  margin: 8px;
		border-radius:20px;
	}
	.card .front,
	.card .back {
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  background: #cde1e4;
	  border-radius:20px;
	}
	.card .front {
	  color: #FC545E;
	  background: #cde1e4;
	  font-weight: 700;
	  font-size: 1rem;
		text-align: center;
	}

	.card .front img{
		margin: 0 0 0 0;
		border-radius:20px;

	}

	.card .front h3{
		font-size: 18px;
		margin: 0 auto;
		line-height: 20	px;
		padding: 170px 40px 0 40px;
		font-weight: 600;
		color: #fff;
		position: absolute;
		text-transform: uppercase;
	}

	.card .back {
	  font-size: 1.5rem;
	  color: #f9bf10!important;
	  background: #05447F;
	}

	.card .back p{
		font-size: 16px;
		margin: 0;
		line-height: 22px;
		padding: 20px;
		font-weight: 400;
		text-align: center;	
		color: #f9bf10;
	}
	
}
