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%;
}

.loading-bar-wrapper
{
    width: 30%;
    height: 45px;
    border-image-slice: 64 58 0 56;
    border-image-width: 20px 20px 20px 20px;
    border-image-outset: 0px 0px 0px 0px;
    border-image-repeat: repeat repeat;
    border-image-source: url("loading_new_graphic.png");
    border-style: solid;
    display: flex;
    justify-content: center;
}

.loading-bar-inner-border
{
    width: 100%;
    height: 100%;
    background: #fff;
    position: relative;
    clip-path: polygon(1rem 0, calc(100% - 1rem) 0, 100% 50%, 100% 50%, calc(100% - 1rem) 100%, 1rem 100%, 0 50%, 0 50%);
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 4px;
    padding-right: 4px;
    border: #fff;
    margin-left: -10px;
}

.loading-bar-inner-wrapper
{
    margin: 2px 12px;
    width: 100%;
    height: 10px;
    position: relative;
    clip-path: polygon(calc(1rem - 10px) 0, calc(100% - calc(1rem - 10px)) 0, 100% 50%, 100% 50%, calc(100% - calc(1rem - 10px)) 100%, calc(1rem - 10px) 100%, 0 50%, 0 50%);
}

.kk-loading {
    width: 30%;
    height: 45px;
    border-image-slice: 64 58 0 56;
    border-image-width: 20px 20px 20px 20px;
    border-image-outset: 0px 0px 0px 0px;
    border-image-repeat: repeat repeat;
    border-image-source: url("loading_new_graphic.png");
    border-style: solid;
    display: flex;
    justify-content: center;
}

.loading-bar-fill
{
    background: #66D122;
    height: 100%;
    width: 0%;
}

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

    background:
    {
        {
            {
                BACKGROUND_COLOR
            }
        }
    }

    ;
}

#loading-cover
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-image: url(background.jpg);
    background-position: center;
    background-repeat: no-repeat;
}

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

#unity-logo
{
    text-align: center;
}

#unity-logo img
{
    max-width: 80%;
}

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

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

.light #unity-progress-bar-empty
{
    border-color: black;
}

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

#unity-fullscreen-button
{
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center;
    background-size: contain;
}

.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(255, 255, 255, 0.2);
    border-right: 1.1em solid rgba(255, 255, 255, 0.2);
    border-bottom: 1.1em solid rgba(255, 255, 255, 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);
    }
}

#recaptcha-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 1px;
    backdrop-filter: blur(6px);
    opacity: 0.7;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
