/* Fit the Unity player inside narrow OrderlyClass iframes without cropping the game. */
html, body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #0d1f3a;
}
#unity-container.unity-desktop,
#unity-container.unity-mobile {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
#unity-fullscreen-container {
    width: 100% !important;
    height: 56.25vw !important;
    max-height: calc(100vh - 38px);
    min-height: 0;
    flex: 0 0 auto;
    overflow: hidden;
}
#unity-canvas {
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    outline: none;
    touch-action: none;
}
#unity-footer {
    width: 100%;
    height: 38px;
    flex: 0 0 38px;
    color: #0d1f3a;
    background: #fff8e9;
}
#unity-fullscreen-container:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh;
}
.unity-mobile #unity-fullscreen-container { max-height: 100vh; }
