/*  */
  @media (max-width: 400px) {
    html {
        font-size: 5vw;
    }
  }
  .mega-container {
    height: calc(100dvh - 8rem);
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-snap-stop: always;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    overflow-x: hidden;
    display: flex;  
    flex-direction: column;
  }
  section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #191919;
  }
  section h2 {
    text-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.401);
  }
  .snap {
    min-height: calc(100dvh - 8rem);
    scroll-snap-align: start;
  }
/*  */
:root {
  --border-bot-color: gray;
}
/* first sec - START */
  .first-sec {
    margin: 0 auto;
    aspect-ratio: 2.5;
    width: 100vw;
    background-color: #ffffff;
    position: relative;
    border-bottom: 1rem solid gray;
  }
  .first-sec h1 {
    font-size: 3rem;
    color: #ffc8c8;
    margin-bottom: 1rem;
    text-shadow: 0 0 1rem rgba(0, 0, 0, 0.64), 0 0 0.2rem rgb(0, 0, 0);
    z-index: 2;
  }
  .first-sec nav {
    position: absolute;
    bottom: 1rem;
    z-index: 2;
    width: 100%;
  }
  .first-sec nav ul {
    display: flex;
    justify-content: space-around;
    padding: 0 2rem;
  }
  .first-sec nav li {
    list-style: none;
  }
  .first-sec nav li a {
    display: block;
    width: 14rem;
  }
  .wall-container {
    position: absolute;
    width: 100%;
    min-width: 62.5rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
  }
  .wall-container .wall {
    background-image: linear-gradient(rgb(255, 125, 244), rgb(255, 255, 255), rgb(255, 125, 244));
    width: 5%;
    height: 70%;
    z-index: 1;
    border: 0.05rem solid rgb(0, 0, 0);
  }
  @media (max-width: 1250px) {
    .first-sec h1 {
      position: absolute;
      top: 1rem;
      font-size: 2.5rem;
      left: 1rem;
    }
    .first-sec nav ul {
      margin-bottom: 2rem;
      gap: 0.1rem;
    }
    .first-sec nav li a {
      display: block;
      width: fit-content;
    }
    .moving-square {
      display: none;
    }
  }
  @media (max-width: 610px) {
    .first-sec nav ul {
      flex-direction: column;
    }
    .first-sec nav li a {
      width: 100%;
    }
  }
  .wall:nth-child(even){
    border-top: none;    
  }
  .wall:nth-child(odd){
    align-self: flex-end;
    border-bottom: none;    
  }
  .moving-square {
      position: absolute;
      width: 3%;
      aspect-ratio: 1;
      background-color: rgb(255, 0, 0);
      z-index: 1;
      border: 0.05rem solid black;
      left: 0;
      top: 1rem;
      animation: moveSquare 9s ease-out infinite;
  }
  @keyframes moveSquare {
    0%    { left: 0%;   top: 10%; }
    5.88% { left: 7%;   top: 10%; }
    5.88% { left: 7%;   top: 10%; }
    11.76% { left: 7%;  top:80%; }
    11.76% { left: 7%;   top: 80%; }
    17.65% { left: 18.8%;  top: 80%; }
    17.65% { left: 18.8%; top: 80%; }
    23.53% { left: 18.8%; top: 10%; }
    23.53% { left: 18.8%; top: 10%; }
    29.41% { left: 30.8%; top: 10%; }
    29.41% { left: 30.8%; top: 10%; }
    35.29% { left: 30.8%; top: 80%; }
    35.29% { left: 30.8%; top: 80%; }
    41.18% { left: 42.8%; top: 80%; }
    41.18% { left: 42.8%; top: 80%; }
    47.06% { left: 42.8%; top: 10%; }
    47.06% { left: 42.8%; top: 10%; }
    52.94% { left: 54.8%; top: 10%; }
    52.94% { left: 54.8%; top: 10%; }
    58.82% { left: 54.8%; top: 80%; }
    58.82% { left: 54.8%; top: 80%; }
    64.71% { left: 66.8%; top: 80%; }
    64.71% { left: 66.8%; top: 80%; }
    70.59% { left: 66.8%; top: 10%; }
    70.59% { left: 66.8%; top: 10%; }
    76.47% { left: 78.8%; top: 10%; }
    76.47% { left: 78.8%; top: 10%; }
    82.35% { left: 78.8%; top: 80%; }
    82.35% { left: 78.8%; top: 80%; }
    88.24% { left: 90.8%; top: 80%; }
    88.24% { left: 90.8%; top: 80%; }
    94.12% { left: 90.8%; top: 10%; }
    94.12% { left: 90.8%; top: 10%; }
    100% { left: 100%; top: 10%; }
  }
/* first sec - END */

/* mzl-sec - START */
  .mzl-sec {
    gap: 2rem;
    border-bottom: 1rem solid var(--border-bot-color);
  }
  .mzl-sec h2 {
    color: rgb(255, 255, 255);
    font-size: 2rem;
  }
  .mzl-sec h2 span {
    color: #e560ff;
  }
  .mzl-sec p {
    color: wheat;
  }
/* mzl-sec - END */

/* tiers-sec - START */
  .tiers-sec {
    gap: 2rem;
    border-bottom: 1rem solid var(--border-bot-color);
  }
  .tiers-sec h2 {
    color: rgb(255, 255, 255);
    font-size: 1.8rem;
  }
  .tiers-sec h2 span {
    color: orange;
  }
  .tiers-sec div p {
    color: wheat;
  }
/* tiers-sec - END */

/* matches-sec - START */
  .matches-sec {
    gap: 2rem;
    border-bottom: 1rem solid var(--border-bot-color);
  }
  .matches-sec h2 {
    font-size: 1.8rem;
    text-align: center;
    color: #ffffff;
  }
  .matches-sec p {
    font-size: 1rem;
    color: wheat;
  }
/* matches-sec - END */

/* join sec - START */
  .join-sec {
    gap: 2rem;
    border-bottom: 1rem solid var(--border-bot-color);
  }
  .join-sec h2 {
    font-size: 2rem;
    color: #ffffff;
  }
  .join-sec h2 span {
    color: rgb(255 80 80);
  }
  .join-sec p {
    font-size: 1rem;
    color: rgb(255, 255, 255);
  }
/* join sec - END */

/*  */
.cta-link {
  text-decoration: none;
  font-size: 1rem;
  margin: 0 auto;
  width: 100%;
  max-width: 20rem;
  text-align: center;
  color: #ffffff;
  padding: 0.7rem 0.75rem;
  border: 0.05rem solid gray;
  border-radius: 0.25rem;
  z-index: 2; 
  background-image: linear-gradient(to right, #1f1913, #dbbaba);
}
.cta-link:hover {
  background-image: linear-gradient(to right, #1f1913, #594646);
}
.nl {
  background-image: linear-gradient(to right, #000000, #242424);
}
.nl:hover {
  background-image: linear-gradient(to right, #000000ae, #000000b1);
}
.play-link {
  position: relative;
  display: inline-block;
  color: white;
  background: linear-gradient(270deg, #00ff0d, #067500, #025f00, #15ff00);
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.1rem;
  font-size: 1rem;
  width: 100%;
  border: 0.05rem ridge #646464;
  max-width: 20rem;
  text-align: center;
  padding: 0.7rem 0.75rem;
  border-radius: 0.25rem;
  z-index: 2; 
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 75, 43, 0.4);
}
.play-link:hover {
  opacity: 0.8;
}
.play-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transform: skewX(-25deg);
  animation: shine 2s linear infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes shine {
  0% {
    left: -60%;
  }
  100% {
    left: 120%;
  }
}