html,
body {
    width: 100%;
    height: 100%;
}

body {
    display: grid;
    place-items: center;
    margin: 0;
    overflow: hidden;
    background: #000;
}

canvas {
    display: block;
    max-width: 100vw;
    max-height: 100vh;
}