html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: black;
}

@media (orientation: landscape) {
    html,
    body {
        width: 100vw;
        height: 100vh;
    }
}

body,
body * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.game,
.game_container {
    display: block;
    touch-action: none;
    margin: auto;
    width: 100%;
    height: 100%;
}

@media (orientation: landscape) {
    .game,
    .game_container {
        width: 100vw;
        height: calc(100vh - env(safe-area-inset-bottom, 0px));
    }
}

canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    image-rendering: pixelated;
}

.canvas_container {
    position: relative;
    margin: auto;
}

.canvas_overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: black;
    display: table;
}

@media (orientation: landscape) {
    .canvas_overlay {
        width: 100vw;
        height: 100vh;
    }
}

.click_to_start {
    cursor: pointer;
    vertical-align: middle;
    text-align: center;
    display: table-cell;
}

.click_to_start .huge {
    font-size: 1.5em;
    color: white;
    display: block;
}

