@font-face {
  font-family: 'OpunMaiLight';
  src: url('fonts/OpunMaiLight.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'OpunMaiLight', sans-serif;
}

.card {
  perspective: 1000px;
  cursor: pointer;
  aspect-ratio: 3 / 3.6;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.card-front {
  background-color: #1b495e;
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-back {
  transform: rotateY(180deg);
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card .text {
  font-size: 1rem;
  font-weight: 600;
  color: #1b495e;
}

.matched {
  opacity: 0.7;
  pointer-events: none;
}
