@font-face {
  font-family: 'Leckerli One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/LeckerliOne-Regular.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #000;
  --secondary: #000;
  --tertiary: #000;
  --quaternary: #000;
  --backdrop: #000;
  --text: #000;
}

* {
  transition-duration: .3s;
}

body {
  display: flex;
  flex-flow: row;
  background-color: var(--primary);
}

h1 {
  color: var(--text);
  font-size: 3vh;
  font-weight: bolder;
  font-family: 'Leckerli One', cursive;
}

.lane {
  width: 33.33vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.elementShadow {
  box-shadow: 10px 10px 0 0 var(--backdrop);
}

.linkBlock {
  background-color: var(--quaternary);
  margin: 5vh 1vw 0px 1vw;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  height: 8vh;
  font-size: 4vh;
  text-decoration: none;
  box-shadow: 8px 8px var(--backdrop);
}

.linkBlock:hover {
  background-color: var(--tertiary);
  box-shadow: 4px 4px var(--backdrop);
}

.linkBlock:active {
  box-shadow: none;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

@keyframes fadein {
  from {
    transform: translateY(3vh);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 100%;
  }
}

#monsterTracker {
  width: 60%;
  min-height: 10%;
  background-color: var(--secondary);
  padding: 2vh 1vw 2vh 1vw;
  display: flex;
  align-items: center;
  justify-content: start;
  flex-direction: column;
  position: relative;
}

#monsterTrackerPlaceholder {
  font-size: 3em;
  margin-top: 3vh;
  color: var(--text);
  animation: rotation 2s infinite linear;
}

#monsterTrackerOffers > li {
  color: var(--text);
  font-size: 1.5vh;
  font-weight: bolder;
  font-family: 'Leckerli One', cursive;

  padding: 1vh 2vw 1vh 2vw;
  border-top: 2px solid var(--tertiary);

  animation: fadein 0.5s;
}

#monsterLink {
  background-color: var(--quaternary);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  height: 3vh;
  font-size: 1.5vh;
  text-decoration: none;
  box-shadow: 4px 4px var(--backdrop);
  position: absolute;
  right: 1vw;
  bottom: 1vw;
}

#monsterLink:hover {
  background-color: var(--tertiary);
  box-shadow: 2px 2px var(--backdrop);
}

#monsterLink:active {
  box-shadow: none;
}

#searchBar {
  height: 6vh;
  min-height: 1cm;
  width: 100%;
  display: flex;
  flex-direction: row;
}

#searchInput {
  background-color: var(--secondary);
  color: var(--text);
  border: none;
  width: 100%;
  height: 100%;
  padding: 0px 0px 0px 1vw;
  font-size: 3vh;
}

#searchInput:focus {
  outline: none;
}

#searchButton {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--quaternary);
  aspect-ratio: 1/1;
  height: 100%;
  color: var(--text);
  font-size: 3vh;

  cursor: pointer;
}

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

#linkContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}

#audioPlayer {
  position: relative;
  background-color: var(--secondary);
  padding: 2vh 1vw 2vh 1vw;
  width: 15vw;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-flow: column;
}

#playerControls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

#playerIcon {
  background-image: url("/media/lofi-girl.png");
  background-size: cover;
  background-position: center;
  width: 80%;
  aspect-ratio: 1 / 1;
  margin: 2vh 0px 2.5vh 0px;
  box-shadow: 3px 3px var(--backdrop);
  position: relative;
}

#playerIcon:hover:has(#playerTitle[data-hidden="false"]) {
  transform: scale(0.98);
}

#playerTitle {
  background-color: rgba(0, 0, 0, 0.5);
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  color: white;
  font-size: 2vh;
  width: 100%;
  height: 2vh;
  bottom: 0px;
  position: absolute;
  justify-content: center;
  padding: .5vh 0px .5vh 0px;
}

#playerTitle[data-hidden="true"] {
  display: none;
}

#stopButton {
  background-color: var(--quaternary);
  color: var(--text);
  height: 3vh;
  border-radius: 50%;
  padding: 5%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 5px 5px 0 0 var(--backdrop);
  cursor: pointer;
  font-size: 3vh;
}

#stopButton:hover {
  background-color: var(--tertiary);
  box-shadow: 3px 3px 0 0 black;
}

#stopButton:active {
  box-shadow: none;
}

#playerVolume {
  margin-left: 1vw;
}

#changeThemeButton {
  background-color: var(--quaternary);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  height: 4vh;
  position: fixed;
  bottom: 2vh;
  right: 2vh;
  cursor: pointer;
  box-shadow: 6px 6px 0 0 var(--backdrop);
}

#changeThemeButton:hover {
  background-color: var(--tertiary);
  box-shadow: 3px 3px 0 0 var(--backdrop);
}

#changeThemeButton:active {
  box-shadow: none;
}

#playerStreams {
  display: grid;
  grid-auto-flow: column;
  grid-gap: 1vw;
  justify-content: space-evenly;
  align-items: center;
  width: 50%;
  aspect-ratio: 3 / 1;
}

.playerStream {
  background-color: var(--quaternary);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  aspect-ratio: 1 / 1;
  height: 60%;
  font-size: 3.5vh;
  box-shadow: 8px 8px var(--backdrop);
  cursor: pointer;
}

.playerStream:hover {
  background-color: var(--tertiary);
  box-shadow: 4px 4px var(--backdrop);
}

.playerStream:active {
  box-shadow: none;
}

/* Shamelessly stolen from css-tricks.com */

input[type=range] {
  -webkit-appearance: none; /* Hides the slider so that custom slider can be made */
  width: 100%; /* Specific width is required for Firefox. */
  background: transparent; /* Otherwise white in Chrome */
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
}

input[type=range]:focus {
  outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
}

input[type=range]::-ms-track {
  width: 100%;
  cursor: pointer;

  /* Hides the slider so custom styles can be added */
  background: transparent;
  border-color: transparent;
  color: transparent;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  aspect-ratio: 1/1;
  border-radius: 50%;
  height: 2vh;
  aspect-ratio: 1/1;
  background: var(--quaternary);
  cursor: pointer;
  margin-top: -0.5vh; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
  box-shadow: 1px 1px 0 0 var(--backdrop);
}

input[type=range]::-webkit-slider-thumb:hover {
  /* No hover effect for now */
}

input[type=range]::-moz-range-thumb {
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: none;
  height: 2vh;
  aspect-ratio: 1/1;
  background: var(--quaternary);
  cursor: pointer;
  margin-top: -0.5vh; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
  box-shadow: 1px 1px 0 0 var(--backdrop);
}

input[type=range]::-moz-range-thumb:hover {
  /* No hover effect for now */
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 1vh;
  cursor: pointer;
  background: var(--tertiary);
  border-radius: 5px;
  box-shadow: 1px 1px 0 0 var(--backdrop);
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 1vh;
  cursor: pointer;
  background: var(--tertiary);
  border-radius: 5px;
  box-shadow: 1px 1px 0 0 var(--backdrop);
}
