@import url("reset.css");
@import url("../fonts/fonts.css");
@import url("animations.css");
html {
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}
body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 19px;
  background-color: rgba(10, 17, 40, 1);
  background-image: url("../images/background.png");
  background-size: cover;
  > * {
    width: 100%;
    align-items: stretch;
  }
}
div,
section {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.column {
  flex-direction: column;
}
.block {
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 4px inset rgba(63, 144, 191, 1);
  overflow: hidden;
}
header {
  height: 591px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  size: 100%;
  svg {
    animation: aurumCycle 4s infinite;
    .anim {
      transition:
        fill-opacity 0.7s linear,
        fill 0.7s linear;
      fill-opacity: var(--opac);
      fill: var(--fil);
    }
  }
}
.block {
  position: relative;
}
.screen1 {
  > * {
    width: 413px;
  }
  svg {
    width: 80%;
    circle {
      filter: drop-shadow(0 0 5px #fff);
    }
  }
  > .block {
    height: 453px;
  }
  > .block:first-child {
    div {
      position: absolute;
      width: 20%;
      height: 6%;
      top: 47%;
      left: 40%;
      background: #3f90bf;
    }
    :nth-child(1) {
      animation: cif1 6s ease-in-out infinite alternate;
    }
    :nth-child(2) {
      animation: cif2 6s ease-in-out infinite alternate;
    }
    :nth-child(3) {
      animation: cif3 6s ease-in-out infinite alternate;
    }
    :nth-child(4) {
      animation: cif4 6s ease-in-out infinite alternate;
    }
    :nth-child(5) {
      animation: cif5 6s ease-in-out infinite alternate;
    }
    :nth-child(6) {
      animation: cif6 6s ease-in-out infinite alternate;
    }
    :nth-child(7) {
      animation: cif7 6s ease-in-out infinite alternate;
    }
    :nth-child(8) {
      animation: cif8 6s ease-in-out infinite alternate;
    }
    :nth-child(9) {
      animation: cif9 6s ease-in-out infinite alternate;
    }
    :nth-child(10) {
      animation: cif10 6s ease-in-out infinite alternate;
    }
    :nth-child(11) {
      animation: cif11 6s ease-in-out infinite alternate;
    }
    :nth-child(12) {
      animation: cif12 6s ease-in-out infinite alternate;
    }
    :nth-child(13) {
      animation: cif13 6s ease-in-out infinite alternate;
    }
    :nth-child(14) {
      animation: cif14 6s ease-in-out infinite alternate;
    }
    :nth-child(15) {
      animation: cif15 6s ease-in-out infinite alternate;
    }
    :nth-child(16) {
      animation: cif16 6s ease-in-out infinite alternate;
    }
    :nth-child(17) {
      animation: cif17 6s ease-in-out infinite alternate;
    }
  }
  .kr > div {
    position: absolute;
    border-radius: 50%;
    border: 3px rgba(255, 255, 255, 0.8) solid;
  }
  .circle:nth-of-type(1) {
    animation: krug1 1.8s ease-in-out infinite;
  }
  .circle:nth-of-type(2) {
    animation: krug2 1.8s ease-in-out infinite 0.1s;
  }
  .circle:nth-of-type(3) {
    animation: krug3 1.8s ease-in-out infinite 0.2s;
  }
  .circle:nth-of-type(4) {
    animation: krug4 1.8s ease-in-out infinite 0.3s;
  }
  .circle:nth-of-type(5) {
    animation: krug5 1.8s ease-in-out infinite 0.4s;
  }
  .circle:nth-of-type(6) {
    animation: krug6 1.8s ease-in-out infinite 0.5s;
  }
  .circle:nth-of-type(7) {
    animation: krug7 1.8s ease-in-out infinite 0.6s;
  }
  .circle:nth-of-type(8) {
    animation: krug8 1.8s ease-in-out infinite 0.7s;
  }
  > div.dream {
    > * {
      position: absolute;
      bottom: 0px;
      left: 50%;
      transform: translateX(-50%);
      animation: light 6s ease-in-out infinite;
    }
    :nth-child(1) {
      width: 358px;
      height: 358px;
      border-radius: 357.908px;
      background: #3f90bf;
      filter: blur(113px);
    }
    :nth-child(2) {
      width: 182px;
      height: 85px;
      background: #f2f3ae;
      filter: blur(70px);
      transform: translate(-50%, -45px);
    }
  }
  .kr {
    height: 200px;
  }
}
.msh {
  position: relative;
  height: 98px;
  :nth-child(1) {
    --delay: 0;
  }
  :nth-child(2) {
    --delay: 1;
    top: 7%;
  }
  :nth-child(3) {
    --delay: 2;
    top: -7%;
  }
  :nth-child(4) {
    --delay: 3;
  }
  :nth-child(5) {
    --delay: 4;
    top: 7%;
  }
  :nth-child(6) {
    --delay: 5;
    top: -7%;
  }
  :nth-child(7) {
    --delay: 6;
  }
  :nth-child(8) {
    --delay: 7;
    top: 7%;
  }
  :nth-child(9) {
    --delay: 8;
  }
  :nth-child(10) {
    --delay: 9;
  }
  img:hover {
    transform: scale(1.2);
  }
}
img[src*="mushroom.png"] {
  left: -120px;
  position: absolute;
  animation: move 8s linear infinite;
  animation-delay: calc(var(--delay, 0) * 0.8s);
  transition: 0.3s ease-in-out;
}
.screen2 {
  font-family: "Anonymous Pro", monospace, sans-serif;
  font-size: 28px;
  line-height: 20%;
  color: rgba(255, 255, 255, 0.8);
  > * {
    width: 630px;
    height: 761px;
  }
  .txt {
    height: 374px;
    svg {
      cursor: pointer;
      transition: 0.2s ease-in-out;
      overflow: hidden;
    }
    svg:hover {
      fill: cyan;
      path {
        stroke: cyan;
      }
      filter: drop-shadow(0 0 15px #0ff) drop-shadow(0 0 20px #0ff);
      transform: scale(1.1);
    }
  }
  .circle {
    border-radius: 50%;
    background: radial-gradient(
      circle at center,
      rgba(8, 0, 119, 1) 10%,
      rgba(0, 255, 255, 1) 70%
    );
    filter: blur(0.6rem);
    box-shadow:
      0 0 5px cyan,
      0 0 25px cyan,
      0 0 50px cyan,
      0 0 100px cyan,
      0 0 200px cyan;
    position: absolute;
  }

  .block {
    position: relative;
  }
  .light {
    height: 373px;
    width: 305px;
    img {
      position: absolute;
      top: -15%;
      right: -25%;
    }
  }
  .circle:nth-of-type(1) {
    background: #0ff;
    width: 139px;
    height: 139px;
    top: 408.49px;
    left: 351.89px;
    animation: first_circle 25s linear infinite;
  }
  .circle:nth-of-type(2) {
    width: 266px;
    height: 266px;
    top: -40.17px;
    left: -113.75px;
    animation: second_circle 23s linear infinite;
  }
  .circle:nth-of-type(3) {
    width: 400px;
    height: 400px;
    top: 278px;
    left: 152px;
    animation: tretiy_circle 18s linear infinite;
  }
  .over {
    gap: 8px;
  }
  .thinking {
    gap: 2px;
  }
  .kills {
    gap: 6px;
  }
  .row {
    justify-content: space-between;
    .column {
      width: 305px;
      align-items: center;
      p {
        animation: trid 6s linear infinite;
        animation-delay: calc(var(--delay, 0) * 0.25s);
      }
      :nth-child(1) {
        --delay: 0;
      }
      :nth-child(2) {
        --delay: 1;
      }
      :nth-child(3) {
        --delay: 2;
      }
      :nth-child(4) {
        --delay: 3;
      }
      :nth-child(5) {
        --delay: 4;
      }
      :nth-child(6) {
        --delay: 5;
      }
      :nth-child(7) {
        --delay: 6;
      }
      :nth-child(8) {
        --delay: 7;
      }
      :nth-child(9) {
        --delay: 8;
      }
      :nth-child(10) {
        --delay: 9;
      }
      :nth-child(11) {
        --delay: 10;
      }
      :nth-child(12) {
        --delay: 11;
      }
      :nth-child(13) {
        --delay: 12;
      }
      :nth-child(14) {
        --delay: 13;
      }
      :nth-child(15) {
        --delay: 14;
      }
    }
  }
}
.screen3 {
  > div {
    width: 50%;
    overflow: clip;
  }
  .block {
    width: 50%;
    > div {
      position: relative;
      width: 376px;
      height: 100%;
      > * {
        position: absolute;
      }
      img {
        bottom: 0;
      }
      div {
        justify-content: space-between;
        width: 98px;
        bottom: 20.5%;
        animation: eyes 2s ease-in-out infinite;
        .circle {
          width: 24px;
          height: 24px;
          border-radius: 50%;
          background-color: rgba(8, 15, 33, 1);
        }
      }
    }
  }
}
.screen4 {
  > .row {
    gap: 4px;
    .column {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      width: fit-content;
      height: 214px; /* ⬅️ ФИКСИРОВАННАЯ высота */
      gap: 0; /* ⬅️ УБРАТЬ gap, используем margin */
      &:nth-child(1) {
        --delay: 0;
      }
      &:nth-child(2) {
        --delay: 1;
      }
      &:nth-child(3) {
        --delay: 2;
      }
      &:nth-child(4) {
        --delay: 3;
      }
      &:nth-child(5) {
        --delay: 4;
      }
      &:nth-child(6) {
        --delay: 5;
      }
      &:nth-child(7) {
        --delay: 6;
      }
      :nth-child(1) {
        animation: balanse-top 0.95s ease-in-out infinite alternate;
        transform-origin: top;
        margin-top: 0; /* ⬅️ Убрать отступ сверху */
        width: auto; /* ⬅️ Растянуть на всю ширину */
        animation-delay: calc(var(--delay, 0) * 0.25s);
      }

      :nth-child(2) {
        animation: balanse-middle 0.95s ease-in-out infinite alternate;
        width: auto;
        margin: auto 0; /* ⬅️ Центрировать по вертикали */
        animation-delay: calc(var(--delay, 0) * 0.25s);
      }

      :nth-child(3) {
        animation: balanse-bottom 0.95s ease-in-out infinite alternate;
        transform-origin: bottom;
        margin-bottom: 0;
        width: auto;
        align-self: flex-end;
        animation-delay: calc(var(--delay, 0) * 0.25s);
      }
    }
  }
  > .column {
    gap: 22px;
    width: 100%;
    :first-child {
      .kvadr:nth-of-type(even) {
        transform: rotate(90deg);
      }
    }
    :last-child {
      .kvadr:nth-of-type(odd) {
        transform: rotate(90deg);
      }
    }
  }

  .column > .row {
    gap: 11px;
    .kvadr {
      position: relative;
      width: 95.4px;
      height: 95.4px;

      .rectangle {
        position: absolute;
        width: 5px;
        height: 31.8px;
        background-color: #b1b1b1;
        top: 0;
        left: 10.6px;
      }
      .rectangle:nth-of-type(n + 4):nth-of-type(-n + 6) {
        left: 42.4px;
      }
      .rectangle:nth-of-type(n + 7):nth-of-type(-n + 9) {
        left: 74.2px;
      }
      .rectangle:nth-of-type(3n + 2) {
        top: 31.8px;
      }
      .rectangle:nth-of-type(3n + 3) {
        top: 63.6px;
      }
      .rectangle {
        animation: rectangle 5s ease-in-out infinite;
      }
    }
  }
}
.footer {
  position: relative;
  height: 335px;
  font-family: "Drabina";
  font-size: 64px;
  color: rgba(63, 144, 191, 1);
  > * {
    position: absolute;
  }
  .row {
    top: 36.5px;
    width: 1280px;
    padding: 0 50px;
    justify-content: space-between;
    align-items: center;
    text-align: right;
  }
  img {
    bottom: 0;
    transition: 1.2s ease-in-out 0.1s;
  }
}
.footer:hover {
  img {
    transform: translateY(130px);
  }
}
