
@font-face {
  font-family: 'Lexend';
  src: url('./assets/fonts/Lexend-Regular.ttf') format('truetype');
  font-weight: normal;
}

@font-face {
  font-family: 'Lexend';
  src: url('./assets/fonts/Lexend-Light.ttf') format('truetype');
  font-weight: light;
}

@font-face {
  font-family: 'Lexend';
  src: url('./assets/fonts/Lexend-Bold.ttf') format('truetype');
  font-weight: bold;
}

body{
  margin: 0;
  //background: radial-gradient(circle at top,#022771, #010017);
  background: black;
  font-family: 'Lexend';
  color: white;
}

nav{
  position: fixed;
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  padding: 0px 33px;
  width: 100%;
  justify-content: space-between;
  border-bottom: solid 0.5px rgb(255 255 255 / 38%);
}

#logo{
  width: 100px;
  object-fit: contain;
}

nav ul{
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
}

nav ul li{
  margin: 0 20px;
  cursor: pointer;
}

button{
  text-transform: uppercase;
  font-family: 'Lexend';
  color: white;
  background: linear-gradient( 125deg, #5ccbf5, #a05ffa);
  border:none;
  padding: 10px 20px;
  border-radius: 10em;
  box-shadow: 0 0 10px 1px #9a6df9;
  letter-spacing: 2px;
  cursor: pointer;
}


button.secondary {

  display: flex;
  align-items: center;
  margin: auto;
  max-width: 22em;
  position: relative;
  box-sizing: border-box;
  color: #FFF;
  background: #020d32;
  background-clip: padding-box;
  border: solid 2px transparent;
  border-radius: 4em;

}

.secondary button::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  margin: -2px;
  border-radius: inherit;
  background: linear-gradient( 125deg, #5ccbf5, #a05ffa);
  }

#menu{
  width: 30px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#menu span{
  width: 100%;
  height: 22%;
  box-sizing: border-box;
  padding: 1px 0;
  display: block;
  background: white;
  background-clip: content-box;
}

#menu span:last-of-type{
  width: 80%;
}

#textArea{
  height: 100vh;
  position: absolute;
  box-sizing: border-box;
  padding: 20vh 10px 10vh 10vw;
  text-shadow: 0 0 18px #5cc9ff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  top: 50%;
  transform: translateY(-50%);
  max-height: 950px;
}



#textArea section{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

}

#illumiFlare{
  width: 460px;
  pointer-events: none;
  user-select: none;
  /*transform: scale(1.4);*/
}

#illumiFlare img:not(:first-of-type){
  position: absolute;
}


#FlareLeft{
  top: -133px;
  left: -290px;
}

#FlareRight{
  top: -133px;
  left: 22px;
}

#feerie{
  margin-top: -20px;
}

#cavalia{
  width: 200px;
}

#cavalia + h3{margin-top: 0;}

h3{
  font-size: 2.3em;
  letter-spacing: 3px;
  font-weight: normal;
}

/*animation*/
.toAnim{
  transition: transform 0.3s, opacity 0.3s;
}

.step1,.step4, .step6{
  transform: scale(0);
  } /*logo*/

.step2,.step3,.step5{
  transform: translateY(20px);
  opacity: 0;
  } /*feerie de lumiere*/

.step2{ transition-delay: 0.3s; } /*Par les créateurs de*/
.step3{ transition-delay: 0.6s; } /*Par les créateurs de*/
.step4{ transition-delay: 0.8s; } /*Cavalia*/
.step5{ transition-delay: 1.0s; } /*dès SEPTEMBRE*/
.step6{ transition-delay: 1.1s; } /*boutton*/

.step1.active { transform: scale(1);  }
.step4.active, .step6.active{ transform: scale(1); }

.step2.active, .step3.active, .step5.active{
    transform: translateY(0);
    opacity: 1;
}

#people{ display: none; }

.flare{
  transform-origin: center;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-name: scaleFlare;
  mix-blend-mode: lighten;
  pointer-events: none;
}

.blast{
  top: -75px;
  left: -233px;
  transform: scale(0.6);
  z-index: -2;

  transform-origin: center;
  animation-duration: 2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-name: scaleBlast;
}

#FlareLeft{
  transform: scale(0.7);
}

#FlareRight{
  transform: scale(0.7);
  animation-delay: 0.3s;
}

#BlastBack{
  animation-delay: 0.7s;
}

@keyframes scaleFlare {
  to{ transform: scale(1.05); }
}

@keyframes scaleBlast {
  to{ transform: scale(0.5); }
}


@media only screen and (max-width: 400px){
  #textArea{
    padding: 42px 10px 2vh 10px;
    width: 100%;
    pointer-events: none;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;

  }

  h3{
    font-size: 2.1em;
  }

  #textArea h3{
    text-align: center;
  }

  #illumiFlare{
    width: 100vw;
    transform: scale(0.8) translate(-28px, 30px);
  }

  #feerie{
    font-size: 1.6em !important;
  }

  nav ul > li{
    display: none;
  }

  #people{
    display: block;
    position: fixed;
    z-index: 0;
    pointer-events: none;
    bottom: 40px;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
  }

  canvas{
    top: 0;
  }
}


.textureVideo{
  position: absolute;
  opacity: 0;
  top: 0;
  left: 0;
}
