/* ===== Base ============================================================ */
html { font-family: "Quicksand", sans-serif; }

body {
  margin: 0 auto;
  padding: 0 1em;
  border: 0;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
}

*, *::before, *::after { box-sizing: border-box; }

img { width: 100%; }

.outside_container {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid rgb(190, 76, 175);
  padding: 0;
}

/* ===== Responsive media =============================================== */
.responsive-image-large { display: block; width: 100%; padding-bottom: 5px; }
.responsive-image-small { display: none; }

@media (max-width: 799px) {
  .responsive-image-large { display: none; }
  .responsive-image-small { display: block; padding-bottom: 5px; }
}

/* ===== Navigation ====================================================== */
.topnav { overflow: hidden; background-color: #983372; }
.topnav a {
  float: left;
  display: block;
  padding: 14px 16px;
  font-size: 17px;
  color: #f2f2f2;
  text-align: center;
  text-decoration: none;
}
.topnav a:hover   { background-color: #93d5cf; color: #000; }
.topnav a.active  { background-color: #04aa6d; color: #fff; }
.topnav .icon     { display: none; }

@media (max-width: 600px) {
  .topnav a:not(:first-child) { display: none; }
  .topnav a.icon { float: right; display: block; }
  .topnav.responsive { position: relative; }
  .topnav.responsive .icon { position: absolute; right: 0; top: 0; }
  .topnav.responsive a { float: none; display: block; text-align: left; }
}

/* ===== Typography ====================================================== */
h1, h2, h3, h4, h5, h6 {
  margin: 2px 0 2px 10px;
  font-family: Oswald, sans-serif;
  font-weight: normal;
  color: #5e1f46;
  line-height: 1.2;
  text-align: left;
}
h1 { font-size: clamp(32px, 5vw, 60px); }
h2 { font-size: clamp(24px, 3.75vw, 45px); }
h3 { font-size: clamp(20px, 3.125vw, 36px); }
h4 { font-size: clamp(18px, 2.5vw, 30px); }
h5 { font-size: clamp(16px, 2.1vw, 26px); }
h6 { font-size: clamp(14px, 1.75vw, 22px); }

p {
  margin-left: 10px;
  font-size: clamp(12px, 2.5vw, 22px);
  color: #000;
  text-align: left;
}

/* Section titles (forms) */
.b-section-title {
  margin: 0 0 4px 20px;
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 700;
  color: #5e1f46;
  line-height: 1.2;
  text-align: left;
}
.b-section-subtitle {
  margin: 0 0 12px 20px;
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 400;
  color: #333;
  line-height: 1.3;
  text-align: left;
}

/* ===== Generic rows used for button grids ============================= */
.button-container .row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 10px;
  padding: 0 10px;
  width: 100%;
}
.button-container .row + .row { margin-top: 10px; }

/* ===== Buttons (big UI buttons) ======================================= */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-family: "Quicksand", sans-serif;
  font-size: clamp(20px, 3.2vw, 38px);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
}
.button:hover { opacity: 0.8; }

/* Colours */
.button1  { background-color: #a2a9f4; }
.button2  { background-color: #535cbc; }
.button3  { background-color: #1423cb; }
.button4  { background-color: #983372; }
.button5  { background-color: #983372; }
.button6  { background-color: #983372; }
.button7  { background-color: #027a04; }
.button8  { background-color: #aa0404; }
.button9  { background-color: #595757; }
.button10 { background-color: #983272; }
.button11 { background-color: #5e1f46; }
.button12 { background-color: #92d5d0; }

/* Make links in button rows behave like buttons */
.button-container .row > a,
.button-container .row > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 180px;
  width: auto;
  margin: 0;
  text-decoration: none;
}

/* ===== Cards (forms) =================================================== */
.card {
  display: flex;
  flex-direction: column;
  width: calc(100% - 40px);
  max-width: 900px;
  margin: 0 20px 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fff;
  overflow: hidden;
  transition: 0.3s;
}
.cardheader {
  margin: 0;
  padding: 12px 16px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(20px, 3.2vw, 38px);
  line-height: 1.2;
  color: #8c40c5;
  text-align: center;
  background: #92d5d0;
}
.card-body  { padding: 16px 20px; text-align: left; }
.card-footer{
  padding: 12px 16px;
  border-top: 1px solid #ddd;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  text-align: right;
  background-color: #f9f9f9;
}

/* ===== Forms =========================================================== */
form { display: grid; }

.css-input-lg {
  display: block;
  width: 90%;
  max-width: 800px;
  margin: 0 auto 20px;
  padding: 10px;
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(24px, 1.8vw, 36px);
  line-height: 1.4;
  color: #000;
  background-color: #fff;
  border: 1px solid #8c40c5;
  border-radius: 4px;
}

/* Custom checkbox/radio */
.b-contain {
  position: relative;
  display: block;
  width: 90%;
  max-width: 800px;
  margin: 0 auto 15px;
  padding-left: 2rem;
  font-family: "Noto Sans", sans-serif;
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.b-contain input {
  position: absolute;
  top: 50%; left: 0;
  width: 1.25rem; height: 1.25rem;
  transform: translateY(-50%);
  opacity: 0; z-index: 2; cursor: pointer;
}
.b-contain .b-input {
  position: absolute;
  top: 50%; left: 0;
  width: 1.25rem; height: 1.25rem;
  transform: translateY(-50%);
  background: #f1f5f8;
  border: 1px solid #cfafe7;
  border-radius: 0.125rem;
  transition: background 250ms, border-color 250ms;
}
.b-contain input:checked ~ .b-input { background: #8c40c5; border-color: #8c40c5; }

/* Checkbox tick */
.b-contain input[type="checkbox"] ~ .b-input::after {
  content: ""; position: absolute; display: none;
  top: 0.1rem; left: 0.35rem; width: 0.25rem; height: 0.6rem;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.b-contain input[type="checkbox"]:checked ~ .b-input::after { display: block; }

/* Radio dot */
.b-contain input[type="radio"] ~ .b-input { border-radius: 50%; }
.b-contain input[type="radio"] ~ .b-input::after {
  content: ""; position: absolute; display: none;
  top: 50%; left: 50%; width: 0.65rem; height: 0.65rem;
  border-radius: 50%; background: #fff; transform: translate(-50%, -50%);
}
.b-contain input[type="radio"]:checked ~ .b-input::after { display: block; }

/* ===== Media buttons (Top 50 list) ==================================== */
.btn-smaller,
.btn-smaller-grey {
  display: inline-block;
  min-width: 65px;
  height: 50px;
  padding-top: 0;
padding-right: 6px;
padding-bottom: 0;
padding-left: 6px;
  border: none;
  border-radius: 6px;
  box-shadow: 0 1px 2px #666;
  font-family: "Quicksand", sans-serif;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 700;
  line-height: 50px; /* vertical center for caps */
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s;
}
.btn-smaller       { color: #fff; background-color: #983372; }
.btn-smaller:hover { background: #92d5d0; color: #8c40c5; }
.btn-smaller-grey  { color: #413e3e; background-image: linear-gradient(to bottom, #cdcdce, #5a5a5a); }
.btn-block         { display: block; width: 100%; }

/* Tighten the two leading button cells */
td.btn-cell { padding: 4px 6px; white-space: nowrap; width: 1%; }

/* Artist/Cover variants if needed */
.btn-artist { background-image: linear-gradient(to bottom, #7ec8ff, #1464a0); }
.btn-cover  { background-image: linear-gradient(to bottom, #a2d39c, #2e7d32); }

/* Counter button */
.btn-counter {
  min-width: 40px;
  height: 50px;
  padding: 0 5px 5px;
  border-radius: 6px;
  box-shadow: 0 1px 3px #666;
  font-family: Oswald, sans-serif;
  font-size: clamp(1.4rem, 0.5rem + 1vw, 1.7rem);
  font-weight: 700;
  color: #983272;
  text-align: center;
  text-decoration: none;
  background: #e6d85f;
  background-image: linear-gradient(to bottom, #cfafe7, #92d5d0);
}

/* ===== Song details / flags =========================================== */
span.playlist_lines,
.song-title {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  font-family: Oswald, sans-serif;
  font-size: 22px;
  color: #5e1f46;
  width: auto;
}

.song-details { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.song-flags   { display: flex; flex-wrap: wrap; gap: 6px; }

/* Small category buttons (flags) */
.song-flags button,
.song-flags .btn-two-chord,
.song-flags .btn-three-chord,
.song-flags .btn-four-chord,
.song-flags .btn-irish,
.song-flags .btn-Christmas,
.song-flags .btn-archived,
.song-flags .btn-cover,
.song-flags .btn-chosen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 24px;           /* slightly shorter per your latest tweak */
  margin-top: 2px;
  margin-right: 5px;
  margin-bottom: 3px;
  border: none;
  border-radius: 6px;
  box-shadow: 0 1px 3px #666;
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 26px;
  text-transform: none;
  white-space: nowrap;
  cursor: default;
}

/* Flag colours */
.btn-two-chord   { background-color: #a2a9f4; color: #000; }
.btn-three-chord { background-color: #535cbc; color: #fff; }
.btn-four-chord  { background-color: #1423cb; color: #fff; }
.btn-irish       { background-color: #027a04; color: #fff; }
.btn-Christmas   { background-color: #aa0404; color: #fff; }
.btn-archived    { background-color: #595757; color: #fff; }
.btn-cover       { background-color: #2e7d32; color: #fff; }
.btn-gold        { display:inline-block; width:50px; margin-right:5px; padding:2px; border:none; border-radius:4px; font-family:Oswald,sans-serif; font-size:clamp(0.5rem,0.6rem + 1vw,0.7rem); color:#000; text-align:center; background:#ece083; cursor:not-allowed; vertical-align:middle; }

/* ===== Tables (Top 50 & Playlist) ===================================== */
#two-rows, #playlist-rows { width: 100%; border-collapse: collapse; }

#two-rows td, #playlist-rows td {
  padding: 8px 8px;
  text-align: left;
  vertical-align: middle;
}

/* Equal row dividers */
#two-rows tr, #playlist-rows tr { border-bottom: 1px solid #ddd; }
#two-rows tr:last-child, #playlist-rows tr:last-child { border-bottom: none; }

/* Keep spacing consistent before song details */
#two-rows td.btn-cell,
#two-rows td:has(.btn-counter),
#playlist-rows td.btn-cell,
#playlist-rows td:has(.btn-counter) { padding-right: 8px; }

/* ===== Playlist “tall” media buttons ================================== */
#playlist-rows td.btn-cell { padding: 0; white-space: nowrap; width: 1%; }

#playlist-rows .btn-tall,
#playlist-rows .btn-tall-grey {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  min-width: 65px; min-height: 50px;
  padding: 0 14px;
  border: none;
  border-radius: 6px;
  box-shadow: 0 1px 2px #666;
  font-family: "Quicksand", sans-serif;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 700;
  
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s;
}
#playlist-rows .btn-tall      { color: #fff; background-color: #983372; }
#playlist-rows .btn-tall:hover{ background: #92d5d0; color: #8c40c5; }

#playlist-rows .btn-tall-grey {
  color: #413e3e;
  background-image: linear-gradient(to bottom, #cdcdce, #5a5a5a);
  cursor: not-allowed;
}
#playlist-rows .btn-block { display: block; width: 100%; }

/* Slightly larger gaps within playlist rows */
#playlist-rows .song-details { gap: 6px; }
#playlist-rows .song-flags   { gap: 6px; }



/* ===== FAQs =========================================================== */

/* Optional: smooth scroll to anchors */
html { scroll-behavior: smooth; }

/* Keep the question list tidy */
.faq-list {
  margin: 0 0 12px 20px;
  padding-left: 18px;
  text-align: left;
}
.faq-list a { font-size: 1.5em; text-decoration: none; }
.faq-list a:hover { text-decoration: underline; }

/* Divider that matches your style */
.faq-divider {
  width: 90%;
  margin: 12px auto 16px;
  border: 0;
  border-top: 1px solid #ddd;
}

/* Answers area */
.faq-answers h3 {
  margin-top: 24px;
  scroll-margin-top: 80px; /* avoids being hidden under a fixed header */
}

/* Subtle highlight when jumped to */
:target { background: #fff8d6; }

/* Back link */
.back { margin: 4px 0 16px 20px; }
.back a { font-size: 0.95em; text-decoration: none; }
.back a:hover { text-decoration: none; }

/* Screen-reader only helper (you already use similar) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,1px,1px); white-space: nowrap; border: 0;
}









/* ===== Footer ========================================================== */
.footer {
  padding: 4px 8px;
  background-color: #0099cc;
  color: #fff;
  text-align: center;
}
.p-footer { margin: 0; font-size: 17px; text-align: left; }