
/* Card container */
.card {
  width: 600px;
  height: 320px;
  perspective: 1000px; /* Adds 3D perspective */
  cursor: pointer;
  border-radius: 5px;
  transition: .80s;

}

.card:hover{
  box-shadow: 0 0 5px 2px var(--text-color);
}


/* Front of the card */
.card-front {
  display: flex;
  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: 100%;
  height: 100%;
  position: absolute;
  margin-bottom: 20px;
  backface-visibility: hidden; /* Hides the back of the card when it’s flipped */
  transition: transform 0.6s ease-in-out; /* Animation for flipping */
}

/* Back of the card */
.card-back {
  transform: rotateY(180deg); /* Initially hides the back */
  display: flex;
  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden; /* Hides the back of the card when it’s flipped */
  transition: transform 0.6s ease-in-out; /* Animation for flipping */
}
.card-front h2,
.card-back h2 {
  color: black;
}

/* Flip the card when the class 'flipped-back' is added */
.card.flipped-back .card-front {
  transform: rotateY(180deg);
}

.card.flipped-back .card-back {
  transform: rotateY(0);
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}