@import url('https://fonts.googleapis.com/css?family=Indie+Flower');
@import url('https://fonts.googleapis.com/css?family=Amatic+SC');

body {
	font-family: 'Indie Flower', cursive !important;
  background: #FDE3A7;
	margin: 0px;
	padding: 0px;
}

::selection {
	background: transparent;
}

h4 {
	font-size: 26px;
	line-height: 1px;
	font-family: 'Amatic SC', cursive !important;
}
h5 {
	font-size: 20px;
	line-height: 1px;
	font-family: 'Amatic SC', cursive !important;
}

.color1{color:#1BBC9B}
.color2{color:#C0392B}

/* cards */

.card-container {
	display: flex;
    flex-wrap: wrap;
    gap: 70px;
    justify-content: center;
    padding: 20px;
	width: 80%;
	margin-left: auto;
	margin-right: auto;
}

.card {
	color: #013243; 
	position: relative;
	width: 225px;
	height: 300px;
	background: #e0e1dc;
	transform-style: preserve-3d;
	transform: perspective(2000px);
	box-shadow: inset 300px 0 50px rgba(0,0,0,.5), 20px 0 60px rgba(0,0,0,.5);
	transition: 1s;
}

.card.active {
	transform:  perspective(2000px) rotate(15deg);
	box-shadow: inset 20px 0 50px rgba(0,0,0,.5), 0 10px 100px rgba(0,0,0,.5);
}

.card:before {
	content:'';
	position: absolute;
	top: -5px;
	left: 0;
	width: 100%;
	height: 5px;
	background: #c7cfca;
	transform-origin: bottom;
	transform: skewX(-45deg);
}

.card:after {
	content: '';
	position: absolute;
	top: 0;
	right: -5px;
	width: 5px;
	height: 100%;
	background: #9aa19c;
	transform-origin: left;
	transform: skewY(-45deg);
}

.card .imgBox {
	width: 100%;
	height: 100%;
	position: relative;
	transform-origin: left;
	transition: .7s;
}

.card .imgBox img {
	width: 225px;
	height: 300px;
}

.card .bark {
	position: absolute;
	background: #e0e1dc;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: .7s;
}

.card .bark img {
	width: 225px;
	height: 290px;
	border: 5px solid grey;
}


.card.active .imgBox {
	transform: rotateY(-135deg);
}

.card.active .bark {
	opacity: 1;
	transition: .6s;
  box-shadow: 300px 200px 100px rgba(0, 0, 0, .4) inset;
}

.card .details {
	position: absolute;
	top: 0;
	left: 0;
	box-sizing: border-box;
	padding: 0 0 0 10px;
	z-index: -1;
	margin-top: 70px;

	transform: translateZ(0);
    backface-visibility: hidden;
}

.card .details p {
	font-size: 15px;
	line-height: 5px;
	transform: rotate(-10deg);
	padding: 0 0 0 20px;

	
}

.card .details h4 {
	text-align: center;
}
.card .details h5 {
	text-align: center;
}

.text-right {
	text-align: right;
}

/* final card */

.final-card-container {
	display: flex;
    flex-wrap: wrap;
    gap: 70px;
    justify-content: center;
    padding: 20px;
	width: 70%;
	margin-left: auto;
	margin-right: auto;
}

.final-card {
	color: #013243; 
	position: relative;
	width: 300px;
	height: 400px;
	background: #e0e1dc;
	transform-style: preserve-3d;
	transform: perspective(2000px);
	box-shadow: inset 300px 0 50px rgba(0,0,0,.5), 20px 0 60px rgba(0,0,0,.5);
	transition: 1s;
}

.final-card.active {
	transform:  perspective(2000px) rotate(15deg);
	box-shadow: inset 20px 0 50px rgba(0,0,0,.5), 0 10px 100px rgba(0,0,0,.5);
}

.final-card:before {
	content:'';
	position: absolute;
	top: -5px;
	left: 0;
	width: 100%;
	height: 5px;
	background: #c7cfca;
	transform-origin: bottom;
	transform: skewX(-45deg);
}

.final-card:after {
	content: '';
	position: absolute;
	top: 0;
	right: -5px;
	width: 5px;
	height: 100%;
	background: #9aa19c;
	transform-origin: left;
	transform: skewY(-45deg);
}

.final-card .imgBox {
	width: 100%;
	height: 100%;
	position: relative;
	transform-origin: left;
	transition: .7s;
}

.final-card .imgBox img {
	width: 300px;
	height: 400px;
}

.final-card .bark {
	position: absolute;
	background: #e0e1dc;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: .7s;
}

.final-card .bark img {
	width: 300px;
	height: 390px;
	border: 5px solid grey;
}


.final-card.active .imgBox {
	transform: rotateY(-135deg);
}

.final-card.active .bark {
	opacity: 1;
	transition: .6s;
  box-shadow: 300px 200px 100px rgba(0, 0, 0, .4) inset;
}

.final-card .details {
	position: absolute;
	top: 0;
	left: 0;
	box-sizing: border-box;
	padding: 0 0 0 10px;
	z-index: -1;
	margin-top: 70px;

	transform: translateZ(0);
    backface-visibility: hidden;
}

.final-card .details p {
	font-size: 15px;
	line-height: 5px;
	transform: rotate(-10deg);
	padding: 0 0 0 20px;

	
}

.final-card .details h4 {
	text-align: center;
}
.final-card .details h5 {
	text-align: center;
}
