/* The flip card container */
.flip-card {
  container-type: inline-size;
  background-color: transparent;
  border: 2px solid blueviolet;
  border-radius: 20px;
  height: 500px;
  perspective: 1000px;
  /*min-width: 300px;*/
  /*width: calc(20% - 20px);*/
  width: 300px;
  margin-bottom: 20px;
}

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

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

/* Position the front and back side */
.flip-card-front, .flip-card-back {
  backface-visibility: hidden;
  height: 100%;
  position: absolute;
  width: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
}

/* Style the front side */
.flip-card-front {
  background-color: ivory;
  border: 2px solid blueviolet;
  border-radius: 20px; 
  color: black;
}

/* Style the back side */
.flip-card-back {
  background-color: dodgerblue;
  border: 2px solid blueviolet;
  border-radius: 20px;
  transform: rotateY(180deg);
}

