/* Globals */
:root {
  --color-bg: #738588;
  --color-bg-tint: #819194;
  --color-bg-light: #abb6b8;
  --color-fg: #2f3f46;
  --color-fg-dimmed: #59656b;
  --color-spotify: #1ed760;
  --font: 'Avenir Book';
}

body {
  font-family: var(--font);
  font-weight: 300;
  font-size: 2rem;
  color: var(--color-fg);
  background-color: var(--color-bg);
  accent-color: var(--color-fg);
}

.container {
  text-align: center;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Title */
.title {
  font-size: 4rem;
  margin: 3rem auto;
}

/* Cover and track info */
.block {
  border: none;
  background: transparent;
}

.album-name, .artist-name {
  font-size: clamp(2rem, 5vw, 4rem);
  white-space: nowrap;
  overflow-x: scroll;
  overflow-y: hidden;
  margin: 2rem auto;
  max-width: 90vw;
}

.track-name {
  font-size: clamp(3rem, 7vw, 5rem);
  white-space: nowrap;
  overflow-x: scroll;
  margin: 2rem auto;
  max-width: 90vw; 
}

/* Star rating */
.star-rating {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem;
}

.star-rating button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  align-items: center;
}

.star-rating i {
  font-size: 4rem;
  color: var(--color-fg);
  transition: color 0.2s;
}

/* Spin factor */
.spin-delta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.spin-delta-btn {
  font-size: 4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-fg);
  display: flex;
  align-items: center;
  margin: 1rem 0;
  transition: color 0.2s;
}

#spin-delta-val {
  font-size: 2rem;
  min-width: 4ch;
  text-align: center;
  display: inline-block;
}

/* Tool row */
.tool-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  margin: 1rem;
}

.weight {
  font-size: 2rem;
  font-weight: bold;
  min-width: 3ch;
  border: none;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-light);
}

.refresh-button, .heart-button, .logout-button, .playlist-button, .mixtape-button{
  font-size: 4rem;
  color: inherit;
  background: none;
  border: none;
}

/* Tags */
.tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.tags-row input[type="text"] {
  width: 40vw;
  text-align: center;
  background-color: var(--color-bg-light);
  border-radius: 1rem;
  font-family: var(--font);
  font-size: 1.5rem;
  color: var(--color-fg);
}

.tags-row input[type="text"]::placeholder {
  color: var(--color-fg-dimmed);
}

/* Login page */
.login-button {
  display: flex;
  width: 45%;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-spotify);
  color: white;
  padding: 1rem 2rem;
  margin: 2rem;
  border-radius: 3rem;
  text-decoration: none;
  font-size: 2rem;
  transition: background-color 0.2s;
}

.spotify-icon {
  font-size: 4rem;
}

/* Mixtape setup page */
.playlist-name-container input[type="text"] {
  width: 50vw;
  text-align: center;
  background-color: var(--color-bg-light);
  border-radius: 1rem;
  font-family: var(--font);
  font-size: 1.5rem;
  color: var(--color-fg);
}

.playlist-name-container input[type="text"]::placeholder {
  color: var(--color-fg-dimmed);
}

.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

fieldset {
  border-color: var(--color-bg-light);
  border-radius: 1rem;
  margin: 1rem;
}

.pill-checkbox {
  align-items: center;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  background-color: var(--color-bg-tint);
  font-size: 1.6rem;
  white-space: nowrap;
  width: fit-content;
  display: inline-block;
  user-select: none;
}

.pill-checkbox.selected {
  background-color: var(--color-bg-light); 
  color: var(--color-fg)
}

.filter-toggle-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
}

.toggle-btn {
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  background-color: var(--color-bg-tint);
  font-size: 1.6rem;
  white-space: nowrap;
  border: none;
  user-select: none;
  color: var(--color-fg);
}

.toggle-btn.selected {
  background-color: var(--color-bg-light);
  color: var(--color-fg);
}