/* Dark background */
body {
  font-family: "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  color: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  min-height: 100vh;
  font-size: 1rem;  
}

body::before {
  content: "";
  position: fixed; /* Stays fixed when scrolling */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('luang-temple.jpeg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.04; /* Adjust this for transparency */
  z-index: -1; /* Puts it behind all content */
}

.container {
  width: 90%;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 10px;
  }
}

h1 {
  color: #ffcc66; /* warm golden highlight */
}

h2 {
  color: #66d9ef; /* bright cyan, stands out on dark */
}

h3 {
  color: #a6e22e; /* soft lime green for tertiary headings */
}
a {
  color: #66d9ef; /* same bright cyan as h2 */
  text-decoration: none;
  transition: color 0.2s ease;
}

a:visited {
  color: #bd93f9; /* soft purple, distinct from cyan */
}

a:hover {
  color: #ffcc66; /* warm gold on hover, matches h1 */
}

a:active {
  color: #ff6666; /* subtle red accent for click feedback */
}

/* Buttons */
button {
  background: #222;
  border: 1px solid #333;
  color: #eee;
  padding: 0.6rem 1.2rem;
  margin: 0.4rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Button hover / active */
button:hover {
  background: #333;
  border-color: #00ffb4;
  color: #00ffb4;
  box-shadow: 0 0 10px rgba(0, 255, 180, 0.4);
}

button:active {
  transform: scale(0.95);
}

/* Master slider container */
#master-volume-container {
    margin-top: 2rem;
    text-align: center;
}

/* Volume slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 250px;
  height: 6px;
  background: #444;
  border-radius: 4px;
  outline: none;
  margin-top: 0.5rem;
  transition: box-shadow 0.3s ease;
}

/* Slider thumb (WebKit) */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00ffb4;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 8px rgba(0, 255, 180, 0.7);
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #0ff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.9);
}

/* Slider thumb (Firefox) */
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00ffb4;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 8px rgba(0, 255, 180, 0.7);
}

input[type="range"]::-moz-range-thumb:hover {
  background: #0ff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.9);
}
/* Overlay styling */
#textOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  color: #fff;
  overflow: auto;
  z-index: 10000;
  padding: 2em;
  box-sizing: border-box;
  
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#textOverlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Close button */
#textOverlay .closeBtn {
  position: fixed;
  top: 1em;
  right: 1em;
  font-size: 1.5em;
  cursor: pointer;
  background: #fff;
  color: #000;
  border: none;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  z-index: 10001;
}

/* Content styling */
#textOverlay .content {
  max-width: 800px;
  margin: 2em auto;
  background: transparent;
}

#textOverlay .content p {
  line-height: 1.5em;
  margin: 1em 0;
}
.title-container {
  display: flex;
  flex-direction: column; /* stack title and button vertically */
  align-items: flex-start; /* align both to the left edge */
  margin-bottom: 2rem; /* space below the block */
}

.title-container h1 {
  margin: 0; /* remove default spacing */
}

#openOverlay {
    margin-top: 0.0rem; /* little gap under title */
    margin-left: 0;
    padding: 0rem 0rem 0rem 0rem;
    font-size: 0.8rem;
    border: 1px solid #333;
    color: #eee;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-color: #222; /* matches your link/cyan */
    // color: #0f0f0f;
    transition: background 0.2s ease;
}

#openOverlay:hover {
  background-color: #ffcc66; /* hover gold */
}
#stereoMeter {
  margin-top: 1rem; /* adds space above the meters */
}
#playCount {
  position: fixed;
  bottom: 30px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #777;
  padding: 0.5em;
  font-size: 0.7em;
  z-index: 9999; /* stays above everything else */
}
