@import url("https://use.typekit.net/sak6boi.css");
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500&display=swap');

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translate(0, 24px);
    clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0);
    clip-path: polygon(0% 0%, 100% 0%, 100% 110%, 0% 110%);
  }
}

@keyframes intro {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: translate(0, -100%);
    opacity: 0;
  }
}

body {
	font-family: "Roboto Mono";
	font-size: 18px;
  font-weight: 400;
	line-height: 1;
	background-color: #ffffff;
	color: #000000;
}

div.intro div.text {
  width: 80%;
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0 0 5vw 4vw;
  display: flex;
  flex-direction: column;
  justify-content:  flex-end;
  align-items: flex-start;
  animation: textReveal 0.75s 0.25s both cubic-bezier(0.65,0.05,0.36,1);
}

div.intro {
  display: none;
  position: fixed;
  background-color: #202020;
  width: 100vw;
  height: 100vh;
	z-index: 10;
  animation: intro 0.5s 2s cubic-bezier(0.65,0.05,0.36,1) both;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2vw;
  z-index: 100;
}

nav a {
  color: #ffffff;
  text-decoration: none;
}

nav a p:before {
  content: "";
  background-color: #ffffff;
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 0%;
  height: 2px;
  transform: translate(-50%, -50%);
  transition: width 0.5s;
}

nav a:hover p:before {
  width: 100%;
}

nav a h1 {
  font-size: 2em;
}

nav a p {
  font-weight: 500;
  position: relative;
  left: 15vw;
}

nav a.map {
  height: 38px;
  width: 50px;
}


section.map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #202020;
}

section.map img {
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  position: fixed;
  left: 25%;
  transform: translate(-70%);
}

div.infobox {
  position: fixed;
  bottom: 50px;
  right: 50px;
  width: 40vw;
  height: 19vw;
  background-color: #ffffff;
  padding: 2vw;
}

div.infobox h1 {
  font-size: 3.5vw;
  line-height: 1.2;
  color: #202020;
}

div.infobox h2 {
  position: absolute;
  bottom: 30px;
  left: 150px;
  font-size: 1vw;
  color: #202020;
}

a.dot {
  height: 3vh;
  width: 2.9vh;
  background-color: #202020;
  border: 0.4vh solid #ffffff;
  border-radius: 100%;
  position: fixed;
  top: 50%;
  left: 25%;
  transition: background-color 0.25s;
}

a.dot#dZwill {
  transform: translate(340%, -1270%);
}

a.dot#dBislich {
  transform: translate(240%, -790%);
}

a.dot#dClouds {
  transform: translate(0%, 0%);
}

a.dot#dKinz {
  transform: translate(0%, 320%);
}

a.dot#dKies {
  transform: translate(120%, 360%);
}

a.dot#dBlaustein {
  transform: translate(310%, 290%);
}

a.dot#dHambach {
  transform: translate(550%, 260%);
}

a.dot#dWurm {
  transform: translate(-200%, 370%);
}

a.dot#dBrand {
  transform: translate(-90%, 460%);
}

a.dot#dVenn {
  transform: translate(-100%, 650%);
}

a.dot#dDhunn {
  transform: translate(1150%, -220%);
}

a.dot#dKonigs {
  transform: translate(1050%, 50%);
}

a.dot#dWahner {
  transform: translate(1090%, 200%);
}

a.dot#dAhr {
  transform: translate(1000%, 700%);
}

a.dot#dGeier {
  transform: translate(1160%, 1300%);
}

main section {
  background-color: #202020;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
}

main {
  transition: transform 0.75s cubic-bezier(0.65,0.05,0.36,1);
}

main.moveout {
  transform: translate(-100%, 0);
}

main section div.imgcontainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

main section div.imgcontainer img {
  height: 100%;
  width: 100%;
  background-size: cover;
  object-fit: cover;
  background-position: center;
  background-repeat: no-repeat;
}

main section div.text {
  width: 80%;
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0 0 5vw 4vw;
  display: flex;
  flex-direction: column;
  justify-content:  flex-end;
  align-items: flex-start;
}

h1 {
  font-family: "bely-display";
	font-size: 5vw;
  color: #ffffff;
}

h2 {
	font-size: 1.2vw;
  color: #ffffff;
  margin-top: 3%;
  position: relative;
  left: 30%;
}

main section.in-view div.text {
  animation: textReveal 0.75s 0.5s both cubic-bezier(0.65,0.05,0.36,1);
}

div.cursor {
  width: 100px;
  height: 100px;
  border: 2px solid #ffffff;
  border-radius: 100px;
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-54%, -54%);
  z-index: 100;
  
  color: #ffffff;
  font-size: 0.8em;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

@media (pointer: coarse) {
  div.cursor {
    opacity: 0;
  }
}


@media (min-width: 900px) {
  html, body {
    height: 100%;
    overflow: hidden;
  }

  main {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
  }

  section {
    scroll-snap-align: start;
  }
}





@media (max-width: 1000px) {
  main section div.text {
    width: 80%;
    position: absolute;
    bottom: 100px;
    left: 0;
  }
 	
  div.infobox {
    position: fixed;
    bottom: 50px;
  	left: 50px;
  	width: 400px;
  	height: 190px;
  	padding: 25px;
	}

  div.infobox h1 {
    font-size: 30px;
  }

  div.infobox h2 {
    font-size: 14px;
    margin-top: 10px;
  }
  
  section.map img {
  	height: 60%;
    margin-top: 50px;
	}
  
  a.dot {
    height: 3vh;
    width: 3vh;
    top: 35%;
    left: 25%;
  }
  
  a.dot#dZwill {
    transform: translate(210%, -720%);
  }

  a.dot#dBislich {
    transform: translate(100%, -360%);
  }

  a.dot#dClouds {
    transform: translate(-10%, 50%);
  }

  a.dot#dKinz {
    transform: translate(40%, 240%);
  }

  a.dot#dKies {
    transform: translate(160%, 290%);
  }

  a.dot#dBlaustein {
    transform: translate(310%, 200%);
  }

  a.dot#dHambach {
    transform: translate(500%, 150%);
  }

  a.dot#dWurm {
    transform: translate(-160%, 280%);
  }

  a.dot#dBrand {
    transform: translate(-60%, 370%);
  }

  a.dot#dVenn {
    transform: translate(-40%, 530%);
  }

  a.dot#dDhunn {
    transform: translate(1090%, -220%);
  }

  a.dot#dKonigs {
    transform: translate(990%, 50%);
  }

  a.dot#dWahner {
    transform: translate(1030%, 200%);
  }

  a.dot#dAhr {
    transform: translate(940%, 530%);
  }

  a.dot#dGeier {
    transform: translate(1100%, 800%);
  }
 }

@media (max-width: 500px) {
  div.infobox {
    max-width: 90vw;
    height: 180px;
  	bottom: 5vw;
    left: 5vw;
    padding: 5vw;
	}
}

@media (max-width: 700px) {
  h1 {
    font-size: 34px;
    line-height: 1.1;
  }
  h2 {
    margin-top: 7%;
    font-size: 14px;
  }
  div.infobox h2 {
   	position: absolute;
    left: 5vw;
    bottom: 20px;
  }
  section.main div.text {
    width: 95%;
  	margin: 0 0 10vw 4vw;
  }
  nav {
    padding: 20px;
  }
  nav a p {
  	left: 0vw;
	}
}