body {
    margin: 0;
    padding: 0;
    background-color: #231F20;
}

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

#unity-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #231F20;
}

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#unity-loading-bar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#unity-logo {
    text-align: center;
    margin-bottom: 10px;
}

#unity-progress-bar-empty {
    width: 80%;
    height: 24px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 1px solid white;
    border-radius: 5px;
    padding: 2px;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: white;
    border-radius: 3px;
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.unity-mobile #unity-canvas {
    width: 100%;
    height: 100%;
}

.unity-mobile #unity-container {
    width: 100%;
    height: 100%;
}

.unity-mobile #unity-loading-bar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dark #loading-cover {
    background-color: #231F20;
}

.light #loading-cover {
    background-color: #f0f0f0;
}

.light #unity-progress-bar-empty {
    border: 1px solid black;
}

.light #unity-progress-bar-full {
    background: black;
}

.light .spinner {
    border: 5px solid #ddd;
    border-top: 5px solid #3498db;
}
