body {
  background: black;
  color: #dedede;
  margin: 0px;
  /* font-family: 'Courier New', Courier, monospace; */
}
@font-face {
  font-family: Consolas;
  src: local(Consolas), url(/regem-ludos/fonts/Consolas.woff);
}
body {
  font-family: Consolas;
}
.fixed {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#game {
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: fixed;
  height: 100%;
  width: 100%;
  pointer-events: none;
}
.board-original {
  position: relative;
}
.canvas-original {
}
.board {
  pointer-events: all;
  position: relative;
  width: 100%;
  height: 100%;
  border: unset;
  display: flex;
  align-items: center;
  justify-content: center;
}
canvas {
  box-sizing: border-box;
  width: calc(100%);
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  max-width: 100vh;
}
.top-bar-controls {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  justify-content: left;
  padding: 4px;
  pointer-events: all;
}

.on-screen-controls {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: all;
  transform-origin: bottom;
}
.on-screen-control-button {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  padding: 16px;
  font-size: 16px;
  min-width: 48px;
  margin: 0px 0px 12px 4px;
  background: #333;
  color: white;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid #aaa;
  touch-action: manipulation;
  text-align: center;
  font-family: monospace;
  user-select: none;
  -webkit-user-select: none;
}
.on-screen-control-button:hover {
  filter: brightness(80%);
}
.on-screen-control-button:active {
  filter: brightness(120%);
}
.tap-to-start {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  font-size: 32px;
  user-select: none;
  -webkit-user-select: none;
}

button {
  font-family: Consolas;
  color: white;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 4px;
  background: #243f72;
  border: 2px solid #31a2f2;
  border-bottom: 2px solid #999;
}
button:hover {
  filter: brightness(120%);
}
button:active {
  filter: brightness(80%);
  transform: translateY(2px);
}

button.cancel-button {
  background: #5e3643;
  border: 2px solid #be2633;
  border-bottom: 2px solid #999;
}
