@font-face{ 
    font-family: "Montserrat"; 
    src: local('☺'), url('../media/fonts/Montserrat-Bold.woff') format('woff');
    font-weight: bold;
}
@font-face{ 
    font-family: "Montserrat"; 
    src: local('☺'), url('../media/fonts/Montserrat-Regular.woff') format('woff');
}
@font-face{ 
    font-family: "Play"; 
    src: local('☺'), url('../media/fonts/Play-Bold.woff') format('woff');
}

/* -------------------------- */
/* general                    */
/* -------------------------- */


html {
  margin: 0px;
  padding: 0px;
  width: 100%;
  height: 100%;
  background-color: black;
  overflow: hidden;
  -ms-user-select: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none; 
  -webkit-user-callout: none;
  -ms-touch-action: manipulation !important;
  -webkit-backface-visibility: hidden;
   backface-visibility: hidden;
}

body {
  margin: 0px;
  padding: 0px;
  width: 100%;
  height: 100%;

  overflow: hidden;
  -ms-user-select: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none; 
  -webkit-user-callout: none;
  -ms-touch-action: manipulation !important;
  -webkit-backface-visibility: hidden;
   backface-visibility: hidden;
  
  background-color: black;
  /*
  background-size: auto, auto, auto, auto, auto;
  background-position: top, bottom, left, right, center;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y, repeat;
  background-image: url('../media/images/background_top.png'), url('../media/images/background_bottom.png'), url('../media/images/background_left.png'), url('../media/images/background_right.png'), url('../media/images/bg_tile512.jpg');
*/
}




a { color: inherit; } 

/* -------------------------- */
/* canvases                   */
/* -------------------------- */


#wrapper{
  position: absolute;
  display: block;
  top: 0px; 
  left: 0px;
  z-index: 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-origin: 0% 0%;
  -webkit-transform-origin: 0% 0%;
  -ms-transform-origin: 0% 0%;
  overflow: hidden;
}

#canvas_score {
  position: absolute;
  display: block;
  display: none;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

#canvas_game {
  position: absolute;
  display: block;
  top: 0px; 
  left: 0px;
  display: none;
  background-color: #666666;
  pointer-events: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

 image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;

}

#debug{
  position: absolute;
  display: none;
  top: 0px; 
  left: 0px;
  z-index: 2000;
  overflow: auto;
  height: 100%;
  padding: 20px;
  color: red;
  font-family: sans-serif;
  background-color: rgba(0,0,0,0.4);
  pointer-events: none;
}


#canvas_debug{
  position: absolute;
  display: block;
  top: 0px; 
  left: 0px;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#canvas_mute {
  position: absolute;
  display: block;
  left: 0px; 
  top: 0px;
  width: 64px;
  height: 180px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

#canvas_screens {
  position: absolute;
  display: block;
  top: 0px; 
  left: 0px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

}

#canvas_overlay {
  position: absolute;
  display: none;
  top: 0px; 
  left: 0px;
  background: transparent;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

#canvas_background {
  position: absolute;
  display: none;
  top: 0px; 
  left: 0px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}



/* -------------------------- */
/* landscape / screensize     */
/* -------------------------- */

#orientation_overlay {
  position: absolute;
  display: none;
  top: 0px; 
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: #000000;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

#screensize_overlay {
  position: absolute;
  overflow: hidden;
  top: 0px; 
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: 1001;
  background-color: black;
  color: #89a8cc;
  text-align: center;
  font-family: Arial, Helvetica;
  font-weight: normal;
  font-size: 14px;
}


#div_errors{
    position: absolute;
    display: none;
    left: 0px;
    top: 0px;
    z-index: 1002;
    font-family: Arial, Helvetica;
    width: 100%;
    height: 100%;
    opacity: 1;
    font-size: 14px;
    color: #ffffff;
    background-color: black;
}

#fader {
  position: absolute;
  top: 0px; 
  left: 0px;
  background-color: rgb(13, 100, 169);
  transform: transale3d(0,0,0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  pointer-events: none;
}



/*--------------------------------------------------------*/
/*  instructions                                          */
/*--------------------------------------------------------*/

#div_instructions{
  position: absolute;
  display: none;
  left: 0px;
  top: 0px;
  text-align: center;
  pointer-events: none;
}

.instructions_image{
  position: absolute;
  display: none;
 
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url('../media/images/spinner.gif');

  box-shadow: 0px 0px 10px black;
 
  border-radius: 12px;
  background-color: black;
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */

}

.instructions_txt_measure{
  position: absolute;
  display: block;
  visibility: hidden;
  width: 100%;
  left: 0px;
  bottom: 0px;
  padding: 20px;
  color: white;
  text-align: center;
  font-size: 24px;
  
  pointer-events: none;
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */
}

.instructions_txt{
  position: absolute;
  display: block;
  width: 100%;
  left: 0px;
  bottom: 0px;
  padding: 20px;
  color: white;
  text-align: center;
  font-size: 24px;
  pointer-events: none;
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */

  border-radius: 12px;
  background-color: rgba(0,0,0,0.8);
}




/*--------------------------------------------------------*/
/*  loading                                               */
/*--------------------------------------------------------*/


#div_loading{
  position: absolute;
  display: block;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: black;
 }

.loading_block{
  position: absolute;
  display: block;
  text-align: center;
  pointer-events: none;
 }

 .loading_logo{
    position: relative;
    display: inline-block;
 }

 .loading_date{
    position: relative;
    display: inline-block;
    pointer-events: none;
    color: white;
    font-size: 30px;
    text-align: center;
    font-family: "Montserrat";
 }

 .loading_bar{
    position: relative;
    display: inline-block;
    width: 100%;
    height: 16px;
    border-radius: 6px;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
 }
.loading_bar_fill{
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background-color: #34d9ff;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
 }

.loading_bar_frame{
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    border: 2px solid white;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
 }


/*--------------------------------------------------------*/
/*  footer                                                */
/*--------------------------------------------------------*/

#footer {
   
    z-index: 10;

    position: absolute;
    visibility: hidden;

    top: 0px;
    left: 50%; 
    width: 700px;
   /* margin-left: -350px;*/


    margin-top: 0px;
    transition: margin-top 500ms;

    background-color: black;
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-background-size: auto;
    -moz-background-size: auto;
    -o-background-size: auto;
    background-size: auto;
    color: #cccccc;
    text-align: center;
    font-family: 'Montserrat';
    font-weight: normal;
    font-size: 14pt;
    padding: 5px;

     transform-origin: 50% 0%;
    -webkit-transform-origin: 50% 0%;
    -ms-transform-origin: 50% 0%;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
}


.legal_divider {
    position: relative;
    display: inline-block;
    margin-left: 4px;
    margin-right: 4px;
    text-decoration: none;
    pointer-events: auto;
    color: #ff0000;
}

.legal_link {
    text-decoration: none;
    pointer-events: auto;
    white-space: nowrap;
    color: #cccccc;
}

.legal_link:hover {
    color: #ffffff;
    cursor: pointer;
}
.legal_link:active {
    color: #faaf1e;
}


/*legal links for mobile*/
.legal_link_mobile {
    text-decoration: none;
    pointer-events: auto;
    white-space: nowrap;
    color: #ffffff;
}

.legal_copyright{
    font-size: 90%;
}

.legal_image{
    position: relative;
    display: inline-block;
    margin: 8px;
    width: calc(100% - 16px);
    max-height: 120px;
    pointer-events: none;
}

.footer_logo{
  position: relative;
  display: inline-block;
  background-color: #ff2efd;
  padding: 10px;

  padding-right: 8px;
  margin: 20px;
  border-radius: 16px;
}

.footer_rating{
  margin: 10px;
  position: relative;
  display: inline-block;
  width: 149px;
  height: 59px;
}

.footer_hidden{
  position: absolute;
  display: block;
  width: 100%;
  left:0px;
  background-color: black;
}

.footer_hidden_holder{
  position: relative;
  display: inline-block;
  opacity: 0;

    transition: opacity 250ms;
  }


/*--------------------------------------------------------*/
/*  recap and share                                       */
/*--------------------------------------------------------*/

input[type=text]::-ms-clear {
    display: none;
}


.name_input{
    position: absolute;
    display: none;
    text-align: center;
    color: #DF0225;
    pointer-events: auto;
    background: none;

   
    text-shadow: #000000 0 0 5px, #000000 0 0 5px;
    border: none;
    caret-color: white;
    padding: 0px;


    transform-origin: 0% 0%;
    -webkit-transform-origin: 0% 0%;
    -ms-transform-origin: 0% 0%;
}
.name_input:focus{
    outline: none;
}


.dummy{
    position: absolute;
    display: block;
    border: 1px solid yellow;
    color: #DF0225;
    pointer-events: auto;
    background: none;


 }


.canvas_shareable{
    position: absolute;
    display: none;
    left:0px;
    right:0px;
    width:500px;
  z-index: 1005;
}

