@font-face {
  font-family: "AfacadFlux";
  src: url("AfacadFlux-VariableFont_slnt,wght.ttf") format("truetype");
}

:root {
  --blue: #c2dcf0; 
  --yellow: rgb(255,255,59);
}

body {
  background-color: var(--yellow);
  font-family: "AfacadFlux";
  text-align: center;
  margin: 0;
  padding: 0;
  font-size: 24px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-synthesis: none;
}

*{
  box-sizing: border-box;
}

/* TEXT */

#center h1 {
  font-family: "AfacadFlux";
  font-size: 12vw;
  margin: 0;
  position: absolute;
  width: 100%;
  line-height: 0.8;
  font-weight: 700;
  font-synthesis: none;
}

h1{
  font-size: 80px;
  margin: 0;
}

.text p.intro{
  font-style: italic;
  margin-bottom: 24px;
  font-size: 28px;
}

.bottom {
  opacity: 0.5;
  filter: blur(6px);
}

.top {
  color: black;
}

/* CENTERING */

#center {
  position: sticky;
  top: 0;
  margin-top: 30vh;
  z-index: 999;
}

.subtitle{
  position: absolute;
  top: calc(35vh + 12vw);
  text-align: center;
  width: 100%;
  font-size: 4vw;
  font-weight: bold;
}

.subtitle span{
  font-size: 3vw;
}

/* INFO TEXT */

#info {
  position: fixed;
  right: 14px;
  bottom: 14px;
  font-size: 14px;
}

#info h2{
  margin: 0;
  font-size: 18px;
}

video{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.content{
  padding-top: calc(65vh);
}

.map{
  width: 100%;
  height: auto;
  margin-bottom: 24px;
}

.flex{
  display: flex;
  justify-content: space-evenly;
  padding: 100px 0;
}

.flex-wrap{
  width: 45%;
  padding: 14px;
}

.flex-wrap img{
  width: 100%;
  height: auto;
}

h2{
  font-size: 48px; 
  text-align: left;
  line-height: 1.1;
  margin-top: 0;
}

p{
  text-align: left;
}

.sun{
  padding: 150px 14px 150px 14px;
  position: relative;
}

.sun:before{
  content: '';
  position: absolute;
  background-color: var(--blue);
  width: 150%;
  height: 100%;
  left: -25%;
  top: 0;
  transform: rotate(-3deg);
  z-index: -1;
}

.text{
  padding-bottom: 150px;
  padding-top: 100px;
}

.text p{
  max-width: 900px;
  margin: auto;
}

.text h2{
    text-align: center;
}

.programma{
  padding: 100px 14px;
}

.programma h2{
  /* text-align: center; */
  border-bottom: 2px solid black;
  width: 100%;
  margin: auto;
  margin-bottom: 24px;
  position: sticky;
  top: 0;
  z-index: 888;
  background-color: var(--yellow);
  padding-top: 7vw;
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
}


.items{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.programma-item{
  width: 31%;
  margin-bottom: 48px;
  padding: 24px;
  background-color: var(--blue);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  transition: all 0.4s ease;
  border-radius: 10px;
  border: 1px solid black;
}

.programma-item:hover{
  transform: rotate(-3deg);
}

.programma-item img{
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
}

.programma-item p{
  margin-top: 0;
}

h3{
  margin: 0;
  text-align: left;
  line-height: 1;
}

.partners-wrap h2{
  text-align: center;
}

.partners-wrap{
  background-image: url('./Achtergrond.png');
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  padding: 50px 0 0 0;
}

.buttons{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.buttons div{
  margin-left: 14px;
}

.button{
  padding: 5px 20px;
  border: 1px solid black;
  transition: all 0.4s ease;
  cursor: pointer;
  width: fit-content;
  text-align: right;
  color: inherit;
  text-decoration: none;
  font-size: 24px;
  margin-left: 14px;
  margin-top: 14px;
}

.button:hover{
  transform: rotate(3deg);
  background-color: var(--yellow);
}

.caption{
  font-size: 14px;
  margin-top: 0;
  font-style: italic;
  text-align: right;
  width: 100%;
  display: block;
  margin-bottom: 5px;
}

li{
  text-align: left;
}

.content .partners{
  width: 100%;
  height: auto;
  max-width: 100%;
}


/* POPUP */

#popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#popup-overlay.open {
  display: flex;
}

#popup {
  background: var(--yellow);
  border: 1px solid black;
  border-radius: 10px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

#popup-content .buttons{
  margin-top: 48px;
}

#popup-content .button{
  background-color: var(--blue);
  border: 1px solid black;
  margin-top: 24px;
  margin-bottom: 24px;
  display: block;
  margin-left: auto;
  margin-right: 0;
}

#popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  font-family: "AfacadFlux";
}

#popup-content img {
  width: 100%;
  height: auto;
  aspect-ratio: inherit;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
  max-height: 50vh;
}

#popup-content .caption {
  display: block;
  font-size: 13px;
  margin-bottom: 16px;
  opacity: 0.7;
}

#popup-content h3 {
  font-size: 28px;
}

.meer-info{
  display: none;
}

#popup-content .meer-info{
  display: block;
}

#popup-content .meer-info p, #popup-content p {
  margin-top: 0;
}

#popup-content .popup-buttons {
  margin-top: 16px;
}

@media screen and (max-width: 900px) {
  #center h1{
    font-size: 16vw;
  }

  h1{
    font-size: 48px;
  }

  .bottom{
    filter: blur(3px);
  }
  .flex{
    flex-direction: column;
    padding-top: 0;
  }

  .flex-wrap{
    width: 100%;
    padding: 0;
  }

  .items{
    flex-direction: column;
  }
  .programma-item{
    width: 100%;
  }
  .programma h2{
    width: calc(100% + 14px + 14px);
    margin-left: -14px;
    padding-top: 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .programma h2 span{
    margin-left: 0;
    transform: translateX(0);
  }

  .text p.intro{
    font-size: 24px;
  }

  .partners-wrap{
    padding: 10px 0 48px 0;
  }

  .programma h2 a{
    font-size: 18px;
    text-align: center;
    margin: auto;
    margin-bottom: 10px;
  }
  h2{
    font-size: 30px;
  }
  body{
    font-size: 20px;
    max-width: 100vw;
  }

  .button{
    font-size: 20px;
  }
  .map{
    padding-top: 100px;
  }

  .text{
    padding-left: 14px;
    padding-right: 14px;
  }
  .sun{
    background-color: var(--blue);
  }
  .sun:before{
    display: none;
  }

  #center{
    padding-top: 5px;
  }

  body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 200vh; /* important: extends beyond viewport */
  background-color: var(--yellow);
  z-index: -1;
}
}