* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: 'Courier New', Courier, monospace;
  color: #eaeaea;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
}

/* WebGL Fraktal-Hintergrund */
#glcanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Kamerabild - standardmaessig versteckt, gespiegelt */
#video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.invisible {
  display: none !important;
}
 
.visible {
  display: block !important;
}
 
#video.visible {
  opacity: 0.35;
}
 
#overlay.invisible {
  opacity: 0.0 !important; 
}

/* Skelett-Overlay */
#overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
  z-index: 2;
  pointer-events: none;
}

/* Titel-Overlay */
#overlay_title {
  padding: 50px;
  margin: 50px;
  background-color: #88888888; 

  border: 1px solid gold;
  position: absolute;
  inset: 0;
  text-align: center; 
  z-index: 3;
  pointer-events: none; 
}
#overlay_title > h1 { 
  background-color: #12345688; 
  display: block;
  font-family: sans-serif;
  font-weight: bold;
  filter: drop-shadow(16px 16px 8px); 
  text-align: center;  
  font-size: 7.5em;
}
#overlay_title > p { 
  background-color: #12345688; 
  display: block; 
  text-align: center;  
  padding: 25px;
  margin: 12.5px;
  font-size: 1.5em;
}
#message1,#message2 {
  display: none;
  position: absolute;  
  font-size:xx-large; 
  z-index: 3;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.45);
}

#hud {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.45);
  padding: 10px 14px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  font-size: 14px;
}

#status {
  opacity: 0.85;
}

#toggleCam, #toggleSkel{
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  transition: background 0.2s ease;
}

#toggleCam:hover , #toggleSkel:hover {
  background: rgba(255, 255, 255, 0.18);
}

#qualityWrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  opacity: 0.9;
}

#quality {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
}

#quality option {
  color: #000;
}
