@font-face{
  font-family:"Avenir Next W01";
  font-weight: 700;
  src: font-url("avenir_next-demi.eot?#iefix");
  src: font-url("avenir_next-demi.eot?#iefix") format("eot"),
       font-url("avenir_next-demi.woff2") format("woff2"),
       font-url("avenir_next-demi.woff") format("woff"),
       font-url("avenir_next-demi.ttf") format("truetype"),
       font-url("avenir_next-demi.svg#avenir-demi") format("svg");
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  color: #2D313D;
  background-color: #2D313D;
  text-align: left;
  font-family: "Avenir Next W01", "Avenir Next", "Avenir", helvetica, arial, sans-serif;
}

.container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -moz-box-flex: 1;
  -moz-flex: 1;
  -ms-flex: 1;
  flex: 1;
  -webkit-align-items: center;
  -moz-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.message {
  text-align: center;
  margin: auto;
  font-size: 48px;
  max-width: 85%;
  position: relative;
}

.error-image {
  max-width: 50%;
}

@media only screen and (max-device-width: 667px) {
  .error-image {
    max-width: 100%;
  }
}

h1 {
  font-size: 36px;
}

h1 + a {
  font-size: 30px;
  font-weight: bold;
}

h2 {
  margin-top: 1.5em;
  font-size: 18px;
}

a,
a:link,
a:visited {
  color: #2D313D;
  text-decoration: none;
}

@media only screen and (max-device-width: 667px) {
  h1 {
    font-size: 24px;
  }

  h1 + a {
    font-size: 18px;
  }

  h2 {
    font-size: 16px;
    font-weight: normal;
  }
}