
/* ===== side drawer ===== */

.sidedrawer{
  position: fixed;
  z-index: 10;
  height: 100vh;
  width: 40%;
  background-color: #Fff;
  transform: translateX(-110%);
  transition: 0.3s ease;
  
  
}
.layer{
  position: absolute;
  z-index: -1;
  height: 100vh;
  width: 100%;
  background-color:black;
  transform: translateX(-110%);
  transition: 0.4s ease-in-out;
  
}

.sidedrawer.open,
.layer.open{
  transform: translateX(0%);
}





.sidedrawer-links{
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 15vh 80px;
  /* border: 2px saddlebrown solid; */


}

.sidedrawer-links > a {
  text-decoration: none;
  position: relative;
  color: silver;
  text-transform: uppercase;
  margin: 15px 0;
  font-size: 1.5rem;
  width: fit-content;
  font-family: 'Montserrat', sans-serif ;

}
.sidedrawer-links > a::before {
 content: '';
 position: absolute;
 width: 100%;
 transform: scaleX(0);
 height: 2px;
 bottom: 0;
 left: 0;
 background-color: #fff;
 transform-origin: bottom right;
 transition: transform 0.25s ease-out;

}
.sidedrawer-links > a:hover{
  color: white;
}
.sidedrawer-links > a:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.sidedrawer-links > a:nth-child(1){
  animation-duration: 0.9s;
  animation-timing-function: ease;
}

.sidedrawer-links > a:nth-child(2){
  animation-duration: 1.0s;
  animation-timing-function: ease;
}

.sidedrawer-links > a:nth-child(3){
  animation-duration: 1.1s;
  animation-timing-function: ease;
}

.sidedrawer-links > a:nth-child(4){
  animation-duration: 1.2s;
  animation-timing-function: ease;
}
.animate-links{
  animation-name:animateLinks ;
}

@keyframes animateLinks {
  from{
    transform: translateX(-80px);
    opacity: 0;
  }
  to{
    transform: translateX(0);
    opacity: 1;
  }
}


.sidedrawer-social-links{
  display: flex;
  align-items: center;
  margin:  10vh;
}
.sidedrawer-social-links > a {
  color: silver;
  margin: 0 1vh;
}
.sidedrawer-social-links > a:hover {
  color: #fff;
  
}

@media screen and (max-width:768px){
  .sidedrawer{
    width: 100%;
  }
  .sidedrawer-links{
    align-items: center;
    margin: 150px 0 80px 0;
  }
  .sidedrawer-social-links{
    justify-content: center;
    margin:  5vh;
  }
}

/* ===== side drawer ends ===== */

@media screen and (max-width:915px){
  .sidedrawer-links > a {
    font-size: 1.4rem;
  }
  .sidedrawer-links{
    margin: 15vh 9vh;
  }
}
