@import url("https://fonts.googleapis.com/css?family=Space+Mono:400,700");


body {
  font: 135% / 1.5 'Space Mono', monospace;
  scroll-behavior: smooth;
  color: white;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* navigation
--------------------------------------------- */
.nav {
  position: absolute;
  z-index: 100;
  left: 1em;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  transition: .15s ease-in-out;
}

.nav li {
  list-style: none;
  margin: .25em;

}

.nav a {
  color: black  ;
  display: inline-block;
  padding: .25em 1em;
  background: rgba(255,0,0,1);
  font-size: .85em;
  text-decoration: none;
  transition: .25s ease-in-out;
}

.nav:hover a:not(:hover) {
  background-color: rgba(255,255,255,.35);
  transition: .25s ease-in-out;
}

.nav:before {
    content: "";
    display: block;
    width: 50px;
    height: 50px;
    background-image: url(./img/favicon.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: .75rem;
    margin-left: .75rem;
    -webkit-animation: shake-top 0.8s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
          animation: shake-top 0.8s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
}

.nav:hover:before {
  -webkit-animation: shake 0.8s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
          animation: shake 0.8s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
}


/* headings
 --------------------------------------------- */
h1 {
  margin-bottom: .5em;
}

h1 {
  font-family: 'Space Mono', monospace;
}

h1#slide-1-title {
  position: relative;
}

h6, p {
  margin-bottom: 1.5em;
}

p, .slides li{
  font: 75% / 1.5 'Space Mono', monospace;
}


/* buttons
 --------------------------------------------- */
.btn {
  color: black  ;
  display: inline-block;
  padding: .25em 1em;
  background: rgba(255,0,0,1);
  font-size: .85em;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: .25s ease-in-out;
  margin-block: .5rem;
}

.btn:hover {
  background-color: rgba(255,255,255,.35);
  transition: .25s ease-in-out;
}



/* images
 --------------------------------------------- */
#logo {
  -webkit-animation: flicker-text 4.5s linear 1s infinite alternate-reverse;
  animation: flicker-text 4.5s linear 1s infinite alternate-reverse;
  transition: .25s ease-in-out;
}

#logo:hover {
  transition: .25s ease-in-out;
  transform: scale(1.025);
}

#bug {
  width: 175px;
  -webkit-animation: vibrate-1 0.3s linear infinite both;
  animation: vibrate-1 0.3s linear infinite both;
  transition: .25s ease-in-out;
}



/* layout
--------------------------------------------- */
.slide {
  position: relative;
  padding: 0% 0;
  display: flex;
}

.slide:nth-child(even) {
  min-height: 80vh;
}

.slide__content {
  width: 1600px;
  max-width: calc(100% - 4rem);
  margin: auto;
}

.slide__image {
  text-align: center;
}

.slide__text,{
  max-width: 80%;
}

.slide__image svg {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: auto;
}

.slide__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

#slide-3 .slide__image,
#slide-5 .slide__image,
#slide-7 .slide__image {
  transform: translateZ(60px) scale(.8);
}

#slide-3 .slide__text,
#slide-5 .slide__text,
#slide-7 .slide__text {
  transform: none;
}


/* backgrounds
 --------------------------------------------- */
#slide-1 .slide__bg {
  background-image: url('./img/bg01.jpg');
  background-size: cover;
  background-position: bottom center;
}

#slide-2 .slide__bg {
  background-image: url('./img/bg15.jpg');
  background-size: cover;
  background-position: left 34% bottom;
}

#slide-3 .slide__bg {
  background-image: url('./img/bg14.jpg');
  background-size: cover;
  background-position: center;
}

#slide-4 .slide__bg {
  background-image: url('./img/bg11.jpg');
  background-size: cover;
  background-position: center;
}

#slide-5 .slide__bg {
  background-image: url('./img/bg08.jpg');
  background-size: cover;
  background-position: center;
}

#slide-6 .slide__bg {
  background-image: url('./img/bg05.jpg');
  background-size: cover;
  background-position: center;
}

#slide-7 .slide__bg {
  background-image: url('./img/bg03.jpg');
  background-size: cover;
  background-position: center;
}

#slide-8 .slide__bg {
  background-image: url('./img/bg17.jpg');
  background-size: cover;
  background-position: center;
}

#slide-9 .slide__bg {
  background-image: url('./img/bg04.jpg');
  background-size: cover;
  background-position: center;
}


/* email
--------------------------------------------- */
.demo__info {
  position: fixed;
  width: 100%;
  bottom: 0;
  /* font-size: 80%; */
  text-align: center;
  background: rgba(255,255,255,.0);
  padding: 0.5em;
  z-index: 100;
  font: 100% / 1.5 'Space Mono', monospace;
}

.demo__info a {
  color: rgba(255, 255, 255,0.3);
  text-decoration: none;
}

.demo__info a:hover {
  color: #e0000b;
}


/* forms
--------------------------------------------- */
*:focus {
  outline: 0;
}

.dim:hover {
  margin-top: 5px;
  opacity: 0.8;
  filter: alpha(opacity=80);
}

#container {
  margin: auto;
  overflow: auto;
}

#contact-wrap {
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  font-weight: 400;
  width: 402px;
  color: #fff;
  overflow: auto; 
  float: left;
}

#contact-area {
  margin-left: 3px;
  width: 342px;
}

#contact-area input,
#contact-area textarea {
  padding: 5px;
  width: 342px;
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  color: #fff;
  background-color: transparent;
  border-top: 1px solid transparent;
  border-left: 1px solid transparent;
  border-bottom: 1px solid #fff;
  border-right: 1px solid transparent;
  margin-bottom: 15px;
}

#contact-area textarea {
  height: 150px;
  background-color:transparent;
  border-top: 1px solid transparent;
  border-left: 1px solid transparent;
  border-bottom: 1px solid #fff;
  border-right: 1px solid transparent;
}

#contact-area textarea:focus,
#contact-area input:focus {
  background-color:rgba(190,190,190,.1);
  border-top: 1px solid transparent;
  border-left: 1px solid transparent;
  border-bottom: 1px solid #fff;
  border-right: 1px solid transparent;
}

#contact-area input.submit-button {
  color: black  ;
  display: inline-block;
  padding: .25em 1em;
  background: rgba(255,0,0,1);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: .25s ease-in-out;
  margin-block: .5rem;
  font-family: 'Space Mono', monospace;
  width: 9rem;
  border: 0;
}

#contact-area input.submit-button:hover {
  background-color: rgba(255,255,255,.35);
  transition: .25s ease-in-out;
}

label {
  float: left;
  text-align: left;
  margin-right: 16px;
  width: 100px;
  padding-top: 5px;
  font-family: 'Space Mono', monospace;
  font-size:15px;
  line-height: 20px;
}

::placeholder {
  color: #fff;
}


/* breakpoint up
--------------------------------------------- */
@media screen and (min-width: 769px) {
  .slide__content {
    display: -webkit-flex;
    display: flex;
    align-items: center;
  }
  .slide__image, .slide__text, .slide__logo {
    padding: 3%;
    -webkit-flex: 1;
    flex: 1;
  }

  .nav {
    display: block;
  }

  .slide:nth-child(2n) .slide__text {
    -webkit-order: 2;
    order: 2;
  }

  .slide__content {
    padding-left: 150px;
  }

  /* parallax */
  @supports ((perspective: 1px) and (not (-webkit-overflow-scrolling: touch))) {

    html, body {
      overflow: hidden;
      height: 100%;
    }

    body {
      transform: translateZ(0px); /* Fix paint issues in Edge && Safari H/W acceleration */
    }

    .slides {
      position: absolute;
      width: 100%;
      height: 100%;
      overflow-x: hidden;
      overflow-y: auto;
      perspective: 300px;
      scroll-behavior: smooth;
    }

    .slide, .slide__content {
      transform-style: preserve-3d;
    }

    .slide__text {
      transform: translateZ(60px) scale(.8);
      transform-origin: 100% 50%;
      max-width: 80%;
    }

    .slide:nth-child(2n) .slide__image {
      transform: translateZ(100px) scale(.67);
      transform-origin: 100% 50%;
    }

    .slide:nth-child(2n) .slide__text {
      transform-origin: 0% 50%;
      max-width: 80%;
    }

    .slide:nth-child(2n) .slide__bg {
      transform: translateZ(55px) scale(.83);
      background-size: cover;
    }

    .slide:nth-child(2n+1):not(:first-child) .slide__bg {
      top: -27%;
      background-size: cover;
    }

    .slide:nth-child(2n+1):not(:last-child) .slide__bg {
      bottom: -35%;
    }

    .slide:first-child {
      padding-top: 25vh;
      padding-bottom: 15vh;
    }

    .slide:last-child {
      padding-bottom: 14%;
    }

    .slide:nth-child(2n) {
      z-index: 1; /* ensure slides overlay correctly */
    }
  }
}


/* breakpoint down
 --------------------------------------------- */
@media screen and (max-width: 768px) {
  .slide {
    min-height: 85vh;
    padding-bottom: 10vh;
  }

  .slide__content {
    min-height: 85vh;
    width: 500px;
    max-width: calc(100% - 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .slide .slide__text {
    -webkit-order: 2;
    order: 2;
  }

  div#slide-1 {
    padding-top: 10vh;
  }

  div#slide-9 {
    padding-top: 10vh;

    .slide__image {
      text-align: left;
    }
  }

  #bug {
    width: 75px;
  }

  .nav {
    display: flex;
    top: 20px;
    left: 50%;
    flex-wrap: wrap;
    position: fixed;
    width: calc(100% - 2rem);
    transform: translateX(-50%);
    justify-content: center;
  }

  .nav:before {
    margin: 0;
    width: 45px;
    height: 45px;
    display: none;
  }

  .nav li {
    margin: 0.15em;
  }
}


/* small screens
 --------------------------------------------- */
/*@media screen and (max-width: 420px) {

}*/


/* animations
 --------------------------------------------- */
@keyframes shake-top {
  0%,
  100% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
    -webkit-transform-origin: 50% 0;
            transform-origin: 50% 0;
  }
  10% {
    -webkit-transform: rotate(2deg);
            transform: rotate(2deg);
  }
  20%,
  40%,
  60% {
    -webkit-transform: rotate(-4deg);
            transform: rotate(-4deg);
  }
  30%,
  50%,
  70% {
    -webkit-transform: rotate(4deg);
            transform: rotate(4deg);
  }
  80% {
    -webkit-transform: rotate(-2deg);
            transform: rotate(-2deg);
  }
  90% {
    -webkit-transform: rotate(2deg);
            transform: rotate(2deg);
  }
}

@keyframes shake {
  0%,
  100% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
    -webkit-transform-origin: 50% 0;
            transform-origin: 50% 0;
  }
  10% {
    -webkit-transform: rotate(2deg);
            transform: rotate(2deg);
  }
  20%,
  40%,
  60% {
    -webkit-transform: rotate(-4deg);
            transform: rotate(-4deg);
  }
  30%,
  50%,
  70% {
    -webkit-transform: rotate(4deg);
            transform: rotate(4deg);
  }
  80% {
    -webkit-transform: rotate(-2deg);
            transform: rotate(-2deg);
  }
  90% {
    -webkit-transform: rotate(2deg);
            transform: rotate(2deg);
  }
}

@keyframes vibrate-1 {
  0% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
  20% {
    -webkit-transform: translate(-2px, 2px);
            transform: translate(-2px, 2px);
  }
  40% {
    -webkit-transform: translate(-2px, -2px);
            transform: translate(-2px, -2px);
  }
  60% {
    -webkit-transform: translate(2px, 2px);
            transform: translate(2px, 2px);
  }
  80% {
    -webkit-transform: translate(2px, -2px);
            transform: translate(2px, -2px);
  }
  100% {
    -webkit-transform: translate(0);
            transform: translate(0);
  }
}

@keyframes flicker-text {
  0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
    opacity: .99;
    text-shadow: 0px 0px 7px #ff0000;
  }
  
  20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
    opacity: 0.4;
    text-shadow: none;
  }
}







/* the end */