/* Tiny portrait phones (like iPhone SE, 320px) */
/* Load Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

.flipbox-wrapper {
  width: 100%;
  height: 300px;
  perspective: 1200px;
/*  margin-bottom: 2rem;*/
}

.flipbox {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.9s ease;
  transform-style: preserve-3d;
}

.flipbox-wrapper:hover .h-flipbox {
  transform: rotateY(180deg);
}

.flipbox-wrapper:hover .v-flipbox {
  transform: rotateX(180deg);
}

.flipbox-side {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  /* text-shadow: 1px 1px 3px rgba(0, 0, 0, .9); */
  text-shadow: 1px 1px 2px rgba(255, 255, 255, .5);
  padding: 2rem;
  background-size: cover;
  background-position: center;
  background-blend-mode: color-burn;
  transform-style: preserve-3d;
}

.h-flipbox .flipbox-front {
  background-image:
    linear-gradient(to bottom, rgba(176, 141, 87, 0.2), rgba(0, 0, 0, 0.7)),
    url('../images/flipbox-back.webp');
  background-blend-mode: color-burn;
}

.h-flipbox .flipbox-back {
  transform: rotateY(180deg);
  background-image:
    linear-gradient(to bottom, rgba(184, 134, 11, 0.9), rgba(184, 134, 11, 0.9)),
    url('../images/flipbox-back2.webp');
  background-blend-mode: darken;
}

.v-flipbox .flipbox-front {
  background-image:
    /*repeating-linear-gradient(45deg, #FFD700, #FFD700 10px, #8B0000 10px, #8B0000 20px),*/
    linear-gradient(to bottom, rgba(184, 134, 11, 0.9), rgba(184, 134, 11, 0.9)),
    url('../images/flipbox-front.webp');
  background-blend-mode: darken;
}

.v-flipbox .flipbox-back {
  transform: rotateX(180deg);
  background-image:
    linear-gradient(to bottom, rgba(212, 175, 55, 0.7), rgba(0, 0, 0, 0.7)),
    url('../images/flipbox-back.webp');
  background-blend-mode: darken
}

.flipbox-content {
  transform: translateZ(60px);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flipbox-content {
  max-width: 850px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  text-align: center;
  font-family: 'Roboto', sans-serif;
}

.flipbox-content i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.flipbox-content h2 {
  font-family: 'Jost', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* MOBILE FIRST */
.flipbox-content h2 {
  font-size: 1.8rem;       /* ~28px */
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: #fff;
  margin-bottom: 1rem;
}

.flipbox-content p {
  font-size: 1rem;
  font-style: italic;
  max-width: 700px;
}

.flipbox-content p {
  font-size: 1.5rem;       /* ~15px */
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}



/* --- XS Custom Breakpoints: <576px --- */

@media (min-width: 360px) {
}

/* Upper-range phones in portrait (480px - 575.98px) */
@media (min-width: 480px) {
  /* Styles for larger portrait phones */
}

/* --- SM: 576px to 767.98px --- */
@media (min-width: 576px) {
  /* SM portrait styles */

  .flipbox-content i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .flipbox-content h2 {
    font-size: 1.75rem;         /* ~32px */
  }

  .flipbox-content p {
    font-size: 1.25rem;      /* ~17px */
  }

}

/* --- MD: 768px to 991.98px --- */
@media (min-width: 768px) {
  /* MD portrait styles */

  .flipbox-wrapper {
    width: 100%;
    height: 300px;
    perspective: 1200px;
/*    margin-bottom: 2rem;*/
  }

  .flipbox-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  
  .flipbox-content h2 {
    font-size: 2rem;      /* ~36px */
    line-height: 1.15;
  }

  .flipbox-content p {
    font-size: 1.5rem;     /* ~18px */
  }
}

/* --- LG: 992px to 1199.98px --- */
@media (min-width: 992px) {
  /* LG portrait styles */

}

/* --- XL: 1200px to 1399.98px --- */
@media (min-width: 1200px) {
  /* XL portrait styles */
  .flipbox-content h2 {
    font-size: 2.75rem;      /* ~44px */
  }

  .flipbox-content p {
    font-size: 1.25rem;      /* ~20px */
  }
}

/* --- XXL: 1400px and up --- */
@media (min-width: 1400px) {
  /* XXL portrait styles */
}
