/* ================================= main start ================================= */
.main {
  display: flex;
  align-items: center;
  justify-content: center;
}

/*==========  playfields start  ==========*/
.playfields {
  display: flex;
  justify-content: center;
  flex: 1;
  position: relative;
  height: -webkit-fill-available;
  align-items: center;
  max-width: 70rem;
  width: 100%;
  margin-bottom: 23%;
  margin-bottom: 5%;
}

.playfield {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 70 / 70;
  width: calc(100% / 2.97);
  display: flex;
}

/*==========  playfields end  ==========*/

/*==========  tiles start  ==========*/
.tiles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 70 / 70;
  width: calc(100% / 3.3);
  display: flex;
}

.tile {
  position: absolute;
  width: 50%;
  height: 50%;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  cursor: default;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  /* border-radius: 3px;
  overflow: hidden; */
}

.mobile.wrapper .header {
  margin-bottom: 88px;
}

.mobile.wrapper .playfield {
  top: -2%;
  left: 50%;
  transform: translate(-50%, 0%);
}

.mobile .tiles {
  top: 53%;
}

.mobile .tile {
  width: 45%;
  height: 45%;
}

.tile_1,
.drop-zone_1 {
  top: -10%;
  left: -61%;
}

.tile_2,
.drop-zone_2 {
  left: -61.26%;
  top: 18.179%;
}

.tile_3,
.drop-zone_4 {
  top: 35%;
  left: -61%;
}

.tile_4,
.drop-zone_4 {
  top: 65%;
  left: -61%;
}

.tile_5,
.drop-zone_5 {
  top: 95%;
  left: -61%;
}

.tile_6,
.drop-zone_6 {
  top: 135%;
  left: 50%;
}

.tile_7,
.drop-zone_7 {
  top: 135%;
  left: -21%;
}

.tile_8,
.drop-zone_8 {
  top: 135%;
  left: 91%;
}

.tile_9,
.drop-zone_9 {
  top: 135%;
  left: 121%;
}

.tile_10,
.drop-zone_10 {
  top: 135%;
  left: 9%;
}

.tile_11,
.drop-zone_11 {
  top: -10%;
  left: 162%;
}

.tile_12,
.drop-zone_12 {
  top: 18%;
  left: 162%;
}

.tile_13,
.drop-zone_13 {
  top: 35%;
  left: 162%;
}

.tile_14,
.drop-zone_14 {
  top: 65%;
  left: 161%;
}

.tile_15,
.drop-zone_15 {
  top: 95%;
  left: 161%;
}

/*==========  tiles end  ==========*/

/*==========  tiles start  ==========*/
.drop-zones {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 70 / 70;
  width: calc(100% / 3.3);
  display: flex;
  pointer-events: none;
}

.drop-zone {
  position: absolute;
  width: 27.14%;
  height: 27.14%;
  transform: translate(-50%, -50%) scale(1);
  cursor: pointer;
}

/*==========  tiles end  ==========*/

path,
polygon {
  pointer-events: all;
  cursor: pointer;
}

path[fill="transparent"][stroke="transparent"] {
  pointer-events: none;
}

path[fill="transparent"],
path[stroke="transparent"] {
  pointer-events: none;
}

.challenge-2
  .pagination-link-wrapper:has(.pagination-btn.active[data-challenge="2"])
  .pagination-text {
  width: 45vw;
}

@media (min-width: 768px) {
  .challenge-2 .footer {
    margin-bottom: 1.1rem;
  }
  .challenge-3 .footer {
    margin-bottom: 1.1rem;
  }
}

@media (min-width: 900px) {
  .challenge-2 .footer {
    margin-bottom: 1.5rem;
  }
  .challenge-3 .footer {
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .challenge-2 .footer {
    margin-bottom: 0.5rem;
  }
  .challenge-3 .footer {
    margin-bottom: 0.5rem;
  }
}

/*================================*/
#resize-preloader {
  position: fixed;
  top: 0;
  left: -101%;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  /* Dark background in QuintaPaths style */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
}

#resize-preloader.show {
  left: 0%;
  opacity: 1;
}

.puzzle-container {
  display: flex;
  gap: 10px;
}

.puzzle-piece {
  width: 60px;
  height: 60px;
  background: transparent;
  animation: assemble 1.5s infinite ease-in-out;
}

/* Delay for each of the 5 elements */
.puzzle-piece:nth-child(1) {
  animation-delay: 0.1s;
}

.puzzle-piece:nth-child(2) {
  animation-delay: 0.2s;
}

.puzzle-piece:nth-child(3) {
  animation-delay: 0.3s;
}

.puzzle-piece:nth-child(4) {
  animation-delay: 0.4s;
}

.puzzle-piece:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes assemble {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(90deg);
    opacity: 1;
  }
}

/*======================*/
.mobile .tile_1 {
  left: 74%;
  top: 67.646%;
}

.mobile .tile_2 {
  left: 73.747%;
  top: 92.679%;
  transform: translate(-50%, -50%) rotate(180deg);
}

.mobile .tile_3 {
  left: 97.63%;
  top: 56.491%;
}

.mobile .tile_4 {
  left: 97.745%;
  top: 80.842%;
}

.mobile .tile_5 {
  left: 97.367%;
  top: 105.148%;
}

.mobile .tile_6 {
  left: 50%;
  top: 67.744%;
}

.mobile .tile_7 {
  left: 37.427%;
  top: 92.121%;
}

.mobile .tile_8 {
  left: 38.057%;
  top: 116.976%;
}

.mobile .tile_9 {
  left: 62.843%;
  top: 116.425%;
}

.mobile .tile_10 {
  left: 61.053%;
  top: 92.606%;
}

.mobile .tile_11 {
  left: 26%;
  top: 67.646%;
}

.mobile .tile_12 {
  left: 25.661%;
  top: 93.573%;
  transform: translate(-50%, -50%) rotate(180deg);
}

.mobile .tile_13 {
  left: 2.069%;
  top: 56.843%;
}

.mobile .tile_14 {
  left: 1.956%;
  top: 81.708%;
}

.mobile .tile_15 {
  left: 2.151%;
  top: 106.034%;
}

@media (max-width: 767px) {
  .mobile.wrapper.challenge-1,
  .mobile.wrapper.challenge-2,
  .mobile.wrapper.challenge-3 {
    height: 80dvh;
    padding: 0;
  }

  .mobile.wrapper .main {
    height: 88dvh;
  }
}
