.space-r {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: normal;
}
.space-b {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-style: normal;
}
.space-r-i {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: italic;
}
.space-b-i {
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-style: italic;
}
html, body {
  margin: 0;
  padding: 0;
  background-color: #111;
  text-align: center;
}

.unselect {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.select {
  -webkit-user-select: text; /* Safari */
  -ms-user-select: text; /* IE 10 and IE 11 */
  user-select: text; /* Standard syntax */
}

body {
  height: 100vh;
  height: 100dvh; /* accounts for mobile browser address bar showing/hiding */
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* border: solid 2px white; */
}

game {
  color: #fff;
  display: block;
  justify-content: center;
  align-items: center;
  background-color: #111;
  font-size: 14px;
}

#next {
  margin-top: 10px; 
}

.blank {
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-style: italic;
  padding-left: 5px;
  padding-right: 5px;
}

.blank:hover {
  cursor: help;
}

canvas {
  display: block;
}

#footer {
  flex-shrink: 0;
  font-size: 12px;
  color: #444;
  padding: 10px;
}

@media (max-width: 600px) {
  game {
    font-size: 16px;
    line-height: 1.5;
  }
  #footer {
    font-size: 14px;
  }
  #b button {
    font-size: 16px;
  }
  #p {
    display: none !important;
  }
  #m {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
}

@media (max-width: 400px) {
  game {
    font-size: 18px;
  }
  #b button {
    font-size: 18px;
  }
}

@media print{
  #p {
    display: none !important;
  }

  #next {
    display: none;
  }
}