body {
  font-family: "Roboto Mono", monospace;
  background: linear-gradient(135deg, #020617 0%, #172554 100%);
  color: #e2e8f0;
  overflow-x: hidden;
  min-height: 100vh;
}

h1,
h2 {
  font-family: "Cinzel Decorative", cursive;
}

/* Festive Glow Animation */
.glow-text {
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 0, 0, 0.3);
}

/* Snowflake Animation */
.snowflake {
  color: #fff;
  font-size: 1.2em;
  position: fixed;
  top: -10%;
  z-index: 0;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-10vh) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) translateX(20px);
    opacity: 0.3;
  }
}

/* iReal Pro Style Grid */
.chart-container {
  background: #fff;
  color: #000;
  padding: 8px;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  font-family: "Arial", sans-serif;
  max-width: 500px;
  margin: 0 auto;
}

.chord-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #000;
  border: 2px solid #000;
}

.measure {
  background-color: #fff;
  aspect-ratio: 4/3;
  padding: 4px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.1s;
}

.measure span.idx {
  position: absolute;
  top: 1px;
  left: 2px;
  font-size: 0.5rem;
  color: #666;
  font-weight: normal;
}

.measure.active {
  background-color: #fef08a !important; /* Yellow highlight */
}

.split-bar {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-around;
}

/* Start Button Overlay */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}

.reveal-btn {
  background: linear-gradient(to right, #dc2626, #b91c1c);
  border: 2px solid #fca5a5;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(220, 38, 38, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.hidden-gift {
  display: none;
  transform: translateY(20px);
  transition: all 1s ease-out;
  pointer-events: none;
}
.visible-gift {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Toggle Switch Style */
.toggle-btn {
  transition: all 0.3s ease;
}
.toggle-btn.active {
  background-color: #10b981; /* Green */
  border-color: #059669;
}

/* Quiz Answer Buttons */
.answer-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}
.answer-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}
.answer-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.answer-btn.correct {
  background-color: #10b981 !important;
  border-color: #059669 !important;
}
.answer-btn.incorrect {
  background-color: #dc2626 !important;
  border-color: #b91c1c !important;
}

/* Progress Bar */
.progress-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  height: 8px;
  position: relative;
}
.progress-bar {
  background: linear-gradient(to right, #10b981, #3b82f6);
  height: 100%;
  transition: width 0.5s ease;
  position: absolute;
  left: 0;
  top: 0;
}
.progress-bar-current {
  background: linear-gradient(
    to right,
    rgba(16, 185, 129, 0.3),
    rgba(59, 130, 246, 0.3)
  );
  height: 100%;
  transition: width 0.5s ease;
  position: absolute;
  left: 0;
  top: 0;
  border-right: 2px dashed rgba(255, 255, 255, 0.5);
}

/* Player Song Buttons */
.player-song-btn.playing {
  background-color: #10b981 !important;
  border: 2px solid #059669;
}

/* Fixed Control Bar */
.control-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(2, 6, 23, 0.98),
    rgba(2, 6, 23, 0.95)
  );
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  z-index: 40;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  display: none; /* Hidden initially, shown after start */
}

.control-bar.visible {
  display: block;
}

/* Hide difficulty button initially */
#difficulty-btn {
  display: none;
}

#difficulty-btn.visible {
  display: inline-block;
}

/* Add padding to body to prevent content from being hidden behind control bar */
body {
  padding-bottom: 80px;
}

/* Mobile optimizations for control bar buttons */
@media (max-width: 640px) {
  .control-bar button {
    padding: 0.5rem 0.75rem !important; /* Smaller padding on mobile */
    font-size: 0.875rem; /* Slightly smaller text */
  }
}
