﻿* {
    padding: 0;
    margin: 0;
}

html {
    /* fix mobile viewport menu bar on iOS */
    height: -webkit-fill-available;
}

body {
    height: 100%;
    /* fix mobile viewport menu bar on iOS */
    height: -webkit-fill-available;
    width: 100%;
    text-align: center;
}

#unity-container {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
}

/* Default values, might be overwritten by aspect ratio media queries */
#unity-canvas {
    width: 100%;
    height: 100%;
    background-color: #fff;
}

#potree {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    box-sizing: border-box;
}

#potree iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: all;
}

@media (min-aspect-ratio: 2.15) {
    #unity-canvas {
        width: auto;
        height: 100%;
        aspect-ratio: 2.15;
    }
}

@media (max-aspect-ratio: 1) {
    #unity-canvas {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
}

#unity-loading-container {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
    
    opacity: 1;
    visibility: visible;
    transition: 800ms linear;

    background-color: #000d2b;
}

#unity-loading-container.finished {
    opacity: 0;
    visibility: collapse;
}

#unity-loading-container .logo {
    height: 15%;
}

#unity-loading-bar {
    position: relative;
    width: 40%;
    height: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
}

#unity-loading-bar-inner {
    position: absolute;
    left: 0%;
    top: 0%;
    width: 1%;
    height: 100%;
    background-color: #1b88b3;
    border-radius: 10px;
    transition: 400ms linear;
}
