root { 
    display: block;
}

html, body {
  padding: 0;
  margin: 0;
  height: 100dvh;
  width: 100dvw;
  position: relative;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}


body{
    background-color: #000000;
    background-repeat: repeat-x;
    background-position: top;   
    overflow:hidden;
}

*, *: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_game,
#canvas_game_button,
#canvas_3d,
#canvas_upper_3d,
#canvas_game_fade{
    position: fixed;  
}

#canvas_3d,
#canvas_upper_3d,
#canvas_game_fade{
    pointer-events: none;
}

canvas {
  position: absolute;
  inset: 0;
}

.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 */
}

.upper_3d{
    z-index: 2;
}

/***************FONTS*******************/
.check-fonts{
                position: fixed;
                opacity:0;
}

.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;
}

#blockPause {
    position:absolute;
    width: 100%;
    height: 100%;
    background-color: rgb(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#buttonPause {
    opacity: 100%;
    width: 8.3vw;
    height: 18vh;
    background: url('../sprites/but_play.png') no-repeat;
    background-size: contain;
}

#blockFoul {
    position:absolute;
    width: 100%;
    height: 100%;

    display: none;
    justify-content:end;
    align-items:center;
    z-index: 200;
}

.textFoul {
    font-family: Impact, Montserrat;
    position: absolute;
    transform: translateX(100vw);
    opacity: 100%;
    width: 100%;
    color: aliceblue;
    font-size: 3em;
    animation-name: slideBlock;
    animation-duration: 2.5s;
    animation-timing-function: ease-in-out;
}


#bgOverlay {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 0.3s ease;
  display: none;
}

#app, #block_game, #blockDiv {
  position: fixed;
  inset: 0;
  padding-top: env(safe-area-inset-top, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}



@keyframes slideBlock {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    25%{
        opacity: 60;
    }

    50% {
        transform: translateX(45%);
        opacity: 100;
    }

    75% {
        opacity: 60;
    }

    100% {
        transform: translateX(0%);
        opacity: 0;
    }
}

@keyframes shake {
    0% { transform: translate(-50%, -50%) translateX(0); }
    25% { transform: translate(-50%, -50%) translateX(-5px); }
    50% { transform: translate(-50%, -50%) translateX(5px); }
    75% { transform: translate(-50%, -50%) translateX(-5px); }
    100% { transform: translate(-50%, -50%) translateX(0); }
  }
  
  .shake {
    animation: shake 0.3s;
  }

@keyframes iPhoneshake {
    0% { transform: translate(40%, 0) translateX(0); }
    25% { transform: translate(40%, 0) translateX(-5px); }
    50% { transform: translate(40%, 0) translateX(5px); }
    75% { transform: translate(40%, 0) translateX(-5px); }
    100% { transform: translate(40%, 0) translateX(0); }
  }
  
  .iPhoneshake {
    animation: iPhoneshake 0.3s;
  }

@keyframes iPhoneshake2 {
    0% { transform: translate(50%, 0) translateX(0); }
    25% { transform: translate(50%, 0) translateX(-5px); }
    50% { transform: translate(50%, 0) translateX(5px); }
    75% { transform: translate(50%, 0) translateX(-5px); }
    100% { transform: translate(50%, 0) translateX(0); }
  }
  
  .iPhoneshake2 {
    animation: iPhoneshake2 0.3s;
  }