.game-card {
  max-width: 330px;
  width: 100%;
  padding: 20px;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border-radius: 32px;
  position: relative;
  background-image: url("/img/card.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.game-card-title {
  color: #000;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  font-family: "Lora";
}
.game-card-subtitle {
  color: #353434;
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  text-transform: capitalize;
  font-family: "Montserrat";
}
.game-card-desk {
  color: #6d655f;
  font-family: "Lora";
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-transform: capitalize;
  margin-bottom: 4px;
}
.boxes {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 4px;
  position: relative;
}

.box {
  width: 80px;
  height: 80px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.box:hover {
  transform: scale(1.1);
}

.box img {
  width: 100%;
  height: 100%;
}

.box img.open {
  position: absolute;
  width: 200px;
  height: 170px;
  transform: translate(-50%, 0%);
  left: 50%;
  bottom: 0;
  z-index: 10;
}
.btn-game {
  border-radius: 32px;
  padding: 12px 32px;
  background: linear-gradient(
    270deg,
    #000 0%,
    #151515 25.5%,
    #353434 49.5%,
    #151515 78%,
    #000 100%
  );
  color: #fff;
  text-align: center;
  font-family: "Lora";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  text-decoration: none;
  animation: glowing 1300ms infinite;
}
@keyframes glowing {
  0% {
    background-color: #2a2928;
    box-shadow: 0 0 14px #2a2928;
  }
  50% {
    background-color: #2a2928;
    box-shadow: 0 0 20px #2a2928;
  }
  100% {
    background-color: #2a2928;
    box-shadow: 0 0 14px #2a2928;
  }
}
.box.animate {
  transform: scale(1.5);
  opacity: 0.5;
  animation: shake 1s ease;
}
@keyframes shake {
  0% {
    transform: rotate(00deg);
  }
  25% {
    transform: rotate(30deg);
  }
  50% {
    transform: rotate(-30deg);
  }
  75% {
    transform: rotate(30deg);
  }
  100% {
    transform: rotate(00deg);
  }
}
.modal-content-close {
  border: none;
  width: 20px;
  height: 20px;
  background-color: rgba(0, 0, 0, 0);
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
}
.close {
  width: 10px;
  height: 10px;
  display: block;
  margin: 0 auto;
  background-image: url(../../img/close.svg);
  background-repeat: no-repeat;
  background-position: center;
}
.game-card-wrapper.closed {
  display: none;
}
.game-card {
  margin: 0 auto;
}
.game-card-wrapper {
  position: fixed;
  z-index: 1000;
  padding-top: 59px;
  align-items: center;
  justify-content: center;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.88);
  display: none;
}
@media (min-width: 834px) {
  .game-card {
    max-width: 600px;
  }
  .game-card-desk {
    font-size: 18px;
  }
  .game-card-title {
    font-size: 24px;
  }
  .game-card-subtitle {
    font-size: 16px;
  }
}
