html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

html, body {
    height: 100%;
}

canvas {
    display: block;
}

body {
    margin: 0;
}

#unity-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    background:

{

{

{
    BACKGROUND_COLOR
}

}
}
;
}

/* Yükleme Kaplaması */
#loading-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Şeffaf siyah */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

/* Siyah transparan overlay soldan sağa dolma efekti */
#loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}



/* Logo */
#loading-logo {
    width: auto;
    max-width: 400px;
    max-height: 256px;
    margin-bottom: 30px;
}

/* Yükleme Çubuğu */


/* Yükleme Yüzdesi */
#loading-percent {
    position: absolute;
    bottom: 20px; /* Yükseklik artırıldı */
    right: 20px;
    color: white;
    font-size: 18px;
}

/* Loading Spinner */
.spinner {
    position: absolute;
    bottom: 50px; /* Loading percent'in biraz üstüne */
    right: 20px;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spinner-spin 1s linear infinite;
}

@keyframes spinner-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobil için Responsive Tasarım */
@media (max-width: 768px) {
    #loading-bar {
        width: 80%;
    }
    
    #loading-logo {
        max-width: 300px;
    }

    #loading-percent {
        font-size: 14px;
    }
}
