

@import url(https://fonts.googleapis.com/css?family=Exo+2:300,400,500,600);

body {
    font-family: 'Varela', sans-serif;

}

.wrap {
    background-size: contain;
    height: 1vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glitch {
    font-family: 'Exo 2', sans-serif;
    font-weight: 900;
    color: rgb(5, 0, 54);
    font-size: 40px;
    text-decoration: none; 
    position: relative;
    margin: 0 auto;
    /* text-shadow: 0px -2px 5px rgba(255, 0, 0, 0.1);  */
    animation: noise-anim-2 3s infinite linear alternate-reverse, shift 4s ease-in-out infinite alternate, blur 8s ease-in-out infinite alternate;
    transform: skewX(0deg);
}

@keyframes blur {
    0%, 40%, 50%, 60%, 90%, 95%, 100% {
        text-shadow:
            0px -2px 5px rgba(255, 0, 0, 0.1),
            2px 1px 15px rgba(100, 240, 255, 0),
            0px 0px 20px rgba(0, 255, 255, 0);
    }
    45%, 75% {
        text-shadow:
            0px -2px 5px rgba(255, 0, 0, 0.1),
            2px 1px 15px rgba(100, 240, 255, 1);
    }
    97.5% {
        text-shadow:
            0px -2px 5px rgba(255, 0, 0, 0.1),
            2px 1px 4px rgba(255, 100, 100, 1);
    }
}

.glitch:after {
    content: attr(data-text);
    position: absolute;
    left: 3px;
    text-shadow: -1px 0 red;
    top: 0;
    color: transparent;
    background: transparent;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: noise-anim-2 3s infinite linear alternate-reverse, shift 4s ease-in-out infinite alternate;
    transform: skewX(0deg);
    z-index: -2;
    opacity: .7;
}

.glitch:before {
    content: attr(data-text);
    position: absolute;
    left: 1px;
    text-shadow: -3px 0 cyan;
    top: 0;
    color: transparent;
    background: transparent;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: noise-anim-2 3s infinite linear alternate-reverse, shift 4s ease-in-out infinite alternate;
    transform: skewX(0deg);
    z-index: -1;
    opacity: .8;
}

@keyframes noise-anim-2 {
    0% { clip: rect(20px, 9999px, 80px, 0); }
    20% { clip: rect(10px, 9999px, 60px, 0); }
    40% { clip: rect(30px, 9999px, 90px, 0); }
    60% { clip: rect(40px, 9999px, 100px, 0); }
    80% { clip: rect(50px, 9999px, 120px, 0); }
    100% { clip: rect(60px, 9999px, 140px, 0); }
}

@keyframes shift {
    0%, 40%, 44%, 58%, 61%, 65%, 69%, 73%, 100% {
        transform: skewX(0deg);
    }
    41% {
        transform: skewX(10deg);
    }
    42% {
        transform: skewX(-10deg);
    }
    59% {
        transform: skewX(40deg) skewY(10deg);
    }
    60% {
        transform: skewX(-40deg) skewY(-10deg);
    }
    63% {
        transform: skewX(10deg) skewY(-5deg);
    }
    70% {
        transform: skewX(-50deg) skewY(-20deg);
    }
    71% {
        transform: skewX(10deg) skewY(-10deg);
    }
}
