@font-face {
  font-family: 'ABC Camera Plain';
  src:
    url('assets/ABCCameraPlain-Bold-Trial.otf') format('opentype'),
    url('assets/ABCCameraPlain-Bold-Trial.woff2') format('woff2'),
    url('assets/ABCCameraPlain-Bold-Trial.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'ABC Camera Plain';
  src:
    url('assets/ABCCameraPlain-BoldItalic-Trial.otf') format('opentype'),
    url('assets/ABCCameraPlain-BoldItalic-Trial.woff2') format('woff2'),
    url('assets/ABCCameraPlain-BoldItalic-Trial.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: block;
}

body {
  text-align: center;
  font-family: 'ABC Camera Plain', sans-serif;
  font-size: min(7vw, 12vh);
  font-weight: 700;
  font-style: italic;
  background-color: black;
  margin: 0;
}

h1 {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
}

audio {
  position: fixed;
  visibility: hidden;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.6;
}
canvas#background {
  z-index: -2;
}

video {
  position: fixed;
  visibility: hidden;
  left: 200%;
  top: 200%;
  opacity: 0;
}

.lyric-line {
  position: fixed;
  width: 90%;
  top: 50%;
  transform: translateY(-50%);
  left: 5%;
  z-index: 1;
  max-width: 12em;
  text-align: left;
}

.lyric-line.active {
  z-index: 100;
}

body.blackout .lyric-line {
  display: none;
}

h1.title,
div.name,
span {
  padding: 0 0.05em;
  margin: 0 -0.05em 0 0;
}

span {
  opacity: 0;
  color: white;
}

h1.title,
div.name {
  position: relative;
  opacity: 1;
  z-index: 1;
  display: block;
}

h1.title {
  text-align: left;
  color: #5900ff;
}

div.name {
  text-align: right;
  color: #c3c09e;
}

.lyric-line.active span {
  opacity: 1;
  text-shadow:
    0 0 0.25em rgba(0, 0, 0, 0.5),
    0.02em 0.02em 0 rgba(0, 0, 0, 1)
  ;
}

.lyric-line.active span.past {
  filter: none;
  color: #edff00;
  transition: color 2s ease-in-out 1s;
}

.lyric-line--this-is-the-now.active span:not(.active):not(.past) {
  opacity: 0;
}

.lyric-line--this-is-the-now.active span:not(.active).past {
  opacity: 0;
  transition: color 2s ease-in-out 1s, opacity 6s ease-in-out;
}

.lyric-line.active span.past.now {
  color: #edff00;
}

.lyric-line.active span.active {
  color: #edff00;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5%;
  z-index: 1000;
  background-color: black;
  color: white;
  font-size: min(23vh, 16vw);
  /* font-size: min(21vh, 14vw); */
  line-height: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.75s ease-in-out;
}

body.playing header {
  opacity: 0;
}

#play-button {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  line-height: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCI+PHBvbHlnb24gcG9pbnRzPSIxOCw4IDcyLDQwIDE4LDcyIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==') 40 40, pointer;
  animation: none;
}
body.playing #play-button {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><rect x="6" y="4" width="4" height="16" fill="white"/><rect x="14" y="4" width="4" height="16" fill="white"/></svg>') 12 12, pointer;
}

@keyframes loading {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}
#play-button:disabled {
  background-color: black;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" fill="white"><text y="80" font-size="80">⌛︎</text></svg>') 30 40, wait;
  animation: loading 3.5s infinite alternate ease-in-out;
}

.loader {
  display: none;
}

@media screen and (hover: none) {
  .loader {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    padding: 5%;
  }
  .loader::before {
    color: white;
    content: '▶︎';
    font-size: min(7vw, 12vh);
  }
  #play-button:disabled .loader::before {
    color: white;
    content: '⌛︎';
    font-size: min(7vw, 12vh);
  }
  body.recording .loader {
    display: none;
  }
}

#play-button:focus {
  outline: none;
}
