
body {
  background: white;
  color: black;
  font-family: Arial, sans-serif;
  margin: 8px;
  padding: 0;
}

h1 {
  font-size: 27px;
}

h2 {
  font-size: 19px;
}

h3 {
  font-size: 15px;
}

button {
  font: inherit;
  margin: 3px;
  padding: 7px;
}

input, select {
  max-width: 100%;
}

input[type="range"] {
  width: min(260px, 90%);
}

.canvases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.canvases > div {
  min-width: 0;
}

canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid black;
  background: white;

  /* Important for drawing with fingers */
  touch-action: none;
}

#status {
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .canvases {
    grid-template-columns: 1fr;
  }

  canvas {
    max-width: 100%;
  }

  button {
    margin: 4px 2px;
  }
}
