/* ===================== */
/* Flip Box Base Styles  */
/* ===================== */

.flip-box {
  background-color: transparent;
  width: 400px;
  height: 200px;
  margin: 0 auto;
  border: 1px solid #f1f1f1;
  perspective: 1000px; /* Enables 3D flip */
}

.flip-box-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-box:hover .flip-box-inner {
  transform: rotateX(180deg);
}

.flip-box-front,
.flip-box-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden; /* Safari support */
  border-radius: 10px;
  box-sizing: border-box;
}

/* ===================== */
/* Flip Box Front Styles */
/* ===================== */

.flip-box-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

/* ===================== */
/* Flip Box Back Styles  */
/* ===================== */

.flip-box-back {
  transform: rotateX(180deg);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: left;
}

.flip-box-back-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

/* ===================== */
/* Themed Box Colors     */
/* ===================== */

.flip-box-1 .flip-box-front,
.flip-box-1 .flip-box-back {
  background-color: #FFF9C4;
  color: black;
}

.flip-box-2 .flip-box-front,
.flip-box-2 .flip-box-back {
  background-color: #D0F0FD;
  color: black;
}

.flip-box-3 .flip-box-front,
.flip-box-3 .flip-box-back {
  background-color: #E6E6FA;
  color: black;
}

.flip-box-4 .flip-box-front,
.flip-box-4 .flip-box-back {
  background-color: #D5F5E3;
  color: black;
}

.flip-box-5 .flip-box-front,
.flip-box-5 .flip-box-back {
  background-color: #FFE5B4;
  color: black;
}

.flip-box-6 .flip-box-front,
.flip-box-6 .flip-box-back {
  background-color: #FADADD;
  color: black;
}

/* ===================== */
/* Typography Styling    */
/* ===================== */


.flip-box-front h1,
.flip-box-back h1 {
  font-size: 2.5rem;
  margin: 0;
}

.flip-box-front h2 {
  font-size: 1.5rem;
  margin-top: 10px;
}

.flip-box-back ul {

  padding-left: 0;
  list-style-type: none;
  margin: 0;
}

.flip-box-back li {

  margin-bottom: 1px;
  margin-top: 1px;
  font-size: 0.95rem;
}
