/* Map container fixed size */
@font-face {
  font-family: Mozilla Headline; /* set name */
  src: url("/assets/Mozilla HeadlineHeadline-VariableFont_wdth,wght.ttf"); /* url of the font */
}
@font-face {
  font-family: "gotham";
  src: url("assets/gotham-book.otf") format("opentype");
  font-weight: 400;
}

@font-face {
  font-family: "gotham";
  src: url("assets/gotham-bold.otf") format("opentype");
  font-weight: 700;
}


html{
    font-family: Arial, Helvetica, sans-serif;
}
h1{
    font-family:  gotham;
    font-weight: 600;
}
h2{
    font-family:  gotham;
    font-weight: 600;
    font-size:1.8rem;
}
#map {  
    background: url("assets/mmap.png") no-repeat top left;  
    width: 2000px;  
    height: 1490px;  
    position: relative;
    margin: 0 auto; /* optional: center map horizontally */
}

#popupContent, #popupContent2{
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

#popupText{
    color: black;
    max-width: 250px;
    background-color: #fbe3f0;
}
#popupText2{
    color: black;
    max-width: 400px;
    background-color: #fbe3f0;
    overflow: scroll;
    height: 545px;
    padding:20px;
    border-radius: 0 20px 20px 20px;
}


/* Person 1 */
.person { 
    position: absolute;
    left: 1070px;
    top: 1230px;    /* px relative to map */
    width: 70px;  
    height: 200px;  
    background: url("assets/figur\ 21.png");  
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}

/* Person 2 */

.person2 { 
    left: 850px;
    top: 1170px;
    width: 70px;  
    height: 200px;  
    background: url("assets/figur\ 15.png");  
   
}
.person23 { 
    left: 750px;
    top: 1160px;
    width: 70px;  
    height: 200px;  
    background: url("assets/figur\ 12.png");  
   
}
.person3 { 
    left: 950px;
    top: 1180px;
    width: 80px;  
    height: 200px;  
    background: url("assets/figur\ 16.png");  
   
}
.person20 { 
    left: 1120px;   /* px relative to map */
    top: 1180px; 
    width: 65px;  
    height: 180px;  
    background: url("assets/figur\ 8.png");  
   
}
.person4 { 
    left: 300px;
    top: 1130px;
    width: 60px;  
    height: 170px;  
    background: url("assets/figur\ 6.png"); 
     
}
.person5 { 
    left: 220px;
    top: 1170px;
    width: 80px;  
    height: 170px;  
    background: url("assets/figur\ 20.png"); 
  
}
.person6 { 
    left: 390px;
    top: 1200px;
    width: 90px;  
    height: 195px;  
    background: url("assets/figur\ 17.png");
}
.person21 { 
    left: 500px;
    top: 1080px;
    width: 50px;  
    height: 175px;  
    background: url("assets/figur\ 3.png");
}
.person22 { 
    left: 160px;
    top: 1100px;
    width: 50px;  
    height: 175px;  
    background: url("assets/figur\ 2.png");
}
.person7 { 
    left: 620px;
    top: 450px;
    width: 50px;  
    height: 120px;  
    background: url("assets/figur\ 9.png");
    
}
.person8 { 
    left: 690px;
    top: 420px;
    width: 40px;  
    height: 120px;  
    background: url("assets/figur\ 8.png");
    
}
.person9 { 
    left: 750px;
    top: 450px;
    width: 50px;  
    height: 120px;  
    background: url("assets/figur\ 7.png");
    
}
.person19 { 
    left: 560px;
    top: 500px;
    width: 50px;  
    height: 140px;  
    background: url("assets/figur\ 4.png");

}
.person10 { 
    left: 1120px;
    top: 760px;
    width: 55px;  
    height: 160px;  
    background: url("assets/figur\ 3.png");
    
}
.person11 { 
    left: 1190px;
    top: 810px;
    width: 60px;  
    height: 160px;  
    background: url("assets/figur\ 11.png");

}
.person12 { 
    left: 1260px;
    top: 800px;
    width: 60px;  
    height: 160px;  
    background: url("assets/figur\ 10.png");
    
}
.person13 { 
    left: 980px;
    top: 540px;
    width:45px;  
    height: 140px;  
    background: url("assets/figur\ 11.png");
    
}
.person14 { 
    left:1050px;
    top: 550px;
    width: 55px;  
    height: 150px;  
    background: url("assets/figur\ 22.png");
    
}
.person15 { 
    left: 920px;
    top: 550px;
    width: 55px;  
    height: 140px;  
    background: url("assets/figur\ 15.png");

}
.person16 { 
    left: 520px;
    top: 690px;
    width: 70px;  
    height: 160px;  
    background: url("assets/figur\ 1.png");

}
.person17 { 
    left: 430px;
    top: 700px;
    width: 55px;  
    height: 160px;  
    background: url("assets/figur\ 18.png");

}
.person18 { 
    left: 320px;
    top: 700px;
    width: 70px;  
    height: 160px;  
    background: url("assets/figur\ 21.png");

}
.person24{
   
    left: 1650px;
    top: 1100px;
    width: 70px;  
    height: 200px;  
    background: url("assets/figur\ 15.png");  
}
.person25{
   
    left: 1500px;
    top: 1100px;
    width: 70px;  
    height: 200px;  
    background: url("assets/figur\ 10.png");  
}
.person26{
   
    left: 1750px;
    top: 780px;
    width: 60px;
  height: 160px;  
    background: url("assets/figur\ 2.png");  
}
.person27{
    left: 1650px;
    top: 780px;
    width: 60px;
  height: 160px;  
    background: url("assets/figur\ 3.png");  
}
.person28{
    left: 1550px;
    top: 780px;
    width: 60px;
  height: 160px;  
    background: url("assets/figur\ 18.png");  
}
.person29{
    left: 1850px;
    top: 780px;
    width: 60px;
  height: 160px;  
    background: url("assets/figur\ 20.png");  
}



.character, .character2{
 position: absolute !important;
  background-size: contain !important;
    background-repeat: no-repeat !important;
    cursor: pointer !important;

}

#videoModal, #videoModal2 {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 10000;

    width: 100%;
    height: 100vh; /* 🔥 THIS is missing */

    left: 0;
    top: 0;

    visibility: hidden;
    opacity: 0;

    background: rgba(0,0,0,0.6);
}


#popup {
    position: relative;
    background: black;
    padding: 20px;
    border-radius: 10px;

    max-width: 400px;   /* 👈 important */
}
#popup2{
      position: relative;
    background: black;
    padding: 20px;
    border-radius: 10px;
}

#videoPlayer, #videoPlayer2{
    width:300px;
}

/* close button */
#close, #close2{
    color:#ff5546;
    position:absolute;
    top:5px;
    right:10px;
    font-size:20px;
    cursor:pointer;
}


#menu {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
}

#menu button {
    padding: 5px 2px;
    background-color:grey;
    cursor: pointer;
    color:white;
}

/* Guidelines Popup */
#guidelinesModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#guidelinesBox {
    background: white;
    padding: 30px;
    width: 600px;
    border-radius: 10px;
    position: relative;
    font-family: Arial, Helvetica, sans-serif;
    max-height: 80vh;      /* maximale Höhe (80% vom Viewport) */
    overflow-y: auto;      /* vertikales Scrollen aktivieren */
}

#closeGuidelines {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}
h3{
    padding: 0;
    margin:15px 0 5px 0;
}
p{
    font-family: gotham;
    margin:2px 0 5px 0;
}
h2{
    margin: 30px 0 10px 0;
}
ul{
    margin: 5px 0 10px 0;
}
#videoFeed{
  height: 80vh;
    overflow-y: scroll;  
}
#videoFeed, #videoFeed2 {
    /*height: 80vh;*/
    /*overflow-y: scroll;*/
    scroll-snap-type: y mandatory;
}

.videoItem, .videoItem2{
    height: 80vh;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
}

.videoItem video {
    width: 100%;
    height: 100%;
    max-width:300px;
    object-fit: cover;
}


#videoFeed2 video {
    width: 100%;
    height: 100%;
    /*max-width:300px;*/
    object-fit: cover;
}

/* ===== BUTTONS ===== */
.legal-buttons {
  position: absolute;
  top: 1413px;
  left: 1700px;
  display: flex;
  gap: 10px;
  z-index: 999;
}
.info-buttons{
 position: absolute;
  top: 30px;
  left: 30px;
  display: flex;
  gap: 10px;
  z-index: 999
}
.info-buttons button{
    font-family: gotham;
  padding: 2px 10px;
  font-size: 1.2rem;
  cursor: pointer;
   background-color: #fbe3f0;
    border: none;
    color:#ff5546;
    border-radius: 12px;
}
.info-buttons button:hover {
background-color: #ff5546;
color:#fbe3f0;
}


.legal-buttons button {
    font-family:gotham;
  padding: 2px 10px;
  font-size: 1.2rem;
  cursor: pointer;
   background-color: #fbe3f0;
    border: none;
    color:#ff5546;
    border-radius: 12px;
}
.legal-buttons button:hover {
background-color:#ff5546;
color:#fbe3f0;
}

/* ===== MODAL ===== */
.modal-legal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background: rgba(0,0,0,0.8);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 1000;
}

/* popup box */
.modal-content-legal {
  background: white;

  width: 90%;
  max-width: 800px;

  max-height: 80vh;
  overflow-y: auto;

  padding: 30px;
  border-radius: 16px;

  position: relative;
}

/* close button */
.close-legal {
  position: absolute;
  top: 10px;
  right: 15px;

  font-size: 24px;
  cursor: pointer;
}



#popup2 {
    position: relative;
    background: black;
    padding: 20px;
    border-radius: 10px;

    max-width: 90vw;        /* limit to screen */
    max-height: 90vh;

    overflow-x: auto;       /* 🔥 horizontal scroll */
    overflow-y: hidden;
}

#popupContent2 {
    display: flex;
    flex-direction: row;
    gap: 20px;

    width: max-content;     /* 🔥 important: allow it to grow wider than screen */
}

#videoFeed2 video {
    width: 300px;          /* fixed width */
    height: 592px;         /* fixed height */

    object-fit: cover;

    flex-shrink: 0;        /* 🔥 prevents shrinking */
}
#popupText2 {
    width: 300px;
    height: 550px;

    background: #fbe3f0;
    color: black;
    padding: 20px;

    overflow-y: auto;      /* vertical scroll inside text */
    flex-shrink: 0;        /* 🔥 prevents shrinking */
}

#close2 {
    position: fixed;  /* Fixed to the viewport */
    top: 10px;        /* Distance from top */
    right: 10px;      /* Distance from right */

    font-size: 24px;
    color: #ff5546;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 10px;
    background-color: black;
    z-index: 10;      /* Ensures it stays above other content */
}

#close2:hover {
    color: #fbe3f0 !important;
}
#close:hover {
    color: #fbe3f0 !important;
}
.videoItem{
    max-height: 600px;
}
#videoFeed{
    max-height: 600px;
}
#popup{
    max-height: 600px;
}


.raamwerk-logo {
  width: 80px;
}

.legal-buttons {
  position: absolute;
  top: 1293px;
  left: 1810px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 999;
}

.legal-buttons button {
  font-family: gotham;
  padding: 2px 10px;
  font-size: 1.2rem;
  cursor: pointer;
  background-color: #fbe3f0;
  border: none;
  color: #ff5546;
  border-radius: 12px;
}


/* ===== SCROLLBAR ===== */

/* Chrome, Edge, Safari, Opera */
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background: #fbe3f0;
}

::-webkit-scrollbar-thumb {
  background: #ff5546;
  border-radius: 10px;
  border: 3px solid #fbe3f0;
}

::-webkit-scrollbar-thumb:hover {
  background: #e94335;
}


/* Firefox */
html {
  scrollbar-width: auto;
  scrollbar-color: #ff5546 #fbe3f0;
}



#popup {
    position: relative;
}

#scrollHint {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);

    background-color: #ff5546;
    color: white;

    font-family: gotham, sans-serif;
    font-size: 16px;

    padding: 8px 16px;
    border-radius: 20px;

    z-index: 1000;
    pointer-events: none;

    transition: opacity 0.4s ease;

    animation: scrollHintMove 1.2s ease-in-out infinite alternate;
}

@keyframes scrollHintMove {
    from {
        transform: translateX(-50%) translateY(0);
    }

    to {
        transform: translateX(-50%) translateY(6px);
    }
}