/* music page styles */

/* page background */
body {
  background-image: url('/pictures/wallpaper/texture.jpg');
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: 90px; 
}

/* header alignment */
.music-header {
  display: flex;
  align-items: baseline; /* aligns banner with the standard letters */
  max-width: 856px;
  margin: 15px auto 30px auto;
  gap: 20px;
}

.site-title {
  margin: 0;
  line-height: 0.8; 
}

/* teleprompter banner */
.music-banner {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  padding-bottom: 2px;
}

.music-banner-track {
  display: inline-block;
  padding-left: 100%;
  animation: music-banner-scroll 120s linear infinite;
}

.music-banner-track span {
  font-weight: bold;
  font-size: 1.2em;
  color: #fff;
}

@keyframes music-banner-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* frame + info box container */
.music-exhibit-container {
  display: flex;
  flex-wrap: wrap;
  gap: 48px; 
  align-items: stretch;
  justify-content: center;
  max-width: 856px;
  margin: 0 auto;
}

/* left: framed album art */
.music-art-display {
  position: relative;
  width: 400px;
  align-self: flex-start;
}

.ornate-gold-frame {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1;
}

.album-cover {
  position: absolute;
  top: 16.2%;
  left: 16.65%;
  width: 67%;
  height: 67%;
  object-fit: cover;
  z-index: 2;
}

/* right: info box */
.music-info-box {
  width: 400px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 32px; 
  background-color: #ffffff;
  background-image: url('/pictures/wallpaper/grid.png');
  background-repeat: repeat;
  border: 2px solid White; 
  box-shadow: 8px 8px 0px rgba(0, 0, 128, 0.12); 
  border-radius: 4px;
}

.music-info-box h2,
.music-info-box h3,
.music-info-box p {
  color: #3e2723;
  margin: 0;
  line-height: 1.35;
}

.music-info-box h2 {
  font-size: 1.5em;
  margin-bottom: 4px;
}

.music-info-box h3 {
  font-size: 1.05em;
  font-weight: normal;
  font-style: italic;
  margin-bottom: 16px;
}

/* fills leftover space */
.song-description {
  flex: 1 1 0;
  min-height: 0;
  margin-bottom: 16px;
  overflow-y: auto;
  padding-right: 6px;
}

/* audio player */
.audio-player {
  width: 100%;
  margin-top: auto;
}

/* controls below exhibit */
.music-controls {
  max-width: 856px;
  margin: 0 auto;
}

/* roll button */
.roll-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 32px;
  margin-left: auto;
  margin-right: 5px;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.roll-container:hover {
  transform: scale(1.08) rotate(8deg);
}

.roll-text {
  font-family: "Cinzel Decorative", serif;
  color: navy;
  font-weight: bold;
}

.d20-button {
  width: 56px;
  height: auto;
}

/* search link */
.search-container {
  display: flex;
  align-items: center;
  width: fit-content;
  margin-top: 10px;
  margin-left: auto;
  margin-right: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.search-container:hover {
  transform: scale(1.08) rotate(8deg);
}

.search-text {
  font-family: "Cinzel Decorative", serif;
  color: navy;
  font-size: 0.85em;
}

/* sliders */
.slider-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.slider-name {
  font-family: "Cinzel Decorative", serif;
  font-size: 0.72em;
  color: #3e2723;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-end {
  font-size: 0.72em;
  color: #6b5750;
  width: 44px;
}

.slider-end:last-child {
  text-align: right;
}

/* slider line */
.slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 2px;
  background: #bbb;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

/* visible keyboard focus */
.slider:focus-visible {
  outline: 2px solid #0E2A2A;
  outline-offset: 3px;
}

/* slider circle */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: navy;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: navy;
  cursor: pointer;
}

.slider::-moz-range-track {
  height: 2px;
  background: #bbb;
}

/* histograms layout */
.stats-container {
  display: flex;
  flex-direction: column;
  gap: 32px; 
  max-width: 856px;
  margin: 50px auto 0;
}

.stats-title {
  margin: 0 0 10px;
  font-family: "Cinzel Decorative", serif; 
  color: navy;
}

.stats-box {
  background-color: #fff;
  background-image: url('/pictures/wallpaper/grid.png');
  background-repeat: repeat;
  border: 2px solid White;
  box-shadow: 8px 8px 0px rgba(0, 0, 128, 0.12);
  border-radius: 4px;
  padding: 24px;
}

.stats-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
}

.bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.bar {
  width: 72%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
}

.bar-count { font-size: 0.72em; color: #3e2723; margin-bottom: 2px; }
.bar-label { font-size: 0.72em; color: #3e2723; margin-top: 5px; white-space: nowrap; }