html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  color: #eee;
  font-family: -apple-system, Helvetica, Arial, sans-serif;
  overflow: hidden;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

html:fullscreen,
html:-webkit-full-screen,
body.immersive {
  width: 100%;
  height: 100%;
  background: #000;
}

#bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.75);
  font-size: 14px;
}

#bar button {
  margin-left: 8px;
  padding: 6px 10px;
  border: 0;
  border-radius: 4px;
  background: #2d6cdf;
  color: #fff;
  font-size: 13px;
}

body.immersive #bar {
  display: none;
}

#stage {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  text-align: center;
}

body.immersive #stage {
  top: 0;
}

html:fullscreen #stage,
html:-webkit-full-screen #stage {
  top: 0;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  -webkit-transition: opacity 0.4s ease;
  transition: opacity 0.4s ease;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}

.screen.active {
  opacity: 1;
}

#empty {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin-top: -20px;
  color: #888;
  font-size: 18px;
}
