body {
  font-family: 'Helvetica Neue', Verdana, Helvetica, Arial, sans-serif;
  max-width: 600px;
  margin: 0 auto;
  padding-top: 20px;
  -webkit-font-smoothing: antialiased;
  font-size: 1.125em;
  background-color: #212b38;
  line-height: 1.5em;
}

h1, h2, h3 {
  color: white;
  text-align: center;
}

h1 {
  font-size: 2.5em
}

h2 {
  font-size: 2em
}

h3 {
  font-size: 1.5em
}

a {
  text-decoration: none;
  color: #09f;
}

a:hover {
  text-decoration: underline;
}

button:hover {
  cursor: pointer;
}

.search-bar-container {
  display: block;
  position: relative;
  margin: 0 auto;
  margin-top: 40px;
  margin-bottom: 40px;
  width: 80%;
  height: 40px;
}

.search-bar {
  width: 100%;
  height: 100%;
  background-color: #37465b;
  box-shadow: 0px 0px 30px 10px #37465b;
  border-style: solid;
  border-color: #726eff;
  font-size: 1.0rem;
  color: white;
  border-radius: 20px;
  padding: 0 15px;
}

.search-bar::placeholder {
  color: #a8a8a8;
}

.search-bar[disabled] {
  filter: grayscale(1);
}

input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: auto;
  background-image: url("../assets/close.svg");
  background-size: contain;
}

.queue-list {
  width: 90%;
  margin: 0 auto;
}

.queue-list-header {
  border-radius: 10px 10px 0 0;
  text-align: center;
  background-color: #37465b;
  border-bottom: solid;
  border-color: #726eff;
  color: #5affe7;
  padding: 0 10px;
  padding-top: 5px;
}

.now-playing {
  text-align: center;
  border-radius: 0 0 10px 10px;
  padding: 5px 10px;
  margin-bottom: 20px;
  background-color: #37465b;
  font-size: 1em;
  color: white;
}

.song-list {
  padding: 10px;
  background-color: #37465b;
  font-size: 1em;
  color: white;
  border-radius: 0 0 10px 10px;
  margin-bottom: 20px;
}

.song-list ul {
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 25px;
}

/* CSS for loader */
.lds-hourglass,
.lds-hourglass:after {
  box-sizing: border-box;
}

.lds-hourglass {
  display: inline-block;
  position: absolute;
  top: 5px;
  right: 6px;
  width: 30px;
  height: 30px;
}

.lds-hourglass:after {
  content: " ";
  display: block;
  border-radius: 50%;
  width: 0;
  height: 0;
  box-sizing: border-box;
  border: 15px solid #08c6ab;
  border-color: #08c6ab transparent #08c6ab transparent;
  animation: lds-hourglass 1.2s infinite;
}

@keyframes lds-hourglass {
  0% {
    transform: rotate(0);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }
  50% {
    transform: rotate(900deg);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  100% {
    transform: rotate(1800deg);
  }
}

/* CSS for modal */
div.modal {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: white;
  backdrop-filter: blur(10px);
}

div.modal-content {
  background-color: #37465b;
  border-radius: 20px;
  padding: 20px;
  border-color: #726eff;
  border-style: solid;
  text-align: center;
  max-width: 70vw;
}

div.modal-button-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 70vw;
  max-width: 400px;
  height: 50px;
  margin: 20px auto 0;
  gap: 10px;
}

div.modal-button-container button {
  color: white;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1.0em;
  border-style: none;
}

button.modal-confirm {
  background-color: #08c6ab;
}

button.modal-deny {
  background-color: #c87219;
}

/* CSS for controls */
div.controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 90%;
  min-height: 85px;
  margin: 20px auto;
  gap: 10px;
}

div.controls button {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  padding: 10px;
  font-size: 1.0em;
  color: white;
  font-weight: bold;
  border: none;
}

div.controls button[disabled] {
  cursor: default;
  filter: grayscale(1);
}

button.shuffle-button {
  background-color: #08c6ab;
}

button.clear-button {
  background-color: #d53939;
}

button.skip-button {
  background-color: #c87219;
}

/* CSS for mode selector */
.mode-selector-container {
  width: 90%;
  margin: 0 auto;
}

.mode-selector-header {
  border-radius: 10px 10px 0 0;
  text-align: center;
  background-color: #37465b;
  color: #f58d23;
  padding: 5px 10px 0;
  font-weight: bold;
}

.mode-selector {
  display: grid;
  grid-template-columns: 1fr 5fr 1fr;
  text-align: center;
  border-radius: 0 0 10px 10px;
  padding: 5px 10px;
  background-color: #37465b;
  font-size: 1em;
  color: white;
}

.mode-selector-tip {
  color: lightgray;
  font-style: italic;
  font-size: 0.8em;
  line-height: 1.2em;
}

.mode-button {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #5affe7;
  font-weight: bold;
  -webkit-user-select: none;
  user-select: none;
}

.mode-button:hover {
  cursor: pointer;
  color: #08c6ab;
}

/* CSS for login page */
.login-bar {
  width: 90%;
  height: 100%;
  margin: 0 auto;
  background-color: #212b38;
  border-style: solid;
  border-color: #726eff;
  font-size: 1.0rem;
  color: white;
  padding: 0 15px;
}
