* {
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    overflow: hidden;
}

#unity-container {
    position: absolute
}

    #unity-container.unity-desktop {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%)
    }

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

#unity-canvas {
    background: url("./bg.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

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

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none
}

#unity-logo {
    width: 16rem;
    height: 9rem;
    margin: auto;
    background: url('logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#unity-progress-bar-empty {
    width: 15rem;
    height: 3rem;
    margin: 1rem auto 0 auto;
    border-radius: 1.1rem;
    outline: solid 0.2rem #28832e;
    outline-offset: -0.2rem;
    background-color: rgba(27, 124, 15, 0.47);
    overflow: hidden;
}

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

#unity-footer {
    position: relative
}

.unity-mobile #unity-footer {
    display: none
}

#unity-webgl-logo {
    float: left;
    width: 204px;
    height: 38px;
    background: url('webgl-logo.png') no-repeat center
}

#unity-build-title {
    float: right;
    margin-right: 10px;
    line-height: 38px;
    font-family: arial;
    font-size: 18px
}

#unity-fullscreen-button {
    float: right;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center
}

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

#introVideoID {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0, 1);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease-in-out all;
}

    #introVideoID.show {
        opacity: 1;
        pointer-events: auto;
    }

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

.invalidOrientation {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.95);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease-in-out all;
    z-index: 999;
}

    .invalidOrientation.show {
        opacity: 1;
        pointer-events: auto;
    }

.boxInvalidate-anim {
    width: 10rem;
    height: 10rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url("./cell-phone.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

    .boxInvalidate-anim.animated {
        animation-name: orientationAnim;
        animation-duration: 1.5s;
        animation-fill-mode: forwards;
        animation-iteration-count: infinite;
    }

    .invalidateGame {
        opacity: 0.5;
        pointer-events: none;
    }

@keyframes orientationAnim {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(0deg);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0deg);
    }

    80% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(90deg);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(90deg);
    }
}
