html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#unity-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
	width: 100%;
    height: 100%;
    /*max-width: 480px;  your max width */
    margin: 0 auto;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    outline: none;
    touch-action: none;
    background: #000;
}

@media screen and (max-width: 768px) and (orientation: portrait)  {
    html, body {
        margin: 0;
        padding: 0;
        overflow: hidden;
        background: #000;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #unity-container {
        transform: rotate(90deg);
        transform-origin: center center;
        width: 100vh;
        height: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Loading bar */

#unity-loading-bar {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 320px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

#unity-progress-bar-empty {
    width: 100%;
    height: 100%;
    background: transparent;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: #4caf50;
    transition: width 0.1s linear;
}

@media (max-width: 768px) {
    #unity-loading-bar {
        bottom: 16px;
        width: 80%;
        max-width: none;
    }
}
