footer {
  flex-shrink: 0;
  margin-top: 5px;
}

.footer {
  display: flex;
  justify-content: space-around;
  position: relative;
  bottom: 4px;
  font-size: 12px;
  color: #e349a9;
  padding: 10px 0; /* etwas Polsterung für den Footer */
}

.line {
  position: absolute;
  top: 0;
  left: 0;
  width: calc((100% / 3 + 200px) / 2); /* bis zur Mitte zwischen 1 und 2 */
  height: 10px;
}

main {
  flex: 1 0 auto; /* Main füllt den verfügbaren Raum flexibel */
  margin-bottom: 4px; /* Kleiner Abstand zum Footer */
}

.buttons {
  width: 237px;
  height: 388px;
  top: 10px;
  left: 10px;
  position: absolute;
  align-content: center;
  text-align: center;
  font-size: 20px;
  padding: 2px;
  color: #8c6dab;
  z-index: 10;
  pointer-events: none;
}

.subButton{
        top: 10px;
        left: 10px;
        position: absolute;
        align-content: center;
        text-align: center;
        font-size: 20px;
        padding: 2px;
        z-index: 12;
        pointer-events: all;
        opacity: 0;
        transition: opacity 0.4s ease;
      }

body.dark .buttons,
body.dark #B_dnd,
body.dark #B_shrines,
body.dark #B_home,
body.dark #B_art,
body.dark #B_ocs,
body.dark #B_guestbook,
body.dark #B_links {
  color: #ffec9d;
  transition: color 0.6s ease;
}

body.dark #B_home,
body.dark #B_dnd,
body.dark #B_art,
body.dark #B_ocs,
body.dark #B_guestbook,
body.dark #B_shrines,
body.dark #B_links {
  transition: transform 0.3s ease;
  filter: drop-shadow(2px 2px 1px rgba(42, 15, 97, 0.27));
}

#B_home,
#B_dnd,
#B_art,
#B_ocs,
#B_guestbook,
#B_shrines,
#B_links {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
  filter: drop-shadow(2px 2px 1px rgba(119, 75, 149, 0.32));
  pointer-events: all;
}

#B_home:hover,
#B_dnd:hover,
#B_art:hover,
#B_ocs:hover,
#B_guestbook:hover,
#B_shrines:hover,
#B_links:hover {
  transform: scale(1.2) rotate(5deg);
}

#B_home {
  font-size: 25px;
  color: #845f3b;
  width: 80px;
  height: 70px;
  top: 12px;
  left: 155px;
  rotate: -8deg;
}

#B_dnd {
  color: aliceblue;
  font-size: 35px;
  width: 90px;
  height: 75px;
  top: -108px;
  left: 35px;
  rotate: -14deg;
}

#B_art {
  font-size: 40px;
  width: 77px;
  height: 64px;
  top: -154px;
  left: 115px;
  rotate: 14deg;
}

#B_ocs {
  font-size: 25px;
  color: #fff9f1;
  width: 84px;
  height: 80px;
  top: 45px;
  left: 58px;
  rotate: 8deg;
}

#B_guestbook {
  color: #976187;
  width: 63px;
  height: 95px;
  top: -175px;
  left: 41px;
  rotate: -12deg;
}

#B_shrines {
  color: antiquewhite;
  width: 80px;
  height: 61px;
  top: -28px;
  left: 66px;
  rotate: 9deg;
}

#B_links {
  width: 57px;
  height: 64px;
  top: -132px;
  left: 58px;
  rotate: -4deg;
}

#B_about {
  top: 88px;
  left:227px;
  rotate: 3deg;
   width: 70px;
  height: 70px;
}


#darkmode {
  position: absolute;
  background-color: rgb(206, 197, 179);
  width: 80px;
  height: 80px;
}

.B_darkmode {
  width: 90px;
  height: 50px;
  position: absolute;
  top: 385px;
  left: 14px;
  cursor: pointer;
  transition: transform 0.5s ease;
  z-index: 15;
  pointer-events: all;
}

.B_darkmode:hover {
  transform: scale(1.2);
}

.flip-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.flipper {
  width: 100%;
  height: 100%;
  position: absolute;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

body.dark .flipper {
  transform: rotateX(180deg);
}

.front,
.back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.front img,
.back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.back {
  transform: rotateX(180deg);
}

#content {
  top: 0px;
  left: 0px;
  position: relative;
  transition: none; /* Animationen steuern wir per JS */
  overflow: visible;
}

.parallax-blur-out {
  animation: parallaxBlurOut 0.5s forwards;
}

.parallax-blur-in {
  animation: parallaxBlurIn 0.5s forwards;
}

@keyframes parallaxBlurOut {
  0% {
    transform: translateY(0);
    filter: blur(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-20px);
    filter: blur(5px);
    opacity: 0;
  }
}

@keyframes parallaxBlurIn {
  0% {
    transform: translateY(20px);
    filter: blur(5px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    filter: blur(0);
    opacity: 1;
  }
}

.active-indicator {
  position: absolute;
  pointer-events: none;
  z-index: 10000;
}

#encircle {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
}

path.line {
  stroke-width: 2px;
  stroke: currentColor;
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: dash 0.7s ease-in forwards;
  filter: url(#handdrawn);
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

.navigation {
  position: absolute;
}

#toTopBtn {
  position: fixed;
  bottom: 13px;
  right: 38px;
  padding: 10px 15px;
  width: 120px;
  font-size: 16px;
  font-family: inherit;
  background-color: transparent;
  color: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

#toTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .navigation {
    transform: scale(0.8);
    transform-origin: top left;
    margin-top: -10px; /* optional, um den Versatz auszugleichen */
    margin-left: -5px;
  }

  .B_shrines {
    left: 8px;
  }

  .B_links {
    left: 42px;
  }

  .B_darkmode {
    left: 14px;
  }
}
