/* =====================================================
   ROOT / DOCUMENT
===================================================== */
:root {
    display: block;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

    background-color: #000;
    background-repeat: repeat-x;
    background-position: top;
}

/* =====================================================
   USER SELECTION / TOUCH
===================================================== */
*, *::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 LAYOUT
===================================================== */
canvas {
    position: absolute;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;
    display: block;

    outline: none;
    -ms-touch-action: none;
    touch-action: none;
}

/* Canvas Layer Order */
#canvas_game {
    z-index: 1;
}

#canvas_3d {
    z-index: 2;
    pointer-events: none;
}

#canvas_upper_3d {
    z-index: 3;
    pointer-events: none;
}

/* =====================================================
   ANIMATION / MOBILE HACKS
===================================================== */
.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;

    -webkit-tap-highlight-color: transparent;
}

/* =====================================================
   FONTS
===================================================== */
.check-fonts {
    position: fixed;
    opacity: 0;
    pointer-events: none;
}

.check-font-1 {
    font-family: 'Montserrat';
}

@font-face {
    font-family: 'Montserrat';
    src: url('Montserrat-Black.woff2') format('woff2'),
         url('Montserrat-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

#block_game {
  display: none;
  position: fixed;
  inset: 0;
}
