html {
  font-size: 18px;
  font-family: 'Open Sans', Helvetica, sans-serif;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  background: #fff;
  color: #252525;
  text-align: center;
  margin: 0;
  line-height: 1.5;
  flex-direction: row;
}

* {
  box-sizing: border-box;
}

.error-header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  padding-bottom: 10rem;
  position:  relative;
  max-width: 600px;
  font-size: 1rem;

  background: #333;
  background-image: linear-gradient( 220deg, #4f0564 40%, #5946c1 );
  text-align: center;
}

.logo-animation {
  position: relative;
  width: 12rem;
  height: 12rem;
  left: -1rem;
}

  .logo-animation img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: #E5637C;
  }

  .logo-animation .box-1,
  .logo-animation .box-2 {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    transition: all 0.5s cubic-bezier(.75,-0.3,.31,2);
  }

  .logo-animation .box-1 {
    background: rgba(229,99,124,0.2);
  }

  .logo-animation .box-2 {
    background: rgba(229,99,124,0.5);
  }

  .logo-animation.open .box-1 {
    transform: rotate( 8deg ) translateX( 12px );
  }

  .logo-animation.open .box-2 {
    transform: rotate( 4deg ) translateX( 8px );
  }

  .logo-animation.open:hover .box-1,
  .logo-animation.open:hover .box-2 {
    transition: all 0.3s ease;
    transform: none;
  }

.error-body {
  position: relative;
  display: flex;
  flex-direction: column;
  width:  100%;
  padding: 4rem;
  padding-bottom: 8rem;
  line-height: 1.5;
}
  .wave {
    position: absolute;
    width: 100px;
    height: 100%;
    z-index: 10;
    top: 0;
    left: -70px;
  }
  .error-body .inner {
    margin: 0 20px;
    text-align: left;
    margin: auto 0;
    max-width: 540px;
  }

  .error-body .suggested-links,
  .error-body h2,
  .error-body p {
    margin: 0;
  }

  .error-body .inner > * + * {
    margin-top: 1.2em;
  }

  .error-body .suggested-links {
    margin-top: 1.5rem;
  }

  .error-body .button {
    display: inline-block;
    color: #252525;
    padding: 6px 12px;
    border-radius: 2px;
    background-color: #f6f7f9;
  }

  .error-body .button {
    margin-right: 0.6rem;
    margin-top: 0.6rem;
  }

  .error-body .button:hover {
    background-color: #edeef3;
    color: #000;
  }

  .error-body p a {
    color: #1677c1;
    text-decoration: underline;
  }

  .error-body p a:hover {
    color: #1d99f7;
  }

h2 {
  font-size: 2.4rem;
  letter-spacing: -0.05rem;
  color: #333;
  line-height: 1.1;
}

a {
  text-decoration: none;
}



.footer {
  position: absolute;
  bottom: 4rem;
  font-size: 14px;
  text-align: left;
  line-height: 1.5;
  color: #777;
}

.footer > *:first-child {
  margin-left: -6px;
}

.footer a,
.footer span {
  padding: 2px 6px;
  color: inherit;
}

.footer a {
  position: relative;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #777;
  margin-bottom: 2px;
}

.footer a:hover {
  color: #444;
  border-color: #888;
}

.footer a:active {
  top: 1px;
}

@media screen and (max-width: 1000px) {
  html {
    font-size: 16px;
  }

  .error-header,
  .error-body {
    padding: 2rem;
  }

  .footer {
    bottom: 2rem;
  }

  .logo-animation {
    left:  0;
    width: 10rem;
    height: 10rem;
  }
}

@media screen and (max-width: 700px), (max-height: 500px) {
  .footer {
    position: relative;
    bottom: 0;
    margin-top: 2rem;
  }
}

@media screen and (max-width: 700px) {
  html {
    font-size: 14px;
  }

  body {
    flex-direction: column;
  }

  h2 {
    font-size: 2rem;
  }

  .error-header {
    max-width: none;
  }

  .logo-animation {
    left:  0;
    width: 8rem;
    height: 8rem;
  }

  .wave {
    display: none;
  }
}