#sidebar {
    width: 100%;
    height: 100%;
    background: var(--modal-backbody);
    position: fixed; 
    z-index: 90;
    left: -110%;
    top: 0px;   
    display: none;
    transform: scale(0);
    transform-origin: top;  
    box-shadow: 10px 10px 100px 100px var(--modal-boxshadow);
    animation: fado 0.5s linear;
}

#sidebar.deployed {
  left: 0; 
  transform: scale(1);
  animation: fadi 0.3s linear;
}
.sidebar_head{
  text-align: center;
  padding: 20px;
  margin: 0 0 20px 0;
  display: flex;
  justify-content: space-between;
  color: red;
}
.close_sidebar{
  cursor: pointer;
  border: 1px dotted var(--main-darkcolor);
  border-radius: 50%;
}
.nav{
  width: 350px;
  height: 100%;
  overflow-y: auto;
  background-color: white;
  border-radius: 0 10px 10px 0;
  box-shadow: 0px 0px 10px 7px var(--main-darkblur03);
}

.nav::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background-color: white;
}

.nav::-webkit-scrollbar-thumb {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: lightslategray;
}

.nav__link{
  color: black;
  display: block;
  padding: 15px 0;
  text-decoration: none;
}

.nav__link--inside{
  padding-left: 20px;
  text-align: left;
}

.nav__link--inside:hover{
  background: var(--main-darkcolor);
  color: white;
}

.list{
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0 16px 16px 0;
  background: #fff;
}

.list__item{
  list-style: none;
  width: 100%;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgb(200, 200, 200);
  
}

.list__item--click{
  cursor: pointer;
}

.list__button{
  display: flex;
  align-items: center;
  gap: 1em;
  width: 100%;
  margin: 0 auto;
  text-decoration: none;
  color: black;
  padding: 0 10px;
}
.list__button:hover{
  background-color: var(--main-darkcolor);
  color: white;
}
.list__button:hover>.nav__link{
  color: white;
}
.arrow .list__arrow{
  transform: rotate(180deg);
}

.list__arrow{
  margin-left: auto;
  transition: transform .3s;
}

.list__show{
  width: 90%;
  margin-left: auto;
  border-left: 1px solid var(--main-darkcolor);
  list-style: none;
  transition: height .4s;
  height: 0;
}

@keyframes fadi {
 /*  from {left: -110%; opacity: 0;}
  to {left: 0; opacity: 1;} */

  from {left: -110%; opacity: 0; transform: scale(0);}
  to {left: 0; opacity: 1; transform: scale(1);}
}

@keyframes fado {
  from {left: 0; opacity: 1; transform: scale(1);}
  to {left: -110%; opacity: 0; transform: scale(0);}
}
@media (width < 450px) {
  .nav{
    width: 100%;
    border-radius: 0;
  }
}