header {
  width: 100%;
  height: 80px;
  background-color: var(--color-primary);
  display: flex;
  flex-direction: row;
  position: sticky;
  top: 0; 
  z-index: 2000;
}

.header-left {
  padding-left: 10px;
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: left;
}

.header-right {
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: right;
}

.navigation {
  width: fit-content;
  height: 100%;
}

.navigation-content {
  list-style: none;
  height: fit-content;
  margin: 0;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: row;
}

header a {
  height: 100%;
}

.headerlogo {
  height: 100%;
  cursor: pointer;
}
.menu {
  height: 30px;
  width: 30px;
  padding: 25px;
  margin: 0;
  background-image: url("/Icons/dots.png");
  background-size: 40%;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  position: relative;
}
.menu:hover {
  background-image: url(/Icons/dots_yellow.png);
}

.menu ul {
  list-style-type: none;
  padding: 0;
  color: white;
  width: 200%;
  height: 165px;
  position: absolute;
  right: 20px;
  top: -300px;
  opacity: 0;
  transition: top 0s ease 0.5s, opacity .3s ease-out 0.2s;
  display: block;
}

.menu:hover > ul,
.menu > ul:hover {
  top: 78px;
  opacity: 1;
  transition: opacity .3s ease-out;
}

.menu ul li {
  font-size: 18px;
  height: 35px;
  line-height: 35px;
  padding: 0 10px;
  margin-top: 5px;
  background-color: var(--color-primary);
  border-radius: 10px;
  width: 100%;
}

.menu ul li:hover {
  color: var(--color-accent);
}

.menu ul li a {
  color: white;
  text-decoration: none;
}

.menu ul li a:hover {
  color: var(--color-accent);
}

.header-titles {
  position: relative;
  color: white;
  margin: 0;
  padding: 0;
  font-size: 18px;
  display: inline-block;
  cursor: pointer;
}

.header-titles a {
  padding: 29px 15px;
  color: white;
  text-decoration: none;
}

.header-titles:hover > a {
  color: var(--color-accent);
}

.header-titles:hover {
  color: var(--color-accent);
}

.header-titles:hover::after {
  transform: scaleX(1);
  transform-origin: center;
}

.header-titles::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -29px;
  width: 100%;
  height: 5px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.menu-button {
  display: none;
}

@media (max-width: 800px) {
  .header-left {
    width: 70%;
  }

  .header-right {
    width: 30%;
  }

  .navigation {
    display: flex;
    width: 100%;
    justify-content: right;
  }

  .navigation-content {
    flex-direction: column;
    position: absolute;
    left: 0px;
    width: 100%;
    padding: 0;
    top: 100%;
    z-index: 1001;
    visibility: hidden;
  }

  .navigation-content-show {
    display: flex;
    transition: height 1s;
    top: 100%;
    overflow: unset;
    visibility: visible;
  }

  .header-titles {
    background-color: var(--color-primary);
    width: 100%;
    text-align: center;
    border-top: solid var(--color-accent) 1px;
    padding: 15px 0;
  }

  .header-titles a {
    padding: 0;
    width: 100%;
    height: 100%;
    display: block;
  }

  .menu {
    background-image: none;
    padding: 0;
    width: 100%;
    height: 0;
    z-index: 1001;
  }

  .menu ul{
    width: 100%;
    position: static;
    opacity: 1;
    height: 0;
  }

  .menu ul li {
    position: static;
    position: relative;
    color: white;
    margin: 0;
    padding: 15px 0;
    font-size: 18px;
    display: block;
    width: 100%;
    cursor: pointer;
    text-align: center;
    border-radius: 0;
    height: unset;
    line-height: unset;
    border-top: solid var(--color-accent) 1px;
    z-index: 1002;
  }

  header ul li a {
    padding: 0;
    width: 100%;
    height: 100%;
    display: block;
  }

  header,
  .menu,
  .menu ul,
  .menu ul li,
  .menu ul li a {
    -webkit-tap-highlight-color: transparent;
    -moz-tap-highlight-color: transparent;
  }

  .header-titles::after {
    height: 0;
  }

  .menu-button {
    border: none;
    display: inline-block;
    background-color: transparent;
    background-image: url(../Icons/menu.png);
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
    height: 100%;
    aspect-ratio: 1 / 1;
  }

  .menu-button-active {
    background-image: url(../Icons/close.png);
  }

  header li:active {
    background-color: #4163a1;
  }

}

