/* Reset some default spacing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Use a gradient background with a retro feel */
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  font-family: 'Courier New', Courier, monospace;
  /* Retro, 90s-inspired font */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Animate the background for extra modern flair */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.container {
  background: rgba(0, 0, 0, 0.6);
  padding: 30px 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px #000;
}

.suggestion p.big {
  font-size: 1.8em;
  margin: 10px 0;
}

#scale-notes {
  font-size: 1.4em;
  /* Smaller font for scale notes */
  margin: 10px 0;
}

.suggestion p.small {
  font-size: 1.2em;
  margin-bottom: 20px;
  opacity: 0.9;
}

button {
  background: #fdbb2d;
  color: #1a2a6c;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
  margin-top: 20px;
}

button:hover {
  background: #b21f1f;
}

#play-scale-btn {
  margin-left: 10px;
}

footer p {
  margin-top: 30px;
  font-size: 0.9em;
  opacity: 0.8;
}

/* Fretboard Visualization Styles */
#fretboard-visualization {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 2px solid #555;
  border-radius: 5px;
  overflow: hidden;
  background-color: #333;
  /* Fretboard wood color */
  padding: 10px 0;
}

.string-number-placeholder {
  width: 24px; /* Match the width of the string number */
  flex-shrink: 0;
  margin-right: 10px;
}

.string-number {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-right: 10px;
  background-color: #444; /* More neutral color */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9em; /* Smaller font */
}

.frets-container {
  display: flex;
  flex-grow: 1;
  height: 100%;
}

.fretboard-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
  height: 40px;
  /* Height of each fret/string intersection */
  border-bottom: 1px solid #666;
  /* String separator */
}

.fretboard-row:last-child {
  border-bottom: none;
  /* No separator for the last string */
}

.fretboard-fret {
  flex-grow: 1;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-left: 2px solid #888;
  /* Fret wire */
}

.fretboard-fret:first-child {
  border-left: none;
  /* No fret wire on the left edge */
}

.fret-number {
  position: absolute;
  top: -25px;
  /* Position above the fretboard */
  font-size: 0.8em;
  color: #ccc;
}

.note-marker {
  width: 30px;
  height: 30px;
  background-color: #444;
  /* Default note marker color */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9em;
  font-weight: bold;
  color: #eee;
  border: 1px solid #666;
}

.note-marker.scale-note {
  background-color: #fdbb2d;
  /* Highlight color for scale notes */
  color: #1a2a6c;
  border-color: #b21f1f;
  box-shadow: 0 0 8px rgba(253, 187, 45, 0.7);
}

.note-marker.root-note {
  background-color: #b21f1f;
  /* Distinct color for the root note */
  color: #fff;
  border-color: #fdbb2d;
  transform: scale(1.1);
  /* Make it slightly larger */
  box-shadow: 0 0 12px rgba(178, 31, 31, 0.8);
}

.artist-link {
  font-size: 0.8em;
  color: #aaa;
  text-decoration: none;
  margin-top: 10px;
  display: inline-block;
}

.artist-link:hover {
  color: #fff;
}

.stretch-fret {
  opacity: 0.6;
}

.pattern-divider {
  border: 0;
  height: 1px;
  background-color: #555;
  margin: 20px 0;
}

.metronome {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.bpm-slider {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

#bpm-slider {
  flex-grow: 1;
}

#bpm-display {
  font-size: 1em;
  min-width: 70px;
  text-align: left;
}

#metronome-start-stop-btn {
  width: 100px;
}

.metronome h4 {
  font-size: 1.2em;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px #000;
}
