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

#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.view-layer {
    position: absolute;
    /* Forces the element to scale uniformly inside the window */
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: opacity 0.4s ease-in-out, filter 0.4s ease-in-out, transform 0.4s ease-in-out;
    filter: brightness(1);
}

.flipped {
    transform: scaleX(-1);
}

#viewA {
    z-index: 1;
    opacity: 1;
}

#viewB {
    z-index: 2;
    opacity: 0;
}

#ui {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #eee;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border: 1px solid #444;
    pointer-events: none;
    z-index: 10;
}

#html-assets {
    display: none;
}
