root { 
    display: block;
}



*, *: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;
}

canvas {
    image-rendering: optimizeSpeed;
    image-rendering:-o-crisp-edges;
    image-rendering:-webkit-optimize-contrast;
    -ms-interpolation-mode: nearest-neighbor;
	-ms-touch-action: none;
}

.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: 'ComicSansMS-Bold';
  src: url('ComicSansMS-Bold.eot?#iefix') format('embedded-opentype'),  url('ComicSansMS-Bold.woff') format('woff'), url('ComicSansMS-Bold.ttf')  format('truetype'), url('ComicSansMS-Bold.svg#ComicSansMS-Bold') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
    font-family: 'arialrounded';
    src: url('arial_rounded_mt_bold_bold-webfont.eot');
    src: url('arial_rounded_mt_bold_bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('arial_rounded_mt_bold_bold-webfont.woff2') format('woff2'),
         url('arial_rounded_mt_bold_bold-webfont.woff') format('woff'),
         url('arial_rounded_mt_bold_bold-webfont.ttf') format('truetype'),
         url('arial_rounded_mt_bold_bold-webfont.svg#arialrounded') format('svg');
    font-weight: normal;
    font-style: normal;

}

.check-fonts{
                position: fixed;
                opacity:0;
}

.check-font-1{
        font-family: 'arialrounded';
}

html {
    margin: 0;
    padding: 0;
    height: 100vh;
    background-image: url('../bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.overlay {
  position: fixed; /* або absolute, якщо потрібно тільки всередині body */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0); /* без затемнення за замовчуванням */
  pointer-events: none; /* дозволяє кліки проходити наскрізь */
  transition: background-color 0.3s ease;
  z-index: 0;
}