/* Reset */

/**
 * html5doctor.com Reset Stylesheet v1.6.1 (http://html5doctor.com/html-5-reset-stylesheet/)
 * Richard Clark (http://richclarkdesign.com)
 * http://cssreset.com
 */

input[type="search"] {
  -webkit-appearance: none;
  -webkit-border-radius: 0;
}
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration,
button {
  -webkit-appearance: none;
}
html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
  background: transparent;
  border: 0;
  font-size: 100%;
  font-style: normal;
  font-weight: inherit;
  margin: 0;
  outline: 0;
  padding: 0;
  vertical-align: baseline;
}
input,
button {
  background: transparent;
  border: 0;
  font-size: 100%;
  font-style: normal;
  font-weight: inherit;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}
body {
  line-height: 1;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
ul,
ol,
dl {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
a {
  background: transparent;
  font-size: 100%;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
}
/* change colours to suit your needs */
ins {
  background-color: #ff9;
  color: #000;
  text-decoration: none;
}
/* change colours to suit your needs */
mark {
  background-color: #ff9;
  color: #000;
  font-style: italic;
  font-weight: bold;
}
del {
  text-decoration: line-through;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* change border colour to suit your needs */
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 1em 0;
  padding: 0;
}
input,
select,
button,
textarea {
  font-family: inherit;
  font-size: inherit;
  vertical-align: middle;
}

/* End Reset */

/* Universal */

html {
  font-size: 62.5%;
  overflow: hidden;
}

body {
  overflow-y: auto;
}

html,
body {
  height: 100%;
}
@font-face {
  font-family: "GT-Haptik";
  src: url("../fonts/GT-Haptik-Medium-2.eot");
  src: url("../fonts/GT-Haptik-Medium-2.eot?#iefix") format("embedded-opentype"),
    url("../fonts/GT-Haptik-Medium-2.woff") format("woff"),
    url("../fonts/GT-Haptik-Medium-2.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "GT-Haptik";
  src: url("../fonts/GT-Haptik-Bold-2.eot");
  src: url("../fonts/GT-Haptik-Bold-2.eot?#iefix") format("embedded-opentype"),
    url("../fonts/GT-Haptik-Bold-2.woff") format("woff"),
    url("../fonts/GT-Haptik-Bold-2.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

body {
  background: #000;
  color: hsl(0, 0%, 86%);
  font-family: "GT-Haptik";
  font-weight: 700;
  text-transform: lowercase;
}

html:before {
  background: linear-gradient(
    to bottom,
    rgba(129, 197, 214, 0.25) 10%,
    rgba(0, 40, 0, 0.25) 20%,
    rgba(70, 40, 50, 0.36) 60%,
    rgba(70, 90, 20, 0.26) 100%
  );
  background-size: 100% 4px;
  content: "";
  width: 100%;
  height: calc(100% + 24px);
  position: absolute;
  /* top: -12px; */
  left: 0;
  animation: gradientMove 2400ms linear infinite;
  opacity: 1;
  position: absolute;
  z-index: 100;
  pointer-events: none;
  transform: translateZ(0);
}
html:after {
  content: "";
  width: 100%;
  height: 100%;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: inset 0 0 250px 120px rgba(0, 0, 0, 0.8);
  z-index: 101;
}

@keyframes gradientMove {
  0% {
    transform: translateY(0);
    /* transform: scale(1.2) */
  }
  50% {
    /* transform: scale(1) */
  }
  100% {
    transform: translateY(-24px);
    /* transform: scale(1.2) */
  }
}
@media screen and (min-device-width: 481px) {
  #content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    /* text-shadow: 0 0 2px rgba(255, 255, 255, 1), 0 0 2px rgba(255, 255, 255, 1); */
  }
  h2 {
    font-size: 2.4rem;
    font-size: 3rem;
    margin-bottom: 2.4rem;
    margin-bottom: 4.8rem;
    filter: blur(0.066rem);
    text-shadow: 2px 0px 2px rgba(251, 12, 12, 0.26),
      -4px 0px 1px rgba(192, 243, 252, 0.15), 0 0 18px rgba(255, 255, 255, 0.36),
      0 0 0.5px rgba(255, 255, 255, 0.6);
  }

  #sine-path {
    fill: none;
    stroke-width: 1px;
    stroke: none;
    /*
	-webkit-transform: translateZ(0);
	-moz-transform: translateZ(0);
	 transform: translateZ(0);
	 */
  }

  #svg-sine {
    background: transparent;
    display: block;
    font-size: 2.1rem;
    font-size: 7.2rem;
    font-size: 8rem;
    letter-spacing: 2pt;
    margin: 3.6rem auto 0;
    margin: -3.5rem auto -4.5rem;
    margin: -3.5rem auto -2.5rem;
    margin: -3.5rem auto 0;
    filter: blur(1.32px);
    text-shadow: 4px 0px 2px rgba(251, 12, 12, 0.6),
      0px -8px 2px rgba(96, 230, 253, 0.5), 0 0 18px rgba(255, 255, 255, 0.36);
    /* text-shadow: 4px 0px 2px rgba(251, 12, 12, 0.26), 0px -4px 1px rgba(192, 243, 252, 0.85), 0 0 18px rgba(255, 255, 255, 0.36); */
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.36);
    transform: translateZ(0);
  }

  #svg-sine textPath {
    fill: hsl(220, 2%, 65%);
    fill: hsl(0, 0%, 86%);
    /*opacity: 0.5;*/
    margin-bottom: 2.4rem;
  }

  #contact-link {
    background-image: url("../img/contact-us-button.svg");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    height: 56px;
    overflow: hidden;
    text-indent: -1000em;
    width: 167px;
    filter: blur(0.5px);
    filter: blur(0.08rem);
  }
}
@media screen and (max-width: 480px) {
  html {
    height: 100%; /* percent might be a little friendlier here */
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }
  html:after {
    box-shadow: inset 0 0 240px 60px rgba(0, 0, 0, 0.6);
  }
  #svg-sine,
  #content {
    display: none;
  }
  #contact-form {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
  }
  #contact-form #text {
    background: #fff;
    flex-grow: 2;
    font-size: 1.8rem;
    font-size: 2.1rem;
    font-family: Consolas, Monaco, Lucida Console, Liberation Mono,
      DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
    padding: 2.1rem;
    letter-spacing: 1pt;
    height: 50%;

    /* filter: blur(0.0001px); */
    text-shadow: 2px 0px 2px rgba(120, 255, 255, 0.3),
      -3px 0px 1px rgba(255, 0, 200, 0.16), 0px 0px 1px rgba(0, 0, 0, 1);
    font-size: 1.8rem;
    /* -webkit-font-smoothing: subpixel-antialiased; */
  }
  #contact-form #message {
    color: #000;
    /* white-space: pre; */
    display: inline;
    line-height: 1.5;
  }

  #number-pad {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 48px;
    padding-top: 12px;
    width: 324px;

    transform: scale(0.98); /* width: 291px; */
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    -webkit-filter: blur(0.01rem)
      drop-shadow(3px 0px 2px rgba(120, 255, 255, 0.8))
      drop-shadow(-4px 0px 3px rgba(255, 0, 200, 0.46));
    animation: aberration 2400ms linear infinite;
  }

  @keyframes aberration {
    0% {
      -webkit-filter: blur(0.01rem)
        drop-shadow(3px 0px 2px rgba(120, 255, 255, 0.8))
        drop-shadow(-4px 0px 3px rgba(255, 0, 200, 0.46));
    }
    10% {
      -webkit-filter: blur(0) drop-shadow(-6px 0px 2px rgba(120, 255, 255, 0.8))
        drop-shadow(7px 0px 3px rgba(255, 0, 200, 0.6));
    }
    20% {
      -webkit-filter: blur(0.01rem)
        drop-shadow(3px 0px 2px rgba(120, 255, 255, 0.2))
        drop-shadow(-4px 0px 3px rgba(255, 0, 200, 0.46));
    }
    30% {
      -webkit-filter: blur(0.01rem)
        drop-shadow(-3px 0px 2px rgba(120, 255, 255, 0.2))
        drop-shadow(4px 0px 1px rgba(255, 0, 100, 0.6));
    }
    40% {
      -webkit-filter: blur(0.01rem)
        drop-shadow(3px 0px 2px rgba(120, 255, 255, 0.6))
        drop-shadow(-4px 0px 3px rgba(255, 0, 200, 0.46));
    }
    50% {
      -webkit-filter: blur(0) drop-shadow(-5px 0px 2px rgba(120, 255, 255, 0.5))
        drop-shadow(4px 0px 1px rgba(255, 0, 200, 0.46));
    }
    60% {
      -webkit-filter: blur(0.01rem)
        drop-shadow(6px 0px 2px rgba(120, 255, 255, 0.2))
        drop-shadow(-4px 0px 3px rgba(255, 0, 200, 0.8));
    }
    90% {
      -webkit-filter: blur(0.1rem)
        drop-shadow(3px 0px 2px rgba(120, 255, 255, 0.5))
        drop-shadow(-4px 0px 3px rgba(255, 0, 200, 0.46));
    }
  }

  @keyframes aberration2 {
    0% {
      -webkit-filter: blur(0.001rem)
        drop-shadow(3px 0px 2px rgba(120, 255, 255, 1))
        drop-shadow(-4px 0px 3px rgba(255, 0, 200, 0.46));
    }
    10% {
      -webkit-filter: blur(0) drop-shadow(-6px 0px 2px rgba(120, 255, 255, 1))
        drop-shadow(7px 0px 3px rgba(255, 0, 200, 0.6));
    }
    20% {
      -webkit-filter: blur(0.001rem)
        drop-shadow(3px 0px 2px rgba(120, 255, 255, 0.2))
        drop-shadow(-4px 0px 3px rgba(255, 0, 200, 0.46));
    }
    30% {
      -webkit-filter: blur(0.001rem)
        drop-shadow(-3px 0px 2px rgba(120, 255, 255, 1))
        drop-shadow(4px 0px 1px rgba(255, 0, 100, 1));
    }
    40% {
      -webkit-filter: blur(0.001rem)
        drop-shadow(3px 0px 2px rgba(120, 255, 255, 1))
        drop-shadow(-4px 0px 3px rgba(255, 0, 200, 1));
    }
    50% {
      -webkit-filter: blur(0) drop-shadow(-5px 0px 2px rgba(120, 255, 255, 1))
        drop-shadow(4px 0px 1px rgba(255, 0, 200, 1));
    }
    60% {
      -webkit-filter: blur(0.001rem)
        drop-shadow(6px 0px 2px rgba(120, 255, 255, 1))
        drop-shadow(-4px 0px 3px rgba(255, 0, 200, 0.8));
    }
    90% {
      -webkit-filter: blur(0.01rem)
        drop-shadow(3px 0px 2px rgba(120, 255, 255, 0.5))
        drop-shadow(-4px 0px 3px rgba(255, 0, 200, 0.46));
    }
  }
  #number-pad li {
    background-size: contain;
    height: 69px;
    width: 69px;
    margin: 5px 14px;
    position: relative;
  }
  #number-pad li:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background: rgba(255, 255, 255, 0.65);
    border-radius: 100em;
    opacity: 0;
    transition: opacity 0.2s;
  }
  #number-pad li.active:before {
    opacity: 1;
    transition: opacity 0.1s;
  }
  #number-0 {
    background-image: url("../img/key_1.svg");
  }
  #number-1 {
    background-image: url("../img/key_2.svg");
  }
  #number-2 {
    background-image: url("../img/key_3.svg");
  }
  #number-3 {
    background-image: url("../img/key_4.svg");
  }
  #number-4 {
    background-image: url("../img/key_5.svg");
  }
  #number-5 {
    background-image: url("../img/key_6.svg");
  }
  #number-6 {
    background-image: url("../img/key_7.svg");
  }
  #number-7 {
    background-image: url("../img/key_8.svg");
  }
  #number-8 {
    background-image: url("../img/key_9.svg");
  }
  #number-9 {
    background-image: url("../img/key_*.svg");
  }
  #number-10 {
    background-image: url("../img/key_0.svg");
  }
  #number-11 {
    background-image: url("../img/key_send.svg");
  }

  #cursor {
    color: #fff;
    display: inline-block;
    min-width: 1ch;
    line-height: inherit;
    padding-top: 0.3rem;
    padding-bottom: 0.1rem;
    background: #000;
    animation: blink 500ms linear infinite;
  }
  #cursor:before {
    content: "";
    display: inline-block;
  }

  @keyframes blink {
    0% {
      background: #000;
    }
    49% {
      background: #000;
    }
    50% {
      background: rgba(0, 0, 0, 0.2);
    }
    100% {
      background: rgba(0, 0, 0, 0.2);
    }
  }
}
