﻿: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;
    width: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
}
    #unity-canvas.unity-desktop {
        height: 95%;
        top: 47.5%;
        border: 2px solid var(--developer-border-color);
    }

    #unity-canvas.unity-mobile {
        height: 95%;
        top: 47.5%;
    }

    #unity-canvas.fullscreen {
        height: 100%;
        top: 50%;
    }

#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-footer-1 {
    width: 100%;
    height: 5%;
    position: absolute;
    left: 50%;
    top: 97.5%;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: flex-end;
    z-index: 1000;
    display: flex;
}

#unity-version-title {
    float: right;
    line-height: 100%;
    font-family: arial;
    font-size: clamp(16px, 2vw, 20px);
    color: #FFFFFF;
    margin-right: 10px;
    display: block;
}

#unity-fullscreen-title {
    cursor: pointer;
    float: right;
    line-height: 100%;
    font-family: arial;
    font-size: clamp(16px, 2vw, 20px);
    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;
    width: 100%;
    height: 100%;
    border: 2px solid var(--developer-border-color);
}

#unity-background {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: black;
}

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

    #unity-logo.operator-landscape {
        top: 50%;
        width: 25%;
        aspect-ratio: 2 / 1;
    }

    #unity-logo.game-portrait {
        width: 70%;
        aspect-ratio: 85 / 35;
    }

    #unity-logo.game-landscape {
        height: 30%;
        aspect-ratio: 85 / 35;
    }

#unity-progress-bar-empty {
    background: url('loading_bar_bg.png') no-repeat left center;
    background-size: 100% 100%;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 620 / 50;
}
    #unity-progress-bar-empty.portrait {
        width: 65%;
    }

    #unity-progress-bar-empty.landscape {
        height: 5.2%;
    }

#unity-progress-bar-full {
    background: url('loading_bar.png') no-repeat left center;
    background-size: cover;
    width: 0%;
    max-width: 99%;
    height: 100%;
    border-radius: 60px;
}

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

#unity-dynamic-text {
    position: absolute;
    width: 90%;
    height: auto;
    left: 50%;
    top: 200%;
    transform: translate(-50%, -50%);
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    border-radius: 30px;
    padding: 4px 8px;
}
    #unity-dynamic-text.empty {
        background-color: #00000000;
    }

    #unity-dynamic-text.display {
        background-color: #000000;
    }

#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%;
    height: 0px;
}
