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% !important;
  height: 100% !important;
  padding: 0;
  border: 0;
  margin: 0;

  cursor: default;
  color: #fff;
  background-color: #F3F4DE;
  background-position: 50% 100%;
  background-clip: border-box;

  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;
  background-image: url('./bg.d7fd9.jpg');
}

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

  display: -webkit-box;
  -webkit-box-orient: horizontal;
  -webkit-box-align: center;
  -webkit-box-pack: center;
}

canvas {
  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: absolute;
  width: 100%;
  transform: translateY(-50%);
  top: 50%;
}

#splash-logo {
  display: inline-block;
  width: 75%;
}

#splash-logo img {
  width: 100%;
}

.progress-bar {
  display: inline-block;
  height: 20px;
  width: 40%;
  border-radius: 8px;
  border: 1px solid #d1d1d1;
  border-radius: 10px;
  overflow: hidden;
  display: none;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 8px;
  transition: width .4s ease-in-out;
  background-color: #fb871b;
}

.stripes span {
  background-size: 30px 30px;
  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;
  }
}

#tapclap-container {
  height: 100%;
  width: 100%;
  position: relative;
  margin: 0;
  background-color: #fff;
  box-shadow: 0px 0px 10px -5px rgba(0, 0, 0, 100);
  visibility: hidden;
}

#tapclap-frame {
  border: 0px solid #fff;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
}

#adsBannerContainer:not(:empty) + #tapclap-frame {
  height: calc(100vh - 50px);
  height: calc(100dvh - 50px);
}

#adsBannerContainer {
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  width: 100%;
}

.adsbygoogle {
  display: inline-block;
  height: 50px !important;
  max-height: 50px !important;
  width: 100%;
}

@media (min-aspect-ratio: 16/9) and (min-height: 500px) {
  .platform-mail #tapclap-frame,
  .platform-website #tapclap-frame {
    margin: 0 auto;
    margin-top: 15px;
    width: calc((100vh/9)*16 - 30px);
    width: calc((100dvh/9)*16 - 30px);
    height: calc(100vh - 30px);
    height: calc(100dvh - 30px);
  }

  .platform-mail #tapclap-frame #tapclap-container,
  .platform-website #tapclap-frame #tapclap-container {
    border: 15px solid #FDAEAE;
    border-radius: 10px;
    box-sizing: border-box;
    background-color: #FDAEAE;
  }
}

.platform-vk-direct.vk-desktop #tapclap-frame {
  margin: 0 auto;
  margin-top: 15px;
  width: calc((720px - 30px) / 9 * 16);
  height: 720px;
}

.platform-vk-direct.vk-desktop #tapclap-frame #tapclap-container {
  border: 15px solid #FDAEAE;
  border-radius: 10px;
  box-sizing: border-box;
  background-color: #FDAEAE;
}

@media (max-width: 1225px) {
  .platform-vk-direct.vk-desktop #tapclap-frame {
    width: calc(100vw - 30px);
    height: calc((100vw - 30px) / 16 * 9)
  }
}

@media (max-width: 1030px) {
  .platform-vk-direct.vk-desktop #tapclap-frame {
    width: 100vw;
    height: calc(100vw / 16 * 9);
    margin: 0px;
  }

  .platform-vk-direct.vk-desktop #tapclap-frame #tapclap-container {
    border: 0px solid #fff;
  }
}

@media (min-width: 1226px) {
  .platform-vk-direct.vk-desktop #tapclap-frame {
    margin: 0 auto;
    margin-top: 15px;
    width: calc((720px - 30px) / 9 * 16);
    height: 720px;
  }
}

.platform-mail #splash-logo,
.platform-vk-direct #splash-logo {
  display: none !important;
}

.platform-mail .progress-bar,
.platform-vk-direct .progress-bar {
  display: inline-block;
}
