  margin: 0 auto;
  overflow: hidden;
  width: 90vw;
  max-width: 1024px;
  padding: .5em 0;
}

canvas {
  border: 1px solid black;
  width: 100%;
}
textarea {
  width: 100%;
}

h2 {
  margin: 1em 0 0.5em;
}

label {
  user-select: none;
}
</style>

<script type="module">
import { Qrean } from "../dist/Qrean.js";

const setsel = (sel, types) => {
  for (const name in types) {
    const opt = document.createElement("option");
    opt.value = name;
    opt.textContent = name;
    sel.appendChild(opt);
  }
};
