
canvas#stage {
    touch-action: none;
    max-width: 1170px;
    height: 660px;
    cursor: inherit;
}

.fadeImage {
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    height: 100%;
    width: 100%;
    position: relative;

    -webkit-animation: fadein 3s; /* Safari, Chrome and Opera > 12.1 */
    -moz-animation: fadein 3s; /* Firefox < 16 */
    -ms-animation: fadein 3s; /* Internet Explorer */
    -o-animation: fadein 3s; /* Opera < 12.1 */
    animation: fadein 3s;
}

@keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media only screen and (min-width: 1170px) and (min-height: 660px) {
    #wrapper {
        width: 1170px;
        height: 660px;
    }
}

@media only screen and (min-width: 1170px) and (max-height: 659px) {
    #wrapper {
        max-width: 1170px;
        height: 100%;
        display: table;
    }
}

@media only screen and (max-width: 1169px) and (min-height: 660px) {
    #wrapper {
        width: 100%;
        max-height: 660px;
        display: table;
    }
}
@media only screen and (min-width: 1025px) and (max-width: 1169px) and (max-height: 659px){
    #wrapper {
        max-width: 1170px;
        max-height: 660px;
        display: table;
    }
}
@media only screen and (min-width: 1025px) {
    html, body {
        width: 100%;
        height: 100%;
    }

    @-moz-document url-prefix() {
        #wrapper {
            width: -moz-max-content;
            width: -webkit-max-content;
            width: max-content;
        }
    }
    #wrapper {
        position: absolute;
        left: 50%;
        top: 50%;
        -ms-transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 1), 0px 0px 50px rgba(0, 0, 0, 0.8), 0px 0px 70px rgba(0, 0, 0, 0.8);

    }
    #wrapper canvas {
       /*  width: 100% !important; */
        height: 100% !important;
        margin-top: 0px !important;
        margin-left: 0px !important;
        max-width: 1170px;
    }

    #appbg {
        background-size: cover;
    }
}
@media only screen and (max-width: 1024px) {
    #appbg {
        background-image: none !important;
    }
}
