html.touch-mode,
html.touch-mode body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: black;
    overflow: hidden;
}

html.touch-mode body,
html.touch-mode body * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    overflow: hidden;
}

@supports (-webkit-touch-callout: none) {
    html.touch-mode body {
        margin-top: 0.5px;
    }
}

@media (orientation: landscape) {

    html.touch-mode,
    html.touch-mode body {
        width: 100vw;
        height: 100vh;
    }
}

.touch-mode canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    image-rendering: auto;
    z-index: 10;
}

#joystickArea,
#rokuArea,
#buttonsArea {
    display: none;
}

.touch-mode #joystickArea {
    display: block;
    width: 200px;
    height: 200px;
    position: fixed;
    object-fit: contain;
    left: 0px;
    bottom: 0px;
    z-index: 30;
}

.touch-mode #joystickBack {
    width: 100px;
    height: 100px;
    margin-left: 50px;
    margin-top: 50px;
    position: fixed;
    opacity: 0%;
    z-index: 20;
}

.touch-mode #rokuArea {
    display: block;
    width: 200px;
    height: 200px;
    position: fixed;
    object-fit: contain;
    right: 0px;
    bottom: 200px;
    z-index: 30;
}

.touch-mode #rokuBack {
    width: 200px;
    height: 200px;
    margin-right: 0px;
    margin-bottom: 200px;
    position: fixed;
    opacity: 0%;
    z-index: 20;
}

.touch-mode #buttonsArea {
    display: block;
    width: 200px;
    height: 200px;
    position: fixed;
    object-fit: contain;
    right: 0px;
    bottom: 0px;
    z-index: 30;
}

.touch-mode #buttonsBack {
    width: 200px;
    height: 200px;
    margin-right: 50px;
    margin-bottom: 50px;
    position: fixed;
    opacity: 0%;
    z-index: 20;
}

.touch-mode #container {
    margin: auto;
    width: 100%;
    height: 100%;
}

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

.touch-mode .flipped {
    transform: scaleY(-1);
}

.touch-mode .nipple {
    position: fixed !important;
}

.touch-mode .back {
    position: fixed !important;
}

.touch-mode .front {
    position: fixed !important;
    margin-left: -25px !important;
    margin-top: -25px !important;
    left: unset !important;
    top: unset !important;
}

.touch-mode .desktop-only {
    display: none !important;
}
