ul,
ol,
dl,
dd,
dt,
li,
div,
html,
body,
p,
form,
hr,
h1,
h2,
h3,
h4,
h5,
img,
button {
  margin: 0;
  padding: 0;
}

html,
body,
#game-area {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

ul {
  padding-left: 0;
  list-style-type: none;
  width: 100%;
}

html {
  font-size: 16px;
  line-height: 16px;
}

body {
  font-family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
  font-weight: 300;
  color: #f9f9f9;
  background-color: #111;
}

h1,
h2,
h3,
h4,
h5 {
  text-align: center;
}

a {
  text-decoration: none;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
}

body {
  /* Don't show anything until the controller is ready. */
  visibility: hidden;
}

.overlays,
.pause-menu,
.pause-screen {
  margin: auto;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
}

.pause-menu {
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  background-color: #212121;
  border: 2px solid #dadada;
  border-radius: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  font-size: 28px;
  height: 700px;
  line-height: 28px;
  max-height: calc(100% - 20px);
  max-width: calc(100% - 20px);
  padding: 32px;
  width: 600px;
}
.pause-menu .title {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}
.pause-menu .pause-menu-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.pause-menu .pause-menu-content dl > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin: 20px 0;
}
.pause-menu .pause-menu-content dl > div dt,
.pause-menu .pause-menu-content dl > div dd {
  margin: 0 20px;
  max-width: 200px;
  width: 50%;
}
.pause-menu .pause-menu-content dl > div dt {
  text-align: end;
}
.pause-menu .pause-menu-content dl > div dd {
  text-align: start;
}
.pause-menu .pause-menu-content .stats {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.pause-menu .pause-menu-content .pause-menu-controls {
  -webkit-box-flex: 0;
      -ms-flex: 0;
          flex: 0;
  font-size: .7em;
  margin-bottom: 28px;
}
.pause-menu .pause-menu-content .pause-menu-controls hr {
  margin: 20px;
}
.pause-menu .pause-menu-content .pause-menu-controls h3 {
  font-size: .9em;
  margin-bottom: 8px;
}
.pause-menu .pause-menu-content .pause-menu-controls dl > div {
  margin: 2px 0;
}
.pause-menu .pause-menu-content .pause-menu-controls dl > div dt,
.pause-menu .pause-menu-content .pause-menu-controls dl > div dd {
  margin: 0 8px;
}
.pause-menu button.play {
  background-color: #2299EE;
  border-radius: 3px;
  border: none;
  border-radius: 30px;
  color: #FFFFFF;
  cursor: pointer;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  font-size: 22px;
  margin: 0 auto;
  padding: 16px;
  width: 180px;
}

.pause-screen {
  display: none;
  background-color: rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 100%;
}

.score {
  bottom: 32px;
  font-size: 32px;
  height: 48px;
  line-height: 48px;
  position: absolute;
  right: 32px;
  text-align: right;
  width: 180px;
}

.health {
  bottom: 32px;
  height: 48px;
  left: 32px;
  position: absolute;
  width: 180px;
}
.health .capacity,
.health .current {
  border: 2px solid #FFFFFF;
  border-radius: 4px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  height: 32px;
  position: absolute;
  top: 8px;
  width: 180px;
}
.health .current {
  border-color: transparent;
  background-color: rgba(12, 247, 8, 0.8);
}

.new-record {
  display: none;
  margin: 40px;
}

.toast {
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  bottom: 80px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  font-size: 28px;
  left: 0;
  line-height: 28px;
  margin: 0 auto;
  opacity: 0;
  padding: 20px 0;
  position: absolute;
  right: 0;
  -webkit-transition: 0.8s;
  transition: 0.8s;
  width: 352px;
}
.toast div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.toast div dt,
.toast div dd {
  margin: 2px 20px;
  width: 50%;
}
.toast div dt {
  text-align: end;
}
.toast div dd {
  text-align: start;
}
