/* Reset padding and margin */
body, html {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrollbars */
}

/* Make the container fill the viewport */
#unity-container {
    position: fixed; /* Ensures it stays in the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
    background-color: #000; /* Optional: Default background color */
}

/* Make the Unity canvas scale and fit */
#unity-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures content scales proportionally */
    display: block; /* Prevents inline-block spacing issues */
    background:

{

{

{
    BACKGROUND_COLOR
}

}
}
;
}

/* Mobile-specific adjustments */
.unity-mobile #unity-canvas {
    width: 100%;
    height: 100%;
}

/* Loading bar positioning */
#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none; /* Show only during loading */
}

/* Unity logo */
#unity-logo {
    width: 154px;
    height: 130px;
    background: url('unity-logo-dark.png') no-repeat center;
}

/* Progress bar empty and full */
#unity-progress-bar-empty {
    width: 141px;
    height: 18px;
    margin-top: 10px;
    margin-left: 6.5px;
    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;
}

/* Footer adjustments */
#unity-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.unity-mobile #unity-footer {
    display: none;
}

/* Warning message styling */
#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translateX(-50%);
    background: white;
    padding: 10px;
    display: none;
}
