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%;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    position: static;
    background: url('background.png') no-repeat center center;
    background-size: cover;
    /* background: #231F20; */
}

#canvas-wrap {
    padding: 0;
    margin: 0;
    position: relative;
    margin-bottom: 20px;
}

#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: 30px;
}

#unity-logo img {
    max-width: 80%;
}

#unity-progress-bar-empty {
    width: 80%;
    height: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.8);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Ensure progress starts from the left */
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: white;
    overflow: hidden;
    /* Prevents overflow issues */
}

#unity-progress-bar-full {
    width: 0%;
    /* Start from 0% and grow to 100% */
    height: 100%;
    background: rgb(183, 28, 28);
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}




.light #unity-progress-bar-empty {
    border-color: rgb(255, 255, 255);
}

.light #unity-progress-bar-full {
    background: red;
}

.spinner,
.spinner:after {
    border-radius: 50%;
    width: 5em;
    height: 5em;
}

.spinner {
    margin: 10px;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(0, 0, 0, 0.2);
    border-right: 1.1em solid rgba(0, 0, 0, 0.2);
    border-bottom: 1.1em solid rgba(0, 0, 0, 0.2);
    border-left: 1.1em solid #ffffff;
    transform: translateZ(0);
    animation: spinner-spin 1.1s infinite linear;
}

@keyframes spinner-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
