* {
  -webkit-tap-highlight-color: transparent;
}

@font-face {
  font-family: "Poppins-Medium";
  src: url("/fonts/Poppins-Medium.ttf");
}

@font-face {
  font-family: "Poppins-Regular";
  src: url("/fonts/Poppins-Regular.ttf");
}

@font-face {
  font-family: "Atkinson-Hyperlegible-Regular";
  src: url(/fonts/AtkinsonHyperlegible-Regular.ttf);
}

@font-face {
  font-family: "Atkinson-Hyperlegible-Bold";
  src: url(/fonts/AtkinsonHyperlegible-Bold.ttf);
}


body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}


.container {
  display: flex;
  flex-direction: column;
}

.sidebar {
  position: fixed;
  height: 100vh;
  width: 18rem;
  padding: 1rem 1rem 4rem 1rem;
  overflow-y: auto;
  background-color: var(--color-main);
  font-family: "Poppins-Medium";
  z-index: 11;
  transition: left 0.3s ease;
}

.menu {
  list-style-type: none;
  padding-left: 0em;
  margin: 0;
}

.menu-item {
  border-left: 0.5px solid #44444490;
  cursor: pointer;
}

.menu-item.section {
  position: relative;
  border-left: 0.5px solid #44444490;
}

/* .menu-item.section::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 0;
  width: 0.3rem;
  height: 0.5px;
  background-color: #44444490;
} */


.menu-item.page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.menu-item.page a {
  padding: 8px 10px;

  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}


.menu-item.page a:hover {
  border-radius: 4px;
  background-color: var(--color-cardC);
}

.menu-item a {
  text-decoration: none;
  color: var(--color-text);
  font-family: "Atkinson-Hyperlegible-Regular";
  font-size: 1rem;
  flex-grow: 1;
}

.toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  min-height: 1.4em;
  margin-left: 0.5em;
  transition: transform 0.2s ease-in-out;
}

.toggle:hover {
  opacity: 0.7;
  transition: transform 0.1s ease-out;
}


.toggle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.collapse-line{
  border-bottom: 0.5px solid #44444490;
}




.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;

}

.menu-header a {
  padding: 8px 10px;
}

.menu-header a.active {
  
  border-radius: 4px;
  color: var(--color-text);
}

.menu-item.page a.active {
  background-color: var(--color-card) !important;
  border-radius: 4px;
  color: var(--color-code);
}

.menu-header a.active span {
  color: var(--color-code);
}


.menu-header a:hover {
  border-radius: 4px;
  background-color: var(--color-cardC);
}

.menu-header a {
  text-decoration: none;
  color: var(--color-text);
  font-family: "Atkinson-Hyperlegible-Regular";
  font-size: 1rem;
  flex-grow: 1;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}




.menu-header.open .toggle {
  transform: rotate(90deg);
}

.menu-children {
  padding-left: 1rem;
  display: none !important;
}

.menu-header.open+.menu-children {
  display: block !important;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}


.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 0em;
  left: 0.5em;
  z-index: 12;
}

.sidebar-close img {
  transition: filter 0.2s ease;
}

.sidebar-close:hover img {
  filter: invert(1);


}



@media (max-width: 1450px) {
  .sidebar {
    left: -350px;
    border-right: 0.5px solid #44444490;
  }


  footer .cr {
    padding-left: 0em;
  }


  .sidebar.active {
    left: 0;
  }

  .sidebar-close {
    display: block;
  }

  .sidebar.active+.sidebar-overlay {
    display: none;
  }

  .sidebar.active+.sidebar-overlay {
    display: block;
  }
}