/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Sintony:wght@400;700&display=swap');

/* Base */
* {
  font-family: 'Sintony', sans-serif !important;
}

/* Title Bar - 50px hoch, schwarz transparent */
#titleBar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 50px;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  display: block;
}

/* CROSSING.Kunstraum - LINKS oben */
#titleBar h1,
#titleBar .sceneName {
  display: none !important;
}

#crossing-title {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: white;
  margin: 0;
}

/* Info Button - mit weißem Kreis, nach CROSSING.Kunstraum */
#info-button {
  position: absolute;
  left: 215px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 101;
}

#info-button img {
  width: 16px;
  height: 16px;
}

/* Fullscreen Button - OBEN RECHTS, KEIN Abstand */
#fullscreenToggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  background: rgba(129, 37, 52, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 101;
}

#fullscreenToggle img {
  width: 24px;
  height: 24px;
}

/* Music Toggle - direkt LINKS von Fullscreen */
#musicToggle {
  position: absolute;
  top: 0;
  right: 50px;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  background: rgba(129, 37, 52, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 101;
}

#musicToggle img {
  width: 24px;
  height: 24px;
}

/* Scene List Toggle - UNTER Band, links */
#sceneListToggle {
  position: absolute;
  top: 50px;
  left: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  background: rgba(129, 37, 52, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 102;
}

#sceneListToggle img {
  width: 24px;
  height: 24px;
}

/* Scene List Menu - klebt an Band */
#sceneList {
  position: absolute;
  top: 50px;
  left: 0;
  width: 220px;
  max-height: calc(100% - 50px);
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.7);
  padding-top: 45px;
  z-index: 99;
  display: none;
}

#sceneList.enabled {
  display: block;
}

#sceneList .scene {
  padding: 12px 15px;
  color: white;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sceneList .scene:hover {
  background: rgba(129, 37, 52, 0.5);
}

#sceneList .scene.current {
  background: rgba(129, 37, 52, 0.8);
}

/* View Name Box - unten links */
#view-name-box {
  position: fixed;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  z-index: 1000;
}

/* View Control Buttons - unten Mitte */
#viewControlButtons {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0;
  z-index: 999;
  margin: 0;
  padding: 0;
}

.viewControlButton {
  width: 40px;
  height: 40px;
  background: rgba(129, 37, 52, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.viewControlButton img {
  width: 24px;
  height: 24px;
}

/* Autorotate Button - rechts von View Controls */
#autorotateToggle {
  position: fixed;
  bottom: 0;
  left: calc(50% + 125px);
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  background: rgba(129, 37, 52, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
}

#autorotateToggle img {
  width: 24px;
  height: 24px;
}

/* Link Hotspots - transparenter Hintergrund */
.link-hotspot {
  background: none !important;
}

.link-hotspot-icon {
  transform: scale(0.8);
}

/* Info Hotspots */
.info-hotspot-header {
  background-color: rgba(129, 37, 52, 0.9);
}

/* Music Popup */
#music-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 10000;
  text-align: center;
}

#music-popup h3 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 16px;
}

#music-popup button {
  margin: 0 10px;
  padding: 10px 30px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
}

#music-popup .ok-btn {
  background-color: #812534;
  color: white;
  border: none;
}

#music-popup .cancel-btn {
  background-color: white;
  color: #333;
  border: 2px solid #ccc;
}

/* Info Popup */
#info-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 40px;
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 10001;
}

#info-popup h2 {
  margin: 0 0 20px 0;
  color: #812534;
  font-size: 24px;
}

#info-popup p {
  margin: 15px 0;
  color: #333;
  line-height: 1.6;
}

#info-popup a {
  color: #812534;
  text-decoration: none;
}

#info-popup a:hover {
  text-decoration: underline;
}

#info-popup .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 24px;
  color: #666;
  border: none;
  background: none;
}

#info-popup .close-btn:hover {
  color: #812534;
}
