*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root{
  /* display */
  --display-height: calc(100vh - (8.5rem / 1.8));

  /* font */
  --Xl-header-font-size: clamp(1.5rem, 2.5vw, 3rem);
  --Xl-des-font-size: clamp(1rem, 1.5vw, 1.55rem);
  --Xl-button-font-size: clamp(0.85rem, 0.95vw, 1.85rem);

  --L-header-font-size: clamp(1.5rem, 2.25vw, 2.5rem);
  --L-des-font-size: clamp(0.75rem, 1.25vw, 1.5rem);
  --L-button-font-size: clamp(0.85rem, 0.95vw, 1.85rem);

  --M-header-font-size: clamp(1.25rem, 1.75vw, 2.25rem);
  --M-des-font-size: clamp(0.75rem, 1.25vw, 1.5rem);
  --M-button-font-size: clamp(0.85rem, 0.95vw, 1.85rem);

  --S-header-font-size: clamp(1rem, 1.5vw, 2rem);
  --S-des-font-size: clamp(0.5rem, 1vw, 1.25rem);

  --main-font: "Nanum Myeongjo", serif;
  --des-font: "Urbanist", sans-serif;

  --light-font-w: 300;
  --normal-font-w: 500;
  --bold-font-w: 700;

  /* color */
  --whiteS: whitesmoke;
  --darkBlue0: #000845;
  --darkBlue1: #030b3f;
  --darkBlue2: #00020d;
  --lightGrey1: #c6c6c6;
  --lightGrey2: #a2a2a2;
  --black: #000;
  --gladient-darkblue: linear-gradient(90deg, #030b3f 40%, #010629 60%, #00020d 100%);
}

main{
  height: 100vh;
  width: 100%;
  display: flex;
  /* flex-direction: column; */
  /* justify-content: center; */
  align-items: center;
}

aside{
  /* width: 40rem; */
  width: 40vw;
  position: relative;
  z-index: 999;
  /* border: solid red 3px; */
  height: 100%;
  padding: 1rem;
  background-color: var(--darkBlue2);
  font-family: var(--main-font);
  transition: all ease .3s;
}

aside .dashBoardContainer{
  width: 100%;
  height: 100%;
  /* border: solid red 3px; */
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--whiteS);
  i{
    font-size: var(--L-header-font-size);
    transition: all ease .3s;
  }
  label{
    background-color: var(--darkBlue0);
    padding: 0.5rem 1.5rem;
    border-radius: 1rem;
    font-size: var(--L-des-font-size);
    position: absolute;
    transition: all ease .3s;
    visibility: hidden;
    opacity: 0;
  }
  a{
    transition: all ease .3s;
    text-decoration: none;
    color: var(--whiteS);
  }
}

.dashBoardController{
  width: 20%; 
  height: 100%;
  /* border: solid red 3px; */
  border-radius: 2rem;
  background: linear-gradient(90deg, rgb(12, 12, 83) 10%, rgb(3, 2, 29) 100%);
}

.dashBoardController .container{
  width: 100%; 
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 25vh 3fr 2fr 1fr;
  padding: 2rem 0;
}

.homeIcon{
  /* border: solid red 3px; */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  grid-row: 1/2;
  width: 100%;
  height: 100%;
}

.linkIconContainer{
  /* border: solid red 3px; */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  gap: 2rem;
  grid-row: 2/3;
}

.linkIconContainer a:hover label,
.homeIcon a:hover label,
.collapseBtn:hover label,
.expandBtn:hover label{
  opacity: 1;
  margin-left: 1.5rem;
  visibility: visible;
}

i:hover{
  scale: 125%;
}

.menuContainer a:hover{
  scale: 105%;
}

i:hover{
  color: #F6D858;
}

.menuContainer .navLink.active{
  background-color: #F6D858;
  border-radius: 15px; 
  color: var(--darkBlue0) !important;
}

.linkIconContainer .navLink.active{
  i{
    color: #F6D858 !important;  
    background-color: none !important;
  }
}

.menuContainer a:hover{
  background-color: #F6D858;
  border-radius: 1rem;
  color: var(--darkBlue0);
}

.expandBtn,
.collapseBtn{
  grid-row: 4/5;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.expandBtn{
  display: none;
}

.dashBoardLinkNavigation{
  width: 80%; 
  height: 100%;
  border-radius: 2rem;
  transition: all ease .3s;
  background: linear-gradient(90deg, rgb(12, 12, 83) 10%, rgb(3, 2, 29) 100%);
}

.dashBoardLinkNavigation .container{
  width: 100%; 
  height: 100%;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 25vh 3fr 2fr 1fr;
  padding: 1.5rem 0;
}

aside .companyLogo{
  width: 90%;
  height: 100%;
  grid-row: 1/2;
  display: flex;
  justify-self: center;
  justify-content: center;
  align-items: center;
  border-bottom: solid rgb(78, 116, 255) 0.125rem;
  img{
    height: 70%;
    width: 100%;
    object-fit: contain;
    /* display: none; */
  }
}

.menuContainer{
  grid-row: 2/3;
  width: 100%;
  height: 100%;
  /* border: solid red 3px; */
  list-style: none;
  gap: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0.5rem;
  a{
    /* border: solid red 3px; */
    padding: 1rem 0 1rem 1rem;
    text-decoration: none;
    color: var(--whiteS);
    font-size: var(--L-des-font-size);
    display: block;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    /* text-wrap: nowrap; */
  }
}

aside.collapsed .dashBoardLinkNavigation{
  width: 0;
  overflow: hidden;
}

aside.collapsed{
  /* width: calc(38rem * 1/5) !important; */
  width: min(calc(100vw * 20/100), calc(38rem * 1/5)) !important;
  .dashBoardContainer{
    gap: 0;
  }
  .gridArticle{
    .description{
      width: max(65%, 35vw);
    }
  }
}

aside:not(.collapsed) .linkIconContainer label{
  display: none;
}

aside.collapsed .dashBoardController{
  width: min(calc(100vw * 20/100), calc(38rem * 1/5)) !important;
  /* width: calc((38rem * 1/5) - 2rem) !important; */
  /* width: calc(100vw * 20/100) !important; */
}

.collapsed .dashBoardLinkNavigation .menuContainer li a {
  display: none; 
}

@media screen and (max-width: 1200px){
  aside{
    position: relative;
    z-index: 999;
  }
}

@media screen and (max-width: 750px){
  aside{
    width: 50vw;
  }
}

@media screen and (max-width: 600px){
  aside{
    width: 100vw;
  }
}

@media screen and (max-width: 400px){
  aside.collapsed{
    width: max(calc(100vw * 5/100), calc(38rem * 1/7)) !important;
  }

  aside.collapsed .dashBoardController{
    width: max(calc(100vw * 5/100), calc(38rem * 1/7)) !important;
  }
}