body {
    padding: 0;
    margin: 0;
    background-color: black;
}

#unity-container {
    /* Position the container to be centered on the screen */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* These properties ensure the container always fits within the viewport while maintaining a 9:16 aspect ratio. */
    /* The height will be the smaller of two values: 100vh (the screen's height) or the calculated aspect ratio height. */
    height: min(100vw * 16 / 9, 100vh);
    /* The width will be the smaller of two values: 100vw (the screen's width) or the calculated aspect ratio width. */
    width: min(100vh * 9 / 16, 100vw);
}

#unity-canvas {
    width: 100%;
    height: 100%;
    background: url('../background.png') no-repeat center center;
    background-size: cover;
    background-color: black;
}

/* Media queries for universal tablet and desktop support */
@media screen and (min-width: 600px) {
    #unity-canvas {
        background-size: auto 100%;
    }
}

@media screen and (aspect-ratio: 19/9) {
    #unity-canvas {
        background-size: cover;
    }
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    bottom: 15%;
    transform: translateX(-60%);
    display: none;
}

#unity-logo {
    display: none;
}

#unity-progress-bar-empty {
    margin-left: auto;
    margin-right: auto;
    width: 141px;
    height: 18px;
    margin-top: 10px;
    background: url('progress-bar-empty-dark.png') no-repeat center;
}

#unity-progress-bar-full {
    width: 0%;
    height: 18px;
    margin-top: 10px;
    background: url('progress-bar-full-dark.png') no-repeat center;
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none;
}
