/* Reset padding and margin */
* {
  margin: 0;
  padding: 0;
}

body {
  font: 18px/1.5 "Avenir", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-family: sans-serif;
  margin: 20px;
}

a {
  text-decoration: none;
}

/* Number input: hide spin buttons */
input[type="number"] {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 1rem;
  -moz-appearance: textfield;
  -webkit-appearance: none;
  appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Top navigation bar */
.topnav {
  background-color: rgb(59, 66, 74);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.topnav.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: #000000;
  color: white;
}

/* Buttons */
.btn {
  background-color: rgb(59, 66, 74);
  border: none;
  color: white;
  padding: 12px 16px;
  font-size: 16px;
  cursor: pointer;
}

.btn:hover {
  background-color: RoyalBlue;
}

/* Dropdown */
.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgb(59, 66, 74);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  float: none;
  color: rgb(255, 255, 255);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

/* Transpose dropdown: full-width buttons with left-aligned text */
.dropdown-content .btn {
  width: 100%;
  text-align: left;
}

/* Transpose dropdown separator */
.dropdown-separator {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 4px 0;
}

/* Transpose dropdown: apply row */
.transpose-apply-row {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 6px;
}

.transpose-apply-row input[type="number"] {
  width: 60px;
}

/* Transpose by key: active highlight */
.transpose-by-key .dropdown-content a.active {
  background-color: RoyalBlue;
  color: white;
}



/* Song header (title + meta shown above the sheet) */
#song-header {
  display: none;
  text-align: center;
  padding: 10px 16px 4px;
  line-height: 1.3;
}

#song-title {
  font-size: 1.4rem;
  font-weight: bold;
}

#song-meta {
  font-size: 0.8rem;
  color: #555;
  margin-top: 2px;
}

/* Song search */
.song-search-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.song-search-input-row {
  display: flex;
  align-items: center;
  padding: 6px 10px;
}

.song-search-icon {
  color: white;
  margin-right: 6px;
}

#song-search {
  background: rgb(80, 88, 97);
  border: none;
  color: white;
  padding: 6px 10px;
  font-size: 15px;
  border-radius: 4px;
  width: 200px;
  outline: none;
}

#song-search::placeholder {
  color: #bbb;
}

#song-search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgb(59, 66, 74);
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

#song-search-results a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
}

#song-search-results a:hover {
  background: RoyalBlue;
}

