* {
  box-sizing: border-box;
}

body {
  font-size: 12pt;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.3;
}

label {
  display: block;
}

input {
  display: block;
  margin: 0.5em;
  padding: 1em;
  width: 100%;
  background: #eee;
}

label.check input {
  display: inline;
  width: auto;
  padding: 0;
  background: none;
}

#advanced {
  margin: 0.5em 1em;
  padding: 0.5em 0;
  border-top: 1px dotted cadetblue;
}

#advanced .help {
  margin-bottom: 0.5em;
}

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

.controls label {
  padding: 0.25em 0;
}

.controls input {
  margin: 0;
  padding: 0.5em;
}

canvas {
  border: 1px dotted cadetblue;
  margin: 1em;
  image-rendering: pixelated;
}

#container {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  grid-template-rows: auto;
  gap: 1em;
}

#container > canvas {
  justify-self: center;
}

#container > div {
  justify-self: stretch;
}

#output-pane {
  text-align: center;
  overflow: auto;
}

label.zoom {
  margin: auto;
  display: flex;
  white-space: nowrap;
  max-width: 20em;
}

label.zoom input {
  padding: 0;
  background: none;
}
