@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700&display=swap");
/*  CSS */
/* Structure */
html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

html {
  padding: 0;
  margin: 0;
}

body {
  background: #112e40;
  padding: 0;
  margin: 0;
  font-size: 62.5%;
}

section,
h2 {
  padding: 0;
  margin: 0;
}

h2 {
  color: #f5f5f5;
  font-family: "Syne", sans-serif;
  padding: 0;
  margin: 0;
  -webkit-transform-origin: center center;
  transform-origin: center center;
}

/* container */
.scene,
#foot {
  min-height: 100vh;
  width: 100%;
  position: relative;
  padding: 0;
  top: -1px;
  /* Glitch border pin fix */
  margin: 0;
  z-index: 5;
}

.scene .sceneContainer,
#foot .sceneContainer {
  max-width: 70%;
  margin: 0 auto;
  min-height: 100vh;
  padding: 5% 0;
  text-align: center;
}

.scene .sceneContainer h2,
#foot .sceneContainer h2 {
  display: inline-block;
  font-size: 2.5rem;
  margin: 0 auto 3rem auto;
}

/* SCene */
#scene1 {
  background: #112e40;
}

#scene2 {
  z-index: 4;
  position: relative;
  background: -webkit-gradient(
    linear,
    left bottom,
    left top,
    from(#188182),
    to(#147180)
  );
  background: linear-gradient(0deg, #188182 0%, #147180 100%);
}

#scene2::before {
  content: "";
  position: absolute;
  top: -1px;
  /* Glitch border pin fix */
  left: 0;
  right: 0;
  bottom: 0;
  background: url(img/wave1.svg) 0 0 no-repeat;
}

#foot {
  background: #112e40;
}

/* PARALLAX */
.parallaxContainer {
  position: relative;
  width: 100%;
  left: 0;
  top: 0;
  height: 70vh;
}

.parallaxContainer .layer {
  width: 100%;
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  top: 0;
  overflow-x: hidden;
  height: 70vh;
  background-size: 150% auto;
  /* Mobile */
  background-repeat: no-repeat;
  background-position: bottom left;
  /* will-change: transform; */
}

#introParallax .layer-1 {
  background-image: url(img/intro1.jpg);
  background-size: cover;
}

#introParallax .layer-2 {
  background-image: url(img/intro2.png);
  background-size: cover;
}

#introParallax .layer-3 {
  background-image: url(img/intro3.png);
}

#introParallax .layer-4 {
  background-image: url(img/intro5.png);
}

#introParallax .layer-5 {
  background-image: url(img/intro4.png);
  background-position: bottom right;
}

#introParallax .layer-6 {
  background-image: url(img/introtop.svg);
}

/* SVG inside parallax */
.layerscene {
  width: 100%;
  position: absolute;
  z-index: 100;
}

.layerscene svg {
  width: 150%;
  /* Mobile */
  display: block;
}

.layerscene.layerBottom {
  bottom: 0;
  left: 0;
}

.layerscene.layerTop {
  top: 0;
  left: 0;
}

.layerscene.layerVert {
  height: 80%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.layerscene h1 {
  font-size: 4rem;
  color: rgba(245, 245, 245, 0.6);
  font-family: "Syne", sans-serif;
}

@media only screen and (min-width: 768px) {
  .parallaxContainer {
    height: 100vh;
  }
  .parallaxContainer .layer {
    height: 100vh;
    background-size: 100% auto;
    /* Desktop */
    /* will-change: transform; */
  }
  .layerscene svg {
    width: 100%;
    /* Desktop */
    display: block;
  }
  .layerscene h1 {
    font-size: 8rem;
  }
}

/* CSS anim */
/* Plante top */
.plantTop path {
  -webkit-animation: plantMove 4s linear alternate infinite;
  animation: plantMove 4s linear alternate infinite;
  fill: #102e3f;
  -webkit-transform-origin: center center;
  transform-origin: center center;
  transform-box: fill-box;
}

.plantTop path:nth-child(1) {
  -webkit-animation-delay: 500ms;
  animation-delay: 500ms;
}

.plantTop path:nth-child(2) {
  -webkit-animation-delay: 1000ms;
  animation-delay: 1000ms;
}

.plantTop path:nth-child(3) {
  -webkit-animation-delay: 1500ms;
  animation-delay: 1500ms;
}

.plantTop path:nth-child(4) {
  -webkit-animation-delay: 2000ms;
  animation-delay: 2000ms;
}

.plantTop path:nth-child(5) {
  -webkit-animation-delay: 2500ms;
  animation-delay: 2500ms;
}

.plantTop path:nth-child(6) {
  -webkit-animation-delay: 3000ms;
  animation-delay: 3000ms;
}

.plantTop path:nth-child(7) {
  -webkit-animation-delay: 3500ms;
  animation-delay: 3500ms;
}

.plantTop path:nth-child(8) {
  -webkit-animation-delay: 4000ms;
  animation-delay: 4000ms;
}

@-webkit-keyframes plantMove {
  100% {
    -webkit-transform: translate3D(-10px, 0, 0);
    transform: translate3D(-10px, 0, 0);
  }
}

@keyframes plantMove {
  100% {
    -webkit-transform: translate3D(-10px, 0, 0);
    transform: translate3D(-10px, 0, 0);
  }
}

/* Plante 1 */
#plant1 {
  width: 100%;
}

#plant1 path {
  fill: #188182;
  stroke: none;
  -webkit-animation: planteMove 4s linear infinite;
  animation: planteMove 4s linear infinite;
  -webkit-transform-origin: 15% 40%;
  transform-origin: 15% 40%;
  opacity: 0;
}

#plant1 path:nth-child(1) {
  -webkit-animation-delay: 500ms;
  animation-delay: 500ms;
}

#plant1 path:nth-child(2) {
  -webkit-animation-delay: 1000ms;
  animation-delay: 1000ms;
}

#plant1 path:nth-child(3) {
  -webkit-animation-delay: 1500ms;
  animation-delay: 1500ms;
}

#plant1 path:nth-child(4) {
  -webkit-animation-delay: 2000ms;
  animation-delay: 2000ms;
}

#plant1 path:nth-child(5) {
  -webkit-animation-delay: 2500ms;
  animation-delay: 2500ms;
}

#plant1 path:nth-child(6) {
  -webkit-animation-delay: 3000ms;
  animation-delay: 3000ms;
}

#plant1 path:nth-child(7) {
  -webkit-animation-delay: 3500ms;
  animation-delay: 3500ms;
}

#plant1 path:nth-child(8) {
  -webkit-animation-delay: 4000ms;
  animation-delay: 4000ms;
}

@-webkit-keyframes planteMove {
  0% {
    opacity: 0;
    -webkit-transform: rotate3d(0, 0, 0, 0deg) scale(0);
    transform: rotate3d(0, 0, 0, 0deg) scale(0);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    -webkit-transform: rotate3d(0, 0, 0, 60deg) scale(1);
    transform: rotate3d(0, 0, 0, 60deg) scale(1);
  }
}

@keyframes planteMove {
  0% {
    opacity: 0;
    -webkit-transform: rotate3d(0, 0, 0, 0deg) scale(0);
    transform: rotate3d(0, 0, 0, 0deg) scale(0);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    -webkit-transform: rotate3d(0, 0, 0, 60deg) scale(1);
    transform: rotate3d(0, 0, 0, 60deg) scale(1);
  }
}

/* Flex */
.flex-vert {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
