/* ================================= 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%;
}

.mobile.challenge-1 .playfields {
  width: 98%;
}

.mobile.wrapper.challenge-1 .playfield {
  transform: translate(-50%, -50%) rotate(90deg);
}

.mobile.challenge-2 .playfields {
  width: 82%;
}

.mobile.challenge-3 .playfields {
  width: 82%;
}

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

.challenge-2 .playfield {
  width: calc(100% / 2.6);
}

.challenge-3 .playfield {
  width: calc(100% / 2.6);
}

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

.mobile.wrapper.challenge-1 .playfield {
  width: 98%;
}

.mobile.challenge-1 .tiles {
  width: 98%;
}

.mobile.wrapper.challenge-2 .playfield,
.mobile.wrapper.challenge-3 .playfield {
  width: 76%;
  width: 100%;
}

.mobile.challenge-2 .tiles,
.mobile.challenge-3 .tiles {
  width: 76%;
  width: 100%;
}

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

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

.challenge-2 .tiles {
  width: calc(100% / 2.6);
}

.challenge-3 .tiles {
  width: calc(100% / 2.6);
}

.tile {
  position: absolute;
  width: 23.6%;
  height: 23.6%;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  cursor: default;
  z-index: 5;
}

.challenge-2 .tile {
  width: 45%;
  height: 45%;
}

.challenge-3 .tile {
  width: 45%;
  height: 45%;
}

.tile_1,
.drop-zone_1 {
  top: 22%;
  left: 7.4%;
}

.tile_2,
.drop-zone_2 {
  top: 22%;
  left: 17%;
}

.tile_3,
.drop-zone_3 {
  top: 22%;
  left: 26.2%;
}

.tile_4,
.drop-zone_4 {
  top: 22%;
  left: 35.8%;
}

.tile_5,
.drop-zone_5 {
  top: 22%;
  left: 45.2%;
}

.tile_6,
.drop-zone_6 {
  top: 22%;
  left: 54.4%;
}

.tile_7,
.drop-zone_7 {
  top: 22%;
  left: 64.1%;
}

.tile_8,
.drop-zone_8 {
  top: 22%;
  left: 73.4%;
}

.tile_9,
.drop-zone_9 {
  top: 22%;
  left: 83%;
}

.tile_10,
.drop-zone_10 {
  top: 22%;
  left: 92.4%;
}

.tile_11,
.drop-zone_11 {
  top: 78%;
  left: 7.4%;
}

.tile_12,
.drop-zone_12 {
  top: 78%;
  left: 17%;
}

.tile_13,
.drop-zone_13 {
  top: 78%;
  left: 26.2%;
}

.tile_14,
.drop-zone_14 {
  top: 78%;
  left: 35.8%;
}

.tile_15,
.drop-zone_15 {
  top: 78%;
  left: 45.2%;
}

.tile_16,
.drop-zone_16 {
  top: 78%;
  left: 54.4%;
}

.tile_17,
.drop-zone_17 {
  top: 78%;
  left: 64.1%;
}

.tile_18,
.drop-zone_18 {
  top: 78%;
  left: 73.4%;
}

.tile_19,
.drop-zone_19 {
  top: 78%;
  left: 83%;
}

.tile_20,
.drop-zone_20 {
  top: 78%;
  left: 92.4%;
}

/* .challenge-2 .tile */

.challenge-2 .tile_1,
.challenge-2 .drop-zone_1 {
  top: 22%;
  left: -76%;
}

.challenge-2 .tile_2,
.challenge-2 .drop-zone_2 {
  top: 22%;
  left: -60%;
}

.challenge-2 .tile_3,
.challenge-2 .drop-zone_3 {
  top: 22%;
  left: -44%;
}

.challenge-2 .tile_4,
.challenge-2 .drop-zone_4 {
  top: 22%;
  left: -28%;
}

.challenge-2 .tile_5,
.challenge-2 .drop-zone_5 {
  top: 22%;
  left: -12%;
}

.challenge-2 .tile_6,
.challenge-2 .drop-zone_6 {
  top: 22%;
  left: 112%;
}

.challenge-2 .tile_7,
.challenge-2 .drop-zone_7 {
  top: 22%;
  left: 128%;
}

.challenge-2 .tile_8,
.challenge-2 .drop-zone_8 {
  top: 22%;
  left: 144%;
}

.challenge-2 .tile_9,
.challenge-2 .drop-zone_9 {
  top: 22%;
  left: 160%;
}

.challenge-2 .tile_10,
.challenge-2 .drop-zone_10 {
  top: 22%;
  left: 176%;
}

.challenge-2 .tile_11,
.challenge-2 .drop-zone_11 {
  top: 78%;
  left: -76%;
}

.challenge-2 .tile_12,
.challenge-2 .drop-zone_12 {
  top: 78%;
  left: -60%;
}

.challenge-2 .tile_13,
.challenge-2 .drop-zone_13 {
  top: 78%;
  left: -44%;
}

.challenge-2 .tile_14,
.challenge-2 .drop-zone_14 {
  top: 78%;
  left: -28%;
}

.challenge-2 .tile_15,
.challenge-2 .drop-zone_15 {
  top: 78%;
  left: -12%;
}

.challenge-2 .tile_16,
.challenge-2 .drop-zone_16 {
  top: 78%;
  left: 112%;
}

.challenge-2 .tile_17,
.challenge-2 .drop-zone_17 {
  top: 78%;
  left: 128%;
}

.challenge-2 .tile_18,
.challenge-2 .drop-zone_18 {
  top: 78%;
  left: 144%;
}

.challenge-2 .tile_19,
.challenge-2 .drop-zone_19 {
  top: 78%;
  left: 160%;
}

.challenge-2 .tile_20,
.challenge-2 .drop-zone_20 {
  top: 78%;
  left: 176%;
}

/* .challenge-3 .tile */

.challenge-3 .tile_1,
.challenge-3 .drop-zone_1 {
  top: 22%;
  left: -76%;
}

.challenge-3 .tile_2,
.challenge-3 .drop-zone_2 {
  top: 22%;
  left: -60%;
}

.challenge-3 .tile_3,
.challenge-3 .drop-zone_3 {
  top: 22%;
  left: -44%;
}

.challenge-3 .tile_4,
.challenge-3 .drop-zone_4 {
  top: 22%;
  left: -28%;
}

.challenge-3 .tile_5,
.challenge-3 .drop-zone_5 {
  top: 22%;
  left: -12%;
}

.challenge-3 .tile_6,
.challenge-3 .drop-zone_6 {
  top: 22%;
  left: 112%;
}

.challenge-3 .tile_7,
.challenge-3 .drop-zone_7 {
  top: 22%;
  left: 128%;
}

.challenge-3 .tile_8,
.challenge-3 .drop-zone_8 {
  top: 22%;
  left: 144%;
}

.challenge-3 .tile_9,
.challenge-3 .drop-zone_9 {
  top: 22%;
  left: 160%;
}

.challenge-3 .tile_10,
.challenge-3 .drop-zone_10 {
  top: 22%;
  left: 176%;
}

.challenge-3 .tile_11,
.challenge-3 .drop-zone_11 {
  top: 78%;
  left: -76%;
}

.challenge-3 .tile_12,
.challenge-3 .drop-zone_12 {
  top: 78%;
  left: -60%;
}

.challenge-3 .tile_13,
.challenge-3 .drop-zone_13 {
  top: 78%;
  left: -44%;
}

.challenge-3 .tile_14,
.challenge-3 .drop-zone_14 {
  top: 78%;
  left: -28%;
}

.challenge-3 .tile_15,
.challenge-3 .drop-zone_15 {
  top: 78%;
  left: -12%;
}

.challenge-3 .tile_16,
.challenge-3 .drop-zone_16 {
  top: 78%;
  left: 112%;
}

.challenge-3 .tile_17,
.challenge-3 .drop-zone_17 {
  top: 78%;
  left: 128%;
}

.challenge-3 .tile_18,
.challenge-3 .drop-zone_18 {
  top: 78%;
  left: 144%;
}

.challenge-3 .tile_19,
.challenge-3 .drop-zone_19 {
  top: 78%;
  left: 160%;
}

.challenge-3 .tile_20,
.challenge-3 .drop-zone_20 {
  top: 78%;
  left: 176%;
}

/*======================*/
.mobile.challenge-2 .tile_1,
.mobile.challenge-3 .tile_1 {
  top: -23%;
  left: 5.5%;
}

.mobile.challenge-2 .tile_2,
.mobile.challenge-3 .tile_2 {
  top: -23%;
  left: 15.5%;
}

.mobile.challenge-2 .tile_3,
.mobile.challenge-3 .tile_3 {
  top: -23%;
  left: 25.5%;
}

.mobile.challenge-2 .tile_4,
.mobile.challenge-3 .tile_4 {
  top: -23%;
  left: 35.5%;
}

.mobile.challenge-2 .tile_5,
.mobile.challenge-3 .tile_5 {
  top: -23%;
  left: 45.5%;
}

.mobile.challenge-2 .tile_6,
.mobile.challenge-3 .tile_6 {
  top: -23%;
  left: 55.5%;
}

.mobile.challenge-2 .tile_7,
.mobile.challenge-3 .tile_7 {
  top: -23%;
  left: 65.5%;
}

.mobile.challenge-2 .tile_8,
.mobile.challenge-3 .tile_8 {
  top: -23%;
  left: 75.5%;
}

.mobile.challenge-2 .tile_9,
.mobile.challenge-3 .tile_9 {
  top: -23%;
  left: 85.5%;
}

.mobile.challenge-2 .tile_10,
.mobile.challenge-3 .tile_10 {
  top: -23%;
  left: 95.5%;
}

.mobile.challenge-2 .tile_11,
.mobile.challenge-3 .tile_11 {
  top: 123%;
  left: 5.5%;
}

.mobile.challenge-2 .tile_12,
.mobile.challenge-3 .tile_12 {
  top: 123%;
  left: 15.5%;
}

.mobile.challenge-2 .tile_13,
.mobile.challenge-3 .tile_13 {
  top: 123%;
  left: 25.5%;
}

.mobile.challenge-2 .tile_14,
.mobile.challenge-3 .tile_14 {
  top: 123%;
  left: 35.5%;
}

.mobile.challenge-2 .tile_15,
.mobile.challenge-3 .tile_15 {
  top: 123%;
  left: 45.5%;
}

.mobile.challenge-2 .tile_16,
.mobile.challenge-3 .tile_16 {
  top: 123%;
  left: 55.5%;
}

.mobile.challenge-2 .tile_17,
.mobile.challenge-3 .tile_17 {
  top: 123%;
  left: 65.5%;
}

.mobile.challenge-2 .tile_18,
.mobile.challenge-3 .tile_18 {
  top: 123%;
  left: 75.5%;
}

.mobile.challenge-2 .tile_19,
.mobile.challenge-3 .tile_19 {
  top: 123%;
  left: 85.5%;
}

.mobile.challenge-2 .tile_20,
.mobile.challenge-3 .tile_20 {
  top: 123%;
  left: 95.5%;
}

/*======================*/
/*==========  tiles end  ==========*/
.mobile.wrapper .playfields {
  height: 80vh;
  /*height: 100dvh;*/
}

/*==========  tiles start  ==========*/
.drop-zones {
  flex: 1;
  position: absolute;
  height: -webkit-fill-available;
  align-items: center;
  width: 100%;
  pointer-events: none;
}

.drop-zone {
  position: absolute;
  width: 6.5%;
  aspect-ratio: 70 / 70;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

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

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

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

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

.tile-tooltip {
  position: fixed;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-color: #cccccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tile-tooltip-img {
  width: 25px;
}

.tile-tooltip.show {
  opacity: 1;
}

/*======================*/
/*==== resize loader ===*/
/*======================*/

/*================================*/
#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: 25px;
}

.puzzle-piece {
  width: 30px;
  height: 30px;
  background: #00ffcc;
  /* Accent color of paths */
  border-radius: 4px;
  animation: assemble 1.5s infinite ease-in-out;
}

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

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

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

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

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

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

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

.mobile.challenge-1 .tile_1 {
  top: 12.5%;
  left: 31.5%;
}

.mobile.challenge-1 .tile_2 {
  top: 37.5%;
  left: 19.6%;
}

.mobile.challenge-1 .tile_3 {
  top: 37.5%;
  left: 25.5%;
}

.mobile.challenge-1 .tile_4 {
  top: 37.5%;
  left: 31.5%;
}

.mobile.challenge-1 .tile_5 {
  top: 63%;
  left: 19.6%;
}

.mobile.challenge-1 .tile_6 {
  top: 63%;
  left: 25.5%;
}

.mobile.challenge-1 .tile_7 {
  top: 63%;
  left: 31.5%;
}

.mobile.challenge-1 .tile_8 {
  top: 88%;
  left: 19.6%;
}

.mobile.challenge-1 .tile_9 {
  top: 88%;
  left: 25.5%;
}

.mobile.challenge-1 .tile_10 {
  top: 88%;
  left: 31.5%;
}

.mobile.challenge-1 .tile_11 {
  top: 12.5%;
  left: 69%;
}

.mobile.challenge-1 .tile_12 {
  top: 63%;
  left: 81%;
}

.mobile.challenge-1 .tile_13 {
  top: 37.5%;
  left: 69%;
}

.mobile.challenge-1 .tile_14 {
  top: 37.5%;
  left: 75%;
}

.mobile.challenge-1 .tile_15 {
  top: 37.5%;
  left: 81%;
}

.mobile.challenge-1 .tile_16 {
  top: 63%;
  left: 69%;
}

.mobile.challenge-1 .tile_17 {
  top: 63%;
  left: 75%;
}

.mobile.challenge-1 .tile_18 {
  top: 88%;
  left: 69%;
}

.mobile.challenge-1 .tile_19 {
  top: 88%;
  left: 75%;
}

.mobile.challenge-1 .tile_20 {
  top: 88%;
  left: 81%;
}

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