html {
  /* Background from FreeFrontEnd.com "170+ CSS Background Patterns" */
  --s: 80px; /* control the size */
  --c: #542437;

  --_g: #0000 calc(-650% / 13) calc(50% / 13), var(--c) 0 calc(100% / 13),
    #0000 0 calc(150% / 13), var(--c) 0 calc(200% / 13), #0000 0 calc(250% / 13),
    var(--c) 0 calc(300% / 13);
  --_g0: repeating-linear-gradient(45deg, var(--_g));
  --_g1: repeating-linear-gradient(-45deg, var(--_g));
  background: var(--_g0), var(--_g0) var(--s) var(--s), var(--_g1),
    var(--_g1) var(--s) var(--s) #c02942;
  background-size: calc(2 * var(--s)) calc(2 * var(--s));
}
#gameSpace {
  margin: 0 auto;
  margin-top: 100px;
  width: 1000px;
  height: 600px;
}

#gameCanvas {
  border: 2px solid black;
  background: #eee;
}
.pixel-art {
  /* add this class to anything that's pixel art */
  image-rendering: pixelated;
}

#menu {
  position: absolute;
  background-color: #c02942;
  top: 43%;
  transform: translate(-50%, -50%);
  left: 50%;
  padding: 16px;
  max-width: 1000px;
  max-height: 600px;
  width: 100%;
  height: 100%;
  text-align: center;
  border-radius: 5px;
}

#content {
  position: absolute;
  top: 40%;
  transform: translate(-50%, -50%);
  left: 50%;
  padding: 16px;
  max-width: 800px;
  max-height: 400px;
  width: 100%;
  height: 0%;
  text-align: center;
  border-radius: 5px;
}


#menuButton {
  margin: auto;
  background-color: #542437;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  display: block;
  width: auto;

  hr {
    color: #c02942;
  }
}

#instructions {
  margin-left: 35px;
  padding-top: 10px;
  padding-left: 10px;
  height: 2em;

  color: rgb(233, 37, 37);
  font-size: 1.3em;

  -webkit-transition: opacity 5s;
  -moz-transition: opacity 5s;
  -o-transition: opacity 5s;
  transition: opacity 5s;

  display: inline;
}

.keys {
  color: rgb(0, 0, 0);
  text-shadow: 1px 1px 1px rgba(255, 255, 0, 0.5);
  background: rgba(0, 0, 0, 0.1);
  border: thin solid rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  margin-left: 10px;
  padding-right: 5px;
  padding-left: 5px;
  padding-bottom: 5px;

  display: inline;
}

.explanation {
  color: rgb(255, 255, 255);
  text-shadow: 1px 1px 1px rgba(255, 1, 1, 0.5);
  display: inline;
  margin-top: 5px;
  padding-right: 5px;
  padding-left: 5px;
  padding-bottom: 2px;
}
