.flip-card {
  width: 280px;
  height: 210px;
  perspective: 1000px; /* Gives the 3D effect */
  cursor: pointer;
  margin: 0 auto;  
}

.flip-card h3{
  font-size: 1rem !important;
}

.flip-card p{
  margin: 10px 20px !important;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s; /* Smooth transition for the flip */
  transform-style: preserve-3d; /* Ensures children are positioned in 3D space */
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* Hides the back of the element when facing away */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.flip-card-front {
  background-color: #f6fff9;
  color: black;
}

.flip-card-back {
  background-color: #298847;
  color: white;
  transform: rotateY(180deg); /* Initially rotate the back side 180deg */
}

.flip-card-back p{
	color: #fff !important;
}

.flip-card-back h3{
	color: #f6fff9 !important;
}

/* Class toggled by JavaScript */
.flip-card-inner.is-flipped {
  transform: rotateY(180deg);
}
