html, body {
  margin: 0;
  background: #131313;
  color: #A1A1A1;
  font: 10px/2em Roboto, sans-serif;
  min-height: 100vh;
  min-width: 100vw;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

header, main, footer {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

header {
  margin-top: 2rem;
}

header nav {
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  visibility: hidden;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 600px;
  height: 600px;
  top: 2rem;
  z-index: 1;
}

header nav a {
  width: 33%;
}

header nav a.backward, header nav a.forward {
  opacity: 0;
}

header nav a i {
  font-size: 12rem;
  color: rgba(222,222,222,.7);
}

header nav a.play i {
  color: rgba(222,222,222,.9);
}

header nav a:active i {
  color: rgba(255,255,255,1);
}

footer {
  margin: 4rem auto 1rem;
}

footer, footer a, footer a:visited, footer a:active {
  text-decoration: none;
  color: #777;
}

footer a:hover {
  color: #A1A1A1;
}

footer a:hover {
  color: #A1A1A1;
}

form {
  margin: 10px;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

form h1 {
  font-size: 14pt;
  line-height: 1.5;
}

form input {
  font-size: 14pt;
  margin: 10px;
  padding: 10px 20px;
  background: #A1A1A1;
  color: #333;
  border: 1px solid #333;
  border-radius: 7px;
  text-align: center;
  text-transform: uppercase;
}

form input[type=submit] {
  background: #333;
  color: #A1A1A1;
  border: 1px solid #444;
}

form em {
  color: red;
}

small {
  color: #555;
}

#cover {
  background: url(spinner.gif) no-repeat center;
}

#cover img {
  width: 100%;
  visibility: hidden;
}

#polkapocalypse {
  width: 100% !important;
}

#polkapocalypse::-webkit-media-controls-enclosure {
  background: none;
}

#polkapocalypse::-webkit-media-controls-panel {
  background: #131313;
}

#polkapocalypse::-webkit-media-controls-play-button,
#polkapocalypse::-webkit-media-controls-mute-button,
#polkapocalypse::-webkit-media-controls-overflow-button,
#polkapocalypse::-webkit-media-controls-rewind-button,
#polkapocalypse::-webkit-media-controls-return-to-realtime-button,
#polkapocalypse::-webkit-media-controls-toggle-closed-captions-button,
#polkapocalypse::-webkit-media-controls-timeline-container,
#polkapocalypse::-webkit-media-controls-current-time-display,
#polkapocalypse::-webkit-media-controls-time-remaining-display,
#polkapocalypse::-webkit-media-controls-timeline,
#polkapocalypse::-webkit-media-controls-volume-slider-container,
#polkapocalypse::-webkit-media-controls-volume-slider {
  filter: invert(70%);
  text-shadow: none;
}

#song {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  padding: 1rem;
  margin-bottom: 2rem;
}

/*
#playlist .polka {
  display: none;
}

#playlist .bits {
  display: none;
}

*/

#playlist .hidden {
  display: none;
}

#scroll-down-hint {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, rgba(19,19,19,0), rgba(19,19,19,1));
}

#scroll-down-hint a {
  display: block;
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  background: linear-gradient(to bottom, rgba(19,19,19,0), rgba(19,19,19,1));
}

#scroll-down-hint a i {
  font-size: 3rem;
  color: #A1A1A1;
  padding: 0.5em;
}

main nav {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

main nav {
  font-size: 3rem;
}

main nav a {
  background: #333;
  border-radius: 50%;
  width: 2em;
  height: 2em;
  margin: 0 2rem;
}

main nav a i {
  font-size: 1em;
  color: #A1A1A1;
  padding: 0.5em;
}

dialog {
  max-width: 567px !important;
  background: rgba(0, 0, 0, 0.7) !important;
  font-size: 1.3rem;
  color: #A1A1A1;
  border: 1px solid #777;
}

dialog .close-modal {
  border: 2px solid #A1A1A1;
  border-radius: 50%;
}

dialog hr {
  background: none;
  border-top: 0;
  border-bottom: 1px solid #777;
  margin: 2rem 0;
}

dialog h1, dialog h2, dialog h3 {
  padding: 0;
  font-weight: normal;
  line-height: 2;
}

dialog h1 i, dialog h2 i, dialog h3 i {
  padding-right: 0.5rem;
}

dialog h1 {
  font-size: 2rem;
  margin: 1rem 0;
}

dialog h2 {
  font-size: 1.5rem;
  margin: 0;
}

dialog h2 span {
  padding-left: 0.5rem;
  color: #777;
}

dialog h3 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
}

dialog a, a:active, a:visited {
  color: #DDD;
  text-decoration: none;
}

dialog a:hover {
  color: #FFF;
}

dialog ol {
  margin: 0;
  padding: 0;
}

dialog li:before {
  font-family: 'FontAwesome';
  content: '\f017';
}

dialog li {
  list-style-type: none;
  padding-left: 8rem ;
  text-indent: -8rem ;
  line-height: 1.5;
  margin: 1rem 0;
}

dialog li > a:first-child {
  position: relative;
  left: -1rem;
  padding-left: 1.5rem;
}

dialog li b {
  position: relative;
  left: -1rem;
  text-indent: 1rem;
  font-weight: normal;
}

dialog li em {
  font-style: italic;
  color: #BBB;
}

.video nav,
.video #polkapocalypse,
.video #scroll-down-hint {
  display: none !important;
}

.video #song {
  font-size: 2rem;
}

.overlay {
  display: none;
  position: fixed;
  z-index: 99;
  top: 0;
  width: 100%;
  height: 100%;
}

@media only screen and (max-width: 600px) {

  html, body {
    display: block;
  }

  header, main, footer {
    width: 100%;
    margin: 0;
  }

  header nav {
    width: 100vw;
    height: 100vw;
    top: 0;
  }

  header nav a i {
    font-size: 20vw;
  }

  footer {
    margin-top: 3rem;
  }

  footer span {
    display: block;
  }

  form {
    vertical-align: top;
  }

  form h1:first-child {
    padding-top: 42px;
  }

  dialog {
    width: 100% !important;
  }

  dialog li {
    font-size: 1.1rem;
  }

}

