/*
    styles home page - only home page specific styling
*/

/* ## tijdelijk */
.home .site-inner {
  padding-top: 0px;
}

/* logo */
.title-area {
  position: absolute;
  top: calc(100vh - 180px);
  right: 4%;
  z-index: 3;
}
.site-title {margin:0;}
.header-image .site-title > a {
  background: url(../images/logo.png) no-repeat;
  background-color: rgba(255,255,255,0.8);
  background-size: contain;
  float: left;
  height: 180px;
  width: 150px;
}

/* ## sections */
#part2, #part3, #part4, #part5 {padding:0;}
#part5, #part6 {position:relative;}

/* ## header image = slides or scroll? */
.singlebackground, .singlebackground1200,.singlebackgroundtablet,.singlebackgroundmobile {height: 100vh;background-size: cover;background-repeat: no-repeat;background-position: center;position:relative;z-index:2;}
.singlebackground1200,.singlebackgroundtablet,.singlebackgroundmobile {display:none;}
.singlebackground,.singlebackground1200 { max-height: 1080px;background-attachment: fixed; }
.singlebackgroundtablet,.singlebackgroundmobile {background-attachment: scroll;}
.single .singlebackgroundmobile {height:512px;background-position: top;background-size: auto;}

.entry-title {position: absolute;text-indent: -100%;text-align: left;}

.header-intro, .forschung-intro { 
  position: absolute;
  background-color: #fff;
  padding: 50px 50px 50px 95px;
  display: block;
  color: #000;
  max-width: 50%;
  left: 0px;
  top: 0px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 9;
  height: 100%;
  overflow-y: scroll;
}

.header-intro.show, .researchproject.show .forschung-intro {
  transform: translateX(0);
}
.researchproject.show {z-index:11;}
.researchproject:nth-child(1) .vertical-button {z-index:12}

/* Research project container */
.researchproject {
  position: absolute;
  height: 100%;
  width: 100%;
}

/* Position each researchproject container specifically */
.researchproject:nth-child(1) {
  left: 0;
}

.researchproject:nth-child(2) {
  left: 70px;
}

.researchproject:nth-child(3) {
  left: 140px;
}

.researchproject:nth-child(4) {
  left: 210px;
}

.researchproject:nth-child(5) {
  left: 280px;
}

/* Container for all research projects to arrange them horizontally */
#part3 .singlebackground {
  display: flex;
  flex-wrap: nowrap; /* Keep all projects in one horizontal row */
  align-items: flex-start;
  justify-content: flex-start;
}

/* Ensure forschung-intro and vertical-button are positioned correctly within researchproject */
.researchproject .forschung-intro {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%; 
}

/* ## Vertical Button */
.vertical-button {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #fff;
  padding: 0 20px;
  height:100%;
  width: 70px;
  border-right: 1px solid var(--bijkleur);
}

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
  margin-bottom: 20px;
  margin-top: 20px;
}

.vertical-icon {
  margin-top: 20px;
}

.vertical-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.icon-open {
  display: block;
}

.icon-close {
  display: none;
}

.header-intro.show ~ .vertical-button .icon-open, .forschung-intro.show ~ .vertical-button .icon-open {
  display: none;
}

.header-intro.show ~ .vertical-button .icon-close, .forschung-intro.show ~ .vertical-button .icon-close {
  display: block;
}

/* ## titel op afbeeldingen */
.singlebackground .flexcontainer, #part5 .flexcontainer {position:absolute;bottom:0px;width:100%;}
.flexcontainer .naarpagina h2 {font-size: 32px;margin-bottom: 10px;position: absolute;bottom: 40px;right: 40px;z-index: 2;text-transform:uppercase;}

/* ## teller op datenbank */
/* voorstel kleiner: height:80px;width:200px; teller: font-size:30px */
.tellercontainer {position: absolute;left: 70px;top: 70px;background-color: var(--titles);height: 80px;width: 350px;border-radius: 50px;}
.teller {color: #fff;font-size: 32px;position: absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);width: 300px;text-align: center;}
.counter {
  animation-duration: 1s;
  animation-delay: 0s;
}
.counter:not(.is-visible) {
	visibility: hidden;
}
/* ## featured art works on homepage - nieuw voorstel n.a.v. overleg september*/
.flexcontainer.featuredworks {justify-content: space-between;max-width: 95%;margin: 0 auto;padding-bottom: 40px;}
.flexcontainer.featuredworks .catitem {width: 19%;margin:0;padding:10px 0;}
.flexcontainer.featuredworks .catitem .flexthumb {height: auto;overflow:unset;}
.flexcontainer.featuredworks .catitem .artbox {text-align: left;padding: 0 20px;}
.flexcontainer.featuredworks .catitem .artbox h4 {font-weight:700;}
.flexcontainer.featuredworks .catitem .artbox h6 {font-size:15px;}

/* ## part3 */
#part3 .singlebackground {background-color:#fff;border-top: 1px solid var(--bijkleur);border-bottom: 1px solid var(--bijkleur);}
.home-forschung-container{width:100%;height:100%;position: relative;display:none;}
.home-forschung-container:first-child {display:block;}
.singlebackground .flexcontainer.forschungnav {bottom: 52px;left:50%;transform: translate(-50%,0);width: 190px;background-color:#fff;z-index: 99;border-radius: 40px;}
.prevF .dashicons, .nextF .dashicons {vertical-align: middle;}
.part3-links {color:#fff;margin-left: 70px;
  padding-top: 70px;
  font-size: 30px;
  font-weight: 700;}
.part3-links .dashicons {font-size: 30px;
  position: relative;
  top: 10px;
  padding-right: 30px;}

/* ## part4 */
#part4 .singlebackground {background-color:#fff;border-top: 1px solid var(--bijkleur);border-bottom: 1px solid var(--bijkleur);}
.home-exhibition-container, .singlebackground .flexcontainer.home-exhibition-split, .home-exhibition-content {height:100%;}
.home-exhibition-container {position: relative;display:none;}
.home-exhibition-container:first-child {display:block;}
.singlebackground .flexcontainer.home-exhibition-split {width:80%;}
.postertext, .poster {margin:auto;}
.postertext.left{text-align: right;padding-right: 50px;}
.posterdiv {width:fit-content;}
.home-exhibition-poster, .home-exhibition-content {position:absolute;}
.home-exhibition-poster {width:fit-content;height:fit-content;display:block;}
.home-exhibition-poster img.attachment-large {max-height:80%;width:auto;position: relative;left: 50%;transform: translate(-50%,0);}
.home-exhibition-content {width:50%;left: 50%;transform: translate(-50%,0);display:none;padding: 32px;}
.home-exhibition-content .text {width:fit-content;position: relative;}
  /* ## triggers */
.change {position:absolute;width:30px;cursor:pointer;}
.turn {border-radius:50%;top: 20px;right: 20px;}
.close {right: -25px;top: -25px;}
.singlebackground .flexcontainer.slidernav {width: 300px;bottom: 10%;}
.singlebackground .flexcontainer.slidernav .previous, .singlebackground .flexcontainer.slidernav .next, .singlebackground .flexcontainer.forschungnav .prevF, .singlebackground .flexcontainer.forschungnav .nextF  {opacity:0.2;text-align: center;}
.singlebackground .flexcontainer.slidernav .previous.active, .singlebackground .flexcontainer.slidernav .next.active, .singlebackground .flexcontainer.forschungnav .prevF.active, .singlebackground .flexcontainer.forschungnav .nextF.active {opacity:1;cursor:pointer;}

/* ## part5 */
#mapwrap {
  width: 100%;
  height: 600px;
  height: 100vh;
  border: 1px solid #333;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#leafletmap {
  width: 100%;
  height: 600px;
  height: 100vh;
}

#toolbar {
  background: rgba(255, 255, 255, 1);
  width: 300px;
  height: 600px;
  height: 100vh;
  position: absolute;
  left: -300px;
  z-index: 500;
  transition: .5s left;
  padding: 20px;
  box-sizing: border-box;
}

#toolbar.open {
  left: 0;
  opacity: .95;
}

#toolbar .hamburger {
  height: 120px;
  width: 25px;
  background: var(--text);
  box-shadow: 1px 0 2px rgba(0, 0, 0, .3);
  position: absolute;
  right: -25px;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  border: 1px solid #333;
  cursor: pointer;
}

.hamburger span {
  color: #fff;
  display: inline-block;
  position: relative;
  transform: rotate(90deg);
  top: 44px;
  left: -40px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.5px;
}

#tourstops {
  overflow-y: scroll;
  max-height: 95vh;
}

#toolbar ul {
  margin: 0;
  padding: 0;
}

#toolbar li {
  list-style-type: none;
  border-bottom: 1px solid #ccc;
  padding: 6px 3px;
  cursor: pointer;
  font-size: 14px;
}

#toolbar li:hover {
  color: #666;
}

.notify-icon span{
  display: inline-block;
  border: 1px solid orange;
  border-radius: 50%;
  height: 24px; 
  width: 24px;
  animation: pulse .6s 4 forwards;
  transform-origin: center center;
}
@keyframes pulse{
  0%{
    transform: scale(5.5);
    opacity: .2;
  }
  50%{
    opacity: .8;
  }
  100%{
    transform: scale(.1);
    opacity: 1;
  }
}

/* ## part 6 */
.highlightstitle {background-color: var(--text);
  color: #fff;
  position: absolute;
  right: 20px;
  display: inline-block;
  top: 50%;
  width: 350px;
  padding: 20px;
  transform: translate(50%, -50%) rotate(90deg);text-align:center;font-size: 32px;
  font-weight: 300;}

/* # arrow down */
.arrow-down {top: 90vh;position: fixed;z-index: 9;background-color: #fff;width: 25px;height: 25px;border-radius: 50%;cursor: pointer;}
.arrow-down .dashicons-arrow-down-alt {position:relative;}