html {
    height: 100%;
}

canvas {
    outline: none;
}

body {
    height: 100%;
    margin: 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 0;
    margin: 0;
    background: radial-gradient(ellipse farthest-corner at center, #0B234A, #0C1A31);
}

@font-face {
    font-family: Neuron;
    src: url('fonts/Neuron.ttf') format('truetype');
}

#unity-container { position: absolute }
#unity-container.unity-desktop {transform: translate(calc((100vw - min(calc(100vh * (9/16)), 100vw) )/ 2), 0%) }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
#unity-canvas {
    width: min(calc(100vh * (9/16)), 100vw);
    max-width: 100%;
    max-height: 100%;
    height: auto;
    aspect-ratio:  9/16;
    background-size: cover;
}
.unity-mobile #unity-canvas { width: 100%; height: 100% }

#unity-loading-bar {
    position: absolute;       /* относительно #unity-container */
    top: 50%;                 /* вертикальное центрирование */
    left: 50%;                /* горизонтальное центрирование */
    transform: translate(-50%, -50%); /* точное центрирование */
    width: 100%;              /* полностью по ширине родителя */
    max-width: 100%;          /* ограничение на случай больших экранов */
    display: block;           /* показывать элемент */   /* цвет фона бара */    /* скругление */
}


#unity-logo
{
    width: 100%;
    aspect-ratio: 600 / 175;
    margin: auto;
    background: url('ppnards-logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#unity-progress-bar-empty {
    width: 90%;
    height: 3.5vh;
    margin: auto;
    display: block;
    transform: translate(0, 19vh);
    border: 2px solid white;
    border-radius: 8px;
    background: radial-gradient(ellipse farthest-corner at center, #0B234A, #0C1A31);
}

#unity-progress-bar-full
{
    width: 0%;
    height: 100%;
    display: block;
    background: url('ppnards-progress-bar-fill.png') no-repeat left;
    background-size: cover;
}


#progress-text {
    font-family: 'Neuron', sans-serif;
    width: 100%;
    aspect-ratio: 30;
    font-size: 3.1vh;
    margin: auto;
    transform: translate(0, 3vw);
    color: white;
    text-align: center;
}

#main-header {
    position: absolute;
    top: 24%;
    font-family: 'Neuron', sans-serif;
    width: 100%;
    height: 22px;
    font-size: 3vh;
    margin: auto;
    transform: translate(0, 48%);
    color: white;
    text-align:center;
    vertical-align: middle;
    display: table-cell;
}

#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-logo-title-footer { float:left; width: 102px; height: 38px; background: url('unity-logo-title-footer.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
