.canvas {
    position: absolute;
    top: 1em;
    left: 1em;
    right: 1em;
    bottom: 1em;
    margin: 0;
    overflow: hidden;
    background-color: black;
}


body:fullscreen .canvas,
body:-webkit-fullscreen .canvas,
body::-webkit-full-screen .canvas,
body:-moz-full-screen .canvas {
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.image {
    position: absolute;
    height: 100%;
    width: auto;
    display: block;
    clip-path: inset(0 100% 0 0);
    image-rendering: crisp-edges;
    will-change: clip-path;
    opacity: 1 !important;
    visibility: visible !important;
}

.fullscreen-toggle,
.play-toggle {
    position: absolute;
    z-index: 10000;
    background: black;
    color: rgb(255, 255, 255);
    border: none;
    cursor: pointer;
    font-family: "Archivo Narrow", serif;
}

.fullscreen-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 16px;
    z-index: 100000;
    background: black;
    color: #555;
    border: none;
    cursor: pointer;
    font-family: "Archivo Narrow", serif;
}


.play-toggle {
    bottom: 10px;
    left: 40px;
    font-size: 0.9em;
}

@media (max-aspect-ratio: 3/4) {
    .canvas {
        top: 40px;
        height: calc((100vw - 2em) * 4 / 3);
        max-height: calc(100% - 2em);
    }

    .fullscreen-toggle {
        top: calc(40px + (100vw - 2em) * 4 / 3 + 10px);
        bottom: auto;
        /* Override the default bottom setting */
        right: 1em;
    }
}