
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  height: -webkit-fill-available; /* Tối ưu cho iOS */
  overflow: hidden;
  position: relative;
  -webkit-text-size-adjust: 100%; /* Ngăn zoom text trên iOS */
  -webkit-tap-highlight-color: transparent; /* Loại bỏ highlight khi tap */
  -webkit-touch-callout: none; /* Ngăn callout menu trên iOS */
  -webkit-user-select: none; /* Ngăn select text */
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; /* Tối ưu font cho mobile */
}

.d-pc {
  display: flex !important;
}

.d-mb {
  display: none !important;
}

.section {
  position: relative;
  width: 100%;
  height: 100% !important; /* Tối ưu cho iOS */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.title_image img {
  width: 100%;
  height: auto;
  color: red;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
}

.info {
  width: 95%;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.okvip_image {
  width: 770px;
  height: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  gap:5px;
}

.title_image {
  width: 80%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.okvip_image_item {
  width: 100%;
  height: auto;
  margin: 15px 0px;
}

.btnJoin {
  width: 45%;
}

.okvip_logo {
  position: relative;
  display: inline-block;
}

.image-container {
  position: relative;
  width: 550px;
  height: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.fade-image {
  opacity: 0;
  animation: fadeInOut 9s infinite;
}

.fade-image:nth-child(1) {
  animation-delay: 0s;
}

.fade-image:nth-child(2) {
  animation-delay: 3s;
}

.fade-image:nth-child(3) {
  animation-delay: 6s;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }

  11.11% {
    opacity: 1;
  }

  /* Fade in */
  33.33% {
    opacity: 1;
  }

  /* Stay visible */
  44.44% {
    opacity: 0;
  }

  /* Fade out */
  100% {
    opacity: 0;
  }

  /* Stay hidden */
}

.flag-entry {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  max-width: 770px;
  margin-bottom: 45px;
  margin-top: 10px;
}

.flag-entry .btn-join {
  width: 33%;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 15px;
  gap:15px;
  -webkit-tap-highlight-color: transparent; /* Loại bỏ highlight khi tap trên iOS */
  -webkit-touch-callout: none; /* Ngăn callout menu */
  -webkit-user-select: none; /* Ngăn select text */
  user-select: none;
  -webkit-transform: translateZ(0); /* Tối ưu performance */
  transform: translateZ(0);
}

.flag-entry .btn-join img {
  width: 100%;
  height: auto;
  max-width: 132px;
  object-fit: contain;
}

.flag-entry .btn-join button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
}

.flag-entry .btn-join p {
  color: #FFF;
  text-align: center;
  font-family: Roboto;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: capitalize;
  height: 20px;

}

.coop-container {
  width: 100%;
  max-width: 550px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

.coop-container a {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100% !important;
  height: max-content;
}

.coop-container a img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media only screen and (max-width: 768px) {
  .d-pc {
    display: none !important;
  }
  
  .d-mb {
    display: flex !important;
  }



  /* Tối ưu đặc biệt cho iOS và Chrome mobile */
  @supports (-webkit-touch-callout: none) {
    body {
      height: -webkit-fill-available;
    }
    
    .section {
      height: -webkit-fill-available;
    }
    
    /* Tối ưu video cho iOS */
    video {
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
    }
  }

  /* Tối ưu cho Chrome mobile */
  @supports (-webkit-appearance: none) {
    .flag-entry .btn-join {
      -webkit-appearance: none;
      appearance: none;
      touch-action: manipulation; /* Tối ưu touch cho Chrome */
    }
    
    /* Tối ưu video cho Chrome mobile */
    video {
      touch-action: manipulation;
    }
    
    /* Tối ưu scroll cho Chrome mobile */
    body {
      -webkit-overflow-scrolling: touch;
    }
  }


  .bannermb {
    width: 90%;
    max-width: 450px;
    height: max-content;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
  }

  .bannermb img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .title_image {
    width: 80%;
    max-width: 150px;
    height: auto;
  }
  

  .info {
    width: 100%;
    height: 100vh;
    padding: 3vh 0px 7vh !important;
  }
  



  .title_image img {
    width: 100%;
    height: auto;
    max-height: 85px;
    object-fit: contain;
  }

  .okvip_image {
    width: 100%;
  }

  .flag-entry {
    width: 100%;
    margin-bottom: 0px;
    height: max-content;
  }

  .flag-entry .btn-join button {
    padding: 0px;
  }

  .flag-entry .btn-join img {
    max-width: 95px;
    height: max-content;
    object-fit: contain;
  }

  .flag-entry .btn-join p {
    width: 100%;
    height: 20px;
    font-size: 14px;
  }


  .flag-entry .btn-join {
    width: 33%;
    height: max-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 2px;
  }

  .okvip_image {
    width: 100%;
  }

  .image-container {
    width: 100%;
    height: 100px;
  }

  .image-container a {
    width: 100%;
    height: 100%;
  }

  .image-container a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .coop-container {
    width: 90%;
    margin: 10px auto 0px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .coop-container a {
    top: 0;
    width: 100% !important;
    height: max-content;
  }

  .coop-container a img {
    margin-left: -3px;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* Styles cho fullscreen-img */
.fullscreen-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transform: translateY(-60px) scale(1.04);
  transition: opacity 1.2s cubic-bezier(0.77, 0, 0.175, 1), transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: opacity, transform;
}

.fullscreen-img.active {
  opacity: 1;
  z-index: -1;
  transform: translateY(0) scale(1);
}

.fullscreen-img.prev {
  opacity: 0;
  z-index: -2;
  transform: translateY(60px) scale(0.98);
}

/* Responsive cho mobile */
@media screen and (max-width: 768px) {

  .title_image {
    width: 100%;
    max-width: 250px;
    height: max-content;
  }

  .title_image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .fullscreen-img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      object-fit: cover;
      z-index: -2;
      opacity: 0;
      transform: translateY(-60px) scale(1.04);
      transition: opacity 1.2s cubic-bezier(0.77, 0, 0.175, 1), transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
      will-change: opacity, transform;
  }

  .fullscreen-img.active {
      opacity: 1;
      z-index: -1;
      transform: translateY(0) scale(1);
  }

  .fullscreen-img.prev {
      opacity: 0;
      z-index: -2;
      transform: translateY(60px) scale(0.98);
  }
} 