html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
}

#unity-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
    position: relative;
}

#unity-canvas {
    background: #000000;
    display: block; /* Ensure the canvas takes up the whole container */
    position: absolute; /* Ensure it can be positioned within the container */
}

#unity-loading-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#unity-logo {
    background: url('logo.png') no-repeat center center;
    background-size: contain;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

#unity-progress-bar-empty {
    width: 280px;          
    height: 10px;           
    background: #555;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;        
}

#unity-progress-bar-full {
    width: 0;
    height: 100%;
    background-color: #4CAF50;
}

#unity-warning {
    display: none;
    color: white;
    background-color: red;
    padding: 10px;
    margin-top: 10px;
}



#loading-text {
    width: 280px;          
    min-height: 32px;      
    color: #ffffff;
    font-size: 14px;
    text-align: center;
    opacity: 0.85;
    font-family: "KolbiSans", sans-serif;
    line-height: 1.4;
    transition: opacity 0.3s ease;

    /* iOS / Safari fixes */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

@media (max-width: 768px) {
    #unity-progress-bar-empty,
    #loading-text {
        width: 240px;
    }

    #loading-text {
        font-size: 13px;
    }
}