:root {
  --color-1: #4895ef;
  --color-2: #F72585;
  --color-3: #3A0CA3;

  --color-1-dark: #244a77;
  --color-2-dark: #7b1242;
  --color-3-dark: #1d0651;

  --color-1-light: #80bafe;
  --color-2-light: #fa80b7;
  --color-3-light: #7547e2;

  --color-dislike: #A73030;
  --color-like: #60A730;
  --color-loading: #888888;
  
  --color-dislike-background: #A730307F;
  --color-like-background: #60A7307F;
  --color-loading-background: #8888887F;
  
  --color-dislike-background-opaque: #531818;
  --color-like-background-opaque: #305318;
  --color-loading-background-opaque: #424242;

  --color-player-background: rgba(0, 50, 50, 0.5);
  --color-song-list-background: #444;

  --max-width-mobile: 600px; /* Note: unfortunately, CSS doesn't allow variables in media queries. */

  --input-border-radius: 5px;
}

body::before, body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
}
.body--gradient {
  background-color: var(--color-1);
}
.body--gradient::before {
  background: linear-gradient(27deg, var(--color-2) 0%, var(--color-3) 35%, var(--color-1) 100%);
  -webkit-mask: radial-gradient(circle at 70% 80%, transparent 5%, #000 80%);
  mask:         radial-gradient(circle at 70% 80%, transparent 5%, #000 80%);
}
.body--gradient::after {
  background: linear-gradient(12deg, var(--color-3) 0%, var(--color-1) 35%, var(--color-2) 100%);
  -webkit-mask: radial-gradient(circle at 40% 20%, transparent 55%, #000 90%);
  mask:         radial-gradient(circle at 40% 20%, transparent 55%, #000 90%);
}

@font-face {
  src: url("/assets/fonts/Atkinson-Hyperlegible-Regular-102.ttf") format("truetype");
  font-family: "Atkinson Hyperlegible";
  font-weight: normal;
  font-style: normal;
  font-display: fallback;
}
@font-face {
  src: url("/assets/fonts/Atkinson-Hyperlegible-Bold-102.ttf") format("truetype");
  font-family: "Atkinson Hyperlegible";
  font-weight: bold;
  font-style: normal;
  font-display: fallback;
}

* {
  font-family: "Atkinson Hyperlegible", Tahoma, Verdana, Arial, sans-serif;
  padding: 0;
  margin: 0;
  border: 0;
  color: #FFFFFF; /* Default font color */
}

html, body {
  height: 100%;
  overflow: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
}
::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}
body {
  text-align: center;
}

#overlay {
  background-color: rgba(0,0,0,0); /* Transparent by default, appears when side-nav is opened */
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  transition: 0.15s;
  pointer-events: none;
}
#overlay.visible {
  background-color: rgba(0,0,0,0.3);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  cursor: pointer;
  pointer-events: initial;
}

#container {
  height: 100vh;
  max-height: 100vh;
  width: 100vw;
  display: grid;
  grid-template-columns: clamp(50px, 19.1%, 250px) minmax(0, 1fr) max-content clamp(50px, 19.1%, 250px);
  grid-template-rows: 50px minmax(0, 1fr) 10px min-content;
  grid-template-areas: 
    ". header navigation ."
    ". main main ."
    ". . . ."
    ". footer footer .";
  align-items: start;
  overflow: visible;
}
@media (max-width: 600px) {
  #container {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 100px;
    grid-template-areas: 
      "main"
      "footer";
  }
}

top-menu {
  grid-area: header;
  height: 100%;
  width: 100%;
  overflow: visible;
  z-index: 2;
}
@media (max-width: 600px) {
  top-menu {
    grid-area: main;
    position: absolute;
    top: 0;
    width: 100%;
    pointer-events: none;
  }
}

/* The side navigation menu */
#side-navigation {
  grid-area: navigation;
  align-self: center;
  z-index: 2;
}
@media screen and (max-width: 830px) {
  #side-navigation {
    display: none;
    grid-area: unset;
    position: fixed;
    z-index: 3;
    height: 100%;
    width: 0;
    top: 0;
    left: -100%;
    background-color: #FFFFFF;
  }
  #side-navigation.visible {
    display: block;
    width: 100%;
    left: 0px;
  }
}

#content {
  grid-area: main;
  height: 100%;
  width: 100%;
  overflow: auto;
  z-index: 1;
}
@media (max-width: 600px) {
  #content {
    width: 100vw;
  }
}
#content.swipable {
  overflow: visible;
}

#audio-player {
  grid-area: footer;
  width: 100%;
  height: 100%;
  border-radius: 0.5em 0.5em 0 0;
}
@media (max-width: 600px) {
  #audio-player {
    border-radius: 0;
  }
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 3; /* Sit on top */
  left: 50%;
  transform: translate(-50%, 0);
  top: 200px;
  animation-name: animatetop;
  animation-duration: 0.6s;
  overflow: auto; /* Enable scroll if needed */
}
.modal.visible {
  display: block;
}

/* Add Animation */
@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 200px; opacity: 1}
}
