:root {
  --color-js: #f7df1e;
  --color-react: #61dafb;
  --color-ruby: #cc342d;
}

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 400;
  src: url(fonts/ubuntu.woff2) format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 400;
  src: url(fonts/ubuntu.ext.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "icomoon";
  font-style: normal;
  font-weight: normal;
  src: url(fonts/icomoon.eot) format("embedded-opentype"),
       url(fonts/icomoon.ttf) format("truetype"),
       url(fonts/icomoon.woff) format("woff"),
       url(fonts/icomoon.svg) format("svg");
}

* {
  box-sizing: border-box;
}
html {
  background-color: #fd644e;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  margin: 0;
  height: 100%;
}
body {
  background: linear-gradient(to top, #ffa191, #ffc247);
  color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
  font-family: Ubuntu, sans-serif;
}

i, .icomoon-liga {
  font-family: "icomoon" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  letter-spacing: 0;
  -webkit-font-feature-settings: "liga";
  -moz-font-feature-settings: "liga";
  -ms-font-feature-settings: "liga" 1;
  font-feature-settings: "liga";
  -webkit-font-variant-ligatures: discretionary-ligatures;
  font-variant-ligatures: discretionary-ligatures;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.icomoon-nodejs:before {
  content: "\e904";
  color: #393;
}
.icomoon-react:before {
  content: "\e90a";
  color: var(--color-react);
}
.icomoon-css3:before {
  content: "\e90b";
  color: #1572b6;
}
.icomoon-github2:before {
  content: "\e90d";
}
.icomoon-git:before {
  content: "\e90e";
  color: #f14e32;
}
.icomoon-rails:before {
  content: "\e90f";
  color: #c00;
}
.icomoon-ruby:before {
  content: "\e910";
  color: var(--color-ruby);
}
.icomoon-javascript:before {
  content: "\e911";
  color: var(--color-js);
}
.icomoon-lewagon:before {
  content: "\e912";
}
.icomoon-paperplane:before {
  content: "\e900";
}
.icomoon-mail:before {
  content: "\e901";
}
.icomoon-terminal:before {
  content: "\ea81";
}
.icomoon-github:before {
  content: "\eab0";
}
.icomoon-linkedin:before {
  content: "\eaca";
}

/* Content */
#content {
  height: 100%;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: Ubuntu, sans-serif;
  color: #fff;
  padding-bottom: 20vh;
}
#content .title {
  font-size: 3.2rem;
  margin-bottom: 3rem;
  position: relative;
  margin: 0 2rem 3rem;
}
#content .title .cursor {
  position: absolute;
}
#content .social {
  text-align: center;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 3rem;
  z-index: 1;
}
#content .social a {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0.75rem;
  text-decoration: none;
  border: 2px solid transparent;
  outline: none;
}
#content .social a:focus {
  border: 2px dotted #4688f1;
}
#content .social i {
  font-size: 3rem;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  transition: color 300ms ease, margin-top 100ms ease;
}
#content .social i:visited {
  color: #ffffff;
}
#github-icon #github {
  font-size: 2.75rem;
}
#github-icon:hover #github,
#github-icon:focus #github,
#github-icon.tippy-active #github {
  color: #24292e !important;
}
#linkedin-icon:hover #linkedin,
#linkedin-icon:focus #linkedin {
  color: #2977ca !important;
}
#mail {
  margin-top: 0.8rem;
}
#mail-icon:hover #mail,
#mail-icon:focus #mail {
  color: #4688f1 !important;
}

/* Tooltips */
.tippy-tooltip {
  font-family: Ubuntu, sans-serif;
  font-weight: normal;
}
.tippy-content {
  font-size: 15px;
}

/* Animations */
@keyframes moveCrane {
  0%,
  20% {
    transform: rotateY(0);
  }
  70%,
  100% {
    transform: rotateY(45deg);
  }
}
@keyframes moveWeight {
  0%,
  20% {
    transform: rotateY(0) translateX(0);
  }
  70%,
  100% {
    transform: rotateY(45deg) translateX(-50%);
  }
}
@keyframes moveLineOne {
  0%,
  20% {
    transform: rotateY(0) rotateZ(-10deg);
  }
  70%,
  100% {
    transform: rotateY(45deg) rotateZ(-10deg);
  }
}
@keyframes moveLineTwo {
  0%,
  20% {
    transform: rotateY(0) rotateZ(29deg);
  }
  70%,
  100% {
    transform: rotateY(15deg) rotateZ(29deg);
  }
}
@keyframes moveLineThree {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(2500%, -18%);
    height: 10%;
  }
  60% {
    transform: translate(11000%, -25%);
  }
  70% {
    transform: translate(9100%, -25%);
    height: 25%;
  }
  90%,
  100% {
    transform: translate(9100%, -15%);
    height: 55%;
  }
}
@keyframes moveLineThreeSmall {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(2500%, -18%);
    height: 15%;
  }
  60% {
    transform: translate(5000%, -25%);
  }
  70% {
    transform: translate(6000%, -25%);
    height: 30%;
  }
  90%,
  100% {
    transform: translate(7000%, 0);
    height: 60%;
  }
}
@keyframes shakeBlock {
  from,
  to {
    transform: translate3d(0, 0, 0) rotate(45deg);
  }
  10%,
  30%,
  50%,
  70% {
    transform: translate3d(-2px, 0, 0) rotate(30deg);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translate3d(2px, 0, 0) rotate(60deg);
  }
}

/* Background */
#background {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  box-shadow: inset 0 -65px 0 -30px #ff6347;
  z-index: 0;
}
.buildings {
  height: 90px;
  width: 100%;
  left: 0;
}
.buildings div {
  height: inherit;
  width: 45px;
  background: #ff6347;
  position: absolute;
  bottom: 10%;
}
.buildings div:after {
  content: "";
  width: 80%;
  height: 60%;
  left: 10%;
  bottom: 30%;
  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAFElEQVQImWP4////fwYYIJKDEwAAfPsP8eFXG40AAAAASUVORK5CYII=")
    repeat;
  position: absolute;
}
.buildings div:nth-of-type(1) {
  width: 45px;
  height: 30px;
  right: 37%;
  bottom: 18%;
}
.buildings div:nth-of-type(1):after {
  bottom: 11%;
}
.buildings div:nth-of-type(2) {
  width: 50px;
  height: 40px;
  right: 30%;
  bottom: 25%;
  transform: rotate(180deg);
}
.buildings div:nth-of-type(2):after {
  width: 60%;
  left: 20%;
}
.buildings div:nth-of-type(3) {
  width: 25px;
  height: 100px;
  left: 40%;
  bottom: 30%;
  z-index: -1;
}
.buildings div:nth-of-type(3):after {
  bottom: 0;
  width: 40%;
  height: 85%;
  left: 30%;
}
.buildings div:nth-of-type(4) {
  width: 85px;
  height: 100px;
  left: 24%;
  bottom: 20%;
}
.buildings div:nth-of-type(5) {
  width: 60px;
  height: 68px;
  left: 47%;
  bottom: 10%;
  z-index: -1;
}
.buildings div:nth-of-type(5):after {
  bottom: 0;
  width: 55%;
  height: 80%;
  left: 25%;
}
.crane,
.buildings {
  position: absolute;
  bottom: 8px;
}
.crane div {
  border-radius: 2px;
  position: absolute;
}
.crane .line {
  border: none;
  background: #dd4125;
  outline: 1px solid transparent;
  z-index: 0;
}
.crane .line.line-one {
  width: 60%;
  left: 11%;
  top: 0;
}
.crane .line.line-two {
  width: 19%;
  right: 8%;
  top: 0;
}
.crane .line.line-three {
  height: 20%;
  top: 22%;
  left: 9%;
}
.crane .line.line-three:after {
  font-family: "icomoon" !important;
  position: absolute;
  display: block;
  bottom: 0;
  font-size: 2rem;
  height: 0.4rem;
  width: 0;
  z-index: 10;
  animation: shakeBlock 10s infinite alternate;
}
.crane-one .line.line-three:after {
  content: "\e911";
  color: var(--color-js);
  font-size: 2.2rem;
  left: -6px;
  height: 0.4rem;
}
.crane-two .line.line-three:after {
  content: "\e90a";
  color: var(--color-react);
  font-size: 1.9rem;
  left: -2.8px;
  transform: rotate(45deg);
  animation: shakeBlock 10s infinite alternate;
}
.crane-three .line.line-three:after {
  content: "\e910";
  color: var(--color-ruby);
  width: auto;
  font-size: 1.4rem;
  left: -2.8px;
  transform: rotate(20deg);
  animation: shakeBlock 12s infinite alternate;
}
.stand {
  height: 100%;
  width: 5%;
  right: 25%;
  z-index: 1;
  background: linear-gradient(to top, #ff6347, #f29b8b);
}
.crane-two .stand {
  background: linear-gradient(to top, #ff6347, #f19483);
}
.crane-three .stand {
  background: linear-gradient(to top, #ff6347, #f08c7b);
  z-index: -1;
}
.weight {
  height: 20%;
  width: 8%;
  right: 4%;
  top: 12%;
  z-index: 2;
  background: #f88f7c;
}
.crane-two .weight {
  background: #f88773;
}
.crane-three .weight {
  background: #f77f6b;
}
.cabin {
  height: 9%;
  width: 12%;
  right: 24%;
  top: 20%;
  z-index: 2;
  background: #f88f7c;
}
.cabin:after {
  content: "";
  position: absolute;
  height: 10%;
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  display: block;
  top: 60%;
  left: 0;
}
.crane-two .cabin {
  background: #f88773;
}
.crane-three .cabin {
  background: #f77f6b;
}
.arm {
  height: 7%;
  width: 100%;
  top: 15%;
  z-index: 3;
  background: #f88f7c;
}
.crane-two .arm {
  background: #f88773;
}
.crane-three .arm {
  background: #f77f6b;
}
.crane div.arm {
  border-top-left-radius: 10px;
}
.crane-one {
  width: 260px;
  height: 170px;
  left: 20%;
}
.crane-one div {
  border: solid 1px #ff6347;
}
.crane-one .line {
  height: 1px;
}
.crane-one .line-three {
  width: 1px;
}
.crane-two {
  width: 200px;
  height: 130px;
  transform: scaleX(-1);
  left: 40%;
  z-index: -1;
}
.crane-two div {
  border: solid 1px #ff6347;
}
.crane-two .line {
  height: 0.77px;
}
.crane-two .line-three {
  width: 0.71px;
  animation-delay: 3s;
}
.crane-three {
  width: 130px;
  height: 100px;
  left: 60%;
}
.crane-three div {
  border: solid 1px #ff6347;
}
.crane-three .line {
  height: 0.5px;
}
.crane-three .line-three {
  animation: moveLineThreeSmall 12s ease-in-out infinite alternate;
  width: 1px;
  animation-delay: 1.5s;
}
.crane-three .cabin,
.crane-three .arm,
.crane-three .picker,
.crane-three .weight {
  animation-delay: 1.5s;
}
.crane {
  perspective: 600px;
}
.line-one {
  transform-origin: right 0;
  animation: moveLineOne 10s infinite alternate;
}
.line-two {
  transform-origin: top left;
  animation: moveLineTwo 10s infinite alternate;
}
.line-three {
  transform-origin: right center;
  animation: moveLineThree 10s ease-in-out infinite alternate;
}
.cabin,
.arm,
.picker {
  transform-origin: 80% center;
  animation: moveCrane 10s infinite alternate;
}
.crane-three .arm {
  animation-delay: 2s;
}
.weight {
  transform-origin: 0 center;
  animation: moveWeight 10s infinite alternate;
}

/* Responsive */
@media only screen and (max-width: 768px) {
  #content .title {
    font-size: 3rem;
    margin-bottom: 1.8rem;
  }
  #content .social {
    margin-top: 10px;
    height: 2.75rem;
  }
  .crane-one {
    left: 38%;
  }
  .crane-one .line.line-three:after {
    font-size: 1.8rem;
  }
  .crane-two {
    left: -3%;
    z-index: 1;
  }
  .crane-two .line.line-three:after {
    font-size: 1.6rem;
  }
  .crane-three {
    display: none;
  }
  .buildings div:nth-of-type(1) {
    right: 20%;
  }
  .buildings div:nth-of-type(2) {
    right: 2%;
  }
  .buildings div:nth-of-type(3) {
    left: 63%;
  }
}
