/* Page-specific positioning for vim manual components */

/* === INDEX PAGE POSITIONING === */
.index-page .instructions-book {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
}

.index-page .music-button {
  position: absolute;
  bottom: 120px; /* Align with manual */
  left: 20px; /* Move left a bit for better alignment */
  z-index: 1000;
  cursor: pointer;
}

.music-button {
  position: relative;
  width: 70px;
  height: 70px;
  transition: transform 0.2s ease;
}

.music-button:hover {
  transform: scale(1.1);
}

.music-icon {
  width: 70px;
  height: 80px;
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

.stop-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.music-button.stopped .stop-overlay {
  opacity: 1;
}

.music-button.stopped .music-icon {
  opacity: 0.7;
  filter: grayscale(100%); /* Make icon grey when stopped */
}

/* === GAME PAGE POSITIONING === */
.game-page .instructions-book {
  bottom: 20px;
  left: 20px;
  z-index: 100; /* Lower z-index for game page */
}

.game-page .game-music-button {
  position: absolute;
  bottom: 30px;
  right: 30px; /* Bottom right positioning */
  z-index: 100;
}

/* Game music button base styling */
.game-music-button {
  position: relative;
  width: 60px;
  height: 70px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.game-music-button:hover {
  transform: scale(1.1);
}

.game-music-button .music-icon {
  width: 60px;
  height: 70px;
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

.game-music-button .stop-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.game-music-button.stopped .stop-overlay {
  opacity: 1;
}

.game-music-button.stopped .music-icon {
  opacity: 0.7;
  filter: grayscale(100%);
}

.game-page .instructions-book img {
  width: 70px;
  height: 80px;
}

/* === GAME PAGE MODAL ADJUSTMENTS === */
.game-page .vim-manual-modal {
  z-index: 1000; /* Lower z-index for game page */
  backdrop-filter: blur(5px);
}

.game-page .manual-content {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.game-page .manual-header {
  background: linear-gradient(45deg, #3498db, #2980b9);
  padding: 1.5rem 2rem;
}

/* === MULTIPLAYER PAGE - HIDE ALL MANUAL ELEMENTS === */
.multiplayer-game-page .instructions-book,
.multiplayer-game-page #instructionsBook,
.multiplayer-game-page .vim-manual-modal,
.multiplayer-game-page #vimManualModal {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
