/*
 * 06/10/2026 - SWIN88: style-mobile.21054.css cho ban build web-mobile tu project (build-templates/web-mobile/), ghi de tep mau
 * cua Creator 2.1.3 (static/build-templates/shares/style-mobile.css). Nen = tep mau cua Creator; them phan man tai
 * (#splash-image, #progress-bar, .loading-text) va cac phan tu ban live co (#mask, #div_full_screen, #loadingIcon...)
 * lay tu style-mobile.49147.css cua ban live, BO cac rule tro toi anh fsc/*, splash/addtohome.png... (ban live cung
 * khong con cac anh do) va phan "them vao man hinh chinh" (#ios-ath-container...) da bi comment trong index.html.
 * Builder doi ten tep nay theo md5 (style-mobile.<ma>.css) va sua link trong index.html.
 */
html {
  -ms-touch-action: none;
  /* 07/10/2026: nhu SWIN88 cu - index.c2add.html KHONG co DOCTYPE (quirks mode) -> documentElement.clientHeight = chieu cao nay,
     engine Cocos iOS lay khung canvas theo do; thieu thi iPhone "them vao man hinh chinh" ho dai den duoi day */
  width: 100lvw;
  height: 100lvh;
}

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: 100lvw;
  height: 100lvh;
  padding: 0;
  border: 0;
  margin: 0;

  cursor: default;
  color: #888;
  background-color: #000;
  touch-action: pan-x pan-y;

  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; -> bo (07/10/2026): fsc/cmn.js can cuon trang de an thanh dia chi iOS, nhu ban live */
}

#Cocos2dGameContainer {
  position: absolute;
  margin: 0;
  overflow: hidden;
  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);
  width: 100lvw;
  height: 100lvh;
}

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

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

p.header {
  font-size: small;
}

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

/* ---- man tai (giong ban live: nen toi, logo SWIN88 o tren, thanh % + chu "DANG TAI" o duoi) ---- */
#splash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #212020 no-repeat center;
}

#splash-image {
  position: absolute;
  display: block;
  width: 100%;
  height: 40%;
  margin-top: 10%;
  background: url(./splash/splash.png) no-repeat center;
  background-size: contain;
}

.progress-bar {
  position: absolute;
  display: block;
  padding-left: 25%;
  width: 50%;
  bottom: 30%;
}

.progress-bar span {
  display: block;
  width: 0%;
  height: 11px;
  border-radius: 6px;
  transition: width 1.0s ease-in-out;
  /* ban live tro toi ./splash/loading_bar.png (khong con tep) -> dung mau; doi anh thi them lai background: url(...) */
  background: linear-gradient(90deg, #f2c200, #ff9f1a);
  box-shadow: 0 0 6px rgba(242, 194, 0, 0.6);
}

.loading-text {
  width: 100%;
  display: block;
  text-align: center;
  position: absolute;
  color: whitesmoke;
  font-size: 15px;
  bottom: 25%;
}

/* ---- phan tu ban live co, project.js tim theo id; mac dinh an (fsc/cmn.js truoc day bat/tat, khong dua vao ban nay) ---- */
#mask {
  position: absolute;
  z-index: 9999;
  background-color: rgb(19, 19, 19);
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  display: none;
  opacity: 0.5;
}

#tip {
  color: red;
  text-align: center;
  line-height: 250px;
}

#handImage {
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 20, 20, 0.7);
  display: none;
  opacity: 1;
}

#loadingIcon {
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -15px;
  margin-left: -15px;
  width: 31px;
  height: 30px;
  z-index: 99999;
  opacity: 1;
}

@-webkit-keyframes rotating /* Safari and Chrome */ {
  from { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes rotating {
  from { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
.rotating {
  -webkit-animation: rotating 2s linear infinite;
  animation: rotating 2s linear infinite;
}

#enterFullscreen, #exitFullscreen {
  border: none;
  margin: 0 auto;
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 99999;
}

.enterFullScreen_Portrait, .exitFullScreen_Portrait {
  top: 2%;
  left: 45%;
  width: 9vmin;
  height: 9vmin;
  background-size: 80%;
}

.enterFullScreen_Landscape, .exitFullScreen_Landscape {
  top: 45%;
  left: 2%;
  width: 9vmin;
  height: 9vmin;
  background-size: 80%;
}

.hidden {
  display: none !important;
}
