body {
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  background: #1a1a1a;
  color: #fff;
}

* {
  box-sizing: border-box;
}

h1 {
  text-align: center;
  font-size: 1.5em;
  font-weight: 600;
}

.muted {
  text-align: center;
  font-size: 1em;
  color: #666;
}

.muted a {
  color: #aaa;
  text-decoration: none;
}

.muted a:hover {
  color: #ccc;
}

#wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  margin: 1em;
}

#canvas-wrap {
  width: 512px;
  height: 480px;
}

#canvas-wrap #canvas {
  width: 100%;
  height: 100%;
  background: #000;
  image-rendering: pixelated;
}

#log {
  width: min(100%, 800px);
  height: 160px;
  margin: 0;
  background: #000;
  font: 12px ui-monospace, monospace;
  padding: 2em;
  overflow: auto;
  white-space: pre-wrap;
}

#log.error {
  color: #f77;
}

#pickers {
  border: 2px dashed #555;
  padding: 4em;
  text-align: center;
  cursor: pointer;
  font-size: 1.2em;
}

#pickers:hover, body.drag-over #pickers {
  border-color: #ccc;
  color: #fff;
}

#pickers input {
  display: none;
}

#controls {
  margin: 1em;
  color: #888;
  display: flex;
  gap: 1.5em;
  flex-wrap: wrap;
  justify-content: center;
}

#controls kbd {
  display: inline-block;
  background: #333;
  color: #fff;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 1px 6px;
}

/* Show and hide elements depending on if the game is playing */

.not-playing #canvas-wrap {
  display: none;
}

.not-playing #log {
  display: none;
}

.playing #pickers {
  display: none;
}

.not-playing #controls {
  display: none;
}
