@keyframes pulse {
  0% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 0.1;
  }
}
html, body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

body.fullscreen .container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
body.fullscreen .container #tv {
  display: none;
}
body.fullscreen .container .gif, body.fullscreen .container #static {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
body.fullscreen .play-button {
  top: calc(50% - 60px);
  left: calc(50% - 60px);
}
body.fullscreen .stop-button {
  top: unset;
  left: unset;
  bottom: 60px;
  right: 60px;
}

.container {
  position: relative;
  margin-right: auto;
  margin-left: auto;
  width: 800px;
  height: 560px;
}
.container .play-button {
  position: absolute;
  width: 120px;
  height: 120px;
  top: calc(50% - 95px);
  left: calc(50% - 130px);
  background: rgb(177, 0, 0);
  border-radius: 50%;
  cursor: pointer;
}
.container .play-button:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 20px 0 20px 35px;
  border-color: transparent transparent transparent white;
}
.container .play-button:hover {
  background: rgb(219, 0, 0);
}
.container .stop-button {
  display: none;
  transform: scale(0.5);
  position: absolute;
  width: 120px;
  height: 120px;
  top: calc(50% + 50px);
  left: calc(50% + 68px);
  background: rgb(177, 0, 0);
  border-radius: 50%;
  cursor: pointer;
}
.container .stop-button:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 41%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 55px;
  background: white;
  box-shadow: 23px 0 0 white;
}
.container .stop-button:hover {
  background: rgb(219, 0, 0);
}
.container #static {
  position: absolute;
  top: 50px;
  left: 53px;
  width: 530px;
  height: 400px;
  filter: grayscale(0.9);
  background-size: cover;
  pointer-events: none;
}
.container #tv {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}
.container .gif {
  position: absolute;
  top: 50px;
  left: 53px;
  width: 530px;
  height: 400px;
  background-position: center center;
  background-size: cover;
}
@keyframes credits-roll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}
.container #mp3_list {
  display: none;
  margin: 0;
  padding: 0 25px;
  position: absolute;
  top: 50px;
  left: 53px;
  width: 480px;
  height: 400px;
  overflow: hidden;
  font-size: 12px;
  background-color: #000;
  color: #999;
  text-align: center;
}
/* The fade at the top and bottom is black laid over the list, not a see-through mask, so nothing behind shows. */
.container #mp3_list::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#000, transparent 18%, transparent 82%, #000);
  pointer-events: none;
}
.container #mp3_list.active {
  display: block;
}
.container #mp3_list .credits-track {
  animation: credits-roll calc(var(--count, 58) * 0.6s) linear infinite;
}
.container #mp3_list .credits {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
.container #mp3_list li {
  display: block;
  line-height: 18px;
  font-size: 13px;
}
.container #mp3_list li a {
  text-decoration: none;
  color: inherit;
  padding: 2px;
}
.container #mp3_list li a:visited {
  color: inherit;
}
.container #mp3_list li a:hover {
  background-color: #aaa;
  color: #333;
}
.container #mp3_list_toggle {
  background: red;
  position: absolute;
  width: 22px;
  height: 22px;
  opacity: 0.35;
  top: 275px;
  right: 134px;
  border-radius: 50%;
  cursor: pointer;
  animation-name: pulse;
  animation-duration: 1s;
  animation-iteration-count: infinite;
}
.container #mp3_list_toggle.active {
  animation: none;
  background: green;
  opacity: 0.35;
}

.vertical-center {
  height: 100vh;
  display: flex;
  align-items: center;
}

#preload-01 {
  position: absolute;
  background-position: -9999px -9999px;
  background-repeat: no-repeat;
  height: 1px;
  width: 1px;
  top: 0;
  left: 0;
}
