root { 
    display: block;
}

html{
    background: #0f388f;
  
}

*, *:before, *:after {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
     
input, input:before, input:after {
    -webkit-user-select: initial;
    -khtml-user-select: initial;
    -moz-user-select: initial;
    -ms-user-select: initial;
    user-select: initial;
}

::selection { background: transparent;color:inherit; }
::-moz-selection { background: transparent;color:inherit; }

#canvas{
    
    position: fixed;
    
    
}

#canvasBG{
    
    position: fixed;
    
    
}

canvas {
    image-rendering: optimizeSpeed;
    image-rendering:-o-crisp-edges;
    image-rendering:-webkit-optimize-contrast;
    -ms-interpolation-mode: nearest-neighbor;
	-ms-touch-action: none;
    /*background-image: url("/sprites/bg_game.jpg");*/
    
        background-size: no-repeat;
    
        background-position: center;
    
        background-size: cover;
    }

    #canvasBG {
        margin: 0;
        padding: 0;
        height: 100%;
        width: 100%;
        background-image: url("/sprites/bg_menu.png");
        
        background-size: cover; /* Изображение растягивается на весь экран */
        background-position: center; /* Центрирование изображения */
        background-repeat: no-repeat; /* Изображение не повторяется */
        }

.ani_hack{
    -webkit-perspective: 1000;
    -webkit-backface-visibility: hidden;
    
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent; /* mobile webkit */
}

/***************FONTS*******************/
.check-fonts{
                position: fixed;
                opacity:0;
}

.check-font-1{
        font-family: 'comfortaabold';
}
                
@font-face {
    font-family: 'comfortaabold';
    src: url('comfortaa-bold-webfont.woff2') format('woff2'),
         url('comfortaa-bold-webfont.woff') format('woff'),
         url('comfortaa-bold-webfont.svg#comfortaabold') format('svg');
    font-weight: normal;
    font-style: normal;

}

#gameBG {
    width: 100%;
    height: 100%;
    
}

html {
    background-image: url("/sprites/bg_menu.png");

    background-size: no-repeat;

    background-position: center;

    background-size: cover;
}

body {
    overflow: hidden;
}