/* The Adventures of Mr. Beaver -- site styling.
   Open source (MIT). System fonts only; no external/proprietary assets. */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: #14141c;
  color: #e7e7ef;
  font-family: "Courier New", Courier, monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

#stage {
  width: min(100%, 1040px);
  padding: 28px 16px 8px;
  flex: 1 0 auto;
}

/* --- landing menu ----------------------------------------------------- */
#menu {
  border: 4px solid #000;
  background: #1d1d2a;
  box-shadow: 0 0 0 2px #3a3a52, 0 12px 36px rgba(0, 0, 0, 0.6);
  padding: 36px 28px 30px;
  text-align: center;
}

.logo {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 1px;
  color: #f3f3f3;
  text-shadow: 3px 3px 0 #000;
}
.logo span {
  display: inline-block;
  margin-top: 4px;
  font-size: 46px;
  color: #cc2a2a;
  text-shadow: 4px 4px 0 #000;
}

.tagline {
  margin: 4px 0 22px;
  color: #b9b9c9;
  font-size: 14px;
}

#playBtn {
  font-family: inherit;
  font-size: 20px;
  font-weight: bold;
  color: #161616;
  background: #d8d8d8;
  border: 0;
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #404040;
  border-right: 3px solid #404040;
  padding: 12px 34px;
  cursor: pointer;
}
#playBtn:hover  { background: #ececec; }
#playBtn:active {
  border-top: 3px solid #404040;
  border-left: 3px solid #404040;
  border-bottom: 3px solid #ffffff;
  border-right: 3px solid #ffffff;
}

.controls {
  list-style: none;
  margin: 24px auto 0;
  padding: 14px 18px;
  max-width: 420px;
  text-align: left;
  font-size: 13px;
  color: #cdcddb;
  background: #15151f;
  border: 2px solid #3a3a52;
}
.controls li { margin: 4px 0; }
.controls b  { color: #ffd86b; }

.about {
  max-width: 480px;
  margin: 18px auto 0;
  font-size: 12px;
  line-height: 1.6;
  color: #9a9aac;
}

/* --- game ------------------------------------------------------------- */
#gameWrap {
  border: 4px solid #000;
  box-shadow: 0 0 0 2px #3a3a52, 0 12px 36px rgba(0, 0, 0, 0.6);
  background: #000;
  line-height: 0;
}

#game {
  display: block;
  width: 100%;
  height: auto;
  /* nearest-neighbour upscaling -- this is what gives the pixel-art look */
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #000;
}

/* --- footer ----------------------------------------------------------- */
footer {
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: #6e6e84;
}
footer span { color: #cc2a2a; font-weight: bold; }
