root {
  display: block;
}

body {
  margin: 0;
  padding: 0;
  background: #000;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

*,
*: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: relative;
  top: auto !important;
  left: auto !important;
  border: 1px solid #333; /* Optional: for debugging */
  max-width: 100vw;
  max-height: 100dvh;
  /* object-fit: contain; */

  display: block;
  touch-action: none;

  pointer-events: auto;
  user-select: none;
}

canvas {
  image-rendering: optimizeSpeed;
  image-rendering: -o-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  -ms-interpolation-mode: nearest-neighbor;
  -ms-touch-action: none;
}

/* DEBUG: Show clickable areas with borders */
.debug-mode canvas * {
  outline: 2px solid red !important;
  background: rgba(255, 0, 0, 0.2) !important;
}

/* Alternative: Add this class to body to enable debug mode */
body.debug-clickareas canvas {
  outline: 1px solid yellow;
}

body.debug-clickareas canvas * {
  outline: 1px solid red !important;
  box-shadow: 0 0 0 1px blue !important;
}

.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: "ArialRoundedMTBold";
}

@font-face {
  font-family: "ArialRoundedMTBold";
  src: url("ArialRoundedMTBold.eot");
  src: url("ArialRoundedMTBold.eot?#iefix") format("embedded-opentype"),
    url("ArialRoundedMTBold.woff") format("woff"),
    url("ArialRoundedMTBold.ttf") format("truetype"),
    url("ArialRoundedMTBold.svg#aachen_btroman") format("svg");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "SegoePro-Bold";
  src: url("../fonts/SegoePro-Bold.woff2") format("woff2"),
    url("../fonts/SegoePro-Bold.woff") format("woff"),
    url("../fonts/SegoePro-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "SegoePro-Regular";
  src: url("../fonts/SegoePro-Regular.woff2") format("woff2"),
    url("../fonts/SegoePro-Regular.woff") format("woff"),
    url("../fonts/SegoePro-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "SegoePro-SemiBold";
  src: url("../fonts/SegoePro-Semibold.woff2") format("woff2"),
    url("../fonts/SegoePro-Semibold.woff") format("woff"),
    url("../fonts/SegoePro-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}
