/* ================================
   GLOBAL RESET
================================ */
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
}

* {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  box-sizing: border-box;
}

/* ================================
   CENTERED NAVBAR
================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 60px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: transparent;
  z-index: 9999;
}

/* ================================
   BUTTONS (Base & Desktop)
================================ */
#navbar button,
#playBtn {
  width: 45px;
  height: 45px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, transform 0.2s ease;
  touch-action: manipulation;
  outline: none;
}

#navbar button img,
#playBtn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Button Positioning */
#homeBtn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

#backBtn {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

#forwardBtn {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

#navbar button:active {
  transform: scale(0.9);
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
}

/* ================================
   PLAY BUTTON (Centered Bottom)
================================ */
#DivBlock_play {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

#playBtn {
  width: clamp(60px, 12vw, 80px);
  height: clamp(60px, 12vw, 80px);
}

/* ================================
   SUBTITLES STYLING
================================ */
#subtitle {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  padding: 10px;
  background: none;
  z-index: 1000;
  pointer-events: none;
  display: none;
  min-height: 1.2em;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(18px, 5vw, 26px);
  font-weight: 300;
  text-align: center;
  line-height: 1.3;
  color: #ffffff;
  text-shadow:
    0px 0px 10px rgba(0, 0, 0, 1),
    0px 0px 5px rgba(0, 0, 0, 1),
    0px 1px 2px rgba(0, 0, 0, 0.8);
}

/* ================================
   MOBILE & PORTRAIT OPTIMIZATION
================================ */
@media screen and (max-width: 600px) {
  #navbar {
    height: 80px;
  }
  #navbar button,
  #playBtn {
    width: 75px;
    height: 75px;
  }
}

/* This targets portrait mode specifically for larger subtitles */
@media screen and (orientation: portrait) {
  /* 1. Make the top Navbar taller to fit bigger buttons */
  #navbar {
    height: 100px;
    padding: 0 20px;
  }

  /* 2. Scale up Back, Home, and Forward buttons */
  #navbar button {
    width: 111px;
    height: 111px;
  }

  /* 3. Scale up the Play Button at the bottom */
  #playBtn {
    width: 195px;
    height: 195px;
  }

  #subtitle {
    font-size: clamp(48px, 8vw, 68px);
    width: 90%;
    bottom: 15%;
    line-height: 1.4;
  }
}

/* ================================
   UTILITY & CONTAINERS
================================ */
.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.5s;
}

#contentFrame, .v3d-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

noscript {
  display: block;
  text-align: center;
  padding-top: 100px;
  font-size: 20px;
}
.v3d-simple-preloader-logo {
    background-image: url('../0000_Generic/Navigation/JcCbIcon.jpg');
}

.v3d-simple-preloader-bar {
    background: linear-gradient(90deg, #ffd500, #e05242);
    height: 3px;
    border-color: #2b70c7;
}

.v3d-simple-preloader-background {
    background-color: #000000;
