@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap");

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Poppins", sans-serif;
}

body {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	/* background: #196c77; */
	background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1)), url("bg.jpg");
	background-size: cover;
	background-position: center;
}

.card {
	position: relative;
	width: 500px;
	height: 700px;
	background: #fff;
	transform-style: preserve-3d;
	transition: 1s;
	border-radius: 30px;
	box-shadow: inset 300px 0 50px rgba(0, 0, 0, 0.15), 0 20px 20px rgba(0, 0, 0, 0.15);
}

.card:hover {
	transform: perspective(2000px) translateX(50%);
	box-shadow: inset 20px 0 50px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.15);
}

.card .cover {
	position: relative;
	width: 100%;
	height: 100%;
	background: #fff;
	z-index: 2;
	display: flex;
	justify-content: center;
	align-items: center;
	transform-style: preserve-3d;
	overflow: hidden;
	transition: 1s ease-in-out;
	transform-origin: left;
	border-radius: 30px;
}

.card:hover .cover {
	transform: rotateY(-180deg);
}

.card .cover img {
	max-width: 100%;
	z-index: 1;
}

.card .cover::before {
	content: "";
	position: absolute;
	width: 20px;
	height: 150%;
	background: #fff;
	transform: rotate(35.5deg);
	box-shadow: 0 0 0 40px #47bfce;
	transition: 0.5s;
	transition-delay: 0.8s;
}

.card:hover .cover:before {
	width: 0;
	box-shadow: 0 0 0 450px #47bfce;
	transform: rotate(143.5deg);
}

.card .details {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow-x: hidden;
	text-align: center;
	z-index: 1;
}

.card .details h3 {
	font-weight: 500;
	margin: 5px 0;
}

.card .details h2 {
	font-size: 1.5em;
	color: #e82a5b;
	font-weight: 600;
}

.card .details a {
	display: inline-block;
	padding: 8px 20px;
	background: #47bfce;
	color: #fff;
	margin-top: 5px;
	letter-spacing: 1px;
	border-radius: 25px;
	font-weight: 500;
	text-decoration: none;
}
