#audio-controls {
  display: flex;
  flex-direction: column;
  padding: 5px 10px 15px 10px ;
  gap: 15px;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 12px;
  background: #f0f0f0;
  outline: none;
  opacity: 0.7;
  transition: opacity .2s;
  border: 1px solid #ccc;
  border-radius: 7px;
}

#slider-music::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: url('./assets/audio-icon.svg') no-repeat center center;
  background-size: cover;
  cursor: pointer;
}

#slider-fx::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: url('./assets/audiofx-icon.svg') no-repeat center center;
  background-size: cover;
  cursor: pointer;
}

#final-score-value {
  display: none;
}

#game {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-rows: 1fr;
  background-color: #ddd;
  gap: 1px;
}

.stats-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 100vh;
  background-color: #fff;
}

.stats-container div h2 {
  font-size: 1.3em;
  font-family: monospace;
  padding: 0.2em 0.4em;
  border: 1px solid #ccc;
  border-left: none;
  margin: 0.3em 0 0.1em 0;
  background: #f3f3f3;
  display: inline-block;
}

.stats-container ol {
  margin: 0;
  padding: 0.2em 0 0.2em 0.4em;
  font-size: 1.1em;
  font-family: monospace;
}

.stats-container ol#leaderboard-list {
  padding-left: 0;
  padding-right: 0.5em;
}

.stats-container li.player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.stats-container li.player:last-of-type {
  margin: 0;
}

.stats-container li.player span.name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-grow: 1;
  padding: 0 0.6em;
}

.stats-container li.player span.score {
  display: block;
  text-align: center;
  padding: 0 0.6em;
}

.powerup-container img {
  height: 25px;
  width: auto;
}

.powerup-container div {
  display: flex;
  justify-content: left;
  width: 50px;
  height: 25px;
  gap: 8px;
}

.chat-container {
  flex-grow: 1;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#chat-messages {
  flex-grow: 1;
  overflow-y: scroll;
  margin: 0;
  padding: 0.4em;
  font-size: 0.9em;
}

.chat-container li span.name {
  font-weight: bold;
}

.chat-container input {
  border: none;
  border-top: 1px solid #ddd;
  box-sizing: border-box;
  padding: 0.4em 0.8em;
  outline: none;
}

ol#buff-list,
ol#debuff-list {
  display: flex;
  gap: 6px;
}

#canvas-container {
  display: flex;
  justify-content: end;
  align-items: start;
  height: 100%;
  background-color: #fff;
}

.grid-container {
  padding-top: 25px;
  width: 75vh;
  display: grid;
  grid-template-columns: 100px 1fr;
  grid-gap: 10px;
}

.grid-item {
  background-color: #ddd;
  padding: 0 20px;
  height: 70px;
  font-size: 20px;
  text-align: left;
  display: flex;
  align-items: center;
}

.grid-item p {
  margin: 0;
}

.grid-item-icon {
  background-color: #ddd;
  padding: 20px;
  font-size: 20px;
  height: 70px;
  text-align: center;
  width: 100px;
}

.control-img {
  height: 30px;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
  gap: 50px;
}

.login-container>div {
  display: flex;
  gap: 100px;
}

.login-container h2 {
  font-size: 1.8em;
}

#final-score {
  display: none;
  margin-bottom: 50px;
}

#final-score h1 {
  color: red;
  font-weight: 900;
}

#final-score .player {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-family: monospace;
}

#final-score .player .name {
  flex-grow: 1;
  padding: 0.4em 0.8em;
}

#final-score .player .score {
  padding: 0.4em 0.8em;
}

.inputs {
  display: flex;
}

.inputs input[type=text] {
  padding: 0.4em 0.8em;
  border: 1px solid #ddd;
  outline: none;
  min-width: 250px;
}

.inputs input[type=text]:focus {
  border: 1px solid #333333;
  color: #333333;
}

.inputs button {
  padding: 0em 0.8em;
  height: 40px;
  background: #333333;
  border: 2px solid #333333;
  color: #ffffff;
  font-weight: bold;
}

.inputs button:hover {
  background: #fff;
  color: #333333;
}

.controls {
  display: grid;
  grid-template-columns: 100px 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 8px;
}

.controls>div {
  background: #f0f0f0;
  height: 50px;
  display: flex;
  align-items: center;
}

.controls> :nth-child(odd) {
  justify-content: center;
  gap: 5px;
}

.controls> :nth-child(even) {
  padding: 0 10px;
  justify-content: start;
  text-wrap: wrap;
}

#color-customizer {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  z-index: 100;
  padding: 10px;
  border: 1px solid #c8c8c8;
  background: #fff;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.1);
}

#color-customizer .color-triple {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

#color-customizer input[type="color"] {
  appearance: none;
  border: 1px solid white;
  height: 30px;
  margin: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  outline: none;
}

#color-customizer input[type="color"].body {
  width: 90px;
}

#color-customizer input[type="color"].head {
  width: 30px;
}

#color-customizer input[type="color"].text {
  width: 30px;
}

#color-customizer input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

#color-customizer input[type="color"]::-webkit-color-swatch {
  border: none;
}

#color-customizer .buttons {
  display: flex;
  justify-content: space-between;
  gap: 5px;
}

#color-customizer button {
  border: 1px solid #999;
  padding: 5px 10px;
  background: #fff;
  cursor: pointer;
  font-size: 10pt;
  flex-grow: 1;
}