/* Status Board - display page.
   Deliberately old-Safari friendly: no CSS variables, no grid, no flex gap.
   Vertical centring uses table-cell, which works all the way back to iOS 5. */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: #222222;
}

body {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #ffffff;
  -webkit-text-size-adjust: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  cursor: none;
  -webkit-transition: background-color 600ms ease;
  transition: background-color 600ms ease;
}

body.stale {
  opacity: 0.55;
}

.bg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 1;
}

.scrim {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
}

/* ---------- top bar ---------- */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9%;
  padding: 0 4%;
  line-height: 1;
}

.sitename {
  display: inline-block;
  margin-top: 3.2vmin;
  font-size: 3vmin;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}

.offline {
  display: none;
  float: right;
  margin-top: 3.2vmin;
  font-size: 2.6vmin;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffd2d2;
  background-color: rgba(0, 0, 0, 0.35);
  padding: 0.6vmin 1.6vmin;
  border-radius: 1vmin;
}

/* ---------- middle ---------- */

.middle {
  position: absolute;
  top: 9%;
  left: 0;
  right: 0;
  /* height rather than top+bottom: a display:table box with only top/bottom
     set collapses to auto height on Safari, which kills the centring. */
  height: 82%;
  display: table;
  width: 100%;
}

.middle-inner {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  padding: 0 6%;
}

.iconwrap {
  display: none;
  margin-bottom: 3vmin;
}

.iconimg {
  display: none;
  max-height: 26vmin;
  max-width: 55%;
  margin: 0 auto;
}

.iconemoji {
  display: none;
  font-size: 20vmin;
  line-height: 1;
}

.statustext {
  font-size: 11vmin;
  font-weight: 700;
  line-height: 1.12;
  text-shadow: 0 0.4vmin 1.6vmin rgba(0, 0, 0, 0.45);
}

.note {
  display: none;
  margin-top: 3.5vmin;
  font-size: 4.4vmin;
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.9;
  text-shadow: 0 0.3vmin 1.2vmin rgba(0, 0, 0, 0.45);
}

/* ---------- bottom bar ---------- */

.bottombar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 9%;
  padding: 0 4%;
  text-align: center;
}

.updated {
  display: inline-block;
  margin-top: 3.4vmin;
  font-size: 2.8vmin;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

/* ---------- change flash ---------- */

@-webkit-keyframes flashin {
  0%   { opacity: 0.15; -webkit-transform: scale(0.97); }
  100% { opacity: 1;    -webkit-transform: scale(1); }
}

@keyframes flashin {
  0%   { opacity: 0.15; transform: scale(0.97); }
  100% { opacity: 1;    transform: scale(1); }
}

.flash {
  -webkit-animation: flashin 500ms ease-out;
  animation: flashin 500ms ease-out;
}
