body {
  margin: 0;
  padding: 0;
  font-family: 'Bebas Neue', sans-serif;
  background-color: #f5f5f5;
  text-align: center;
  overflow: hidden;
}

.start-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#envelope {
  width: 200px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
#envelope:hover {
  transform: scale(1.05);
}

.envelope-text {
  margin-top: 20px;
  font-size: 24px;
  color: #444;
  opacity: 0;
  transition: opacity 1s ease;
}
.envelope-text.visible {
  opacity: 1;
}

.hidden {
  display: none !important;
}

.library-screen {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.background-extension {
  position: absolute;
  top: 0;
  width: 800px; /* Passe an je nach Breite deiner Grafik */
  height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
  pointer-events: none; /* Damit sie nichts blockieren */
}

.background-extension.left {
  left: 0;
  background-image: url('images/IMG_0028.JPG'); /* <- dein Bildname hier */
  transform: scaleX(-1); /* horizontal gespiegelt */
  opacity: 0.5;
}

.background-extension.right {
  right: 0;
  background-image: url('images/IMG_0028.JPG'); /* gleiches Bild */
  transform: scaleX(-1); /* horizontal gespiegelt */
  opacity: 0.5;
}


.parallax-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  transition: transform 0.4s ease;
  transform-origin: top left;
  pointer-events: none;
}

.layer-background { z-index: 1; }
.layer-midground { z-index: 2; }
.layer-regal-ol { z-index: 3; }
.layer-foreground { z-index: 4; }



.hover-area {
  position: absolute;
  width: 50px;
  height: 50px;
  pointer-events: auto;
  z-index: 9999
}

.hover-area span {
  font-size: 40px;
  line-height: 40px;
  display: block;
  text-align: center;
  opacity: 0.2; /* leicht transparent */
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.hover-area span:hover {
  opacity: 1;
}


/* Popup-Styling */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  width: 280px;
  max-width: 90vw;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  text-align: center;
  font-size: 18px;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #888;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #333;
}


