#myCanvas {
  width: 100vw;
  height: 100vh;
  background-color: #000;
}
html,
body {
    margin: 0;
    overflow: hidden;
    height: 100%;
}

/* Scale canvas with resize attribute to full size */
canvas[resize] {
    width: 100vw;
    height: 100vh;
}
