body {
  margin: 0;
  font-family: 'Comic Sans MS', sans-serif;
  background: #2b2b2b;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#game-container {
  width: 1280px;
  height: 720px;
  background-image: url('gameboardd.png');
  background-size: cover;
  position: relative;
}

#game-board {
  position: absolute;
  top: 50px;
  left: 50px;
  display: grid;
  grid-template-columns: repeat(6, 160px);
  grid-template-rows: repeat(4, 240px);
  gap: 10px;
}

.card {
  width: 160px;
  height: 240px;
  cursor: pointer;
  position: relative;
  perspective: 1000px;
}

.card-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.card-front {
  transform: rotateY(180deg);
}

.card-back {
  background-image: url('BackOfCard.png');
}
