@import "https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.amber.min.css";
@import "https://unpkg.com/open-props";
@import url("https://fonts.googleapis.com/css2?family=Hurricane&display=swap");

@media screen and (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html {
  scroll-padding-top: var(--size-fluid-5);
}

body {
  background: linear-gradient(#0f2d70, var(--pico-background-color) 33.333%);
  font-family: var(--font-antique);
}

ul[role="list"],
ol[role="list"] {
  padding: 0;

  li {
    list-style: none;

    button {
      width: 100%;
    }
  }
}

nav ul {
  width: 100%;
  justify-content: space-around;
}

section {
  margin-bottom: var(--size-fluid-5);
}

#home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--size-fluid-4);
}

#logo {
  height: 66.666vmin;
}

img,
div {
  align-self: center;
}

iframe {
  aspect-ratio: 7 / 8;
  border-width: var(--pico-border-width);
}

h2,
h3,
h4,
h5,
h6,
nav {
  font-family: "Hurricane", cursive;
  font-weight: 400;
  font-style: normal;

  color: var(--pico-primary-background);
}

h2 {
  font-size: var(--font-size-fluid-3);
}

nav {
  font-size: var(--font-size-fluid-2);
}

nav a {
  color: var(--pico-primary-background);
  text-shadow: 0px -2px black, -2px 0px black, 1px 1px black, 2px 2px black,
    3px 3px black, 4px 4px black, 5px 5px black;

  transition: scale 100ms;
}

a img {
  height: 1em;
  aspect-ratio: 1 /1;
  background: rgb(8, 102, 255);
  padding: 0.1em;
  border-radius: var(--radius-blob-5);
  box-shadow: 5px 5px black;
  vertical-align: sub;
}

nav a:hover {
  text-decoration: none;
  scale: 1.1;
}

nav a:active {
  text-decoration: none;
  scale: 1;
}

footer {
  text-align: center;
}

#song-progress {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;

  input[type="range"] {
    margin: 0;
  }

  progress {
    height: 0.4rem;
  }
}

.stack {
  display: grid;

  &:has(progress) {
    width: 100%;
    align-items: center;
  }

  &:has(svg) {
    place-content: center;
  }

  > * {
    margin: 0;
    grid-area: 1 / 1;
  }
}

input::-webkit-slider-runnable-track {
  opacity: 0%;
}
input::-moz-range-track {
  opacity: 0%;
}
input::-ms-track {
  opacity: 0%;
}

#music button {
  margin-bottom: 0;

  &:not(.amplitude-active-song-container) {
    border-color: transparent;
  }
}

#songs button {
  line-height: 1.1;
  text-align: left;
}

button {
  svg {
    fill: var(--pico-color);
    height: 2rem;
  }

  &.amplitude-playing svg,
  &.amplitude-paused svg {
    visibility: hidden;
  }

  &.amplitude-playing svg.pause,
  &.amplitude-paused svg.play {
    visibility: visible;
  }
}

.song-name {
  text-wrap: pretty;
  font-size: var(--font-size-fluid-2);
}

#playback-controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#playback-buttons {
  display: flex;
  justify-content: center;
}

small {
  color: var(--pico-muted-color);
}

#song-info {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-bottom: var(--pico-spacing);

  [data-amplitude-song-info="name"] {
    font-size: 2rem;
    line-height: 1;
  }

  [data-amplitude-song-info="artist"] {
    font-size: var(--font-size-fluid-1);
    color: var(--pico-muted-color);
  }
}
