
{% load static %}

@font-face {
font-family: "NeueMachina-Variable";
src: url("../fonts/NeueMachina-Variable.ttf") format("truetype");

}

/* ---------- Main layout ---------- */
main {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    margin-top:3vH;
    font-family: "NeueMachina-Variable",sans-serif;
}

h2 {
    font-size: 16px;
}

svg, svg * {
  -webkit-tap-highlight-color: transparent;
}

#portrait { display: none; }
#landscape { display: block; }

.content{
    min-height: 100vH;
    
}

.menue{font-family: "NeueMachina-Variable",sans-serif;}

/* ---------- Title ---------- */
.title {
    margin: auto;
    margin-top: 20px;
    text-align: center;
    font-family: "NeueMachina-Variable",sans-serif;
    font-size: 16px;
    opacity: 1;
    z-index: 999;
}

.image-wrapper {
  width: 100vw;
  overflow-x: hidden;
  position: relative;
}



/* ---------- Image container ---------- */
.image-container {
    position: relative;
    width: 100vW;         /* container width */
    height: auto;
    max-width: 100%;
    z-index: 2;
}

/* ---------- Background and Zoomed Images ---------- */
.bg-image,
.zoomed-image {
    transform-origin: top left;
    width: 100%;
    height: auto;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform-origin: top left;
    object-fit: contain;
    user-select: none;          /* Standard */
    -webkit-user-select: none;  /* Safari/Chrome */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* IE/Edge */
    -webkit-user-drag: none;    /* Prevent dragging the image */
    pointer-events: none;       /* Allow clicks but not selection */
    z-index:1;
}

.bg-image svg {
    z-index: 4;
    pointer-events: none;
}

.textbox{
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    overflow: auto;
    transform-origin: top left;
    background: #fbfbfb;
    border: 1px solid #000;
    box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.15);
    padding: 50px;
    font-size: 12px;
    z-index: 3;
    transition: transform 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
}

.description{
    font-style: normal;
    font-weight: 300;
    font-variation-settings: "wght" 300;
    font-size: 16px;
    line-height: 150%;
    color: #333;
}




.textbox-title{
    font-size: 18px;
    line-height: 150%;
}

.zoomed-image {
    opacity: 0;           /* hidden initially */
    pointer-events: none; /* allow clicks to pass through if needed */
}

/* Zoomed image crossfade & transition */
#zoomed-image {
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

/* Background image transition */
#bg-image {
  transition: opacity 0.6s ease;
}

/* ---------- SVG Hotspots ---------- */

svg path {
  pointer-events: all;
  fill: transparent !important;
}

/* Hide the styled layer initially */
.hover-zone {
  display: inline;
}

.hover-zone {
  display: inline;
  opacity: 1;
  /* transition: opacity 0.4s ease; */
}


/* Hotspot is always active but invisible */
.hotspot {
  fill: transparent;
  pointer-events: all;
  cursor: pointer;
  stroke: #ec664e;
  stroke-width: 3;
}



/* Show the real group when hovering the hotspot */
.hotspot:hover + .hover-zone {
  display: inline;
}


.reset-button{
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translate(-50%, 0);
    background-color: #fbfbfb;
    box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.15);
    height: 50px;
    width: 50px;
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    transition: all 0.5s 
    cubic-bezier(0.79, 0.14, 0.15, 0.86);
    cursor: pointer;
    transition: opacity 0.6s ease;

}

/* ---------- Background Images hidden class ---------- */
.hidden {
    display: none;
}



/* Container for the language switch */
.language-switch {
    position: fixed;       /* stays in place when scrolling */
    top: 20px;             /* distance from top */
    right: 20px;           /* distance from right */
    z-index: 100;          /* above most content */
    background-color: rgba(255, 255, 255, 0.8); /* optional semi-transparent background */
    padding: 5px 10px;
    font-size: 14px;
}

/* Style for the links */
.language-switch a {
    text-decoration: none;
    color: #333;
    margin: 0 5px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.language-switch a:hover {
    text-decoration: underline;
}

.language-switch a.active-lang {
    text-decoration: underline !important;
}

/* Upper-left corner button */
.top-left-button {
    position: fixed;       /* stays in place when scrolling */
    top: 20px;             /* distance from top */
    left: 20px;            /* distance from left */
    z-index: 100;          /* above most content */
    padding: 5px 10px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.top-left-button:hover {
    text-decoration: underline;

}

/* Upper-left corner button */
.about-button {
    position: fixed;       /* stays in place when scrolling */
    top: 60px;             /* distance from top */
    right: 20px;            /* distance from left */
    z-index: 100;          /* above most content */
    background-color: rgba(255, 255, 255, 0.8); /* semi-transparent background */
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* subtle shadow */
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
    display: none;
}

.about-button:hover {
    color: purple;
}



@media (hover: none) and (pointer: coarse) and (orientation: landscape) {

  .hover-zone {
    opacity: 1 !important; /* ensure visible */
    transition: opacity 0.6s ease; /* smooth fade-in/out */
  }

  .image-container{
    min-width: 100vW;
    position: relative;
  }

  .bg-image,
  .zoomed-image {
    top:-5vH;
  }

  main{
    overflow: visible !important;
    padding-top:10vH;
  }

  .hide-hover {
  opacity: 0 !important;
  }

  .reset-button{
    height: 80px;
    width: 80px;
    }


  .reset-button img{
    width:16px;
    height:auto;
    }

}



@media (hover: none) and (pointer: coarse) and (orientation: portrait) {
  #portrait { display: block; }
  #landscape { display: none; }

    .hover-zone {
    opacity: 1 !important; /* ensure visible */
    transition: opacity 0.6s ease; /* smooth fade-in/out */
  }

  .image-container{
    min-width: 100vW;
    position: relative;
    top:-5vH;
  }

  main{
    overflow: visible !important;
    padding-top:10vH;
  }

  .hide-hover {
  opacity: 0 !important;
  }
}



/* ---------- Responsive adjustments ---------- */
/*@media (max-width: 768px) {

    .title {
    z-index: 99;
    text-align: left;
    align-self: flex-start;
    margin: 0;
    font-size:14px;
    top: 28px;
    left: 20px !important;
    position: absolute;

}

}*/