root {
  display: block;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}
body {
  background-color: #f3f3f3;
  background-repeat: repeat-x;
  background-position: top;
  background-image: url(../sprites/bg_tile.jpg);
  background-size: cover; /* Ensure background covers the whole body */
}

*,
*: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;
  top: 0;
  left: 0;
  width: 100vw; /* Full viewport width */
  height: 100vh; /* Full viewport height */
  background-color: transparent; /* Ensure no color shows behind canvas */
  overflow: hidden;
}

canvas {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure canvas scales properly */
  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*******************/

.check-fonts {
  position: fixed;
  opacity: 0;
}

.check-font-1 {
  font-family: 'arialbold';
}
.check-font-2 {
  font-family: 'pixel_lcd7regular';
}

@font-face {
  font-family: 'pixel_lcd7regular';
  src: url('pixel_lcd-7-webfont.eot');
  src: url('pixel_lcd-7-webfont.eot?#iefix') format('embedded-opentype'), url('pixel_lcd-7-webfont.woff2') format('woff2'),
    url('pixel_lcd-7-webfont.woff') format('woff'), url('pixel_lcd-7-webfont.ttf') format('truetype'),
    url('pixel_lcd-7-webfont.svg#pixel_lcd7regular') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'arialbold';
  src: url('arialbd-webfont.eot');
  src: url('arialbd-webfont.eot?#iefix') format('embedded-opentype'), url('arialbd-webfont.woff2') format('woff2'),
    url('arialbd-webfont.woff') format('woff'), url('arialbd-webfont.ttf') format('truetype'),
    url('arialbd-webfont.svg#arialbold') format('svg');
  font-weight: normal;
  font-style: normal;
}
