/* The main container for the flippable card */
.flip-card {
  background-color: transparent;
  width: 300px;
  height: 206px;
  perspective: 1000px;
  /* Gives the 3D effect */
  cursor: pointer;
  border-top: 3px solid var(--style-color-1);
  border-bottom: 3px solid var(--style-color-1);
  border-left: 3px solid var(--style-color-2);
  border-right: 3px solid var(--style-color-2);
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

/* This class is added by JavaScript to trigger the flip */
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  /* For Safari */
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: 6px;
  padding-right: 6px;
}

.flip-card-front {
  background-color: #fff;
  color: white;
}

.flip-card-back {
  color: white;
  transform: rotateY(180deg);
}

.flip-card .flip-category {
  font-size: 0.9rem;
  color: #fff;
}