html::before, body::before {
  pointer-events: none;
  content: ''; 
  position: absolute;
  inset: 0;
  z-index: -1; 

  background-image: url('data/drywall.jpg'); /* Relative or full URL */
  background-repeat: repeat;         /* Or 'repeat' if you want tiling */
  background-position: top center;      /* Or left/top/right as needed */
  background-attachment: scroll;        /* Makes the image scroll with content */
  background-size: auto;                /* Prevents stretching */
  margin: 0;
  padding: 0;

  filter: brightness(97%) sepia(0%) hue-rotate(200deg) saturate(50%);
}

body {
  margin: 0;
  padding: 0;
  height: auto;
  min-height: 100%;
  position: relative;

  padding: 40px;

  text-align: center;
  font-family: "Roboto", "Open Sans", sans-serif;
}

h1, h2, h3 {
  font-family: "Roboto";
  margin: 0;
}

p {
  font-family: "Open Sans";
  margin: 0;
}

a {
  color: black;
  text-decoration: underline;
}



.titleoverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  transition: opacity 0.6s ease;
}

.titleoverlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.backgroundphotos {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  filter: saturate(0) brightness(100%) sepia(7%) contrast(0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.background {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: white;
  z-index: -1;
}

.photo1 {
  position: absolute;
  top: calc(50vh - 220px);
  left: calc(50vw - 70px);
  transform: translate(-50%, -50%) scale(0.5);
  height: auto;
  width: auto; 
}

.photo2 {
  position: absolute;
  top: calc(50vh - 240px);
  left: calc(50vw + 400px);
  transform: translate(-50%, -50%) scale(0.5);
  height: auto;
  width: auto;  
}

.photo17 {
  position: absolute;
  top: calc(50vh + 170px);
  left: calc(50vw + 470px);
  transform: translate(-50%, -50%) scale(1);
  height: auto;
  width: auto;  
}

.photo18 {
  position: absolute;
  top: calc(50vh + 320px);
  left: calc(50vw - 40px);
  transform: translate(-50%, -50%) scale(0.6);
  height: auto;
  width: auto;  
}

.photo5 {
  position: absolute;
  top: calc(50vh + 15px);
  left: calc(50vw - 700px);
  transform: translate(-50%, -50%) scale(0.5);
  height: auto;
  width: auto;  
}

.photo23 {
  position: absolute;
  top: calc(50vh + 410px);
  left: calc(50vw - 500px);
  transform: translate(-50%, -50%) scale(1);
  height: auto;
  width: auto;  
}

.photo7 {
  position: absolute;
  top: calc(50vh - 380px);
  left: calc(50vw - 730px);
  transform: translate(-50%, -50%) scale(0.5);
  height: auto;
  width: auto;  
}

.photo8 {
  position: absolute;
  top: calc(50vh - 480px);
  left: calc(50vw + 50px);
  transform: translate(-50%, -50%) scale(0.5);
  height: auto;
  width: auto;  
}

.photo9 {
  position: absolute;
  top: calc(50vh + 620px);
  left: calc(50vw + 0px);
  transform: translate(-50%, -50%) scale(0.5);
  height: auto;
  width: auto;  
}

.photo10 {
  position: absolute;
  top: calc(50vh + 600px);
  left: calc(50vw + 630px);
  transform: translate(-50%, -50%) scale(0.5);
  height: auto;
  width: auto;  
}

.photo19 {
  position: absolute;
  top: calc(50vh + 360px);
  left: calc(50vw - 800px);
  transform: translate(-50%, -50%) scale(1);
  height: auto;
  width: auto;  
}

.photo21 {
  position: absolute;
  top: calc(50vh + 80px);
  left: calc(50vw + 930px);
  transform: translate(-50%, -50%) scale(0.8);
  height: auto;
  width: auto;  
}

.photo12 {
  position: absolute;
  top: calc(50vh - 400px);
  left: calc(50vw + 800px);
  transform: translate(-50%, -50%) scale(0.5);
  height: auto;
  width: auto;  
}

.photo16 {
  position: absolute;
  top: calc(50vh + 320px);
  left: calc(50vw - 1190px);
  transform: translate(-50%, -50%) scale(1);
  height: auto;
  width: auto;  
}

.titlecontent {
  position: relative;
  z-index: 1;
  background-color: white;
}

.title h2 {
  font-size: 2.25em;
  font-family: "Roboto", sans-serif;
  margin-bottom: 0;
}

.subtitle{
  margin-top: 10px;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.subtitle p{
  font-size: 1.5em;
  font-family: 'Open Sans', sans-serif;
}

.instruction p {
  margin-top: 20px;
  font-size: 1.5em;
  font-family: "Open Sans", sans-serif;
  color: #b0b0b0;
}



.headerbox {
  order: 0;
  margin-top: 0;
  margin-bottom: 40px;
}

.headerbox h1 {
  color: #333;
  margin-bottom: 10px;
}



.mapsection {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 275px);
  margin: 0;
  gap: 20px;
  padding-bottom: 20px;
}


.mapcontainer{
  flex: 3;
  height: 100%;
  border: 2px solid #ccc;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
  box-sizing: border-box;
}

#map {
  height: 100%;
}



.informationsection{
  flex: 2;
  gap: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  min-height: 0;          /* allow children to shrink/scroll */
}

.infoboxes {
  flex: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 20px;
}

.box{
  position: relative;
  background-color: rgba(255,255,255,0.2);

  padding: 14px;
  padding-top: 35px;
  padding-bottom: 35px;

  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);

  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  min-height: 0;          /* allow the body to shrink and scroll */
}

.box h2, .box p {
  color: black;
  text-shadow: 5px 5px 8px rgba(0,0,0,0.3);
}

.warinfobox, .sexviolenceinfobox {
  flex: 1;
  align-items: flex-start; /* 'top' is invalid; use flex-start */
  text-align: left;
  min-height: 0;          /* again, enable scrolling when needed */
}

.statsbox {
  flex: 1;
  display: flex;
  align-items: flex-start;
  text-align: left;
  align-self: flex-start;
  flex-direction: column;
  height: 100%;
}

.warinfotext, .sexviolencetext, .statstext{
  flex: 1 1 auto;         /* fill remaining space under the title */
  overflow-y: auto;       /* scroll if needed */
  overflow-x: visible;   /* let horizontal shadow spill out */
  padding-right: 8px;
  min-height: 0;          /* REQUIRED in flex to allow scrolling */
}


.slidercontainer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 1;
  margin: 30px auto;
}

#mySlider {
  width: 75%;
}

input[type="range"] {  
  accent-color: #041E42;
}



.aboutsection {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 75%;
  margin: auto;
  margin-top: 50px;
  padding: 0px auto;
}

.thanks, .contacts{
  flex: 1;
  align-items: top;
  text-align: left;
}

.citations{
  flex:2;
  align-items: top;
  text-align: left;
}

.pin {
  background-image: url(data/pinhead.jpg);
  background-position: center center;
  filter: contrast(30%) brightness(120%);

  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.4);
}

.top-left    { top: 14px; left: 14px; }
.top-right   { top: 14px; right: 14px; }
.bottom-left { bottom: 14px; left: 14px; }
.bottom-right{ bottom: 14px; right: 14px; }



.museum-marker-with-shadow {
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.4));
}


@media (max-width: 2000px) {
  h1 {
    font-size: 1.6em;
  }

  h2, h3 {
    font-size: 1.2em;
  }

  p, a {
    font-size: 0.8em;
  }
}

@media (orientation: portrait) {
  body {
    padding-left: 30px;
    padding-right: 30px;
  }

  .page {
    display: flex;
    flex-direction: column;
    gap: 0px;
    width: 100%;
  }

  .mainsection {
    display: contents;
  }

  .mapsection {
    display: contents;
  }

  .mapcontainer {
    order: 0;
    flex: none;
    height: calc((100vw - 60px) / 1.5);  /* or whatever size fits */
    width: 100%;
  }

  .slidercontainer {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 90%;
    margin: 30px auto;
  }

  #mySlider {
    flex: 1;
    min-width: 0;
  }

  .informationsection {
    order: 2;
    position: relative;
    width: 100%;
    max-height: calc((100vw - 60px) / 1); 
    align-items: stretch;
  }

  .infoboxes {
    height: auto;
  }

  .statsbox {
    height: calc((100vw - 60px) / 1);
  }

  .aboutsection {
    order: 3;
    margin-top: 50px;
    position: relative;
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }
}
