:root{
    --color-text: #aaa;
    --color-bg: #000;
    --color-link: #1c1cc9;
    --color-link-hover: #aaa;
    --color-info: #1c1cc9;
    --glitch-width: 100vw;
    --glitch-height: 100vh;
    --gap-horizontal: 10px;
    --gap-vertical: 40px;
    --color-title: #fff;
    --time-anim: 5s;
    --delay-anim: 2s;
    --blend-mode-1: none;
    --blend-mode-2: overlay;
    --blend-mode-3: none;
    --blend-mode-4: none;
    --blend-mode-5: overlay;
    --blend-color-1: #000;
    --blend-color-2: #000;
    --blend-color-3: #000;
    --blend-color-4: transparent;

}




/*-----------要改的物件在這---------------*/
/*--------------------------------------*/
/*-------------------------------------*/

.f01,.f02,.f03,.f04,.f05{
    display: none;
}
/*.f01-wrap{
    display: block;
}*/

/* Glitch styles */
.f01 {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    position: absolute;

}

.f01_img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + var(--gap-vertical) * 2);
    background: url(../images/feature/001.jpg) no-repeat 50% 0/cover;
    background-color: var(--blend-color-1);
    transform: translate3d(0, 0, 0);
    background-blend-mode: var(--blend-mode-1);
}

.imgloaded .f01_img:nth-child(n+2) {
    animation-duration: var(--time-anim);
    animation-delay: var(--delay-anim);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.imgloaded .f01_img:nth-child(3) {
    animation-name: glitch-anim-1;
}

.imgloaded .f01_img:nth-child(4) {
    animation-name: glitch-anim-3;

}

.imgloaded .f01_img:nth-child(5){
    animation-name: glitch-anim-flash;

}




/* f02 */
.f02 {
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    position: absolute;
}

.f02_img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + var(--gap-vertical) * 2);
    background: url(../images/feature/002.jpg) no-repeat 50% 0/cover;
    background-color: var(--blend-color-1);
    transform: translate3d(0, 0, 0);
    background-blend-mode: var(--blend-mode-1);
}

.imgloaded .f02_img:nth-child(n+2) {
    animation-duration: var(--time-anim);
    animation-delay: var(--delay-anim);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.imgloaded .f02_img:nth-child(3) {
    animation-name: glitch-anim-1;
}

.imgloaded .f02_img:nth-child(4) {
    animation-name: glitch-anim-3;

}

.imgloaded .f02_img:nth-child(5){
    animation-name: glitch-anim-flash;

}
/* f03 */
.f03 {
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    position: absolute;

}

.f03_img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + var(--gap-vertical) * 2);
    background: url(../images/feature/003.jpg) no-repeat 50% 0/cover;
    background-color: var(--blend-color-1);
    transform: translate3d(0, 0, 0);
    background-blend-mode: var(--blend-mode-1);
}

.imgloaded .f03_img:nth-child(n+2) {
    animation-duration: var(--time-anim);
    animation-delay: var(--delay-anim);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.imgloaded .f03_img:nth-child(3) {
    animation-name: glitch-anim-1;
}

.imgloaded .f03_img:nth-child(4) {
    animation-name: glitch-anim-3;

}

.imgloaded .f03_img:nth-child(5){
    animation-name: glitch-anim-flash;

}
/* f04 */
.f04 {
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    position: absolute;

}

.f04_img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + var(--gap-vertical) * 2);
    background: url(../images/feature/004.jpg) no-repeat 50% 0/cover;
    background-color: var(--blend-color-1);
    transform: translate3d(0, 0, 0);
    background-blend-mode: var(--blend-mode-1);
}

.imgloaded .f04_img:nth-child(n+2) {
    animation-duration: var(--time-anim);
    animation-delay: var(--delay-anim);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.imgloaded .f04_img:nth-child(3) {
    animation-name: glitch-anim-1;
}

.imgloaded .f04_img:nth-child(4) {
    animation-name: glitch-anim-3;

}

.imgloaded .f04_img:nth-child(5){
    animation-name: glitch-anim-flash;

}
/* f05 */
.f05 {
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    position: absolute;

}

.f05_img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + var(--gap-vertical) * 2);
    background: url(../images/feature/005.jpg) no-repeat 50% 0/cover;
    background-color: var(--blend-color-1);
    transform: translate3d(0, 0, 0);
    background-blend-mode: var(--blend-mode-1);
}

.imgloaded .f05_img:nth-child(n+2) {
    animation-duration: var(--time-anim);
    animation-delay: var(--delay-anim);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.imgloaded .f05_img:nth-child(3) {
    animation-name: glitch-anim-1;
}

.imgloaded .f05_img:nth-child(4) {
    animation-name: glitch-anim-3;

}

.imgloaded .f05_img:nth-child(5){
    animation-name: glitch-anim-flash;

}
/*--------------------------*/
/*--------------------------*/
/*--------------------------*/
/*--------------------------*/


@media screen and (max-width:768px)
{
.f01_img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + var(--gap-vertical) * 2);
    background: url(../images/feature/001-m.jpg) no-repeat 0 100% / cover ;
    background-color: var(--blend-color-1);
    transform: translate3d(0, 0, 0);
    background-blend-mode: var(--blend-mode-1);
}

.f02_img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + var(--gap-vertical) * 2);
    background: url(../images/feature/002-m.jpg) no-repeat 0 100% / cover ;
    background-color: var(--blend-color-1);
    transform: translate3d(0, 0, 0);
    background-blend-mode: var(--blend-mode-1);
}
.f03_img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + var(--gap-vertical) * 2);
    background: url(../images/feature/003-m.jpg) no-repeat 0 100% / cover ;
    background-color: var(--blend-color-1);
    transform: translate3d(0, 0, 0);
    background-blend-mode: var(--blend-mode-1);
}
.f04_img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + var(--gap-vertical) * 2);
    background: url(../images/feature/004-m.jpg) no-repeat 0 100% / cover ;
    background-color: var(--blend-color-1);
    transform: translate3d(0, 0, 0);
    background-blend-mode: var(--blend-mode-1);
}
.f05_img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + var(--gap-vertical) * 2);
    background: url(../images/feature/005-m.jpg) no-repeat 0 100% / cover ;
    background-color: var(--blend-color-1);
    transform: translate3d(0, 0, 0);
    background-blend-mode: var(--blend-mode-1);
}
}



/* Animations */

@keyframes glitch-anim-1 {
    0% {
        opacity: 1;
        transform: translate3d(var(--gap-horizontal), 0, 0) ;
        -webkit-clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%);
        clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%);
    }

    2% {
        -webkit-clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%);
        clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%);
    }

    4% {
        -webkit-clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%);
        clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%);
    }

    6% {
        -webkit-clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%);
        clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%);
    }

    8% {
        -webkit-clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%);
        clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%);
    }

    10% {
        -webkit-clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%);
        clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%);
    }

    12% {
        -webkit-clip-path: polygon(0 50%, 100% 50%, 100% 20%, 0 20%);
        clip-path: polygon(0 50%, 100% 50%, 100% 20%, 0 20%);
    }

    14% {
        -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
        clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
    }

    16% {
        -webkit-clip-path: polygon(0 80%, 100% 80%, 100% 80%, 0 80%);
        clip-path: polygon(0 80%, 100% 80%, 100% 80%, 0 80%);
    }

    18% {
        -webkit-clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%);
        clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%);
    }

    20% {
        opacity: 1;
        -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%);
        clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%);
    }

    21% {
        opacity: 0;
        transform: translate3d(var(--gap-horizontal), 0, 0);
    }

    100% {
        opacity: 0;
        transform: translate3d(0, 0, 0) ;
      -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
        clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
    }
}

@keyframes glitch-anim-2 {
    0% {
        opacity: 0;
        transform: translate3d(calc(-1 * var(--gap-horizontal)), 0, 0);
        -webkit-clip-path: polygon(0 25%, 100% 25%, 100% 30%, 0 30%);
        clip-path: polygon(0 25%, 100% 25%, 100% 30%, 0 30%);
    }

    3% {
        -webkit-clip-path: polygon(0 3%, 100% 3%, 100% 3%, 0 3%);
        clip-path: polygon(0 3%, 100% 3%, 100% 3%, 0 3%);
    }

    5% {
        -webkit-clip-path: polygon(0 5%, 100% 5%, 100% 20%, 0 20%);
        clip-path: polygon(0 5%, 100% 5%, 100% 20%, 0 20%);
    }

    7% {
        -webkit-clip-path: polygon(0 20%, 100% 20%, 100% 20%, 0 20%);
        clip-path: polygon(0 20%, 100% 20%, 100% 20%, 0 20%);
    }

    9% {
        -webkit-clip-path: polygon(0 40%, 100% 40%, 100% 40%, 0 40%);
        clip-path: polygon(0 40%, 100% 40%, 100% 40%, 0 40%);
    }

    11% {
        -webkit-clip-path: polygon(0 52%, 100% 52%, 100% 59%, 0 59%);
        clip-path: polygon(0 52%, 100% 52%, 100% 59%, 0 59%);
    }

    13% {
        -webkit-clip-path: polygon(0 60%, 100% 60%, 100% 60%, 0 60%);
        clip-path: polygon(0 60%, 100% 60%, 100% 60%, 0 60%);
    }

    15% {
        -webkit-clip-path: polygon(0 75%, 100% 75%, 100% 75%, 0 75%);
        clip-path: polygon(0 75%, 100% 75%, 100% 75%, 0 75%);
    }

    17% {
        -webkit-clip-path: polygon(0 65%, 100% 65%, 100% 40%, 0 40%);
        clip-path: polygon(0 65%, 100% 65%, 100% 40%, 0 40%);
    }

    19% {
        -webkit-clip-path: polygon(0 45%, 100% 45%, 100% 50%, 0 50%);
        clip-path: polygon(0 45%, 100% 45%, 100% 50%, 0 50%);
    }

    20% {opacity: 1;
        -webkit-clip-path: polygon(0 14%, 100% 14%, 100% 33%, 0 33%);
        clip-path: polygon(0 14%, 100% 14%, 100% 33%, 0 33%);
    }

    21% {
        opacity: 0;
        transform: translate3d(calc(-1 * var(--gap-horizontal)), 0, 0);
    }

    100% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
      -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
        clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
    }
}

@keyframes glitch-anim-3 {
    0% {
        opacity: 0;


        transform: translate3d(0, calc(-1 * var(--gap-vertical)), 0) scale(1);
        -webkit-clip-path: polygon(0 1%, 100% 1%, 100% 3%, 0 3%);
        clip-path: polygon(0 1%, 100% 1%, 100% 3%, 0 3%);
    }

    1.5% {
        -webkit-clip-path: polygon(0 10%, 100% 10%, 100% 9%, 0 9%);
        clip-path: polygon(0 10%, 100% 10%, 100% 9%, 0 9%);
    }

    2% {
        -webkit-clip-path: polygon(0 5%, 100% 5%, 100% 6%, 0 6%);
        clip-path: polygon(0 5%, 100% 5%, 100% 6%, 0 6%);
    }

    2.5% {
        -webkit-clip-path: polygon(0 20%, 100% 20%, 100% 20%, 0 20%);
        clip-path: polygon(0 20%, 100% 20%, 100% 20%, 0 20%);
    }

    3% {
        -webkit-clip-path: polygon(0 10%, 100% 10%, 100% 10%, 0 10%);
        clip-path: polygon(0 10%, 100% 10%, 100% 10%, 0 10%);
    }

    5% {
        -webkit-clip-path: polygon(0 30%, 100% 30%, 100% 25%, 0 25%);
        clip-path: polygon(0 30%, 100% 30%, 100% 25%, 0 25%);
    }

    5.5% {
        -webkit-clip-path: polygon(0 15%, 100% 15%, 100% 16%, 0 16%);
        clip-path: polygon(0 15%, 100% 15%, 100% 16%, 0 16%);
    }

    7% {
        -webkit-clip-path: polygon(0 40%, 100% 40%, 100% 39%, 0 39%);
        clip-path: polygon(0 40%, 100% 40%, 100% 39%, 0 39%);
    }

    8% {
        -webkit-clip-path: polygon(0 20%, 100% 20%, 100% 21%, 0 21%);
        clip-path: polygon(0 20%, 100% 20%, 100% 21%, 0 21%);
    }

    9% {
        -webkit-clip-path: polygon(0 60%, 100% 60%, 100% 55%, 0 55%);
        clip-path: polygon(0 60%, 100% 60%, 100% 55%, 0 55%);
    }

    10.5% {opacity: 1;
        -webkit-clip-path: polygon(0 30%, 100% 30%, 100% 31%, 0 31%);
        clip-path: polygon(0 30%, 100% 30%, 100% 31%, 0 31%);
    }

    11% {
        -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 69%, 0 69%);
        clip-path: polygon(0 70%, 100% 70%, 100% 69%, 0 69%);
    }

    13% {
        -webkit-clip-path: polygon(0 40%, 100% 40%, 100% 41%, 0 41%);
        clip-path: polygon(0 40%, 100% 40%, 100% 41%, 0 41%);
         -webkit-clip-path: polygon(0 0, 0 0, 0 0, 0 0) ;
    }

    14% {
        -webkit-clip-path: polygon(0 80%, 100% 80%, 100% 75%, 0 75%);
        clip-path: polygon(0 80%, 100% 80%, 100% 75%, 0 75%);
    }

    14.5% {
        -webkit-clip-path: polygon(0 50%, 100% 50%, 100% 51%, 0 51%);
        clip-path: polygon(0 50%, 100% 50%, 100% 51%, 0 51%);
    }

    15% {
        -webkit-clip-path: polygon(0 90%, 100% 90%, 100% 90%, 0 90%);
        clip-path: polygon(0 90%, 100% 90%, 100% 90%, 0 90%);
    }

    16% {
        -webkit-clip-path: polygon(0 60%, 100% 60%, 100% 60%, 0 60%);
        clip-path: polygon(0 60%, 100% 60%, 100% 60%, 0 60%);
    }

    18% {
        -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 99%, 0 99%);
        clip-path: polygon(0 100%, 100% 100%, 100% 99%, 0 99%);
    }

    20% {opacity: 1;
        -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 71%, 0 71%);
        clip-path: polygon(0 70%, 100% 70%, 100% 71%, 0 71%);
    }

    21% {
        opacity: 0;
        transform: translate3d(0, calc(-1 * var(--gap-vertical)), 0) ;
    }

    100% {
        opacity: 0;
        transform: translate3d(0, 0, 0);
         -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
        clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
    }
}

@keyframes glitch-anim-text {
    0% {
        transform: translate3d(calc(-1 * var(--gap-horizontal)), 0, 0);
        /*transform: translate3d(calc(-1 * var(--gap-horizontal)),0,0) scale3d(-1,-1,1);*/
        -webkit-clip-path: polygon(0 20%, 100% 20%, 100% 21%, 0 21%);
        clip-path: polygon(0 20%, 100% 20%, 100% 21%, 0 21%);
    }

    2% {
        -webkit-clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%);
        clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%);
    }

    4% {
        -webkit-clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%);
        clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%);
    }

    5% {
        -webkit-clip-path: polygon(0 50%, 100% 50%, 100% 20%, 0 20%);
        clip-path: polygon(0 50%, 100% 50%, 100% 20%, 0 20%);
    }

    6% {
        -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
        clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
    }

    7% {
        -webkit-clip-path: polygon(0 80%, 100% 80%, 100% 80%, 0 80%);
        clip-path: polygon(0 80%, 100% 80%, 100% 80%, 0 80%);
    }

    8% {
        -webkit-clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%);
        clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%);
    }

    9% {
        -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%);
        clip-path: polygon(0 70%, 100% 70%, 100% 80%, 0 80%);
    }

    9.9% {
        transform: translate3d(calc(-1 * var(--gap-horizontal)), 0, 0);
        /*transform: translate3d(calc(-1 * var(--gap-horizontal)),0,0) scale3d(-1,-1,1);*/
    }

    10%,
    100% {
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
        -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
        clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
    }
}

/* Flash */
@keyframes glitch-anim-flash {

    0%,
    99% {
        opacity: 1;
        transform: translate3d(var(--gap-horizontal), var(--gap-vertical), 0) ;
    }

    99.9%,
    100% {
        opacity: 0;
        transform: translate3d(0, 0, 0) ;
    }
}
