@import url("https://use.fontawesome.com/releases/v6.5.1/css/all.css");



.card {
	position: relative;
	height: 350px;
	width: 250px;
	font-weight: 400;
	transform-style: preserve-3d;
	perspective: 1000px;
}

.front-face,
.back-face {
	position: absolute;
	height: 100%;
	width: 100%;
	text-align: center;
	color: white;
	background-size: cover;
	background-position: center;
	border-radius: 10px;
	backface-visibility: hidden;
	transform-style: preserve-3d;
	transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.contents {
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	perspective: 100px;
	transform:translateY(-50%) translateZ(60px) scale(0.94);
}

.back p {
	font-size: 20px;

}

.back-face {
	transform: rotateY(180deg);	
}

.front p {
	font-size: 26px;
	margin: 0;
}

.front span {
	font-size: 12px;
	font-weight: 300;
}

.front p.bottom-bar::after {
	content: '';
	display: block;
	background: white;
	left: 0;
	right: 0;
	height: 2px;
	width: 150px;
	margin-inline: auto;
	margin-top: 10px;
	margin-bottom: 20px;
}

.front-face {
	transform: rotateY(-180deg);
}

.back-face {
	transform: rotateY(0deg);
	background:
	linear-gradient(45deg, #0e0e0e 0%, #5a5a5a 100%);
}

.back h2 {
	font-size: 28px;
	margin-bottom: 10px;
	font-weight: 300;
}

.back span {
	font-weight: 300;
	font-size: 12px;
}

.icons {
	margin: 20px 0;
}

.icons i {
	height: 40px;
	width: 40px;
	background: white;
	color: #042f4b;
	font-size: 16px;
	border-radius: 50%;
	line-height: 40px;
	margin: 0 5px;
	cursor: pointer;
}

.front-face {
	transform: rotateY(0deg);
}

.back-face {
	transform: rotateY(180deg);
}

.card:hover>.front-face {
	transform: rotateY(-180deg);
}

.card:hover>.back-face {
	transform: rotateY(0deg);
}
