/*fonts integration*/

@font-face {
  font-family: "valencia-regular";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/Valencia-Regular.otf") format("opentype");
}

/* =========================== */
/* nav menu styles:          */
/* =========================== */

body{
  overflow-x: hidden;
}

nav{
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 50vh;
  width: 25vw;
  right: 1vw;
  background-color: #FEEEEF;
  top: 5px;
  z-index: 100;
  transition: all 0.4s linear;
}

.hidden{
  visibility: hidden;
  /* display: none; */
  opacity: 0;
  z-index: -100;
}

.visible{
  visibility: visible !important;
}

.block {
  border: 2px solid black;
  border-bottom: none;
  border-left: none;
  border-right: none;
  height: 3vh;
  width: 15vw;
  text-align: center;
  margin-top: 2vh;
  padding: 1vh 0;
}

.block-start {
  margin-top: 2vh;
} 

.block-end{
  height: 5vh;
  margin-top: 2vh;
  padding: 1vh 0;
  border-bottom: 2px solid black;
}

nav a{
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1vw;
  font-family: 'Valencia-Regular';
  font-style: normal;
  text-align: center;
  letter-spacing: 0.085em;
  color: #000000;
}

nav span{
  display: block;
  margin-top: 7vh;
  margin-left: 17vw;
  font-size: 0.7em;
  width: 100%;
  justify-content: center;
}

.fleche{
  width: 20%;
  margin-right: 5%;
  display: none;
}

/*  #icones{
  width: 73px;
  height: 32px;
} */

nav span a:nth-child(1){
  margin-right: 5vw;
}

/* =========================== */
/* nav button styles:          */
/* =========================== */
button{
  border: none;
  background-color: transparent;
  display: inline-block;
  cursor: pointer;
  position: absolute;
  right: 1vw;
  top: 20px;
  z-index: 600;
}

.bar1, .bar2 {
  width: 35px;
  height: 3px;
  background-color: black;
  margin: 6px 0;
  transition: 0.4s;
}

/* .purple-bar .bar1, .purple-bar .bar2{
  background-color: #524e65;
} */

.change .bar1 {
  transform-origin: 50% 50%;
  -webkit-transform: rotate(-45deg) translate(-9px, 6px);
  transform: rotate(-45deg) translate(-9px, 0px);
  background-color: black;
}

.change .bar2 {
  transform-origin: 50% 50%;
  -webkit-transform: rotate(45deg) translate(-8px, -8px);
  transform: rotate(45deg) translate(-6px, 2px);
  background-color: black;
}

.flex-direction-row {
  display: flex;
  flex-direction: row;
}

/**
* ----------------------------------------
* animation bounce-in-right
* ----------------------------------------
*/
@-webkit-keyframes bounce-in-right {
  0% {
    -webkit-transform: translateX(600px);
            transform: translateX(600px);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
    opacity: 0;
  }
  38% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
    
  }
  55% {
    -webkit-transform: translateX(68px);
            transform: translateX(68px);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  72% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
  }
  81% {
    -webkit-transform: translateX(32px);
            transform: translateX(32px);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  90% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
  }
  95% {
    -webkit-transform: translateX(8px);
            transform: translateX(8px);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
    opacity: 1;
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
      opacity: 1
  }
}
@keyframes bounce-in-right {
  0% {
    -webkit-transform: translateX(600px);
            transform: translateX(600px);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
    opacity: 0;
  }
  38% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
    
  }
  55% {
    -webkit-transform: translateX(68px);
            transform: translateX(68px);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  72% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
  }
  81% {
    -webkit-transform: translateX(32px);
            transform: translateX(32px);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
  }
  90% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
  }
  95% {
    -webkit-transform: translateX(8px);
            transform: translateX(8px);
    -webkit-animation-timing-function: ease-in;
            animation-timing-function: ease-in;
    opacity: 1;
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    -webkit-animation-timing-function: ease-out;
            animation-timing-function: ease-out;
     opacity: 1  
  }
}


.an-bounce-in-right {
  -webkit-animation: bounce-in-right 900ms cubic-bezier(0.550, 0.055, 0.675, 0.190) both;
          animation: bounce-in-right 900ms cubic-bezier(0.550, 0.055, 0.675, 0.190) both;
          transform: translateX(0%);
}

@keyframes bounceInRight {
  from,
  60%,
  75%,
  90%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  from {
    opacity: 0;
    transform: translate3d(3000px, 0, 0) scaleX(3);
  }

  60% {
    opacity: 1;
    transform: translate3d(-25px, 0, 0) scaleX(1);
  }

  75% {
    transform: translate3d(10px, 0, 0) scaleX(0.98);
  }

  90% {
    transform: translate3d(-5px, 0, 0) scaleX(0.995);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.bounceInRight {
  animation-name: bounceInRight;
}


@media (max-width:900px) {
  button{
    right: 5vw;
  }
    
  nav{
    height: 36vh;
    width: 30vw;
    right: 5vw;
  }
  
  nav a{
    font-size: 1.3vw;
  }
        
}


@media (max-width:500px) {
    
    nav{
      height: 40vh;
      width: 60vw;
    }
    
    .block {
      height: 2vh;
      width: 40vw;
      border: 1px solid black;
      border-bottom: none;
      border-left: none;
      border-right: none;
      padding: 2vh 0;
    }
    
    .block-end{
      height: 5vh;
      margin-top: 2vh;
      padding: 1.5vh 0;
      border-bottom: 1px solid black;
    }
    
    nav a{
      font-size: 3vw;
    }
    
    .block-start {
      margin-top: 2vh;
    } 
    
    .fleche{
      width: 25%;
    }
}
