.card-image{
	height: 0%;
}

/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
	background-color: transparent;
	width: 100%;
	height: 100%;
	perspective: 1800px;
	justify-content: space-around;
	/* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	text-align: center;
	transition: transform 5s;
	transform-style: preserve-3d;
}

.openCard .flip-card-inner,
.closeCard .flip-card-inner{
	transform-style: preserve-3d;
	transition-duration: 0s;
	-webkit-transition-duration: 0s;
}

/* .closeCard .flip-card-inner{
	transition-delay: 5s;
	-webkit-transition-delay: 5s;
} */

/* Do an horizontal flip when you move the mouse over the flip box container */
.openCard .flip-card-inner {
	transform: rotateY(180deg);
	transition-duration: 5s;
	-webkit-transition-duration: 5s;
}

/* Position the front and back side */
.flip-card-front,
.flip-card-back {
	box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.2), 4px 6px 20px 0 rgba(0, 0, 0, 0.6);
	position: absolute;
	width: 100%;
	height: 100%;
	-webkit-backface-visibility: hidden;
	/* Safari */
	backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
	overflow: hidden;
	visibility: visible;
	background-color: #bbb;
	transition: visibility;
	-webkit-transition: visibility;
	transition-duration: 1s;
	-webkit-transition-duration: 1s;
	/* color: black; */
}

/* .closeCard .flip-card-front{
	transition-delay: 5s;
	-webkit-transition-delay: 5s;
} */

.flip-card-front img{
	width: 100%;
}

.flip-card-front .heading{
	padding: 0!important;
	display: flex;
	height: 100%;
	justify-content: center;
	align-items: center;
	font-size: calc(min(5vh,60px));
	text-shadow: 0 0 20px black;
}

/* Style the back side */
.flip-card-back {
	background-color: #bbb;
	background-color: var(--main2);
	color: var(--main1);
	transform: rotateY(180deg);
	/* display: inline-grid; */
}
.flip-card-back .heading{
	font-size: 3vh;
	text-align: center;
	margin: 0 auto;
	margin-top: 40px;
}

.flip-card-back .description{
	margin: 40px auto;
	padding: 0;
	width: 90%;
    	text-align: justify;
	font-size: 85%; /* TI new */
}

.flip-card-back .title{
	padding: 0 !important;
	line-height: 3vh;
}




/* flip card hover */

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card.hoverable:hover .flip-card-inner {
	transform: rotateY(180deg);
	transition-duration: 5s;
	-webkit-transition-duration: 5s;
}

.flip-card.hoverable:hover .flip-card-front {
	visibility: hidden;
}