html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: linear-gradient(135deg, #000111 0%, #000000 100%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

#preloader {
  position: absolute;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
  height: 100vh;
  z-index: 100;
  background-color: #0f0f0f;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

#percent {
  color: white;
  font-family: 'Neutral Face';
}

#bar {
  width: 60%;
  margin-top: 20px;
}

#barconfrm {
  width: 1%;
  padding: 1px 0px;
  background-color: white;
}

.container {
  position: absolute;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: #f1f1f1;
}

#myVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -100;
}

.illustration-editor {
  margin-top: -2rem;
  margin-right: -10rem;
  display: -ms-grid;
  display: grid;
  -ms-grid-rows: 24px auto;
      grid-template-rows: 24px auto;
  justify-items: center;
  position: relative;
}

.code {
  position: absolute;
  width: 266px;
  height: 145px;
  background: #1D1E22;
  -webkit-box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.5);
          box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  z-index: 5;
}

.code header {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 36px auto 36px;
      grid-template-columns: 36px auto 36px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.code header svg {
  margin: 10px;
}

.code header h2 {
  font-family: Lato, sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1.57px;
  color: #C5C8D4;
  margin: 0;
}

.code-html {
  left: -100px;
  top: 26px;
  width: 306px;
  height: 170px;
}

.code-css {
  left: -25px;
  top: 206px; 
  width: 303px;
}

.code-js {
  left: -175px;
  top: 360px;
}

.code .code-content {
  margin: 0 10px 10px;
  color: white;
}

.code .code-content .c-r {
  color: #A88038;
}

.code .code-content .c-o {
  color: #DE7300;
}

.code .code-content .c-y {
  color: #E1CA72;
}

.code .code-content .c-g {
  color: #74B087;
}

.code .code-content .c-p {
  color: #9F8198;
}

.code .code-content .c-b {
  color: #7A99AD;
}

.code .code-content .c-c {
  color: #666666;
}

.code-css .code-content code .line-1 {
  width: 0%;
  margin: 0;
  border-right: .15em solid transparent;
  overflow: hidden;
  display: inline-block;
  white-space: nowrap;
}

.code-css .code-content code .line-2 {
  width: 0%;
  margin: 0;
  border-right: .15em solid transparent;
  overflow: hidden;
  display: inline-block;
  white-space: nowrap;
}

.code-css .code-content code .line-3 {
  width: 0%;
  margin: 0;
  border-right: .15em solid transparent;
  overflow: hidden;
  display: inline-block;
  white-space: nowrap;
}

.code-css .code-content code .line-4 {
  width: 0%;
  margin: 0;
  border-right: .15em solid transparent;
  overflow: hidden;
  display: inline-block;
  white-space: nowrap;
}

.code-css .code-content code .line-5 {
  width: 0%;
  margin: 0;
  border-right: .15em solid transparent;
  overflow: hidden;
  display: inline-block;
  white-space: nowrap;
}

.code-css .code-content code .line-1 {
  -webkit-animation: typing-1 3s 0s steps(30, end) forwards, cursor 1s linear 0s 3;
          animation: typing-1 3s 0s steps(30, end) forwards, cursor 1s linear 0s 3;
}

.code-css .code-content code .line-2 {
  -webkit-animation: typing-2 3s 3s steps(30, end) forwards, cursor 1s linear 3s 3;
          animation: typing-2 3s 3s steps(30, end) forwards, cursor 1s linear 3s 3;
}

.code-css .code-content code .line-3 {
  -webkit-animation: typing-3 3s 6s steps(30, end) forwards, cursor 1s linear 6s 3;
          animation: typing-3 3s 6s steps(30, end) forwards, cursor 1s linear 6s 3;
}

.code-css .code-content code .line-4 {
  -webkit-animation: typing-4 3s 9s steps(30, end) forwards, cursor 1s linear 9s 3;
          animation: typing-4 3s 9s steps(30, end) forwards, cursor 1s linear 9s 3;
}

.code-css .code-content code .line-1, .code-css .code-content code .line-3, .code-css .code-content code .line-4 {
  -webkit-animation-duration: 1s;
          animation-duration: 1s;
  -webkit-animation-timing-function: steps(10, end);
          animation-timing-function: steps(10, end);
}

.code-css .code-content code .line-5 {
  border-color: transparent;
  -webkit-animation: typing-5 3s 12s steps(30, end) forwards, cursor-persist 1s linear 12s infinite;
          animation: typing-5 3s 12s steps(30, end) forwards, cursor-persist 1s linear 12s infinite;
}

.code-css .code-content code .line-2 {
  margin-left: 2rem;
}

.code-css .code-content code .line-3, .code-css .code-content code .line-4, .code-css .code-content code .line-5 {
  margin-left: 4rem;
}

.editor-block {
  position: relative;
  display: block;
  width: 500px;
  height: 421px;
  background: rgba(97, 97, 97, 0.375);
  -webkit-box-shadow: 0 0.75rem 2rem 0 rgba(0, 0, 0, 0.1);
          box-shadow: 0 0.75rem 2rem 0 rgba(0, 0, 0, 0.1);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.125);
}

@-webkit-keyframes typing-1 {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

@keyframes typing-1 {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

@-webkit-keyframes typing-2 {
  from {
    width: 0;
  }
  to {
    width: 220px;
  }
}

@keyframes typing-2 {
  from {
    width: 0;
  }
  to {
    width: 220px;
  }
}

@-webkit-keyframes typing-3 {
  from {
    width: 0;
  }
  to {
    width: 120px;
  }
}

@keyframes typing-3 {
  from {
    width: 0;
  }
  to {
    width: 120px;
  }
}

@-webkit-keyframes typing-4 {
  from {
    width: 0;
  }
  to {
    width: 120px;
  }
}

@keyframes typing-4 {
  from {
    width: 0;
  }
  to {
    width: 120px;
  }
}

@-webkit-keyframes typing-5 {
  from {
    width: 0;
  }
  to {
    width: 150px;
  }
}

@keyframes typing-5 {
  from {
    width: 0;
  }
  to {
    width: 150px;
  }
}

@-webkit-keyframes cursor {
  from,
  to,
  20%,
  80% {
    border-color: transparent;
  }
  25%,
  75% {
    border-color: white;
  }
}

@keyframes cursor {
  from,
  to,
  20%,
  80% {
    border-color: transparent;
  }
  25%,
  75% {
    border-color: white;
  }
}

@-webkit-keyframes cursor-persist {
  from,
  45% {
    border-color: transparent;
  }
  50%,
  to {
    border-color: white;
  }
}

@keyframes cursor-persist {
  from,
  45% {
    border-color: transparent;
  }
  50%,
  to {
    border-color: white;
  }
}


@media only screen and (max-width: 600px) {
  body{
    overflow: hidden;
  }
    .code-html {
            left: 47px;
            top: 40px;
            width: 306px;
            height: 153px;
        }
        
        .code-js {
          left: 81px;
      }
      video {
        position: absolute;
        left:-650px
      }
    }
    @media only screen and (min-width: 768px) {
      video {
        position: absolute;
        left:-550px
      }
    }
    @media only screen and (min-width: 1200px) {
      video {
        position: absolute;
        left:0
      }
    }

    @media only screen and (max-width: 400px) {
      body{
        overflow: hidden;
      }
      .code-html{
        height: 165px;
      }
      .code-css {
        width: 304px;
      }
      video {
        position: absolute;
        left: -653px;
      }
    
    }
    @media only screen and (max-width: 412px) {
      body{
        overflow: hidden;
      }
      .code-html{
        height: 165px;
      }
      .code-css {
        width: 304px;
      }
      video {
        position: absolute;
        left: -653px;
      }
    
    }
