html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    background: #000;
    height:100%;
    width:100%;
    position: absolute;
    overflow: hidden;
}

body.ios-full-screen{
    overflow-y: auto;
}

canvas{
    position: fixed;
    top: 0;
    left: 0;
}

  /* try to handle mobile dialog */
canvas+* {
    z-index: 2;
}

.logo {
    position: absolute;
    top: 5rem;
    width: 10vw;
}

.progress {
    margin: 1.5em;
    width: 42vw;
    position: absolute;
    height: 3.6vw;
    border-radius: 4.6vw;
    overflow: hidden;
    background-color: #150016;
}

.progress .full {
    transform-origin: top left;
    margin-top: 1.6%;
    background: url(loader.png);
    height: 65.5%;
    width: 100%;
    max-width: 98% !important;
    margin-left: 1%;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 4.6vw;
    background-position: right;
}

.mask{
    position: absolute;
    background: url(mask.png);
    background-repeat: no-repeat;
    background-size: 100% 110%;
    background-position: center;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
}

#unity-loading-bar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    touch-action: none;
    pointer-events: none;
}

.left-img, .right-img {
    background: url(bgright.png);
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    padding: 0 !important;
    margin: 0 !important;
    border-width: 0px !important;
    outline: none !important;
    background-size: cover;
}

.right-img {
    right: 0;
    background-position: left;
    transform: translateX(-1px);
}

.left-img{
    transform: scaleX(-1);
    left: 0;
    background-position: left;
}

#fullScreenTapContainer{
    background:#000000;
    opacity:0.0;
    width:100%;
    height:100%;
    position:fixed;
    top:0%;
    z-index:2147483647;
    display: none;
  }

  #fullScreenSwipeContainer{
    width: 100%;
    height: 400vh;
    position: absolute;
    display: block;
    z-index: -1;
    overflow: hidden;
  }

  .scroll-helper{
    width: 100%;
    height: 200vh;
  }

  body.ios-full-screen #fullScreenSwipeContainer{
    z-index: 1000;
    overflow-y: auto;
  }

  body.android-full-screen #fullScreenTapContainer{
    display: block;
  }

@media (orientation: landscape) {
    .logo {
        top: 10vh;
        width: 90vh;
    }
    .progress {
        margin: 1.5em;
        width: 70vh;
        top: 66vh;
        height: 6.3vh;
    }
}

@media (orientation: portrait) {
    .logo {
        top: 8rem;
        width: 90%;
    }
    .progress {
        height: 6.4vw;
        width: 62vw;
        top: calc(8rem + 55vw);
    }
}
