html,
body {
    margin: 0;
    height: 100%;
    background: #000;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
}

canvas {
    display: block;
    aspect-ratio: var(--display-aspect-ratio, auto);
    width: min(100vw, calc(100vh * var(--display-aspect-ratio, 1)));
    height: auto;
    image-rendering: pixelated;
}

#open-rom {
    position: fixed;
    top: 8px;
    left: 8px;
}

#debug-overlay {
    position: fixed;
    top: 8px;
    right: 8px;
    color: white;
}
