ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333333;
}

ul li {
  float: left;
}

ul li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

ul li a:hover {
  background-color: #111111;
}

div.sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 5px;
  background-color: #8d03c8;
  border: 2px solid #000000;
}

body {
  background-color: #121212;
  margin: 0;
  font-family: "Times New Roman", Times, serif;
}

.active {
  background-color: #111111;
  color: #333333;
}

.music-game {
  width: min(520px, calc(100% - 32px));
  margin: 45px auto 70px;
}

.p1 {
  color: white;
  text-align: center;
  margin: 0 0 20px;
  font-size: 18px;
}

.game-card {
  box-sizing: border-box;
  padding: 28px;
  border: 3px solid #333333;
  background-color: #1d1d1d;
  box-shadow: 8px 8px 0 #8d03c8;
}

.game-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.game-heading h1 {
  margin: 0;
  color: white;
  font-size: 28px;
}

.game-heading p {
  margin: 0;
  color: #d9a7ef;
  font-weight: bold;
  white-space: nowrap;
}

.play-button,
.next-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 3px solid #333333;
  background-color: #8d03c8;
  color: white;
  font: bold 18px "Times New Roman", Times, serif;
  cursor: pointer;
}

.play-button:hover,
.next-button:hover,
.play-button:focus,
.next-button:focus {
  background-color: #111111;
}

.play-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.progress-track {
  width: 100%;
  height: 8px;
  margin: 12px 0 24px;
  overflow: hidden;
  background-color: #333333;
}

.progress-bar {
  width: 0;
  height: 100%;
  background-color: #d9a7ef;
  transition: width 30ms linear;
}

.song-dropdown {
  position: relative;
  width: 100%;
}

.menu_style {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: #8d03c8;
  color: white;
  border: 3px solid #333333;
  padding: 15px;
  margin: 0;
  text-align: left;
  font: 18px "Times New Roman", Times, serif;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
  background-color: #8d03c8;
  border: 3px solid #333333;
  border-top: 0;
}

.dropdown-search {
  display: block;
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  border: 0;
  border-bottom: 2px solid #333333;
  background-color: white;
  color: #111111;
  padding: 8px 10px;
  outline: none;
  font: 16px "Times New Roman", Times, serif;
}

.dropdown-search:focus {
  border-bottom-color: royalblue;
}

[hidden] {
  display: none !important;
}

.dropdown-options {
  max-height: 180px;
  overflow-y: auto;
}

.dropdown-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid #333333;
  background-color: #8d03c8;
  color: white;
  padding: 4px 10px;
  text-align: left;
  font: 16px "Times New Roman", Times, serif;
  cursor: pointer;
}

.dropdown-option:hover,
.dropdown-option:focus {
  background-color: #111111;
}

.dropdown-logo-fallback {
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background-color: #333333;
  color: white;
  font-weight: bold;
}

.dropdown-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback {
  min-height: 24px;
  margin: 18px 0 10px;
  color: white;
  text-align: center;
  font-size: 17px;
}

.feedback.correct {
  color: #72d572;
}

.feedback.incorrect {
  color: #ff8a8a;
}

.next-button {
  margin-top: 8px;
}

.answer-form {
  display: grid;
  gap: 10px;
}

.answer-form label {
  color: white;
  font-size: 17px;
  font-weight: bold;
}

.answer-input {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  border: 3px solid #333333;
  background-color: white;
  color: #111111;
  padding: 10px 12px;
  outline: none;
  font: 18px "Times New Roman", Times, serif;
}

.answer-input:focus {
  border-color: #d9a7ef;
}

.answer-input:disabled {
  background-color: #dddddd;
}

.answer-button {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 3px solid #333333;
  background-color: #8d03c8;
  color: white;
  font: bold 18px "Times New Roman", Times, serif;
  cursor: pointer;
}

.answer-button:hover,
.answer-button:focus,
.answer-button:disabled {
  background-color: #111111;
}

.answer-button:disabled {
  cursor: default;
  opacity: 0.75;
}

#player {
  position: fixed;
  left: -1000px;
  top: 0;
  width: 320px;
  height: 180px;
  pointer-events: none;
}

.song-cover-wrap {
  width: 220px;
  max-width: 70%;
  aspect-ratio: 1;
  margin: 18px auto 12px;
  border: 3px solid #333333;
  background: #111111;
  box-shadow: 6px 6px 0 #8d03c8;
  overflow: hidden;
  position: relative;
}

.song-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  color: white;
  background-color: #111111;
  text-align: center;
  padding: 10px;
}

.song-list-panel {
  position: fixed;
  top: 140px;
  left: 24px;
  width: 280px;
  z-index: 500;
}

.song-list-button {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 3px solid #333333;
  background-color: #8d03c8;
  color: white;
  padding: 10px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: bold 15px "Times New Roman", Times, serif;
  cursor: pointer;
}

.song-list-button:hover,
.song-list-button:focus {
  background-color: #111111;
}

.song-list-menu {
  width: 100%;
  box-sizing: border-box;
  border: 3px solid #333333;
  border-top: 0;
  background-color: #8d03c8;
}

.song-list-search {
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  border: 0;
  border-bottom: 2px solid #333333;
  padding: 8px;
  outline: none;
  font: 15px "Times New Roman", Times, serif;
}

.song-list-options {
  max-height: 220px;
  overflow-y: auto;
}

.song-list-option {
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid #333333;
  background-color: #8d03c8;
  color: white;
  padding: 8px;
  text-align: left;
  font: 15px "Times New Roman", Times, serif;
  cursor: pointer;
}

.song-list-option span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-list-option:hover,
.song-list-option:focus {
  background-color: #111111;
}

.room-panel {
  width: min(520px, calc(100% - 32px));
  margin: 24px auto 0;
  box-sizing: border-box;
  border: 3px solid #333333;
  background-color: #1d1d1d;
  padding: 16px;
}

.room-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.room-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.room-fields label {
  color: white;
  font-size: 15px;
  font-weight: bold;
}

.room-fields input {
  display: block;
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  margin-top: 5px;
  border: 3px solid #333333;
  padding: 8px;
  font: 16px "Times New Roman", Times, serif;
}

.room-button {
  min-height: 42px;
  border: 3px solid #333333;
  background-color: #8d03c8;
  color: white;
  font: bold 16px "Times New Roman", Times, serif;
  cursor: pointer;
}

.room-button:hover,
.room-button:focus {
  background-color: #111111;
}

.room-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #d9a7ef;
  text-align: center;
}

.scoreboard {
  margin-top: 12px;
  border-top: 2px solid #333333;
  color: white;
}

.scoreboard-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 7px 4px;
  border-bottom: 1px solid #333333;
}

.end-screen {
  text-align: center;
  color: white;
}

.end-screen h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.end-player-row {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  border: 2px solid #333333;
  background: #111111;
  padding: 12px;
  text-align: left;
}

.end-player-details {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.end-question-results {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.end-question-results span {
  text-align: center;
  border: 1px solid #333333;
  padding: 5px 2px;
  font-size: 13px;
}

.result-correct {
  color: #72d572;
}

.result-missed {
  color: #ff8a8a;
}

@media (max-width: 700px) {
  ul li a {
    padding: 12px 8px;
    font-size: 14px;
  }

  .music-game {
    margin-top: 28px;
  }

  .game-card {
    padding: 20px;
  }

  .game-heading {
    align-items: flex-start;
  }

  .game-heading h1 {
    font-size: 23px;
  }

  .room-fields,
  .room-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .song-list-panel {
    position: absolute;
    top: 92px;
    left: 16px;
    width: 220px;
  }
}