:root {
    --opacity: 1;
}

html {
    scroll-behavior: smooth;
}
main {
  overflow-x: clip;
}
.bg_animation {
    /* use sticky if we want to add content befor the animation and after */
    position: sticky; 
    /* position: fixed; */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: 100%;
    height: 100vh;
    padding: 80px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.bg_animation svg {
    width: 100%;
    height: 100%;
}

.animated__section,
.animation_block section {
    display: grid;
    place-items: center;
    place-content: center;
    min-height: 100vh;
    text-align: center;
    scroll-snap-align: center;
}

.animated__section p,
.animation_block p {
    font-size: 120px;
    letter-spacing: -3px;
    font-weight: bold;
    padding: 30px 30px;
    box-sizing: border-box;
    max-width: 1000px;
    transition: all 0.3s ease;
    line-height: 1.145;
}

/* TODO: rewrite the script for this 
    now its not working
*/
.animation_block {
    -webkit-scroll-snap-type: y mandatory;
      -ms-scroll-snap-type: y mandatory;
          scroll-snap-type: y mandatory;
}

/* scetion that is not in our ascreen view */
.hidden {
    opacity: 0;
    transition: all .6s;
    transition-delay: .1s;
}

.bg_animation + .hidden {
    margin-top: -100vh;
}
/* scetion that is in our ascreen view 
*  here we can change the content animation or based on .show class add new content animations
*/
.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

@media(prefers-reduced-motion) {
    .hidden {
        transition: none;
        filter: blur(0);
        opacity: 1;
        transform: translateX(0);
    }
}

/* Bg animation */
/* Backround animation is created with svg and the animations are connected to the svg path or other tag tag
    By ading new stages we need to a new section with animation
    Example: 
    animN .frameN {
        ... some animation 
    }
*/
/* TODO: this can be rewritten in more easier way using sass or less or other preprocessors */

/* Section 1 */
.frame1, 
.frame2,
.frame3,
.frame4,
.frame5 {
    opacity: 0;
    transition: all .3s;
}

.anim1 .frame1{
    opacity: 1;
}

/* Section 2 */
.anim2 .frame1, 
.anim2 .frame2 {
    opacity: 1;
}

/* Section 3 */
.anim3 .frame1,
.anim3 .frame2, 
.anim3 .frame3 {
    opacity: 1;
}

/* Section 4 */
.anim4 .frame1,
.anim4 .frame2, 
.anim4 .frame3,
.anim4 .frame4 {
    opacity: 1;
}

/* Section 4 */
.anim5 .frame1,
.anim5 .frame2, 
.anim5 .frame3,
.anim5 .frame4,
.anim5 .frame5 {
    opacity: 1;
}

.animationEnd path {
    opacity: 0;
}

/* Footer */
.page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    justify-items: center;
    padding: 26px;
    box-sizing: border-box;
}

.mouse {
    margin: 0 auto;
    display: block;
    border-radius: 50px;
    border: 2px solid #fff;
    height: 48px;
    width: 24px;
    position: relative;
    box-sizing: border-box;
  }
  
  .move {
    position: absolute;
    background-color: #fff;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    animation: move 1.7s linear infinite;
  }
  
  @keyframes move {
    0% {
      transform: translate(-50%, 5px);
      opacity: 0;
    }
    50% {
      transform: translate(-50%, 20px);
      opacity: 1;
    }
    100% {
      transform: translate(-50%, 35px);
      opacity: 0;
    }
}

.skip {
    border: none;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    right: 32px;
    margin-top: 40px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    font-family: "TeleNeo Medium", sans-serif;
}

.scroll-down-animation {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.disappear {
    opacity: 0;
}

@media screen and (max-width: 1024px) {
    .skip {
        gap: 17px;
    }

    .animated__section p,
    .animation_block p {
        font-size: 96px;
    }
  }

@media screen and (max-width: 768px) {

    .bg_animation {
        padding: 20px;
    }

    .animated__section p,
    .animation_block p {
        font-size: 48px;
        padding: 20px;
    }

    .skip {
        font-size: 14px;
        gap: 8px;
    }
  }


@media screen and (max-width: 360px) {

    .bg_animation {
        padding: 20px;
    }

    .animated__section p,
    .animation_block p {
        font-size: 48px;
        padding: 20px;
    }

    .skip {
        font-size: 14px;
        gap: 8px;
    }
  }