* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #1a1a2e;
  color: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 20px;
  min-height: 100vh;
}

h1 {
  margin-bottom: 5px;
}

h1 a {
  display: inline-block;
}

.logo {
  max-height: 200px;
  width: auto;

  @media screen and (max-width: 39.9375em) {
    max-height: 120px;
  }
}

/* Quiz area */
.quiz-area {
  text-align: center;
  margin-bottom: 30px;
}

#question {
  font-size: 1.3rem;
  margin-bottom: 15px;
  min-height: 1.5em;
}

.answers {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.answers button {
  padding: 10px 20px;
  font-size: 1rem;
  border: 2px solid #e94560;
  background: transparent;
  color: #eee;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.answers button:hover {
  background: #e94560;
  transform: scale(1.05);
}

.answers button.correct {
  background: #2ecc71;
  border-color: #2ecc71;
}

.answers button.wrong {
  background: #e74c3c;
  border-color: #e74c3c;
}

#feedback {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

#new-question {
  padding: 10px 25px;
  font-size: 1rem;
  background: #e94560;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

#new-question:hover {
  background: #c73650;
}

/* Fretboard container */
.container {
  background: #16213e;
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  width: 100%;
  max-width: 900px;
  margin-bottom: 1rem;
}

.items {
  display: grid;
  grid-template-columns: 30px repeat(13, 1fr);
  /* gap: 2px;
  margin-bottom: 2px; */
  position: relative;
}

.string-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  color: #aaa;
}

.items > div:not(.string-label) {
  background: #2a2a4a;
  border-right: 1px solid #3a3a5a;
  border-radius: 4px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: transparent;
  cursor: default;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  min-width: 50px;
  height: 32px;
}

/* Open string (fret-0) styling */
.items > div.fret-0 {
  background: #1a1a3e;
  border-right: 3px solid #e94560;
}

/* Highlighted note (quiz target) */
.items > div.highlight .note {
  background: #e94560;
  color: #fff;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(233, 69, 96, 0.6);
  border-right: none;
}

/* Revealed answer */
.items > div.reveal .note {
  background: #2ecc71;
  color: #fff;
  position: relative;
}

/* Show note text when answered */
.items > div.show-note {
  color: #888;
}

.note {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  border-radius: 4px;
}

/* Fret markers */
.fret-numbers {
  display: grid;
  grid-template-columns: 30px repeat(13, 1fr);
  gap: 2px;
  margin-top: 5px;
}

.fret-numbers span {
  text-align: center;
  font-size: 0.75rem;
  color: #666;
}

/* Score display */
.score {
  margin-top: 15px;
  font-size: 0.95rem;
  color: #aaa;
}

/* Let use this to create an actual string representation of the guitar strings that span the width of the fretboard */
.string {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #555;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

/* Lets create a dot markers for the frets */
.dots {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #888;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  top: 102%;
  left: 50%;
  z-index: 2;
}

.ds, .gs, .as, .bs, .esh, .esl {
  position: relative;
}

/* Consent banner */
.consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.consent-banner {
  background: #16213e;
  border-top: 3px solid #e94560;
  padding: 25px 30px;
  max-width: 700px;
  width: 100%;
  margin-bottom: 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.consent-text h3 {
  color: #e94560;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.consent-text p {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.consent-learn-more a {
  color: #e94560;
}

.consent-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.consent-btn {
  padding: 10px 20px;
  font-size: 0.95rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.1s;
}

.consent-accept,
.consent-accept-all {
  background: #e94560;
  color: #fff;
}

.consent-accept:hover,
.consent-accept-all:hover {
  background: #c73650;
}

.consent-deny {
  background: transparent;
  color: #ccc;
  border: 2px solid #555;
}

.consent-deny:hover {
  border-color: #e94560;
  color: #fff;
}

.consent-manage,
.consent-save {
  background: transparent;
  color: #aaa;
  border: 2px solid #3a3a5a;
}

.consent-manage:hover,
.consent-save:hover {
  border-color: #e94560;
  color: #fff;
}

.consent-options {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consent-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #ccc;
  cursor: pointer;
}

.consent-option input {
  margin-top: 4px;
  accent-color: #e94560;
}

.consent-option small {
  color: #888;
  font-size: 0.8rem;
}

/* How to Play section */
.how-to-play {
  max-width: 900px;
  width: 100%;
  margin-top: 30px;
  padding: 25px;
  background: #16213e;
  border-radius: 12px;
}

.how-to-play h2 {
  color: #e94560;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.how-to-play h3 {
  color: #e94560;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.how-to-play ol,
.how-to-play ul {
  padding-left: 20px;
  line-height: 1.8;
  color: #ccc;
}

.how-to-play li {
  margin-bottom: 5px;
}

/* Text pages (Privacy, Terms, Contact) */
.page-content {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}

.page-content h1 a {
  color: #e94560;
  text-decoration: none;
}

.page-content h1 a:hover {
  text-decoration: underline;
}

.text-page {
  background: #16213e;
  border-radius: 12px;
  padding: 30px;
  margin-top: 20px;
  line-height: 1.7;
}

.text-page h2 {
  color: #e94560;
  margin-bottom: 15px;
}

.text-page h3 {
  color: #e94560;
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.text-page p {
  color: #ccc;
  margin-bottom: 10px;
}

.text-page ul {
  padding-left: 20px;
  color: #ccc;
  margin-bottom: 10px;
}

.text-page a {
  color: #e94560;
}

.text-page a:hover {
  text-decoration: underline;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.contact-form label {
  color: #aaa;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border: 1px solid #3a3a5a;
  border-radius: 6px;
  background: #1a1a2e;
  color: #eee;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #e94560;
}

.contact-form button {
  padding: 12px;
  background: #e94560;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 5px;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: #c73650;
}

/* Footer */
footer {
  max-width: 900px;
  width: 100%;
  margin-top: 30px;
  padding: 20px 0;
  border-top: 1px solid #2a2a4a;
  text-align: center;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

footer nav a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

footer nav a:hover {
  color: #e94560;
}

footer p {
  color: #666;
  font-size: 0.8rem;
}