body {
  margin: 65;
  padding: 0;
  background: url(https://peachyvoid.com/graphics/87k.gif);
  background-repeat: repeat;
  background-attachment: fixed;
  font-family: "Georgia", serif;
  color: #ffffff;
  min-height: 100vh;       /* helps background cover full height */
}

/* around all visible content */
main, .content-wrapper, .container {   
  margin-inline: auto;                 /* centers horizontally */
  max-width: 80%;                   
  width: 100%;                          
  padding-inline: 0px;           

}


.listening-room {
  max-width: 450px;
  margin: 1rem auto;
  padding: 1.14rem;
  background: #4a365e4b;
  border: 2px solid #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(163, 137, 255, 0.3);  
}

h1 {
  text-align: center;
  font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.intro {  `
  text-align: center;
  font-style: italic;
  margin-bottom: 2rem;
}

/* TWO COLUMN LAYOUT */
.room-layout {
  display: grid;
  grid-template-columns: .5fr 1.3fr;
  gap: 1rem;
}

/* SECTIONS */
.now-playing,
.songs,
.favorite-albums {
  background: #4a365e63;
  padding: 1rem;
  border: 2px solid #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(163, 137, 255, 0.3);  
}

.now-playing {
  margin-bottom: 1rem;
  
}

/* NOW PLAYING */
.now-playing-content {

  display: flex;
  gap: 1rem;
  align-items: center;
}

.now-playing img {
  width: 120px;
  border: 2px solid #000000;
  background: #fff;
  padding: 4px;
}

.now-playing-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.record-icon {
  width: auto !important; 
  height: 75px;
  border: none !important;
  background: none !important;
  padding: 1 !important;
  box-shadow: none !important;
  margin-top: 0rem;
}


/* SONG INFO */
.song-title {
  font-weight: bold;
  font-size: 1.1em;
}

.artist {
  font-style: italic;
}

.mood a{
  color: #d3c3ee;
  font-size: 0.9em;
}

.album-item {
  position: relative;
  display: inline-block;
}

.album-item img {
  width: 160px;
  height: 160px;
  aspect-ratio: 1 / 1.25;
  border: 2px solid #333;
  background: #fff;
  padding: 3px;
  transform: rotate(-1deg);
  transition: all 0.2s;
}

/* alternate tilt */
.album-item:nth-child(even) img {
  transform: rotate(1deg);
}

.album-item:hover img {
  transform: scale(1.05) rotate(0deg);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

/* TEXT OVERLAY */
.album-text {
  position: absolute;
  inset: 0;                 /* fills entire album */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  background: rgba(0,0,0,0.75);
  color: #f4eee4;
  font-size: 0.85em;
  font-style: bold;
  font-family: "Courier New", monospace; 
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

/* text fades in */
.album-item:hover .album-text {
  opacity: 1;
}



.songs ul {
  list-style: none;
  padding-left: 0;
}

.songs li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed #000000;
  font-style: italic;
}

/* SECTION HEADERS */
h2 {
  font-size: 2em;
  font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  letter-spacing: 2px;
  border-bottom: 1px solid #d4bee5;
  margin-top: 0.01rem;
  margin-bottom: .5rem;
}

/* Text overlay */
.songs-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  background: rgba(0,0,0,0.78);
  color: #f4eee4;
  font-size: 0.78em;          /* ← was 0.85em  */
  font-family: "Courier New", monospace;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.songs-item:hover .songs-text {
  opacity: 1;
}

.songs-grid img:nth-child(even) {
  transform: rotate(1deg);
}

.songs-grid img:hover {
  transform: scale(1.05) rotate(0deg);
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

.songs-item {
  position: relative;
  display: inline-block;
}

.songs-item img {
  width: 105px;
  height
  aspect-ratio: 1 / 1.25;
  border: 2px solid #333;
  background: #fff;
  padding: 3px;
  transform: rotate(-1deg);
  transition: all 0.2s;
}

/* alternate tilt */
.songs-item:nth-child(even) img {
  transform: rotate(1deg);
}

.songs-item:hover img {
  transform: scale(1.05) rotate(0deg);
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

/* TEXT OVERLAY */
.songs-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  background: rgba(0,0,0,0.75);
  color: #f4eee4;
  font-size: 0.85em;
  font-family: "Courier New", monospace;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.songs-item:hover .songs-text {
  opacity: 1;
}


/* lightbox effect */
.album-info {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 1em;
}

.album-info-box {
  background: #362c4152;
  background-repeat: no-repeat;
  backdrop-filter: blur(10px);         
  -webkit-backdrop-filter: blur(12px);
  background-size: cover;
  border-radius: 7px;
  border: double #f4eee4;
  max-width: 800px;
  width: 90%;
  cursor: default;
  position: relative;
  padding: 1em 1.5em;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 1.2em;
}

.info-content {
  display: flex;
  font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.info-album-image img {
  width: 400px;
  border-radius: 8px;
}

.info-album-text {
  flex: 1;
}

.info-album-text h3 {
  margin-top: 0;
}

.info-album-text ul {
  padding-left: 1.2em;
}

.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 3px 8px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  transform-origin: top left;         
  transition: transform 0.2s ease;
    display: inline-block;
  width: fit-content;     
}

.back-button:hover {
  transform: scale(1.2);
}

/* text on hover */
.back-text {
  position: absolute;
  bottom: -5%;           
  left: 45%;
  transform: translateX(-50%);
  background-color: rgba(59, 46, 46, 0);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 1rem;
  text-shadow:
  0 0 5px #8babdb,
  0 0 10px #c1a0eb,
  0 0 15px #ac77a7,
  0 0 20px #000000;

}.back-text-skull {
  position: absolute;
  bottom: -15%;           
  left: 49%;
  transform: translateX(-50%);
  background-color: rgba(59, 46, 46, 0);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 1rem;
  text-shadow:
  0 0 5px #8babdb,
  0 0 10px #c1a0eb,
  0 0 15px #ac77a7,
  0 0 20px #000000;

}

.back-button:hover .back-text{
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.back-button:hover .back-text-skull{
  opacity: 1;
  transform: translateX(-50%) translateY(-5px); /* float up slightly */
}

.back-img {
  width: clamp(64px, 10vw, 100px);
  height: auto;
  display: block;
}
