/* ==========================================
   1. GLOBAL RESET & BASE STYLES
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100vh;
  width: 100vw;
  background-color: #121212;
  color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-align: center;
  overflow: hidden; /* Keeps everything locked into a app-like view */
}

/* ==========================================
   2. HEADER & INFO BUTTON
   ========================================== */
header {
  display: flex;
  justify-content: flex-end;
  padding: 15px 20px;
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 10;
}

.info-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #d4af37;
  font-size: 1.2rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s ease;
}

.info-btn:active {
  background: rgba(212, 175, 55, 0.3);
}

/* ==========================================
   3. MAIN GONG CONTAINER & IMAGE
   ========================================== */
.gong-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  width: 100%;
  padding: 5px;
  margin-top: 30px; /* Space for top header */
}

.gong-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent; /* Removes iOS gray flash box */
  touch-action: manipulation;               /* Removes double-tap zoom delay */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.gong-img {
  width: 100%;
  max-width: 95vw;
  max-height: 75vh;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
  transition: transform 0.08s ease, filter 0.08s ease;
  
  /* Prevent iOS touch-and-hold image selection */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
/* Desktop & Tablet Tuning (Screens wider than 600px) */
@media (min-width: 600px) {
  .gong-img {
    max-width: 420px;     /* Caps width on wide desktop screens */
    max-height: 65vh;    /* Prevents oversized scaling on monitors */
  }
}

/* Tap/Click Animation Effect */
.gong-btn:active .gong-img {
  transform: scale(0.94);
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
}
/* ==========================================
   4. INFO MODAL POPUP
   ========================================== */
.modal {
  display: none; /* Controlled by JavaScript */
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #1e1e1e;
  border: 1px solid #d4af37;
  border-radius: 12px;
  padding: 24px;
  width: 85%;
  max-width: 380px;
  color: #e0e0e0;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  position: relative;
}

.modal-content h2 {
  color: #d4af37;
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.modal-content h3 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 6px;
}

.modal-content p {
  font-size: 0.9rem;
  line-height: 1.4;
}

.modal-divider {
  border: 0;
  height: 1px;
  background: #333;
  margin: 15px 0;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 16px;
  color: #888;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #fff;
}

/* ==========================================
   5. AD FOOTER ZONE
   ========================================== */
.ad-zone {
  width: 100%;
  min-height: 60px;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #2a2a2a;
  z-index: 5;
}