@import url(confetti.css);
body {
  background-color: #000;
}

.game-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.container {
  max-width: 1250px;
  padding: 0px 15px;
  margin: 0 auto;
}
.header {
  padding: 15px 0;
}
.header__title,
.game-menu__title {
  font-size: 36px;
  text-align: center;
  margin: 0;
  color: #fff;
}
.game-section {
  padding-top: 50px;
}
.game-section__container {
  position: relative;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.game-menu__dif-btn,
.restart-btn {
  font-size: 34px;
  cursor: pointer;
  padding: 15px 20px;
  transition: all 0.3s ease-in;
  background-color: rgb(0, 44, 190);
  color: #fff;
}
.game-menu__dif-btn:hover,
.game-menu__dif-btn:focus {
  background-color: rgb(33, 82, 245);
}

.game-table {
  max-width: 500px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
}
.game-card {
  width: 50px;
  height: 100px;
  flex: 0 0 23%;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: purple;
  border-radius: 5px;
  margin: 1%;
  transition: all 0.2s ease;
}
.game-card i {
  font-size: 40px;
  display: none;
}
.game-card i + i {
  display: block;
}
.game-card.flip {
  background-color: #5dc6ff;
  transform: perspective(100px) rotateY(180deg);
}
.game-card.flip i {
  display: block;
}
.game-card.flip i + i {
  display: none;
}
.game-card.successfuly {
  background-color: #76db82;
}
.game-card:hover {
  background-color: #bee7c3;
}
