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

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

.playfields {
  display: flex;
  justify-content: center;
  flex: 1;
  position: relative;
  height: -webkit-fill-available;
  align-items: center;
  max-width: 70rem;
  width: 100%;
}

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

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

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

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

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

.tile_1,
.drop-zone_1 {
  top: -6%;
  left: -56%;
}

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

.tile_3,
.drop-zone_4 {
  top: 27%;
  left: -56%;
}

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

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

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

.tile_7,
.drop-zone_7 {
  top: 96%;
  left: -56%;
}

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

.tile_9,
.drop-zone_9 {
  top: -6%;
  left: 122%;
}

.tile_10,
.drop-zone_10 {
  top: -6%;
  left: 156%;
}

.tile_11,
.drop-zone_11 {
  top: 27%;
  left: 122%;
}

.tile_12,
.drop-zone_12 {
  top: 27%;
  left: 156%;
}

.tile_13,
.drop-zone_13 {
  top: 61%;
  left: 122%;
}

.tile_14,
.drop-zone_14 {
  top: 61%;
  left: 156%;
}

.tile_15,
.drop-zone_15 {
  top: 96%;
  left: 122%;
}

.tile_16,
.drop-zone_16 {
  top: 96%;
  left: 156%;
}

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

/*==========  tiles start  ==========*/

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

.header .you-win {
  top: 52px;
}

/*================================*/
#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.wrapper .playfield {
  top: 0%;
  left: 50%;
  transform: translate(-50%, 0%);
}

/*======================*/
.mobile .tile_1 {
  left: 2.059%;
  top: 52.724%;
}

.mobile .tile_2 {
  left: 0.814%;
  top: 83.629%;
}

.mobile .tile_3 {
  left: 33.958%;
  top: 53.813%;
}

.mobile .tile_4 {
  left: 33.386%;
  top: 85.382%;
}

.mobile .tile_5 {
  left: 67.527%;
  top: 52.237%;
}

.mobile .tile_6 {
  left: 98.143%;
  top: 53.943%;
}

.mobile .tile_7 {
  left: 65.512%;
  top: 84.229%;
}

.mobile .tile_8 {
  left: 95.491%;
  top: 83.56%;
}

.mobile .tile_9 {
  left: 1.164%;
  top: 114.18%;
}

.mobile .tile_10 {
  left: 33.802%;
  top: 111.509%;
}

.mobile .tile_11 {
  left: 62.917%;
  top: 115.619%;
}

.mobile .tile_12 {
  left: 94.225%;
  top: 114.616%;
}

.mobile .tile_13 {
  left: 3.185%;
  top: 146.281%;
}

.mobile .tile_14 {
  left: 32%;
  top: 144.613%;
}

.mobile .tile_15 {
  left: 95.134%;
  top: 146.681%;
}

.mobile .tile_16 {
  left: 61.999%;
  top: 148.702%;
}
@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;
  }
}
