:root {
}

    :root.dev {
        --developer-body-border-color: #ff0000;
        --developer-border-color: #fff;
        --developer-display: block;
    }

    :root.publish {
        --developer-body-border-color: transparent;
        --developer-border-color: transparent;
        --developer-display: none;
    }

body {
    padding: 0;
    margin: 0;
    background: #000000;
    touch-action: pan-y;
    border: 2px solid var(--developer-body-border-color);
}

#unity-container {
    touch-action: pan-y;
}

    #unity-container.unity-desktop {
        width: 100%;
        height: 100%;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    #unity-container.unity-mobile {
        width: 90%;
        height: 100%;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    #unity-container.fullscreen {
        width: 90%;
        height: 100%;
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 999;
        padding-bottom: 0;
        border: 2px solid var(--developer-border-color);
    }

#unity-canvas {
    background: #000000;
}
    #unity-canvas.unity-desktop {
        width: 100%;
        height: 95%;
        left: 50%;
        top: 47.5%;
        transform: translate(-50%, -50%);
        position: absolute;
        border: 2px solid var(--developer-border-color);
    }

    #unity-canvas.unity-mobile {
        width: 100%;
        height: 95%;
        left: 50%;
        top: 47.5%;
        transform: translate(-50%, -50%);
        position: absolute;
    }

    #unity-canvas.fullscreen {
        width: 100%;
        height: 100%;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        position: absolute;
    }

#unity-footer {
    width: 100%;
    height: 5%;
    position: absolute;
    left: 50%;
    top: 97.5%;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: flex-end;
}
    #unity-footer.normal {
        display: flex;
    }

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

#unity-version-title {
    float: right;
    line-height: 100%;
    font-family: arial;
    font-size: 16px;
    color: #FFFFFF;
    margin-right: 10px;
    display: var(--developer-display);
}

#unity-fullscreen-title {
    cursor: pointer;
    float: right;
    line-height: 100%;
    font-family: arial;
    font-size: 16px;
    color: #FFFFFF;
}

#unity-fullscreen-button {
    cursor: pointer;
    float: right;
    width: 16px;
    height: 80%;
    background: url('fullscreen-button.png') no-repeat center;
    background-size: contain;
    margin-right: 5px;
}

#unity-loading {
    display: block;
    background: #000000;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: all;
    z-index: 999;
}

    #unity-loading.unity-desktop {
        width: 100%;
        height: 100%;
        border: 2px solid var(--developer-border-color);
    }

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

#unity-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: url('unity-logo-dark.png') no-repeat center;
    background-size: contain;
    width: 25%;
    aspect-ratio: 2 / 1;
}

#unity-progress-bar-empty {
    background: #000000;
    width: 100%;
    height: 5%;
    position: absolute;
    left: 50%;
    top: 125%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--developer-border-color);
    border-radius: 15px;
}

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

#progress-gif {
    position: absolute;
    left: 0%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 350%;
    visibility: hidden;
}

#unity-dynamic-text {
    position: absolute;
    width: 85%;
    left: 50%;
    top: 68%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 20px;
    color: #fff;
}

#unity-hand {
    display: none;
    position: absolute;
    left: 102.8%;
    top: 20%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: url('icon_hand.png') no-repeat center;
    background-size: contain;
    animation: slide-up-down 1.5s linear infinite;
    will-change: transform, opacity;
}

@keyframes slide-up-down {
    0% {
        top: 80%;
        opacity: 0;
    }

    5% {
        top: 80%;
        opacity: 1;
    }
    
    50% {
        top: 50%;
        opacity: 1;
    }

    95% {
        top: 20%;
        opacity: 0;
    }

    100% {
        top: 80%;
        opacity: 0;
    }
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none
}

#unity-empty-content {
    padding-top: 100vh;
    width: 100%;
}

    #unity-empty-content.normal {
        height: 0px;
    }

    #unity-empty-content.fullscreen {
        height: 300px;
    }
