html {
  -ms-touch-action: none;
}

html, body {
  overflow: hidden;
}

body {
  background: #000 url(../img/bg.jpg) no-repeat center center fixed;
  background-size: 100% 100%;
  position: relative;
  height: 100vh;
}

body, canvas, div {
  display: block;
  outline: none;
  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 */
}

#Cocos2dGameContainer {
  position: absolute;
  margin: 0;
  overflow: hidden;
  left: 0px;
  top: 0px;
}

canvas {
  background-color: rgba(0, 0, 0, 0);
  height: 100%;
}

a:link, a:visited {
  color: #000;
}

a:active, a:hover {
  color: #666;
}

p.header {
  font-size: small;
}

p.footer {
  font-size: x-small;
}

#splash {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  background: #000000 url(../img/splash.png) no-repeat center;
  background-size: 100%;
}

.progress-bar {
  position: absolute;
  left: 27.5%;
  top: 80%;
  height: 20px;
  padding: 2px;
  width: 45%;
  border-radius: 10px;
  box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;           
}

.progress-bar span {
  display: block;
  height: 105%;
  border-radius: 10px;
  transition: width .4s ease-in-out;
  background-color: #3dc5de;
}

.stripes span {
  background-size: 20px 20px;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%,
                      transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%,
                      transparent 75%, transparent);            
  
  animation: animate-stripes 1s linear infinite;             
}

@keyframes animate-stripes {
    0% {background-position: 0 0;} 100% {background-position: 60px 0;}
}

h1 {
    color: #444;
    text-shadow: 3px 3px 15px;
}

#GameDiv {
    display: none;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    position: fixed;
    margin-right: -50%;
    margin-bottom: -50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: black;
    border: 3px solid black;
    border-radius: 6px;
    box-shadow: 0 5px 40px #333;
}

/*Tablet*/

/*Phones*/
@media
  only screen and (max-width:428px) and (orientation:portrait),
  only screen and (max-height:428px) and (orientation:landscape)
{
  html {
    -ms-touch-action: none;
  }
  body {
    position: absolute;
    background-image: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  body, canvas, div {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  }
  #Cocos2dGameContainer {
    display: -webkit-box;
    -webkit-box-orient: horizontal;
    -webkit-box-align: center;
    -webkit-box-pack: center;
    overflow: clear;
  }
  #splash {
    background-color: #171717;
    background-size: 45%;
  }
  #GameDiv {
    border: 0;
  }
  .progress-bar {
    height: 3px;
    width: 45%;
    top: 70%;
    border-radius: 7px;           
  }
  .progress-bar span {
    height: 100%;
    border-radius: 3px;
  }
  .stripes span {
    background-size: 3px 3px;
  }
}

@media only screen and (max-height:428px) and (orientation:landscape) {
/*small splash logo & adjust loading bar position*/
  #splash {
    background-size: 60%;
  }    
  .progress-bar {
    top: 85%;
  }
  .progress-bar span {
    border-radius: 3px;
  }
}
