@font-face {
  font-family:"Museo-700";
  src:url(../api/fonts/museo/700/webfont.woff2) format("woff2"),
      url(../api/fonts/museo/700/webfont.woff) format("woff");
  font-weight:normal;
  font-style:normal;
  font-display:swap;
}

/* site styles */
.grey-error {
  background: url(../api/images/body_bg.png);
}
body .error-section {
  font-family: arial, helvetica, sans-serif;
  background: url(../api/images/body_bg.png);
  line-height: 1.4;
  min-height: 42em;
}

body, html, #header, #main {
  min-width: 980px;
}

.header a,
.header a:visited {
  text-decoration: none;
  color: #179dd6;
  font-weight: bold;
}

.error-content a,
.error-content a:visited {
  text-decoration: none;
  color: #179dd6;
  font-weight: bold;
}

.header a:hover {
  text-decoration: underline;
}

.error-content a:hover {
  text-decoration: underline;
}

.header-wrap {
  min-height: 87px;
}

.header {
  -webkit-box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.05);
  -moz-box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.05);
  box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.05);
  background: white;
  width: 100%;
  top: -50px;
  margin-top: 50px;
  position: absolute;
  z-index: 999;
}

.fixed-div {
  position: fixed;
  top: 0;
  margin-top: 0;
}

.header-logo {
  height: 27px;
  width: 66px;
  background-image: url(../api/images/header_logo_mini.png);
  background-position: 0 0;
  background-repeat: no-repeat;
  display: inline-block;
  vertical-align: middle;
  float: left;
  margin: 11px 10px 12px;
}

.header-logo h1 {
  display: none;
}

.header a.home-link {
  color: #4b4b4b;
  display: block;
  font-family: "MuseoSans-700",sans-serif;
  font-size: 11px;
  height: 30px;
  margin: 10px 10px 10px 0;
  line-height: 2.9em;
}

.header a.home-link:hover {
  color: #179dd6;
  font-weight: bold;
  text-decoration: underline;
}

.header .error-home-icon {
  margin-left: 5px;
  height: 30px;
  width: 11px;
  float: right;
  background: url(../api/images/home_arrow.png) no-repeat 100% 50%;
}

.pull-right {
  float: right;
}

/* error page styles */
.page-error .container {
  margin-left: auto;
  margin-right: auto;
  width: 960px;
}

.page-error .header .container {
  position: relative;
}

.page-error .main-content>.container {
  padding: 8px 0 70px;
}

.error-content h1,
.error-content h2 {
  margin: 0;
  font-size: 1em;
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
  text-shadow: rgba(255, 255, 255, 0.02) 0 0 1px;
  font-family: "Museo-700", arial, helvetica, sans-serif;
  color: #323232;
}

.error-content {
  text-align: center;
}

.error-content h1 {
  font-size: 18px;
  margin-bottom: 0;
}

.error-content h2 {
  margin-bottom: 12px;
  height: 194px;
  font-size: 145px;
  line-height: 1.35em;
}

.error-content h2 span {
  font-size: 200px;
  color: #6f7d9a;
  letter-spacing: -5px;
}

.error-note {
  font-size: 16px;
  color: #323232;
  width: 520px;
  margin: 0 auto;
}

.graphic-error-404 {
  margin-top: 21px;
}
.graphic-error-404 img {
  margin-left: 278px;
}
.graphic-error-404 .img {
  margin-left: 374px;
  width: 490px;
  height: 185px;
  background: url(../api/images/404_ably.png) no-repeat;
}

.error-500 h2 {
  color: #6f7d9a;
  height: 133px;
  line-height: 1.1em;
}
.error-500 .error-content {
  height: 418px;
  position: relative;
}

.error-500 .error-content .img {
  width: 217px;
  height: 418px;
  position: absolute;
  bottom: 0;
  top: 100px;
  left: 50%;
  margin-left: -108px;
  z-index: 0;
  background: url(../api/images/500_ably.png) no-repeat 50% bottom;
}

.status {
  margin-top: 120px;
  text-align: center;
}

.status.status-cloudflare {
  margin-top: 50px;
}

.status iframe {
  position: relative;
  width: 230px;
  border: none;
  border-top: 1px solid #CCC;
  margin-top: 10px;
  padding-top: 10px;
  height: 60px;
}

.error-details {
  margin-top: 10px;
  text-align: center;
}

.error-details h1 {
  margin: 0 0 15px 0;
}

.error-details h2 {
  height: auto;
  color: #323232;
}

.error-details .cloudflare-response {
  font-family: "Courier New", "Courier", Fixed, monospace;
  border: 1px solid #999;
  border-radius: 3px;
  padding: 10px;
  margin-bottom: 30px;
  background-color: white;
  display: inline-block;
  text-align: left;
  font-size: 14px;
}

.error-details .cloudflare-response h1,
  .error-details .cloudflare-response h2,
  .error-details .cloudflare-response h3 {
    font-family: "Courier New", "Courier", Fixed, monospace;
    font-weight: bold;
    margin-bottom: 0.3em;
  }

.error-details h3 {
  font-family: "Museo-700", arial, helvetica, sans-serif;
}


/* Small displays */
@media only screen and (max-width:640px) {
  body, html, #header, #main {
    min-width: 100%;
    margin: 0;
  }
  .graphic-error-404 .img {
    width: 100%;
    margin-left: 0px;
  }

  .page-error .container {
    width: 100%;
  }

  .error-content h2 {
    height: 50px;
    font-size: 50px;
    line-height: 60px;
  }

  .error-content h2 span {
    font-size: 70px;
  }

  .error-note {
    width: 90%;
  }

  /* Part of the Headway widget */
  #HW_frame_cont {
    max-width: 100%;
  }
}

/* Retina displays */
@media only screen and (min-resolution: 192dpi),
  only screen and (min-resolution: 2dppx) {

  .header-logo {
    background-image: url(../api/images/header_logo_mini@2x.png);
    background-position: 0 0;
    -webkit-background-size: 100% auto;
    -moz-background-size: 100% auto;
    -o-background-size: 100% auto;
    background-size: 100% auto;
  }

  .graphic-error-404 .img {
    background-image: url(../api/images/404_ably@2x.png);
    background-size: 100%;
  }

  .error-500 .error-content .img {
    background-image: url(../api/images/500_ably@2x.png);
    background-size: 100%;
  }

}
