root { 
    display: block;
}

body{
    background-color: black;
    background-repeat: repeat-x;
    background-position: top;
}

*, *: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: 'comfortaa';
    src: url('comfortaa-bold-webfont.eot');
    src: url('comfortaa-bold-webfont.eot?#iefix') format('embedded-opentype'),
    url('comfortaa-bold-webfont.woff2') format('woff2'),
    url('comfortaa-bold-webfont.woff') format('woff'),
    url('comfortaa-bold-webfont.ttf') format('truetype'),
    url('comfortaa-bold-webfont.svg#comfortaa') format('svg');
    font-weight: normal;
    font-style: normal;
}


body{
    background: black;
    margin:0px;
    padding: 0px;
    color:white;
    text-align: center;
    max-height: 100dvh;
    overflow:hidden;
}

h1{
    font-family: 'comfortaa';
    font-weight: 500;
}

a{
    text-decoration: none;
    color:white;
}

.game{
    height:85dvh;
}

.banner{
    height:15dvh;
}

@media (pointer: fine) {
    iframe{
        background: black;
        width:400%;
        height:340dvh;
        border:none;
        transform: scale(0.25);
        transform-origin: top left;
    }

    h1{
        font-size: 18px;
    }
}

@media (pointer:none), (pointer:coarse) {
    iframe{
        background: black;
        width:100%;
        height:85dvh;
        border:none;
        transform: none;
    }

    h1{
        font-size: 35px;
    }
}