@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root{
  --base-clr: #f0ddb3;
  --line-clr: white;
  --hover-clr: #222533;
  --text-clr: #C79626;
  --accent-clr: black;
  --secondary-text-clr: #b0b3c1;
}
*{
  margin: 0;
  padding: 0;
}



#sidebar{
  box-sizing: border-box;
  height: 70vh;
  width: 250px;
  padding: 5px 1em;
  background-color: var(--base-clr);
  border-right: 1px solid var(--line-clr);
  top: 0;
  position: fixed;
  margin-top: 130px;
  left: 0;

  align-self: start;
  transition: 300ms ease-in-out;
  text-wrap: nowrap;
  z-index:9999;
}
#sidebar.close{
  padding: 5px;
  width: 55px;
}
#sidebar ul{
  list-style: none;
}
#sidebar > ul > li:first-child{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
  .logo{
    font-weight: 600;
  }
}
#sidebar ul li.active a{
  color: var(--accent-clr);

  svg{
    fill: var(--accent-clr);
  }
}

#sidebar a, #sidebar .dropdown-btn, #sidebar .logo{
  border-radius: .5em;
  padding: .85em;
  text-decoration: none;
  color: var(--text-clr);
  display: flex;
  align-items: center;
  gap: 1em;
}
.dropdown-btn{
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
#sidebar svg{
  flex-shrink: 0;
  fill: var(--text-clr);
}
#sidebar a span, #sidebar .dropdown-btn span{
  flex-grow: 1;
}
#sidebar a:hover, #sidebar .dropdown-btn:hover{
  background-color: var(--hover-clr);
}
#sidebar .sub-menu{
  display: grid;
  grid-template-rows: 0fr;
  transition: 300ms ease-in-out;

  > div{
    z-index:9999;
  }
}
#sidebar .sub-menu.show{
  grid-template-rows: 1fr;
}
.dropdown-btn svg{
  transition: 200ms ease;
}
.rotate svg:last-child{
  rotate: 180deg;
}
#sidebar .sub-menu a{
  padding-left: 2em;
}
#toggle-btn{
  margin-left: auto;
  padding: 1em;
  border: none;
  border-radius: .5em;
  background: none;
  cursor: pointer;

  svg{
    transition: rotate 150ms ease;
  }
}
#toggle-btn:hover{
  background-color: var(--hover-clr);
}

main{
  padding: min(30px, 7%);
}
main p{
  color: var(--secondary-text-clr);
  margin-top: 5px;
  margin-bottom: 15px;
}

.subcontainer{  
  font-size:14px; 
  margin-left: auto; 
  margin-right: auto;
  
}

@media(max-width: 991px){
        body{
    grid-template-columns: 1fr;
  }
  main{
    padding: 2em 1em 60px 1em;
  }

  .subcontainer{  
    font-size:14px; 
  margin-left: auto;
  margin-right: auto;
  
}




  #sidebar{
    height: 40px;
    width: 100%;
    border-right: none;
    border-top: 1px solid var(--line-clr);
    padding: 0;
    position: fixed;
    top: -40px;
    bottom: unset;
    z-index:9999;

    > ul{
      padding: 0;
      display: grid;
      grid-auto-columns: auto;
      grid-auto-flow: column;
      align-items: center;
      overflow-x: scroll;
      
    }
    ul li{
      height: 100%;
      margin-bottom: 20px;
    }
    ul a, ul .dropdown-btn{
      width: auto;
      height: 60px;
      margin-left: auto;
      margin-right: auto;
      padding: 0;
      border-radius: 0;
      justify-content: center;
    }

   

    ul li .sub-menu.show{
      position: fixed;
      bottom: 60px;
      left: 0;
      box-sizing: border-box;
      height: 60px;
      width: 100%;
      background-color: var(--hover-clr);
      border-top: 1px solid var(--line-clr);
      display: flex;
      justify-content: center;
      margin-bottom: 20px;
      

      > div{
        overflow-x: auto;
      }
      li{
        display: inline-flex;
      }
      a{
        box-sizing: border-box;
        padding: 1em;
        width: auto;
        justify-content: center;
      }
    }

    .logo{
      display: none;
    }
    #toggle-btn{
      display: none;
    }
    
  }
}