@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
  --background: #09090f;
  --foreground: #ede9fe;
  --card: #0f0f1c;
  --card-foreground: #ede9fe;
  --popup: #13132060;
  --popup-dark: #131320aa;
  --primary: #7c3aed;
  --primary-foreground: #ffffff;
  --secondary: #1e1b2e;
  --secondary-foreground: #c4b5fd;
  --muted: #1a1828;
  --muted-foreground: #6b6b92;
  --accent: #a855f7;
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: rgba(124, 58, 237, 0.22);
  --locked-border: rgba(124, 58, 237, 0.1);
  --input: transparent;
  --input-background: #1a1828;
  --switch-background: #2e2a45;
  --font-weight-black: 900;
  --font-weight-bold: 700;
  --font-weight-medium: 600;
  --font-weight-normal: 400;
  --ring: #7c3aed;
  --chart-1: #a855f7;
  --chart-2: #7c3aed;
  --chart-3: #6d28d9;
  --chart-4: #c4b5fd;
  --chart-5: #ddd6fe;
  --sidebar: #0f0f1c;
  --sidebar-foreground: #ede9fe;
  --sidebar-primary: #7c3aed;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #1e1b2e;
  --sidebar-accent-foreground: #c4b5fd;
  --sidebar-border: rgba(124, 58, 237, 0.22);
  --sidebar-ring: #7c3aed;
  --font-xs: 12px;
  --font-s: 14px;
  --font-r: 16px;
  --font-l: 20px;
  --font-xl: 24px;
  --font-2xl: 32px;
  --border-radius: 16px;
  --shadow: rgba(124, 58, 237, 0.08) 0px 0px 60px, rgba(0, 0, 0, 0.5) 0px 4px 32px;
  --button-shadow: rgba(124, 58, 237, 0.3) 0px 0px 24px;
  --button-padding: 12px;
  --locked-opacity: 0.6;
  --action-background: rgb(19, 19, 42);
  --popup-shadow: rgba(0, 0, 0, 0.6) 0px 8px 32px;
  --popup-divider: rgba(124, 58, 237, 0.1);
  --popup-highlighted: rgba(124, 58, 237, 0.12);
  --correct-foreground: rgb(74, 222, 128);
  --correct-background: rgba(34, 197, 94, 0.08);
  --correct-border: rgba(34, 197, 94, 0.25);
  --preview-background: rgba(124, 58, 237, 0.18);
  --preview-hover: rgba(124, 58, 237, 0.28);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Plus Jakarta Sans", sans-serif;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height: calc(100dvh - 10px);
  overflow:hidden;
  margin:5px;
}

body.scrollable {
  overflow-y: auto;
  min-height: calc(100dvh - 10px);
}

header h1 {
  font-weight: var(--font-weight-black);
  margin:0;
  font-size: var(--font-2xl);
  letter-spacing: -0.03em;
  display:inline-block;
}

p, h1 {
  cursor: default;
}

header img {
  display:inline-block;
  height: var(--font-2xl);
  width: var(--font-2xl);
  margin:5px;
}

#logo-top {
  display:flex;
  width:100%;
  justify-content:center;
}

header {
  margin: 10px 10px auto 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer {
  margin: auto 10px 10px 10px;
}

#header-a {
  opacity: 1;
}

#header-logo {
  display: inline-block;
}

#profile-icon {
  display: none;
}

.muted-text {
  margin:0;
  font-weight: var(--font-weight-medium);
  color: var(--muted-foreground);
  font-size: var(--font-s);
  letter-spacing: 0.05em;
}

.little-card-grid {
  width: 75vw;
}

@media (max-width: 400px) {
  .little-card-grid {
    width: calc(100vw - 10px);
  }
}

.card-container {
  display:flex;
  width:100%;
  box-sizing:border-box;
  margin:0;
  padding:0;
  justify-content:center;
  align-items:center;
}

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding:24px;
  min-width:250px;
  max-width:420px;
  width: 100%;
  box-sizing:border-box;
  margin-top:24px;
  display:inline-block;
  opacity:1;
  transition: 0.1s ease-in-out;
}

.card.little {
  color: var(--card-foreground);
  padding: var(--border-radius);
  min-width: 200px;
  max-width:350px;
  flex:1;
  min-width:auto;
  max-width:auto;
  box-shadow:none;
  vertical-align: text-top;
}

.card.little:hover, .card.multiple:hover {
  box-shadow: var(--button-shadow);
  transform: translateY(-2px);
}

.card-image {
  width:100%;
}

.card-name {
  font-size: var(--font-l);
  margin:3px 0;
}

.card-description {
  margin:0;
  font-size: var(--font-s);
  color: var(--muted-foreground);
  font-weight: var(--font-weight-medium);
}

.card.multiple {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  width: calc(100% - 10px);
  height: 150px;
  box-shadow:none;
}

@media (min-width: 775px) {
  .card.multiple.middle {
    transform: scale(1.2);
    z-index: 99;
  }
  .card.multiple.middle:hover {
    box-shadow: var(--button-shadow);
    transform: scale(1.2) translateY(-2px);
  }
}

.card.coming-soon h2, .card.coming-soon p {
  margin:0;
  position:relative;
}

.card.coming-soon p {
  position:absolute;
  transform: translateY(35px);
}

@media (max-width: 775px) {
  .card-container {
    flex-direction:column;
  }
}

.hidden {
  display:none;
}

button, .not-a-button {
  background-color: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-s);
  padding: var(--button-padding);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--border-radius);
  box-sizing:border-box;
  font-family: "Plus Jakarta Sans", sans-serif;
  flex:1;
  cursor: pointer;
}

.not-a-button {
  opacity: 1;
  margin:0;
}

.button-row {
  display:flex;
  gap:10px;
}

.button-icon {
  height: calc(var(--font-s) + 2px);
  width: calc(var(--font-s) + 2px);
  margin-bottom:-2.5px;
}

button.locked {
  background-color: var(--muted);
  color: var(--muted-foreground);
  border-color: var(--locked-border);
  opacity: var(--locked-opacity);
  cursor: default;
}

.emphasis {
  box-shadow: var(--button-shadow);
  background-color: var(--primary);
  color: var(--primary-foreground);
  flex:2;
}

.playing {
  box-shadow: var(--button-shadow);
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.emphasis.locked {
  background-color: var(--primary);
  color: var(--primary-foreground);
  opacity: 0.2;
}

#input-outer {
  background-color: var(--input-background);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--border-radius);
  padding: var(--button-padding);
  margin:16px 0;
  position:relative;
}

input {
  background-color: var(--input);
  border:none;
  margin:0;
  font-weight: var(--font-weight-medium);
  color: var(--muted-foreground);
  font-size: var(--font-s);
  letter-spacing: 0.05em;
  font-family: "Plus Jakarta Sans", sans-serif;
  width:100%;
}

input:focus {
  outline: none;
}

#iconReveal {
  margin-bottom: -3.5px;
}

#next-round, #completed {
  background-color: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--border-radius);
  box-sizing:border-box;
}

#next-round.correct {
  background-color: var(--correct-background);
  border: 1px solid var(--correct-border);
}

#the-song-was {
  margin-top:10px;
  font-size: var(--font-xs);
  font-weight: var(--font-weight-medium);
}

#correct {
  font-size: var(--font-s);
  font-weight: var(--font-weight-bold);
  color: var(--correct-foreground);
}

#song-name, #artist-name {
  margin:5px 0 0 0;
}

#song-name {
  font-weight: var(--font-weight-black);
  font-size: var(--font-l);
  color: var(--foreground);
}

#next-buttons {
  margin: 7.5px;
  margin-top: 15px;
}

#correct {
  margin: 0;
  margin-top: 7.5px;
}

a {
  display:block;
  text-align:center;
  text-decoration:none;
  color: var(--primary-foreground);
  opacity: 0.5;
  margin:5px 2.5px;
}

footer a {
  display:block;
  text-align:center;
  text-decoration:none;
  color: var(--primary);
  opacity: 0.5;
  margin:5px 2.5px;
}

footer img {
  text-decoration:none;
  height: var(--font-l);
  width: var(--font-l);
  margin-bottom:-4px;
  margin-left:2px;
}

/* sound wave */

#soundwave-outer {
  width:100%;
  height:100px;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  margin:0 0 16px 0;
  box-sizing: border-box;
}

#soundwave {
  width:100%;
  height:100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  padding:10px;
  box-sizing: border-box;
}

.wave-bar {
  width: 8px;
  height: 6px;
  border-radius: 4px;
  background: var(--primary);
  transition: height 0.8s ease-in-out;
}

.wave-bar-move {
  animation: wave 0.8s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% {
    height: 6px;
    background: var(--primary);
  }
  50% {
    height: 70px;
    background: var(--primary);
    background: linear-gradient(0deg,var(--primary) 0%, var(--primary) 75%, var(--accent) 100%);
  }
}

#soundwave-tip {
  position:absolute;
  margin-bottom:30px;
}

#suggestions {
  background-color: var(--action-background);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  box-shadow: var(--popup-shadow);
  position:absolute;
  z-index:10;
  width:calc(100% - 58px);
  max-width:372px;
  overflow:hidden;
}

#suggestions p {
  border-bottom: 1px solid var(--popup-divider);
  margin:0;
  padding:5px;
  cursor: pointer;
}

#suggestions p:hover {
  background-color: var(--popup-highlighted);
}

#suggestions p span {
  padding:0;
  margin:0;
}

.song-title {
  font-size: var(--font-s);
  font-weight: var(--font-weight-bold);
  color: var(--foreground);
}

.song-artist {
  font-size: var(--font-xs);
  font-weight: var(--font-weight-medium);
  color: var(--muted-foreground);
}

#preview {
  background-color: var(--preview-background);
}

#preview:hover {
  background-color: var(--preview-hover);
}

#preview.playing {
  box-shadow: var(--button-shadow);
  background-color: var(--primary);
  color: var(--primary-foreground);
}

li a {
  color: var(--primary);
  text-decoration:underline;
  opacity:1;
  display:inline;
}

ol {
  text-align:left;
}

#score {
  font-size: var(--font-s);
  color: var(--card-foreground);
  font-weight: var(--font-weight-medium);
  margin: 3px 0 0 0;
}

#completed {
  padding:10px;
}

#points-end {
  font-size: var(--font-2xl);
  font-weight: var(--font-weight-medium);
  color: var(--card-foreground);
  margin:10px;
}

#share {
  width:100%;
}

.popup-outer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width:100dvw;
  height:100dvh;
  background-color: var(--popup);
}

.popup-outer.dark {
  background-color: var(--popup-dark);
}


.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.not-a-button h3 {
  color: var(--foreground);
}

.not-a-button.locked {
  opacity: 0.7;
}

@media (max-width: 1000px) {
  .coming-soon {
    opacity: 0.7;
  }
}