@font-face {
    font-family: IBMPlexSans;
    src: url('IBMPlexSans-Bold.otf');
}

*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    display: grid;
    place-items: center;
    font-family: IBMPlexSans, sans-serif;
}

#safe-area-probe {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    visibility: hidden;
    pointer-events: none;
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    box-sizing: content-box;
}

.canvas-holder {
    aspect-ratio: 1179 / 2556;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
    background: #000;
    overflow: hidden;
}

#unity-canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
}

.fullscreen-btn {
    position: fixed;
    left: calc(env(safe-area-inset-left) + 12px);
    bottom: calc(env(safe-area-inset-bottom) + 12px);
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.fullscreen-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    z-index: 20;
}

#unity-progress-bar-empty {
    width: 300px;
    max-width: 60vw;
    height: 40px;
    background: transparent;
    border: solid white 5px;
    padding: 5px;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: white no-repeat center;
}

#unity-progress-bar-progress {
    margin-top: 10px;
    font-size: 2em;
    color: white;
    text-align: center;
    display: block;
    font-family: IBMPlexSans;
}
