* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial;
}
body {
  background-color: rgb(184, 193, 248);
}
.container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 600px;
}
.game__card-container {
  width: 150px;
  height: 150px;
}
.game__item {
  border: 2px solid black;
  width: 150px;
  height: 150px;
  background-color: rgb(168, 236, 232);
}

.game__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-container.selected .flipper {
  transform: rotateY(180deg);
}

.flipper {
  transition: 0.6s;
  transform-style: preserve-3d;
  position: relative;
}

.front,
.back {
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.front {
  z-index: 2;
  transform: rotateY(0deg);
}

.back {
  transform: rotateY(180deg);
}
