@import url("./fonts.css");
@import url("./animate.css");
@import url("./loader.css");
@import url("./volume.css");
@import url("./player.css");
@import url("./track.css");
@import url("./error.css");
@import url("./footer.css");
@import url("./listeners.css");
@import url("./blick.css");

:root {
  --color: hsl(0, 0%, 100%);
  --secondary-color: hsl(0, 0%, 0%);
  --drop-shadow: drop-shadow(0 0 1px hsla(0 0 0 / 0.3));
  --gradient: linear-gradient(-45deg, var(--color1), var(--color2), var(--color3), var(--color4), var(--color5));
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  overflow: clip;
  display: grid;
  margin: 0;
  background-color: var(--secondary-color);
}

html {
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

body {
  color: var(--color);
  place-content: center;
  place-items: center;
  gap: 2rem;
  background-image: var(--gradient);
  background-size: 200% 200%;
  animation: gradientShift 60s linear infinite;
  padding: 1rem;
  transition: --color1 0.5s ease, --color2 1.5s ease, --color3 0.5s ease, --color4 1.5s ease, --color5 0.5s ease;
  padding: calc(env(safe-area-inset-top) + 1rem) 1rem calc(env(safe-area-inset-bottom) + 1rem) 1rem;
  @supports (height: stretch) {
    height: stretch;
  }

  &::before {
    content: "";
    background-color: hsla(0, 0%, 0%, 0.2);
    position: absolute;
    inset: 0;
    z-index: 0;
  }
}

a,
a:active,
a:visited {
  color: var(--color);
}

@media (orientation: landscape) and (pointer: coarse) {
  html {
    font-size: 15px;
  }
  body {
    grid-template-columns: 1fr 1fr;
  }

  prev-track,
  next-track {
    display: none;
  }
}

@property --color1 {
  syntax: "<color>";
  inherits: false;
  initial-value: red;
}

@property --color2 {
  syntax: "<color>";
  inherits: false;
  initial-value: blue;
}

@property --color3 {
  syntax: "<color>";
  inherits: false;
  initial-value: green;
}

@property --color4 {
  syntax: "<color>";
  inherits: false;
  initial-value: yellow;
}

@property --color5 {
  syntax: "<color>";
  inherits: false;
  initial-value: magenta;
}
