/* ─── CONTAINER ─────────────────────────────── */
.container {
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  padding: 20px;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  transition: background-color 0.4s ease, color 0.4s ease;
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Animation for violet hover effect */
@keyframes VioletPulse {
  0%, 100% {
    text-shadow: 0 0 5px #cc66ff, 0 0 10px #cc66ff;
  }
  50% {
    text-shadow: 0 0 15px #9933cc, 0 0 30px #cc66ff;
  }
}

.container:hover {
  background-color: rgba(255, 240, 255, 0.05);
  color: #ffccff;
  text-shadow: 
    0 0 5px #cc66ff,
    0 0 10px #cc66ff,
    0 0 20px #9933cc;
  border-color: rgba(255, 204, 255, 0.3);
  animation: VioletPulse 1s infinite;
}

/* ─── BACKGROUND ────────────────────────────── */
body {
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  background-image: url('https://31.media.tumblr.com/c18b57a0f019c6a8d12101dfc726ac67/tumblr_inline_n2lr7tHoXI1s6f4yz.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Overlay for background */
.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

/* ─── MENU ──────────────────────────────────── */
.menu {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 140px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 12px;
  z-index: 10;
  font-family: 'Playfair Display', serif;
  color: white;
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

/* Main buttons in the menu */
.menu .main-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.menu-btn {
  border: none;
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Hover and active styles for he submenu button */
.menu-btn[data-target="he-submenu"]:hover,
.menu-btn[data-target="he-submenu"].active {
  background-color: #e0f2ff;
  box-shadow: 0 0 8px #9ddfff;
  border: 2px solid #9ddfff;
  color: #000000;
}

/* Hover and active styles for she submenu button */
.menu-btn[data-target="she-submenu"] {
  background-color: #fff0f5;
  color: #550033;
}

.menu-btn[data-target="she-submenu"]:hover {
  background-color: #ffd6ea;
  box-shadow: 0 0 8px #ffa3d7;
}

.menu-btn[data-target="she-submenu"].active {
  border: 2px solid #ffb6c1;
  box-shadow: inset 0 0 5px #ffb6c1;
}

/* ─── SUBMENU ANIMATION ─────────────────────── */
.submenu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: scaleY(0.9);
  transform-origin: top;
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.submenu.active {
  max-height: 500px;
  opacity: 1;
  transform: scaleY(1);
  margin-top: 10px;
}

/* ─── SUBMENU BUTTONS ───────────────────────── */
.submenu-btn {
  font-family:'Playfair Display', serif;
  font-size: 20px;
  color: #ffccff;
  text-shadow: 1px 1px 2px #550033, 0 0 6px #ff66cc;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.submenu-btn:hover {
  transform: scale(1.05);
  background-color: rgba(255, 200, 255, 0.1);
  box-shadow: 0 0 12px #ff66cc;
  cursor: pointer;
}

/* Hover style for submenu buttons in he-submenu to match the he button hover color */
.he-submenu .submenu-btn:hover {
  background-color: rgba(224, 242, 255, 0.3);
  box-shadow: 0 0 10px #9ddfff;
  color: #000000;
  cursor: pointer;
  transform: scale(1.05);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

/* ─── BOOKS BUTTON ICONS ─────────────────────── */
.submenu-btn.books {
  position: relative;
  padding-left: 24px;
  padding-right: 24px;
}

.submenu-btn.books::before,
.submenu-btn.books::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.submenu-btn.books::before {
  left: 4px;
}

.submenu-btn.books::after {
  right: 4px;
}

.she-submenu.active .submenu-btn.books::before,
.she-submenu.active .submenu-btn.books::after {
  opacity: 1;
}

/* ─── MUSIC PLAYER ───────────────────────────── */
.music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 240, 255, 0.1);
  border: 1px solid rgba(183, 65, 14, 0.4);
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column; /* CAMBIO: ahora en columna */
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  color: #b7410e;
  text-shadow: 0 0 6px #b7410e88;
  z-index: 100;
  box-shadow: 0 0 12px #b7410e33;
  backdrop-filter: blur(4px);
  width: 140px; /* opcional para alinear mejor */
  text-align: center;
}


#play-btn {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  color: #a52a2a;
  background: transparent;
  border: none;
  cursor: pointer;
  text-shadow: 0 0 8px rgba(165, 42, 42, 0.8);
  transition: color 0.3s ease, transform 0.2s ease;
  user-select: none;
}



#play-btn:hover {
  color: #b7410e;
  transform: scale(1.2);
  text-shadow: 0 0 12px #b7410e;
}

/* ─── VIEWPORT ───────────────────────────── */

@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 15px;
    font-size: 0.95rem;
  }

  body {
    flex-direction: column;
    height: auto;
    padding: 20px 10px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .menu {
    width: 100%;
    left: 0;
    top: 0;
    border-radius: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 10px;
  }

  .menu .main-buttons {
    flex-direction: row;
    gap: 10px;
  }

  .submenu {
    position: static;
    max-height: none;
    opacity: 1;
    transform: none;
    margin-top: 0;
  }

  .music-player {
    position: static;
    margin-top: 20px;
    align-self: center;
  }

  .submenu-btn {
    font-size: 18px;
    padding: 6px 10px;
  }

  #play-btn {
    font-size: 20px;
  }
}




/* ─── MUSIC PLAYER: STRUCTURE & STYLE ─────────── */

.music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 240, 255, 0.1);
  border: 1px solid rgba(183, 65, 14, 0.4);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  color: #b7410e;
  text-shadow: 0 0 6px #b7410e88;
  z-index: 100;
  box-shadow: 0 0 12   #b7410e88;
  backdrop-filter: blur(6px);
  width: 180px;
  text-align: center;
}
  
  
 /* ─── Album Cover ─────────────────────────────── */

.album-cover { 
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(183, 65, 14, 0.6);
}


.album.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ─── Text Info (Title & Artist) ──────────────── */


.track-info-text {
  text-align: center;
}


.track-title { 
  font-weight: bold;
  font-size: 16px;
  margin-top: 4px;
}


.artist-name {
  font-size: 14px;
  opacity: 0.8;
}


/* ─── Progress Bar ────────────────────────────── */


#progress-bar {

  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: rgba(183, 65, 14, 0.3);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(183, 65, 14, 0.3);
}


/* Style for the thumb (Chrome, Safari, Edge) */

#progress-bar::-webkit-slider-thumb { 
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #b7410e;
  border-radius: 50%;
  border: 2px solid #fff0e0;
  box-shadow: 0 0 4px #b7410e88;
  cursor: pointer;
  transition: transform 0.2s;
}


/* Style for Firefox */

#progress-bar::-moz-range-thumb {
   width: 12px;
   height: 12px;
   background: #b7410e;
   border-radius: 50%;
   border: 2px solid #fff0e0;
   box-shadow: 0 0 4px #b7410e88;
   cursor: pointer;
   transition: transform 0.2s;
}



/* Time info */

.time-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 12px;
}


/* Controls */

.buttons {
  display: flex;
  justify-content: space-around;
  width: 100%;
}


.buttons button {
  background: transparent;
  border: none;
  color: #a52a2a;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}


.button button:hover {
  transform: scale(1.2);
  color: #b7410e;
}