/* Full page and background setup */
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

/* Hide cursor only on non-touch devices */
@media (hover: hover) {
  body, html {
    cursor: none;
  }
}

/* Main wrapper with layered background images */
.tip-her-discover-bar-wrp {
  margin: 0;
  padding: 0;
  height: 100vh;
  background: #000;
  background-image: url(../../images/tip-her-logo.png), url(../../images/background_img.png);
  background-size: 495px, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  overflow: hidden;
}

/* Trail container (for pointer trail effect) */
#trail-container {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  z-index: 9;
}

/* Trail image animation */
.trail-image {
  position: absolute;
  width: 450px;
  height: 450px;
  object-fit: contain;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: opacity 2.5s ease, transform 2.5s ease;
  will-change: opacity, transform, left, top;
}

/* Optional pointer image */
#pointer-image {
  position: fixed;
  width: 450px;
  height: 450px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  display: none;
}

/* Tap button container */
.tap-button-container {
  display: block;
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
  max-width: 90vw;
  text-align: center;
}

/* Tap button image style */
.tap-button {
  width: 100%;
  max-width: 340px;
  height: auto;
  animation: blink 0.6s infinite alternate;
}

/* Blinking animation */
@keyframes blink {
  from { opacity: 1; }
  to { opacity: 0.2; }
}

/* --- Responsive Media Queries --- */

/* Tablets and small laptops */
@media (max-width: 1366px) {
  #pointer-image {
    width: 350px;
    height: 350px;
  }
  .tip-her-discover-bar-wrp {
    background-size: 400px, 100% 100%;
  }
  .tap-button {
    max-width: 280px;
  }
}

/* iPads / Tablets */
@media (max-width: 1024px) {
  #pointer-image {
    width: 300px;
    height: 300px;
  }
  .tip-her-discover-bar-wrp {
    background-size: 350px, 100% 100%;
  }
  .tap-button {
    max-width: 240px;
  }
}

/* Phones (landscape) */
@media (max-width: 767px) and (orientation: landscape) {
  .tip-her-discover-bar-wrp {
    background-size: 220px, 100% 100%;
  }
  #pointer-image {
    width: 140px;
    height: 140px;
  }
  .tap-button {
    max-width: 180px;
  }
}

/* Phones (portrait) */
@media (max-width: 767px) and (orientation: portrait) {
  .tip-her-discover-bar-wrp {
    background-size: 250px, 100% 100%;
  }
  #pointer-image {
    width: 120px;
    height: 120px;
  }
  .tap-button {
    max-width: 200px;
  }
}

/* Small Phones (landscape) */
@media (max-width: 480px) and (orientation: landscape) {
  .tip-her-discover-bar-wrp {
    background-size: 180px, 100% 100%;
  }
  #pointer-image {
    width: 110px;
    height: 110px;
  }
  .tap-button {
    max-width: 140px;
  }
}

/* Small Phones (portrait) */
@media (max-width: 480px) and (orientation: portrait) {
  .tip-her-discover-bar-wrp {
    background-size: 200px, 100% 100%;
  }
  #pointer-image {
    width: 100px;
    height: 100px;
  }
  .tap-button {
    max-width: 160px;
  }
}

/* Remove focus/tap highlights */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-focus-ring-color: transparent;
  outline: none !important;
}

*:focus {
  outline: none !important;
}
