:root{
    --color1: #000000;
    --white: #ffffff;
    --timelineHeight: 30px;
    --houseSize: 30px;
    --bgColor: rgb(244, 244, 244);
}

@font-face {
  font-family: Volkswagen;
  src: url(fonts/Volkswagen-Serial-Light.ttf);
}

@font-face {
  font-family: Times;
  src: url(fonts/Times.ttf);
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    width: 88%;
  }

  to {
    opacity: 1;
    width: 100%;
  }
}

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body{
  overflow: hidden;
  user-select: none;
  background-color: var(--bgColor);
}

canvas {
  display: block;
  pointer-events: auto;
}

.smallTitle{
  font-family: Volkswagen;
    font-size: 16px;
}

p{
  font-family: Volkswagen;
  font-size: 20px;
}

.nav{
  height: 120px;
  width: 80px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 8;

  -webkit-user-select: none;
  user-select: none;
  pointer-events: all;
  
}

.navContainer{
  width: 100vw;
  height: 100vh;
  z-index: 8;

  position: absolute;
  display:flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  pointer-events: none;
}



.calqueButtonsContainer{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.navBg{
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
  filter: blur(16px);
  background-color: var(--bgColor);
  z-index: 0;
}

.calqueButton{
  font-size: 12pt;
  font-family: 'Times New Roman', Times, serif;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  text-align: center;
  margin-top: 3px;
  margin-bottom: 3px;
  color: #ACACAC;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: all;
}

.calqueButton:hover {
  letter-spacing: 0.2rem;
}

.yearButtonsContainer{
  display: flex;
  position: absolute;
  bottom: 0px;
  width: 100vw;
  justify-content: space-between;
}

.yearButton {
   
  width: 100%;
  height: 30px;

  box-sizing: border-box;
  border: 1px solid black;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bgColor);

}

.yearButton:hover {
  border: 3px solid black;
}

.active{
  color: black;
  transition: all 0.2s ease-in-out;
}

.active .smallTitle{
  color: var(--bgColor);
}

.textContainer{
  position:absolute;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.paragrapheContainer{
  height: 76px;
  width: 600px;
  border: 1px solid black;
  background-color: #0000000d;
  display:flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.timeline{
  position: absolute;
  bottom: var(--timelineHeight);
  left: 0;

  display: flex;

  transition: left 5s ease-in-out;
  z-index: 2001;
  user-select: none;
}

.timelineDate{
  font-family: 'Times New Roman', Times, serif;
  font-size: 14pt;
  padding: 0;
  margin:0;
  color: #ACACAC;
  transition: color 0.3s ease-in;
}

.dateLine{
  position: absolute;
  left: calc(100vw/2);
  bottom: 0;
  height: calc(var(--timelineHeight) - 5px);
  border: 0.5px solid #000000;
  z-index: 2001;
}


.timelineButton{
  cursor: pointer;
  z-index: 8;
  width: 80px;
  height: 40px;

  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.15;
  transition: all 0.2s ease-in-out;
  pointer-events: none;

  margin-top: 40px;
  position:relative;
}

.timelineButtonBg{
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--bgColor);
  filter: blur(6px);
  z-index: 7;
}


.timelineButton:hover svg path {
  fill: var(--bgColor);
}

.timelineButton svg{
  margin-left: 2px;
}

.timelineButtonContainer{
  position: absolute;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}

.timelineButtonArrow{
  padding: 0;
  margin: 0;
  z-index: 8;
  font-size: 12pt;
  font-family: 'Times New Roman', Times, serif;
  cursor: pointer;
  user-select: none;
  color: #ACACAC;
  transition: all 0.4s ease-in-out;
  pointer-events: all;
}

.timelineButton:hover .timelineButtonArrow{
  color: black;
  letter-spacing: 0.2rem;
}

.timelineBg{
  position: fixed;
  bottom: -40px;
  left: -40px;
  width: calc(100vw + 80px);
  height: 130px;
  filter: blur(16px);
  background-color: var(--bgColor);
  z-index: 2000;
  pointer-events: none;
}

main{
  height: 100%;
  width:100%;
}

.mainTitle{
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Times New Roman', Times, serif;
  font-size: 14pt;
  color: black;
  position: absolute;

  background-color: var(--bgColor);
  z-index: 20;
}

.mainTitleText{
  opacity: 0;
  padding-bottom: 100px;
}

.overlay{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bgColor);

  display: block;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  overflow: hidden; /* prevent oversized children from enlarging page on mobile */
}

.overlay-text{
  padding: 80px;
  padding-bottom: 20px;
  line-height: 102%;
  font-size: 40pt;
  width: 36%;
  text-align: center;
  margin: 0;
  pointer-events: none;
}

.overlayGradient {
  z-index: 12;
}

.transitionText{
  height: 100dvh; /* Use dynamic viewport on mobile */
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;

  /* Enable smooth, native scrolling on mobile */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.treeImageButton {
  position: absolute;
  top: 20px;
  width: auto;
  cursor: pointer;
  transition: padding 0.2s ease-in-out;
  display: none;
}
.treeNameText{
  font-size: 12pt;
  font-family: 'Times New Roman', Times, serif;
  padding: 0;
  margin: 0;
  text-align: center;

  background-color: rgb(255, 251, 217);
  border: 1px solid black;
  box-shadow: 0 4px 6px 0 rgba(163, 163, 163, 0.2), 0 6px 20px 0 rgba(157, 157, 157, 0.19);
  padding: 3px 10px 3px 10px;

  transition: padding 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.treeImage {
  position: relative;
  width: 0px;
  box-shadow: 0 4px 6px 0 rgba(163, 163, 163, 0.2), 0 6px 20px 0 rgba(157, 157, 157, 0.19);
  transition: all 0.2s ease-in-out;
}

.treeImageButton:hover p{
 background-color: black;
 color: rgb(255, 251, 217);
}

.treeImageOpen {
  display: block;
  width: 200px;
}

.treeButtonOpen {
  display: block;
}

.treeButtonOpen .treeImage{
  width: 200px;
}

.treeButtonOpen .treeNameText {
  display:none;
}

.treeButtonClose {
  display: none;
}

.treeButtonTemplate {
  display: none;
}


.lottieContainer{
  position: relative;
  width: 70vw;
  height: 93vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding-bottom: 200px;
}

.lottie{
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0;
}

.solitudes{
  width: 10%;
  position: absolute;
  z-index: 5;
}

.nextButton{
  padding-bottom: 100px;
  pointer-events: all;
}

.nextButtonText{
  padding: 5px 10px 5px 10px;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  text-decoration: none;
  color: #ACACAC;
  font-size: 30pt;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nextButtonText:hover {
  color: rgb(0, 0, 0);
  letter-spacing: 0.2rem;
}

.riverVideoContainer{
  position: absolute;
  top:0;
  left:0;
  width: 100vw;
  height: 100vh;
  display:none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: -2;
}

.riverVideo{
  width: 100%;
  height: auto;
  object-fit: cover;
}

.verdureImg{
  position: absolute;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  aspect-ratio: 1/1;
  display: none;
  pointer-events: none;
  z-index: -1;
}


.maison{
  background-color: rgb(255, 255, 255);
  box-shadow: 0 4px 6px 0 rgba(93, 93, 93, 0.513), 0 6px 20px 0 rgba(157, 157, 157, 0.19);
  z-index: 4;
  transition: all 0.5s ease-in-out;
  width: 0px;
  height: 0px;
}

.maison {
  position: absolute;
  background-color: rgb(255, 255, 255);
    box-shadow: 0 4px 6px 0 rgba(93, 93, 93, 0.513), 0 6px 20px 0 rgba(157, 157, 157, 0.19);

  width: var(--houseSize);
  height: var(--houseSize);

  transform: scale(0);
  transition: transform 0.8s ease-out;
}

.maison.appear {
  transform: scale(1);
}

.mapImageContainer{
  position: absolute;
  top: -25vh;
  left: -25vw;
  width: 150vw;
  height: 150vh;
  overflow: hidden;
  pointer-events: none;
  display: none;
  justify-content: center;
  align-items: center;
}

.mapImage{
  width: 80%;
  height: auto;
  object-fit: cover;
}

.relief {
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
  z-index: -3;
}

.foret{
  z-index: 5;
}

.racinesContainer{
  display:none;
  position: absolute;

  top: 20px;
  width: 34%;
  height: auto;
  left: 20%;
  z-index: -2;
}

.racinesImage{
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.credits{
  position: absolute;
  bottom: 10px;
  right: 30px;
  
  
  color: #ACACAC;
  z-index: 2001;
  opacity: 0;
  transition: opacity 3s ease-in-out;
  pointer-events: none;
}

.credits p{
  font-size: 14pt;
  font-family: 'Times New Roman', Times, serif;
}

.credits a{
  color: #ACACAC;
  transition: all 0.3s ease-in-out;
  pointer-events: all;
  text-decoration: none;
}

.credits a:hover{
  color: black;
  letter-spacing: 0.2rem;
}


@media only screen and (max-width: 768px) {
  body{
    overflow: hidden;
    width: 100vw;
  }
  .overlay-text{
    font-size: 24pt;
    width: 80%;
  }

    .timelineDate {
      font-size: 12pt;
    }

    .nextButtonText {
      font-size: 24pt;
    }

    .riverVideo{
      width: auto;
      height: auto;
    }

    .credits{
      width: 100vw;
      top: 10px;
      left: 0;
      text-align: center;

     
      justify-content: center;
    }

    .credits p{
      font-size: 12pt;
    }

    .mapImageContainer{
      width: 300vw;
      left: -120vw;
    }

    .lottieContainer{
      width: 300vw;
    }

    .lottie{
      height: auto;
      width: 100%;
    }

    .racinesContainer{
      top: 20px;
      width: 70%;
      left: 5%;
    }
}