@font-face {
  font-family: Times;
  src: url(fonts/NimbusRoman-Regular.otf);
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: Times;
  src: url(fonts/NimbusRoman-Bold.otf);
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: Times;
  src: url(fonts/NimbusRoman-Italic.otf);
  font-weight: normal;
  font-style: italic;
}
@font-face {
  font-family: Times;
  src: url(fonts/NimbusRoman-BoldItalic.otf);
  font-weight: bold;
  font-style: italic;
}

body {
  margin: 0;
  padding: 0;
}

body {
  width: 100vw;
  height: 100vh;
  text-align: center;

  &:not([data-show=music]) #systems-container {
    display: none;
  }

  #systems-container {
    position: absolute;
    left: 0;
    top: 0;
    max-width: 100%;
    max-height: 100%;

    & > svg > svg {
      visibility: hidden;

      &:first-child {
        visibility: visible;
      }
    }
  }
}

.highlight {
  fill: #acf;
  stroke: none;
  opacity: 0;
}

/* Hide bar numbers */
.mNum {
  display: none;
}

#title-watermark {
  position: absolute;
  font-size: 15vw;
  color: #ddd;
  z-index: -10;
  text-align: right;
  width: calc(100vw - 2 * var(--padding));
  --padding: 1vw;
  padding: var(--padding);
  line-height: 1em;
}

body[data-music-state=playing] #title-watermark {
  display: none;
}

body:not(.conductor) #conductor-tools {
  display: none;
}

#conductor-tools {
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 0;
  padding: 0;
}

#start, #stop {
  display: none;
  right: 0;
  bottom: 0;
  padding: 1em;
  border: none;
  font-weight: bold;
  background: none;
  text-shadow: 1px 1px 2px white;
  --blink-opacity: 1;

  &:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1em;
    background-color: #05c;
    opacity: var(--blink-opacity);
  }
}

body.conductor.connected[data-music-state=ready] #start {
  display: inline;
}

body.conductor.connected[data-music-state=playing] #stop {
  display: inline;
}

body:not([data-show=instrument-picker]) #instrument-picker {
  display: none;
}

ul#instrument-picker {
  width: 100vw;
  margin: 0;
  padding: 0;

  & > li {
    border-radius: 1em;
    background-color: #05c;
    color: #fff;
    list-style-type: none;
    padding: .5em;
    margin: .5em;
  }
}

#share-qr {
  position: relative;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 50vh;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: contain;

  &:before {
    content: "Gib den Link weiter!";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
  }
}

#warning {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background-color: #fa0;
  margin: 0;
}

body[data-music-state=ready] #share-qr {
  position: fixed;
  width: 50vw;
  background-position: right bottom;

  &:before {
    left: 50%;
    width: 50%;
  }
}

body[data-music-state=playing] #share-qr {
  display: none;
}

@media (orientation: portrait) {
  body:not(.conductor):not([data-music-state=playing]) #use-landscape {
    display: inline;
  }
}

#use-landscape {
  display: none;
  width: 100%;
  background-color: #e99;
  font-size: 5vw;
}