html {
  -ms-touch-action: none;
}

body, canvas, div {
  display: block;
  outline: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Remove spin of input type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  /* display: none; <- Crashes Chrome on hover */
  -webkit-appearance: none;
  margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

body {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  overflow: hidden;

  cursor: default;
  color: #888;
  background-color: #000;

  text-align: center;
  font-family: Helvetica, Verdana, Arial, sans-serif;

  display: flex;
  flex-direction: column;
  
  /* fix bug: https://github.com/cocos-creator/2d-tasks/issues/791 */
  /* overflow cannot be applied in Cocos2dGameContainer, 
  otherwise child elements will be hidden when Cocos2dGameContainer rotated 90 deg */
  overflow: hidden;
}
body.touch-disable{
    height: auto;
    -webkit-overflow-scrolling: auto;
}

#Cocos2dGameContainer {
  position: fixed;
  margin: 0;
  left: 0px;
  top: 0px;

  display: -webkit-box;
  -webkit-box-orient: horizontal;
  -webkit-box-align: center;
  -webkit-box-pack: center;
  overflow: hidden;
}

canvas {
  position: fixed;
  background-color: rgba(0, 0, 0, 0);
}

a:link, a:visited {
  color: #666;
}

a:active, a:hover {
  color: #666;
}

p.header {
  font-size: small;
}

p.footer {
  font-size: x-small;
}

#splash {
  position: fixed;
  top: 20%;
  left: 50%;
  width: 60%;
  height: 60%;
  max-width: 512px;
  transform: translateX(-50%);
  background: #000000 url(./splash.e8605.png) no-repeat center;
  background-size: contain;
  overflow: hidden;
}

#upDiv{
    background-color: rgba(0,0,0,0.5);
    text-align:center;
    position: absolute;
    top: 0;
    width: 100%;
    height: 9999px;
    z-index: 9999;
    visibility:hidden;
    display: 'block';
}
#upIcon{
    position: absolute;
    left: 0;
    top:0;
    width: 100%;
    height: 100vh;
}
@keyframes moveTips {
  from {
    top:80%;
    opacity: 1;
  }

  to {
    top:50%;
    opacity: 0.5;
  }
}
@-webkit-keyframes moveTips {
  from {
    top:80%;
    opacity: 1;
  }

  to {
    top:50%;
    opacity: 0.5;
  }
}
#upIcon .handIcon{
     display: none;
     width: 136px;
     height: 181px;
     margin: -65px auto 0;
     position: relative;
     top:80%;
    -webkit-animation: moveTips 1s ease-in-out infinite;
     animation: moveTips 1s  ease-in-out infinite;
    -webkit-transform: scale(0.8);
    -ms-transform: scale(0.8);
     transform: scale(0.8);
    -webkit-transform-origin: center center;
    -ms-transform-origin: center center;
     transform-origin: center center;
     background-image: url("swipe.4d92a.png");
     background-repeat: no-repeat;
     background-position: center center;
}

#offline-div
{
  margin-top: 1em;
  padding-top: 0.25em;
  padding-bottom: 0.25em;

  max-height: 56px;
  width: 100%;
  height: 10%;

  background: black url(./connection_lost_icon.4968a.png) no-repeat center;
  background-size: contain;

  color: white;
  z-index: 8999;
}

#offline-button-wrapper
{
  position: sticky;
  top: 80%;
  z-index: 1000;
}

#offline-button
{
  width: 5em;
  height: 2.5em;

  border-radius: 8px;

  background: yellow;
  border: #666;
  
  /* font-family: 'Londrina Solid'; */
  font-size: 3vh;

  box-shadow: 4px 6px 10px 0 rgba(255,255,255,0.2), 0 6px 20px 0 rgba(255,255,255,0.19);
}

#offline-button:active {
  outline: none;
  transform: scale(0.95, 0.95);
}

#ingame-offline-div
{
  /* margin-top: 3em; */
  position: absolute;
  width: 100%;
  height: 5%;
  top: 0;
  
  padding-top: 0.25em;
  padding-bottom: 0.25em;

  background: black url(./connection_lost_icon.4968a.png) no-repeat center;
  background-size: contain;
  
  border-top: 0.25em solid black;
  border-bottom: 0.2em solid black;

  color: white;
  z-index: 8999;
}