@font-face {
  font-family: "squids";
  src: url(../assets/Fonts/GameOfSquids.ttf) format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "poppins";
  src:
    local("poppins"),
    url(../assets/Fonts/Poppins.ttf) format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "poppins-semibold";
  src:
    local("poppins-semibold"),
    url(../assets/Fonts/Poppins-SemiBold.ttf) format("truetype");
  font-display: swap;
}

/* entire container, keeps perspective */
.glx-card {
  position: relative;
  perspective: 1000px;
  perspective-origin: center;
  z-index: 100;
}
/* flip the pane when hovered */
.glx-card.flipped .flipper {
  transform: rotateY(180deg);
}

/* flip speed goes here */
.flipper {
  transition: 0.6s;
  transform-style: preserve-3d;

  position: relative;
  width: 100%;
  height: 100%;
}

/* hide back of pane during swap */
.front,
.back {
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

/* front pane, placed above back */
.front {
  z-index: 2;
  /* for firefox 31 */
  transform: rotateY(0deg);
}

/* back, initially hidden pane */
.back {
  transform: rotateY(180deg);
  pointer-events: all;
  z-index: 3;
}

.front::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 10;
  top: 0;
  left: -100%;
  display: block;
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 65%
  );
  background-position-x: 0;
  background-repeat: no-repeat;
  transition: all ease-in-out 0.65s;
  pointer-events: none;
}

.back::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  top: 0;
  left: 100%;
  display: block;
  background: linear-gradient(
    112deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 65%
  );
  background-position-x: 0;
  background-repeat: no-repeat;
  transition: all ease-in-out 0.35s;
  transition-delay: 0.35s;
  pointer-events: all;
}

.flipped .front::after {
  left: 100%;
}

.flipped .back::after {
  left: -90%;
}

.flip-button {
  position: absolute;
  max-width: 10%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.46);
  transform: translateX(-50%) translateY(-50%);
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.2;
  transition: opacity 0.3s ease-in-out;
}

.flip-button:hover {
  opacity: 1;
}

.flip-button svg {
  aspect-ratio: 1;
  aspect-ratio: 1;
  width: 50%;
  height: 50%;
  margin-left: 25%;
  margin-top: 25%;
}

.back-image {
  width: 100%;
  height: 100%;
}
.back-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-display {
  position: absolute;
  right: 1em;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5em !important;
  justify-content: center;
  align-items: center;
}
