@font-face {
  font-family: "CircularStd";
  src: url(/assets/circular-std-medium-500.ttf) format("truetype");
}

:root {
  --player-background: #222;
  --background: #000;
  --foreground: #eee;

  /*
    HACK HACK: Prevent a scroll bar from appearing in the playlist by setting
    the height of the playlist to the height of the playlist content.
  */
  --playlist-current-track-height: 150px;
  --playlist-wave-form-height: 48px;
  --playlist-track-height: 56px;
  --playlist-footer-height: 30px;
  --playlist-track-count: 5; /* needs to be updated if the playlist changes */
  --playlist-height: calc(var(--playlist-current-track-height) + var(--playlist-wave-form-height) + var(--playlist-footer-height) + calc(var(--playlist-track-height) * var(--playlist-track-count)));
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: CircularStd,Ubuntu,Helvetica,Arial,sans-serif;
  font-size: 13px;
  line-height: 18px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
}

a {
  color: var(--foreground);
  text-decoration: none;
}

/* Works on Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #8e8e8e var(--background);
}

/* Works on Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 12px;
}

*::-webkit-scrollbar-track {
  background: var(--background);
}

*::-webkit-scrollbar-thumb {
  background-color: #8e8e8e;
  border-radius: 20px;
  border: 3px solid var(--background);
}

h1 {
  font-size: 3em;
  line-height: 1em;
  margin: 0;
}

h2 {
  font-size: 1.5em;
  margin: 0;
}

#hero {
  background-image: url("assets/banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2em;
  gap: 1em;
  text-align: center;
}

.socials {
  display: flex;
  gap: 1em;
  font-size: 2.5em;
}

#hero > .socials {
  margin-top: 0.5em;
}

#hero > * {
  position: relative;
  z-index: 1;
}

#hero > img {
  width: 25%;
  height: auto;
  max-width: 250px;
  min-width: 200px;
  margin-bottom: 1em;
}

footer {
  width: 100%;
  padding-bottom: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
}


.background-filter {
  position: relative;
}

.background-filter::after {
  background-color: #111;
  opacity: 0.5;
  content: "";
  display: block;
  position: absolute;
  width: 100%; height: 100%;
  top: 0;
}

#player-container {
  display: flex;
  justify-content: center;
  flex: 1;
}

main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 2em;
}

.youtube-overlay {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.youtube-overlay.active {
  visibility: visible;
  pointer-events: unset;
  opacity: 1;
}

.youtube-overlay > iframe {
  width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  max-width: 1920px;
}

.youtube-overlay > .close-button-container {
  flex: 1;
  display: flex;
  width: 100%;
}

.youtube-overlay > .close-button-container.top {
  visibility: hidden;
  justify-content: flex-end;
  align-items: center;
}

.youtube-overlay > .close-button-container.bottom {
  justify-content: center;
  align-items: center;
}

.youtube-overlay > .close-button-container > button {
  background-color: transparent;
  color: var(--foreground);
  font-size: 2em;
  border: none;
  cursor: pointer;
  padding: 0em;
}

.youtube-overlay > .close-button-container.bottom > button {
  border: 1px solid var(--foreground);
  border-radius: 50%;
  width: 1.5em;
  height: 1.5em;
}


#player {
  display: flex;
  background-color: var(--player-background);
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  padding-bottom: 1em;
  max-width: 1920px;
}

.demo-reel-container {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
}

.demo-reel-container > * {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-width: 1920px;
}

.demo-reel-container img {
  width: 100%;
}

.demo-reel-container > a {
  position: relative;
}

.demo-reel-container::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  font-size: 3em;
  color: var(--foreground);
  content: "\f04b";
  background-color: rgba(0, 0, 0, 0.45);
  width: 2em;
  height: 2em;
  border-radius: 100%;
}

#loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#loading > img {
  width: 7em;
  height: auto;
  animation:spin 0.5s linear infinite;
}

.disco-embed {
  position: relative;
  width: 100%;
  height: 100%;
}

.loaded .disco-embed {
  min-height: var(--playlist-height);
}

@keyframes spin {
  100% {
      transform:rotate(360deg);
  }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {

}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {

}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  #hero {
    max-width: unset;
    min-height: 50vh;
    background-attachment: fixed;
  }

  body {
    gap: 2em;
  }

  main {
    gap: 2em;
    padding: 0 2em;
    margin-bottom: unset
  }

  #player, .disco-embed, .demo-reel-container img {
    border-radius: 0.5em;
  }

  .youtube-overlay {
    padding: 4em;
  }

  .youtube-overlay > .close-button-container.top {
    visibility: visible;
  }

  .youtube-overlay > .close-button-container.bottom {
    visibility: hidden;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {

}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

}
