header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5em 0.5em;
  /* background-color: var(--cl-base-black); */
}

.header-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 1em;
}

.logoHeader {
  color: var(--th-text-1);
  font-size: clamp(1rem, 4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.5em 0.5em;
  margin-right: auto;
}

.btn-navbar {
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  border: none;
  border-radius: 0.5em;
  padding: 0.4em;
  color: var(--th-text-1);
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}
.btn-navbar:hover {
  background-color: var(--th-hover-1);
}

.header-icon svg {
  width: clamp(30px, 2vw, 32px);
}

/* Light Theme */
html[data-theme="light"] #header-icon-sun { display: block; }
html[data-theme="light"] #header-icon-moon { display: none; }
/* Dark Theme */
html[data-theme="dark"] #header-icon-moon { display: block; }
html[data-theme="dark"] #header-icon-sun { display: none; }

#navbar {
  position: fixed;
  top: 0;
  right: 0;

  height: 100vh;
  height: 100dvh;
  
  padding: 0.5em;
  padding-top: 1em;
  padding-right: 1.2em;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 1.2em;
  border-radius: 1em 0 0 1em;

  background-color: var(--th-background-1);
  transition: translate 0.3s ease-in-out;
}

#header[aria-expanded="false"] #navbar {
  translate: 100% 0;
}
#header[aria-expanded="true"] #navbar {
  translate: 0% 0;
}

#navbar-list {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 1em;
}

#navbar-list li {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#navbar-list li a {
  color: var(--th-text-1);
  font-size: 1.2rem;
}

/* Small */
@media screen and (min-width: 500px) {
  #navbar {
    min-width: 60%;
    width: auto;
    max-width: 70%;
  }
}

/* Medium */
@media screen and (min-width: 501px) and (max-width: 1199px) {
  #navbar {
    min-width: 50%;
    width: auto;
    max-width: 60%;
  }  
}

/* Large */
@media screen and (min-width: 1200px) {
  #navbar {
    min-width: 40%;
    width: auto;
    max-width: 60%;
  }
}

header { z-index: 101; }


#navbar { z-index: 104; }

.overlay.ov-header { z-index: 103; }
