@import "./partials/navigation";
@import "./partials/customVars";
@import "./partials/typeography";
@import "./partials/btns";
@import "./partials/positioning";
@import "./partials/formStyles";
@import "./partials/footer";
@import "./partials/whatsAppBtn";
@import "../node_modules/bootstrap/scss/bootstrap.scss";


html {
  scroll-behavior: smooth
}

body {
  color: #11111b;
  background-color: #c0dc67;
  font-family: 'Tilt Warp', cursive;

  &::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #11111b 21px, transparent 1%) center, linear-gradient(#11111b 21px, transparent 1%) center, white;
    background-size: 22px 22px;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
  }

}

:root {
  box-sizing: border-box;
  cursor: default;
  overflow: hidden;
}

::-moz-selection {
  color: #11111b;
  background-color: #c0dc67;
}

::selection {
  color: #11111b;
  background-color: #c0dc67;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: #11111b;
  color: #afd33d;
  font-size: calc(6.4px + 0.8125vw);
}

.error-body {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.error-body:before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #afd33d;
  mix-blend-mode: overlay;
  z-index: 1;
}

.error-body:after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #11111b 21px, transparent 1%) center,
    linear-gradient(#11111b 21px, transparent 1%) center, white;
  background-size: 22px 22px;
  background-position: center;
  opacity: 0.2;
  z-index: 1;
}

.error-body .background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: grayscale(1);
  mix-blend-mode: luminosity;
}

.error-body .message {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  z-index: 3;
}

.error-body .message h1 {
  position: absolute;
  top: 10%;
  left: 0%;
  width: 100%;
  font-size: 10em;
  margin: 0;
  -webkit-animation: shake 600ms ease-in-out infinite alternate;
  animation: shake 600ms ease-in-out infinite alternate;
  text-shadow: 0 0 0.07em #afd33d, -0.2em 0 2em rgba(175, 211, 61, 0.3),
    0.2em 0 2em rgba(175, 211, 61, 0.3);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.error-body .message h1:before {
  content: attr(t);
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0.34em);
  height: 0.1em;
  line-height: 0.5em;
  width: 100%;
  -webkit-animation: scan 500ms ease-in-out infinite alternate 371ms,
    glitch-anim 300ms ease-in-out infinite alternate;
  animation: scan 500ms ease-in-out infinite alternate 371ms,
    glitch-anim 300ms ease-in-out infinite alternate;
  overflow: hidden;
  opacity: 0.7;
}

.error-body .message h1:after {
  content: attr(t);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translate(-50%, 0.34em);
  height: 0.5em;
  line-height: 0.1em;
  width: 100%;
  -webkit-animation: scan 665ms ease-in-out infinite alternate 474ms,
    glitch-anim 300ms ease-in-out infinite alternate;
  animation: scan 665ms ease-in-out infinite alternate 474ms,
    glitch-anim 300ms ease-in-out infinite alternate;
  overflow: hidden;
  opacity: 0.8;
}

.error-body .message .bottom {
  position: absolute;
  top: 65%;
  left: 0;
  width: 100%;
}

.error-body .message p,
.error-body .message a {
  font-size: 2em;
  font-family: monospace;
  text-shadow: 0 0 5px #afd33d;
  filter: blur(0.8px);
}

.error-body .message a {
  position: relative;
  color: #afd33d;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid #afd33d;
  text-transform: uppercase;
  padding: 5px 30px;
  box-shadow: inset 0 0 0 0 rgba(175, 211, 61, 0.2);
  transition: 25ms ease-in-out all 0ms;
  overflow: hidden;
  -webkit-animation: attn 3s ease-in-out infinite;
  animation: attn 3s ease-in-out infinite;

  &.svg{
    border:none;
    padding: 0;
  }
  
}

.error-body .message a:hover {
  box-shadow: inset 0 -2em 0 0 rgba(175, 211, 61, 0.2);
  transition: 225ms ease-in-out all 225ms;
  -webkit-animation: none;
  animation: none;

  &.svg{
    box-shadow: none;
  }
}

.error-body .message a:hover:before,
.error-body .message a:hover:after {
  transform: translate(-50%, 0) scale(0, 1);
}

.error-body .message a:active {
  box-shadow: inset 0 -2em 0 0 rgba(175, 211, 61, 0.5);
  transition: 225ms ease-in-out all 225ms;
}

.error-body .message a:before,
.error-body .message a:after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0) scale(1, 1);
  transform-origin: center;
  background-color: #11111b;
  width: 90%;
  height: 5px;
  transition: 225ms ease-in-out all;
  mix-blend-mode: hard-light;

}

.error-body .message a.svg:before {
  background-color: transparent;
}
.error-body .message a:before {
  top: -4px;
}
.error-body .message a.svg:after {
  background-color: transparent;
}
.error-body .message a:after {
  bottom: -4px;
}

@-webkit-keyframes scan {

  from,
  20%,
  100% {
    height: 0;
    transform: translate(-50%, 0.44em);
  }

  10%,
  15% {
    height: 1em;
    line-height: 0.2em;
    transform: translate(-55%, 0.27em);
  }
}

@keyframes scan {

  from,
  20%,
  100% {
    height: 0;
    transform: translate(-50%, 0.44em);
  }

  10%,
  15% {
    height: 1em;
    line-height: 0.2em;
    transform: translate(-55%, 0.27em);
  }
}

@keyframes pulse {
  from {
    text-shadow: 0 0 0 #afd33d, 0 0 0 rgba(175, 211, 61, 0.3),
      0 0 0 rgba(175, 211, 61, 0.3);
  }

  to {
    text-shadow: 0 0 0.07em #afd33d, -0.2em 0 2em rgba(175, 211, 61, 0.3),
      0.2em 0 2em rgba(175, 211, 61, 0.3);
  }
}

@-webkit-keyframes attn {

  0%,
  100% {
    opacity: 1;
  }

  30%,
  35% {
    opacity: 0.4;
  }
}

@keyframes attn {

  0%,
  100% {
    opacity: 1;
  }

  30%,
  35% {
    opacity: 0.4;
  }
}

@-webkit-keyframes shake {

  0%,
  100% {
    transform: translate(-1px, 0);
  }

  10% {
    transform: translate(2px, 1px);
  }

  30% {
    transform: translate(-3px, 2px);
  }

  35% {
    transform: translate(2px, -3px);
    filter: blur(4px);
  }

  45% {
    transform: translate(2px, 2px) skewY(-8deg) scale(0.96, 1);
    filter: blur(0);
  }

  50% {
    transform: translate(-3px, 1px);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translate(-1px, 0);
  }

  10% {
    transform: translate(2px, 1px);
  }

  30% {
    transform: translate(-3px, 2px);
  }

  35% {
    transform: translate(2px, -3px);
    filter: blur(4px);
  }

  45% {
    transform: translate(2px, 2px) skewY(-8deg) scale(0.96, 1);
    filter: blur(0);
  }

  50% {
    transform: translate(-3px, 1px);
  }
}

@-webkit-keyframes glitch-anim {
  0% {
    clip: rect(80px, 9999px, 30px, 0);
  }

  10% {
    clip: rect(44px, 9999px, 27px, 0);
  }

  20% {
    clip: rect(73px, 9999px, 90px, 0);
  }

  30% {
    clip: rect(84px, 9999px, 90px, 0);
  }

  40% {
    clip: rect(95px, 9999px, 97px, 0);
  }

  50% {
    clip: rect(72px, 9999px, 58px, 0);
  }

  60% {
    clip: rect(40px, 9999px, 73px, 0);
  }

  70% {
    clip: rect(7px, 9999px, 88px, 0);
  }

  80% {
    clip: rect(92px, 9999px, 77px, 0);
  }

  90% {
    clip: rect(53px, 9999px, 76px, 0);
  }

  100% {
    clip: rect(55px, 9999px, 55px, 0);
  }
}

@keyframes glitch-anim {
  0% {
    clip: rect(80px, 9999px, 30px, 0);
  }

  10% {
    clip: rect(44px, 9999px, 27px, 0);
  }

  20% {
    clip: rect(73px, 9999px, 90px, 0);
  }

  30% {
    clip: rect(84px, 9999px, 90px, 0);
  }

  40% {
    clip: rect(95px, 9999px, 97px, 0);
  }

  50% {
    clip: rect(72px, 9999px, 58px, 0);
  }

  60% {
    clip: rect(40px, 9999px, 73px, 0);
  }

  70% {
    clip: rect(7px, 9999px, 88px, 0);
  }

  80% {
    clip: rect(92px, 9999px, 77px, 0);
  }

  90% {
    clip: rect(53px, 9999px, 76px, 0);
  }

  100% {
    clip: rect(55px, 9999px, 55px, 0);
  }
}


/// svg utils
/// https://codepen.io/sosuke/pen/Pjoqqp --- compute colors for svgs 
.filter-svg-mainclr {
  filter: invert(75%) sepia(71%) saturate(432%) hue-rotate(24deg) brightness(96%) contrast(87%);
}
.svg-size{
  width:50px;
}