@font-face {
    font-family: 'Sniglet';
    font-style: normal;
    font-weight: 400;
    src: local('Sniglet'), url('/fonts/sniglet.woff2') format('woff2');
    src: local('Sniglet'), url('/fonts/sniglet.woff') format('woff');
    src: local('Sniglet'), url('/fonts/sniglet.ttf') format('truetype');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
    margin: 0; 
    height: 100%; 
    overflow: hidden;
}
#animation_container {
    position:absolute;
    margin:auto;
    left:0;right:0;
    top:0;bottom:0;
    -webkit-user-select:none;
    -webkit-touch-callout:none;
}

#scriptLoadDiv {
    position: absolute;
    display: none;
    width: 100%;
    height: 100%;
    background: url("../scriptload_bg.png");
    background-size: cover;
    text-align: center;
}

#scriptLoadTxt {
    display: table-cell;
    color: rgb(255, 255, 255);
    font-family: 'Sniglet';
    font-size: 3vw;
    vertical-align: middle;
}

#loadImg {
    position: absolute;
    margin:auto;
    height: 100px;
    left:0;right:0;
    top:50%;bottom:50%;
    display: none;

    -webkit-user-select:none;
    -webkit-touch-callout:none;
}

#loadBg {
    position: absolute;
    margin:auto;
    height: 100px;
    left:0;right:0;
    top:50%;bottom:50%;
    display: none;

    -webkit-user-select:none;
    -webkit-touch-callout:none;
}

.tap_class{
    animation:blinkingText 1.5s infinite;
}

@keyframes blinkingText{
    0%{
        color: transparent;
    }
    50%{
        color: #fff;
    }
    100%{
        color: transparent;
    }
}
#splash-screen {
    background-color: #1e2c2ab3;
    display: none;
    -webkit-user-select:none;
    -webkit-touch-callout:none;
}
#splash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 70%;
    background-color: rgba(0, 0, 0, 0.3);
}
#thumbImg {
    position: absolute;
    height: 60%;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 0%);
    -webkit-user-select:none;
    -webkit-touch-callout:none;
}

#exitbtn {
    -webkit-user-select:none;
    -webkit-touch-callout:none;
}

#exitbtn img {
    position: absolute;
    top: 1vw;
    left: -30vw;
    width: 8%;
    -webkit-user-select:none;
    -webkit-touch-callout:none;
}

#sharebtn {
    -webkit-user-select:none;
    -webkit-touch-callout:none;
}

#sharebtn img {
    position: absolute;
    bottom: 1vw;
    left: -30vw;
    width: 8%;
    -webkit-user-select:none;
    -webkit-touch-callout:none;
}

.btn_enter_class img {
    animation: btn_enter_anim 0.5s ease;
}

.btn_exit_class img {
    animation: btn_exit_anim 2s ease;
}

@keyframes btn_enter_anim {
    0% {
        left: -30vw;
    }
    75% {
        left: 3vw;
    }
    90% {
        left: 0vw;
    }
    100% {
        left: 1vw;
    }
}

@keyframes btn_exit_anim {
    0% {
        left: 1vw;
    }
    100% {
        left: -30vw;
    }
}

#playbtn {
    height: 90%;
    width: 90%;
    -webkit-user-select:none;
    -webkit-touch-callout:none;
}

#playbtn img {
    position: absolute;
    top: 85%;
    left: 50%;
    height: 30%;
    transform: translate(-50%, -50%);
    -webkit-user-select:none;
    -webkit-touch-callout:none;
}

.playbtn_class img {
    animation: play_btn_anim 1s infinite ease;
}

@keyframes play_btn_anim {
    0% {
        height: 20%;
    }
    50% {
        height: 25%;
    }
    100% {
        height: 20%;
    }
}

#container {
    position: absolute;
    height: 100%;
    width: 100%;
}
#portraitHint {
    height:100% !important;
    width:100% !important;
    background-color:#fff;
    position: absolute;
    display : none;
}
#portraitHint img {
    position:absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#blackpatch {
    position: absolute;
    height: 100%;
    width: 100%;
    background: url("../Bg_Pause.jpg") no-repeat -9999px -9999px;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    z-index: -9999;
    transform: translateZ(-10px);
    -webkit-user-select:none;
    -webkit-touch-callout:none;
}
#tap{
    display:none;
}

@media only screen and (orientation:portrait){
    #canvas{
        visibility: hidden;
    }
    #container { 
        background: no-repeat;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
    }
    html { 
        background: no-repeat;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
    }
    
}
@media only screen and (orientation:landscape){
    #container { 
        
        background: no-repeat center center fixed; 
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;

    }
    #animation_container {
            margin-bottom: 0px;
    }
    
}