root { 
    display: block;
}

body{
    background-color: #000000;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
}

/* Создаем псевдоэлемент для размытого фона (всегда bg_game.jpg) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../sprites/bg_game.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(12px) brightness(0.7);
    -webkit-filter: blur(12px) brightness(0.7);
    z-index: -2;
}

/* Добавляем дополнительный слой для более красивого эффекта */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.3) 100%);
    z-index: -1;
}

*, *:before, *:after {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}
     
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;
    z-index: 1;
}

canvas {
    image-rendering: optimizeSpeed;
    image-rendering:-o-crisp-edges;
    image-rendering:-webkit-optimize-contrast;
    -ms-interpolation-mode: nearest-neighbor;
	-ms-touch-action: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.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*******************/

@font-face {
    font-family: 'angrybirds-regular';
    src: url('angrybirds-regular.eot');
    src: url('angrybirds-regular.eot?#iefix') format('embedded-opentype'),
         url('angrybirds-regular.woff2') format('woff2'),
         url('angrybirds-regular.woff') format('woff'),
         url('angrybirds-regular.ttf') format('truetype'),
         url('angrybirds-regular.svg#angrybirds-regular') format('svg');
    font-weight: normal;
    font-style: normal;

}

.check-fonts{
        position: fixed;
        opacity:0;
}

.check-font-1{
        font-family: 'angrybirds-regular';
}
