/* RESET BASE */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: fixed; /* evita rebotes/scroll en mobile */
}

/* BACKGROUND */
body{
    background: #440869 url('../img/bg-toztecas.jpg') center center / cover no-repeat;
}

/* ROOT FIX (realmente no afecta, pero limpio) */
:root { 
    display: block;
}

/* PREVENIR SELECCIÓN */
*, *:before, *:after {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
     
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
}

::selection { background: transparent; color: inherit; }
::-moz-selection { background: transparent; color: inherit; }

/* CANVAS PRINCIPAL */
#canvas{
    position: fixed; 
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;

    /* evita “blur” en escalado */
    transform: translateZ(0);
}

/* RENDER PIXEL PERFECT */
canvas {
    image-rendering: optimizeSpeed;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
    -ms-touch-action: none;
}

/* PERFORMANCE / MOBILE FIX */
.ani_hack{
    -webkit-perspective: 1000;
    -webkit-backface-visibility: hidden;
    
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/*************** FONTS *******************/

.check-fonts{
    position: absolute;
    opacity: 0;
    pointer-events: none;
    z-index: -1; /* aseguramos que nunca estorbe */
}

.check-font-1{
    font-family: 'walibi0615bold';
}

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

/* CAPA DE BLOQUEO (por si la usas después) */
#block_game {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    pointer-events: none;
}