/* Fonts */
@font-face {
  font-family: DaxWeb;
  src: url(/fonts/DaxWeb.eot);
  src: local("?"), url("/fonts/DaxWeb.woff") format("woff");
  font-weight: normal;
  font-style: normal; }

@font-face {
  font-family: DaxWeb;
  src: url(/fonts/DaxWeb-Bold.eot);
  src: local("?"), url("/fonts/DaxWeb-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal; }

html, body {
  padding: 0;
  margin: 0;
  height: 100%;
  position: relative;
  overflow: hidden; }

body {
  background-color: #0b2032; }
  body .space-dude {
    width: 600px;
    height: 628px;
    position: absolute;
    top: calc(50% - 314px);
    left: calc(50% - 300px);
    -webkit-animation: spaceDudeEnter 5s;
    -webkit-animation-fill-mode: forwards;
    -moz-animation: spaceDudeEnter 5s;
    -moz-animation-fill-mode: forwards;
    animation: spaceDudeEnter 5s;
    animation-fill-mode: forwards; }
    body .space-dude:before {
      content: "";
      display: block;
      background-image: url(/img/error/space-dude.png);
      background-repeat: no-repeat;
      background-size: contain;
      width: 100%;
      height: 100%;
      position: absolute;
      -webkit-animation: spaceDudeRandomMovement 30s infinite ease-in;
      -moz-animation: spaceDudeRandomMovement 30s infinite ease-in;
      animation: spaceDudeRandomMovement 30s infinite ease-in; }
  body .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/img/error/bg-space.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50%;
    z-index: -2;
    -webkit-animation: bgCloser 10s;
    -webkit-animation-fill-mode: forwards;
    -moz-animation: bgCloser 10s;
    -moz-animation-fill-mode: forwards;
    animation: bgCloser 10s;
    animation-fill-mode: forwards; }
  body .horizon {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 30%;
    width: 100%;
    background-image: url(/img/error/planet.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: auto 100%;
    z-index: -1;
    -webkit-animation: horizonEnter 5s;
    -moz-animation: horizonEnter 5s;
    animation: horizonEnter 5s; }
  body .logo {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 100px;
    height: 36px;
    background: url(/img/error/logo-error.png) no-repeat;
    background-size: contain;
    opacity: 0.5; }
  body .wrapper {
    width: 800px;
    position: absolute;
    height: 314px;
    top: calc(50% - 162px);
    left: calc(50% - 400px);
    /*outline:1px solid orange;*/ }
    body .wrapper .left-col {
      position: absolute;
      width: 30%;
      height: 100%;
      /*outline:1px solid red;*/ }
    body .wrapper .right-col {
      position: absolute;
      width: calc(70% - 30px);
      height: 100%;
      left: calc(30% + 30px);
      /*outline:1px solid green;*/ }
      body .wrapper .right-col .content {
        position: absolute;
        top: calc(50% - 125px);
        left: 0;
        color: #FFF;
        font-family: Arial, Helvetica, sans-serif;
        -webkit-animation: fadeIn 2s;
        -webkit-animation-delay: 3s;
        -webkit-animation-fill-mode: backwards;
        -moz-animation: fadeIn 2s;
        -moz-animation-delay: 3s;
        -moz-animation-fill-mode: backwards;
        animation: fadeIn 2s;
        animation-delay: 3s;
        animation-fill-mode: backwards; }
        body .wrapper .right-col .content h1 {
          font-weight: normal;
          margin-bottom: 5px;
          padding: 0;
          font-family: DaxWeb, Arial, Helvetica, sans-serif;
          font-size: 2em;
          line-height: 100%; }
        body .wrapper .right-col .content p:first-of-type {
          margin-top: 0;
          padding-top: 0; }
        body .wrapper .right-col .content p {
          line-height: 150%; }
        body .wrapper .right-col .content .buttons a {
          padding: 10px 25px;
          font-size: 24px;
          background-color: #f68426;
          color: white;
          display: inline-block;
          border-radius: 2px;
          text-decoration: none; }

@media (max-width: 900px) {
  body .wrapper {
    width: 100%;
    height: auto;
    position: static;
    margin: auto;
    margin-top: 25%; }
    body .wrapper .left-col {
      position: relative;
      margin: auto;
      min-height: 200px; }
    body .wrapper .space-dude {
      width: 300px;
      height: 314px;
      position: absolute;
      top: calc(50% - 157px);
      left: calc(50% - 150px); }
    body .wrapper .right-col {
      top: 320px;
      margin: auto;
      position: static; }
      body .wrapper .right-col .content {
        position: static;
        text-align: center; } }

@media (max-width: 400px) {
  body {
    font-size: 0.75em; }
    body .wrapper {
      margin-top: 20px; } }

/* Moves background closer */
@-webkit-keyframes bgCloser {
  0% {
    -webkit-transform: scale(1); }
  100% {
    -webkit-transform: scale(1.5); } }

@-moz-keyframes bgCloser {
  0% {
    -moz-transform: scale(1); }
  100% {
    -moz-transform: scale(1.5); } }

@keyframes bgCloser {
  0% {
    transform: scale(1); }
  100% {
    transform: scale(1.5); } }

/* Space dude appears to be floating away in distance  */
@-webkit-keyframes spaceDudeEnter {
  0% {
    -webkit-transform: scale(0.75); }
  100% {
    -webkit-transform: scale(0.5); } }

@-moz-keyframes spaceDudeEnter {
  0% {
    -moz-transform: scale(0.75); }
  100% {
    -moz-transform: scale(0.5); } }

@keyframes spaceDudeEnter {
  0% {
    transform: scale(0.75); }
  100% {
    transform: scale(0.5); } }

/* Give Random Movement to space dude */
@-webkit-keyframes spaceDudeRandomMovement {
  0% {
    -webkit-transform: rotate(-5deg); }
  30% {
    -webkit-transform: rotate(-45deg); }
  65% {
    -webkit-transform: rotate(-10deg); }
  85% {
    -webkit-transform: rotate(-30deg); }
  100% {
    -webkit-transform: rotate(-5deg); } }

@-moz-keyframes spaceDudeRandomMovement {
  0% {
    -moz-transform: rotate(-5deg); }
  30% {
    -moz-transform: rotate(-45deg); }
  65% {
    -moz-transform: rotate(-10deg); }
  85% {
    -moz-transform: rotate(-30deg); }
  100% {
    -moz-transform: rotate(-5deg); } }

@keyframes spaceDudeRandomMovement {
  0% {
    transform: rotate(-5deg); }
  30% {
    transform: rotate(-45deg); }
  65% {
    transform: rotate(-10deg); }
  85% {
    transform: rotate(-30deg); }
  100% {
    transform: rotate(-5deg); } }

/* Horizon Entrance */
@-webkit-keyframes horizonEnter {
  0% {
    -webkit-transform: scale(1.25); }
  100% {
    -webkit-transform: scale(1); } }

@-moz-keyframes horizonEnter {
  0% {
    -moz-transform: scale(1.25); }
  100% {
    -moz-transform: scale(1); } }

@keyframes horizonEnter {
  0% {
    transform: scale(1.25); }
  100% {
    transform: scale(1); } }

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0; }
  100% {
    opacity: 1; } }

@-moz-keyframes fadeIn {
  0% {
    opacity: 0; }
  100% {
    opacity: 1; } }

@keyframes fadeIn {
  0% {
    opacity: 0; }
  100% {
    opacity: 1; } }
