﻿@import url("https://fonts.googleapis.com/css?family=Montserrat:100");

/* Our mixin positions a copy of our text
directly on our existing text, while
also setting content to the appropriate
text set in the data-text attribute. */
.glitch {
  position: relative;
  color: white;
  font-size: 3.8rem;
  letter-spacing: 0em;
  text-transform: uppercase;
  font-family: "CircularStd", sans-serif;
  font-weight: 600;
  /* Animation provies a slight random skew. Check bottom of doc
  for more information on how to random skew. */
  animation: glitch-skew 1s infinite linear alternate-reverse;
}
.glitch::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  left: 2px;
  text-shadow: -2px 0 #ff00c1;
  /* Creates an initial clip for our glitch. This works in
  a typical top,right,bottom,left fashion and creates a mask
  to only show a certain part of the glitch at a time. */
  clip: rect(44px, 450px, 56px, 0);
  /* Runs our glitch-anim defined below to run in a 5s loop, infinitely,
  with an alternating animation to keep things fresh. */
  animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  left: -2px;
  text-shadow: -2px 0 #00fff9, 2px 2px #a6ce38;
  animation: glitch-anim2 1s infinite linear alternate-reverse;
}

.glitch2.glitch2::before {
  text-shadow: -2px 0 #ffffff;
}

.glitch2.glitch2::after {
  text-shadow: -2px 0 #ffffff, 2px 2px #000000;
}

/* Creates an animation with 20 steaps. For each step, it calculates 
a percentage for the specific step. It then generates a random clip
box to be used for the random glitch effect. Also adds a very subtle
skew to change the 'thickness' of the glitch.*/
@keyframes glitch-anim {
  0% {
    clip: rect(3px, 9999px, 52px, 0);
    transform: skew(0.46deg);
  }
  5% {
    clip: rect(72px, 9999px, 89px, 0);
    transform: skew(0.06deg);
  }
  10% {
    clip: rect(18px, 9999px, 98px, 0);
    transform: skew(0.27deg);
  }
  15% {
    clip: rect(100px, 9999px, 95px, 0);
    transform: skew(0.46deg);
  }
  20% {
    clip: rect(59px, 9999px, 72px, 0);
    transform: skew(0.64deg);
  }
  25% {
    clip: rect(7px, 9999px, 89px, 0);
    transform: skew(0.94deg);
  }
  30% {
    clip: rect(42px, 9999px, 73px, 0);
    transform: skew(0.47deg);
  }
  35% {
    clip: rect(26px, 9999px, 25px, 0);
    transform: skew(0.78deg);
  }
  40% {
    clip: rect(47px, 9999px, 41px, 0);
    transform: skew(0.91deg);
  }
  45% {
    clip: rect(56px, 9999px, 12px, 0);
    transform: skew(0.4deg);
  }
  50% {
    clip: rect(59px, 9999px, 16px, 0);
    transform: skew(0.05deg);
  }
  55% {
    clip: rect(76px, 9999px, 9px, 0);
    transform: skew(0.18deg);
  }
  60% {
    clip: rect(92px, 9999px, 20px, 0);
    transform: skew(0.32deg);
  }
  65% {
    clip: rect(54px, 9999px, 95px, 0);
    transform: skew(0.06deg);
  }
  70% {
    clip: rect(6px, 9999px, 97px, 0);
    transform: skew(0.09deg);
  }
  75% {
    clip: rect(59px, 9999px, 75px, 0);
    transform: skew(0.36deg);
  }
  80% {
    clip: rect(77px, 9999px, 31px, 0);
    transform: skew(0.62deg);
  }
  85% {
    clip: rect(86px, 9999px, 18px, 0);
    transform: skew(0.9deg);
  }
  90% {
    clip: rect(3px, 9999px, 40px, 0);
    transform: skew(0.22deg);
  }
  95% {
    clip: rect(25px, 9999px, 10px, 0);
    transform: skew(0.99deg);
  }
  100% {
    clip: rect(90px, 9999px, 33px, 0);
    transform: skew(0.69deg);
  }
}
@keyframes glitch-anim2 {
  0% {
    clip: rect(48px, 9999px, 81px, 0);
    transform: skew(0.41deg);
  }
  5% {
    clip: rect(79px, 9999px, 52px, 0);
    transform: skew(0.41deg);
  }
  10% {
    clip: rect(79px, 9999px, 82px, 0);
    transform: skew(0.3deg);
  }
  15% {
    clip: rect(41px, 9999px, 69px, 0);
    transform: skew(0.95deg);
  }
  20% {
    clip: rect(1px, 9999px, 96px, 0);
    transform: skew(0.2deg);
  }
  25% {
    clip: rect(69px, 9999px, 59px, 0);
    transform: skew(0.49deg);
  }
  30% {
    clip: rect(85px, 9999px, 3px, 0);
    transform: skew(0.35deg);
  }
  35% {
    clip: rect(84px, 9999px, 13px, 0);
    transform: skew(0.15deg);
  }
  40% {
    clip: rect(77px, 9999px, 100px, 0);
    transform: skew(0.82deg);
  }
  45% {
    clip: rect(53px, 9999px, 77px, 0);
    transform: skew(0.74deg);
  }
  50% {
    clip: rect(14px, 9999px, 78px, 0);
    transform: skew(0.14deg);
  }
  55% {
    clip: rect(20px, 9999px, 4px, 0);
    transform: skew(0.08deg);
  }
  60% {
    clip: rect(73px, 9999px, 39px, 0);
    transform: skew(0.43deg);
  }
  65% {
    clip: rect(64px, 9999px, 43px, 0);
    transform: skew(0.98deg);
  }
  70% {
    clip: rect(53px, 9999px, 33px, 0);
    transform: skew(0.2deg);
  }
  75% {
    clip: rect(93px, 9999px, 38px, 0);
    transform: skew(0.72deg);
  }
  80% {
    clip: rect(51px, 9999px, 9px, 0);
    transform: skew(0.02deg);
  }
  85% {
    clip: rect(21px, 9999px, 20px, 0);
    transform: skew(0.04deg);
  }
  90% {
    clip: rect(48px, 9999px, 35px, 0);
    transform: skew(0.71deg);
  }
  95% {
    clip: rect(87px, 9999px, 26px, 0);
    transform: skew(0.85deg);
  }
  100% {
    clip: rect(82px, 9999px, 44px, 0);
    transform: skew(0.05deg);
  }
}
@keyframes glitch-skew {
  0% {
    transform: skew(1deg);
  }
  10% {
    transform: skew(1deg);
  }
  20% {
    transform: skew(1deg);
  }
  30% {
    transform: skew(5deg);
  }
  40% {
    transform: skew(5deg);
  }
  50% {
    transform: skew(5deg);
  }
  60% {
    transform: skew(1deg);
  }
  70% {
    transform: skew(4deg);
  }
  80% {
    transform: skew(-4deg);
  }
  90% {
    transform: skew(1deg);
  }
  100% {
    transform: skew(4deg);
  }
}


/*Efeito sublinhado no link*/
.line-link {
  position: relative;
  display: inline-block;
  /*font-size: 24px;*/
  /*text-decoration: none;*/
  /*letter-spacing: 0.1em;*/
  color: #fff;
  /*font-weight: lighter;*/
  z-index: 1;
  border-bottom: 1px solid #a6ce38;
  /*padding-bottom: 10px;*/
}
.line-link:before,
.line-link:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  visibility: hidden;
}
.line-link:before {
  background-color: #00ffff;
  z-index: -1;
}
.line-link:after {
  background-color: #ff00ff;
  z-index: -2;
}
.line-link:hover:before {
  visibility: visible;
  -webkit-animation: line-glitchy 0.3s ease 0.3s infinite;
          animation: line-glitchy 0.3s ease 0.3s infinite;
}
.line-link:hover:after {
  visibility: visible;
  animation: line-glitchy 0.3s ease infinite reverse;
}
@-webkit-keyframes line-glitchy {
  0% {
    transform: translate(-1px, 1px);
  }
  25% {
    transform: translate(-1px, -1px);
  }
  50% {
    transform: translate(1px, 1px);
  }
  75% {
    transform: translate(1px, -1px);
  }
  100% {
    transform: translate(-1px, 1px);
  }
}
@keyframes line-glitchy {
  0% {
    transform: translate(-1px, 1px);
  }
  25% {
    transform: translate(-1px, -1px);
  }
  50% {
    transform: translate(1px, 1px);
  }
  75% {
    transform: translate(1px, -1px);
  }
  100% {
    transform: translate(-1px, 1px);
  }
}


/*Preload*/
body.preload {
  background: black;
  font-family: 'CircularStd', sans-serif;
  font-weight: 800;
  font-style: italic;
  padding: 0;
}

body.preload .preload {
  position: relative;
  height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
}

body.preload .container {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 40%;
  left: 50%;
}

body.preload .glitch, body.preload .glow {
  color: #dadada;
  position: relative;
  font-size: 6vw;
  animation: glitchLoad 5s 5s infinite;
}

body.preload .glitch::before, body.preload .glow::before {
  content: attr(data-text);
  position: absolute;
  left: -2px;
  text-shadow: -5px 0 magenta;
  background: black;
  overflow: hidden;
  top: 0;
  animation: noise-1 3s linear infinite alternate-reverse, glitchLoad 5s 5.05s infinite;
}

body.preload .glitch::after, body.preload .glow::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  text-shadow: -5px 0 lightgreen;
  background: black;
  overflow: hidden;
  top: 0;
  animation: noise-2 3s linear infinite alternate-reverse, glitchLoad 5s 5s infinite;
}

@keyframes glitchLoad {
  1% {
    transform: rotateX(10deg) skewX(90deg);
  }
  2% {
    transform: rotateX(0deg) skewX(0deg);
  }
}
@keyframes noise-1 {
  3.3333333333% {
    clip-path: inset(27px 0 12px 0);
  }
  6.6666666667% {
    clip-path: inset(15px 0 38px 0);
  }
  10% {
    clip-path: inset(38px 0 55px 0);
  }
  13.3333333333% {
    clip-path: inset(94px 0 4px 0);
  }
  16.6666666667% {
    clip-path: inset(19px 0 52px 0);
  }
  20% {
    clip-path: inset(68px 0 7px 0);
  }
  23.3333333333% {
    clip-path: inset(95px 0 5px 0);
  }
  26.6666666667% {
    clip-path: inset(97px 0 2px 0);
  }
  30% {
    clip-path: inset(12px 0 51px 0);
  }
  33.3333333333% {
    clip-path: inset(56px 0 15px 0);
  }
  36.6666666667% {
    clip-path: inset(29px 0 16px 0);
  }
  40% {
    clip-path: inset(52px 0 14px 0);
  }
  43.3333333333% {
    clip-path: inset(67px 0 19px 0);
  }
  46.6666666667% {
    clip-path: inset(39px 0 28px 0);
  }
  50% {
    clip-path: inset(94px 0 1px 0);
  }
  53.3333333333% {
    clip-path: inset(61px 0 24px 0);
  }
  56.6666666667% {
    clip-path: inset(92px 0 6px 0);
  }
  60% {
    clip-path: inset(37px 0 17px 0);
  }
  63.3333333333% {
    clip-path: inset(80px 0 9px 0);
  }
  66.6666666667% {
    clip-path: inset(36px 0 13px 0);
  }
  70% {
    clip-path: inset(46px 0 29px 0);
  }
  73.3333333333% {
    clip-path: inset(37px 0 26px 0);
  }
  76.6666666667% {
    clip-path: inset(61px 0 28px 0);
  }
  80% {
    clip-path: inset(39px 0 6px 0);
  }
  83.3333333333% {
    clip-path: inset(42px 0 18px 0);
  }
  86.6666666667% {
    clip-path: inset(71px 0 26px 0);
  }
  90% {
    clip-path: inset(77px 0 12px 0);
  }
  93.3333333333% {
    clip-path: inset(68px 0 22px 0);
  }
  96.6666666667% {
    clip-path: inset(19px 0 66px 0);
  }
  100% {
    clip-path: inset(56px 0 12px 0);
  }
}
@keyframes noise-2 {
  0% {
    clip-path: inset(62px 0 27px 0);
  }
  3.3333333333% {
    clip-path: inset(58px 0 35px 0);
  }
  6.6666666667% {
    clip-path: inset(88px 0 13px 0);
  }
  10% {
    clip-path: inset(51px 0 18px 0);
  }
  13.3333333333% {
    clip-path: inset(82px 0 6px 0);
  }
  16.6666666667% {
    clip-path: inset(79px 0 14px 0);
  }
  20% {
    clip-path: inset(1px 0 5px 0);
  }
  23.3333333333% {
    clip-path: inset(8px 0 29px 0);
  }
  26.6666666667% {
    clip-path: inset(69px 0 8px 0);
  }
  30% {
    clip-path: inset(95px 0 3px 0);
  }
  33.3333333333% {
    clip-path: inset(93px 0 3px 0);
  }
  36.6666666667% {
    clip-path: inset(42px 0 35px 0);
  }
  40% {
    clip-path: inset(1px 0 43px 0);
  }
  43.3333333333% {
    clip-path: inset(90px 0 6px 0);
  }
  46.6666666667% {
    clip-path: inset(72px 0 17px 0);
  }
  50% {
    clip-path: inset(88px 0 2px 0);
  }
  53.3333333333% {
    clip-path: inset(57px 0 3px 0);
  }
  56.6666666667% {
    clip-path: inset(51px 0 5px 0);
  }
  60% {
    clip-path: inset(84px 0 17px 0);
  }
  63.3333333333% {
    clip-path: inset(9px 0 12px 0);
  }
  66.6666666667% {
    clip-path: inset(50px 0 17px 0);
  }
  70% {
    clip-path: inset(96px 0 3px 0);
  }
  73.3333333333% {
    clip-path: inset(89px 0 9px 0);
  }
  76.6666666667% {
    clip-path: inset(71px 0 6px 0);
  }
  80% {
    clip-path: inset(75px 0 26px 0);
  }
  83.3333333333% {
    clip-path: inset(17px 0 27px 0);
  }
  86.6666666667% {
    clip-path: inset(22px 0 24px 0);
  }
  90% {
    clip-path: inset(99px 0 2px 0);
  }
  93.3333333333% {
    clip-path: inset(69px 0 21px 0);
  }
  96.6666666667% {
    clip-path: inset(47px 0 31px 0);
  }
  100% {
    clip-path: inset(77px 0 23px 0);
  }
}
body.preload .scanlines {
  overflow: hidden;
  mix-blend-mode: difference;
}

body.preload .scanlines::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: repeating-linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.05) 0.5%, transparent 1%);
  animation: fudge 7s ease-in-out alternate infinite;
}

@keyframes fudge {
  from {
    transform: translate(0px, 0px);
  }
  to {
    transform: translate(0px, 2%);
  }
}
body.preload .glow {
  text-shadow: 0 0 1000px #dfbfbf;
  color: transparent;
  position: absolute;
  top: 0;
}

body.preload .subtitle {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 100;
  font-size: 1vw;
  color: var(--c-green1);
  text-transform: uppercase;
  letter-spacing: 1em;
  text-align: center;
  position: absolute;
  left: 26%;
  animation: glitch-2 5s 5.02s infinite;
}

@keyframes glitch-2 {
  1% {
    transform: rotateX(10deg) skewX(70deg);
  }
  2% {
    transform: rotateX(0deg) skewX(0deg);
  }
}