
@media (max-width: 480px) {
  


  .cards-container {
    width: 100%;
    height: 500px!important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    perspective: 1000px;
    overflow: visible!important;
    /* backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.3); */
  
  
    z-index: 999999999999;
    position: absolute;
  
    flex-wrap: wrap;
    top: 220px !important;
    align-content: flex-start!important;

  }
  .card{
min-width: 70px!important;
    /* transform: translate3d(0rem, -0.04rem, 7.96rem) rotateX(0.04deg) rotateY(29.95deg); */
    /* transform: translate3d(0rem, -0.04rem, 0.04rem) rotateX(-0.04deg) rotateY(180.05deg); */
       /* transform: rotateY(180.05deg)!important; */
    /* transform: none; */
    /* transform: rotateY(180.05deg); */
    transform: rotateY(0deg);
    width: 70px!important;
  }


  /* .card_click{
         transform: translate3d(0rem, -0.04rem, 0.04rem) rotateX(-0.04deg) rotateY(180.05deg); 
  } */

  .reset {
    font-family: 'Jim Nightshade', cursive;
    font-size: 0.9rem!important;
    z-index: 99999999999999999999;
    cursor: pointer;
    position: absolute;
    left: 50%;
    bottom: 4.3rem!important;
    transform: translateX(-50%);
    padding: 0.5rem 2rem;
    outline: none;
    border: 1px solid rgb(242, 164, 234);
    border-radius: 4px;
    color: rgb(255, 255, 255);
    background-color: rgb(16, 16, 39);
    transition: box-shadow 0.2s ease-out;
}


.img_logo {
  display: block;
  margin: 0 auto;
  text-align: center;
  width: 300px;
  margin-bottom: 50px;
  margin-top: 20px!important;
}

#bg-31 {
  width: 100%;
  height: 750px!important;
  /* margin: 20px 0; */
  position: absolute;
  /* top: 5px; */
}


  }
 

/* основные стили без адаптива */


#bg-31 {
  width: 100%;
  height: 1000px;
  /* margin: 20px 0; */

    position: absolute;
    /* top: 5px; */
}
canvas{
  width: 100%;
  height: 900px;
  margin: 20px 0;
  z-index: -1;
    position: absolute;
    top: -20px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* .logo {
  position: absolute;
  left: 50%;
  top: 1rem;
  z-index: 2;
  width: 15rem;
  transform: translate(-50%, 0);
}

.logo svg {
  width: 100%;
  height: auto;
} */

.img_logo{
  display: block;
  margin: 0 auto;
  text-align: center;
  width: 300px;
  margin-bottom: -50px;
  margin-top: 50px;

}

.container {
  /* background-image: url('../img/bg.gif'); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cards-container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  perspective: 1000px;
  overflow: hidden;
  /* backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.3); */


  z-index: 999999999999;
  position: absolute;

}

.card {
  min-width: 12rem;
  aspect-ratio: 9/16;
  border-radius: 0.5rem;
  will-change: transform;
  position: relative;
  transform-style: preserve-3d;
  transition: box-shadow 0.2s ease-out;
}

.card:hover {
  z-index: 1;
  box-shadow:
    0 0 1rem  #fff,
    0 0 2rem  #f0f,
    0 0 3rem  #0ff;
}


.card__back,
.card__front {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  backface-visibility: hidden;
}

.card__back {
  background-image: url('../img/back.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card__front {
  transform: rotateY(-180deg) translateZ(1px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.reset {
  font-family: 'Jim Nightshade', cursive;
  font-size: 2rem;
  z-index: 99999999999999999999;
  cursor: pointer;
  position: absolute;
  left: 50%;
  bottom: 9.3rem;
  transform: translateX(-50%);
  padding: 0.5rem 2rem;
  outline: none;
  border: 1px solid rgb(242, 164, 234);
  border-radius: 4px;
  color: rgb(255, 255, 255);
  background-color: rgb(16, 16, 39);
  transition: box-shadow 0.2s ease-out;
}

.reset:hover {
  box-shadow:
    0 0 1rem  #fff,
    0 0 2rem  #f0f,
    0 0 3rem  #0ff;
}
