.logo-navbar {
  width: 5rem;
  margin-top: 11px;
}

nav {
  background-color: var(--background-color);
  width: 100%;
  display: inline-block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center; /* Vertically center the items */
  justify-content: space-between;
}

nav a,
nav button {
  float: left;
  display: block;
  color: var(--alt-text-color);
  text-decoration: none;
  padding: 0px 8px;
  margin: 0px 16px;
  font-size: 1.375rem;
  border-left: 3px solid transparent;
}
nav a:hover:not(.logo) {
  border-left: 3px solid var(--primary-color);
}
.active:not(.logo) {
  border-left: 3px solid var(--primary-color);
}
.navlinks {
  display: block;
}
.navlinks a{
  padding-block: .5rem;
}
nav a.icon {
  display: none;
}
#account-nav a {
  display: none;
}
.rechtsnavitem {
  display: flex;
  align-items: center;
}
@media (max-width: 1500px)
{
    .dashboard-body .navlinks a {
    margin-inline: .5rem;
  }
}
@media (max-width: 1300px)
{
   .dashboard-body .navlinks a {
    font-size: 1rem;
  }
}
@media only screen and (max-width: 1100px) {
  .dashboard-body nav {
    display: inline-block;
  }

   .dashboard-body .navlinks a,
   .dashboard-body .dropdown-content a {
    display: block;
    width: 100%;
    padding: 10px;
  }
  .dashboard-body #account-nav a {
    display: block;
    width: 100%;
    float: left;
    padding: 10px;
  }
 .dashboard-body  nav .dropdown-content {
    display: block;
    position: initial;
    box-shadow: none;
  }
  .dashboard-body nav .dropdown-content a {
    margin: 0px 16px;
    padding: 10px;
    padding-left: 26px;
  }
  .dashboard-body .mobile-navbar {
    display: flex;
    align-items: center; /* Vertically center the items */
    position: relative;
    overflow: hidden;
    justify-content: space-between; /* Push items to the edges */
  }
  .dashboard-body .navlinks {
    display: none;
  }
  .dashboard-body #account-nav {
    display: none;
    padding-top: 20px;
  }
  .dashboard-body .navlinks .account-button,
  .dashboard-body .navlinks .cart-button {
    display: none;
  }
  .dashboard-body nav a.icon,
  .dashboard-body nav .account-button,
  .dashboard-body .cart-button {
    display: block;
    float: right;
    margin: 0px 18px;
  }
  .dashboard-body nav .rechtsnavitem {
    float: left;
  }
  .dashboard-body nav .dropright {
    left: 0;
    right: auto;
  }
}
@media only screen and (max-width: 950px) {
  nav {
    display: inline-block;
  }

  .navlinks a,
  .dropdown-content a {
    display: block;
    width: 100%;
    padding: 10px;
  }
  #account-nav a {
    display: block;
    width: 100%;
    float: left;
    padding: 10px;
  }
  nav .dropdown-content {
    display: block;
    position: initial;
    box-shadow: none;
  }
  nav .dropdown-content a {
    margin: 0px 16px;
    padding: 10px;
    padding-left: 26px;
  }
  .mobile-navbar {
    display: flex;
    align-items: center; /* Vertically center the items */
    position: relative;
    overflow: hidden;
    justify-content: space-between; /* Push items to the edges */
  }
  .navlinks {
    display: none;
  }
  #account-nav {
    display: none;
    padding-top: 20px;
  }
  .navlinks .account-button,
  .navlinks .cart-button {
    display: none;
  }
  nav a.icon,
  nav .account-button,
  .cart-button {
    display: block;
    float: right;
    margin: 0px 18px;
  }
  nav .rechtsnavitem {
    float: left;
  }
  nav .dropright {
    left: 0;
    right: auto;
  }
}

@media only screen and (min-width: 950px) {
  /* .navlinks{
      display: initial;
    } */
  .mobile-navbar .account-button,
  .mobile-navbar .cart-button {
    display: none;
  }
}

/*dropdown*/
.dropbtn {
  float: none;
}
.dropdown {
  position: relative;
  float: left;
}

.dropdown-content {
  display: none;
  position: absolute;
  z-index: 5;
  background-color: var(--background-color);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px var(--alt-text-color);
}

.dropdown-content a {
  color: var(--alt-text-color);
  padding: 12px 16px;
  margin: 0;
  text-decoration: none;
  display: block;
  float: none;
  width: max-content;
}

/* .dropdown-content a:hover {
  border: 2px solid var(--primary-color);
    border-radius: 4px; 
} */

.dropdown:hover .dropdown-content {
  display: block;
}

/* .dropdown:hover .dropbtn {
   border: 2px solid var(--primary-color);
  border-radius: 4px;
} */

.dropright {
  left: auto;
  right: 0;
}
nav a span.account-icon,
nav a.cart-button span:not(.amount-in-cart) {
  font-size: 1.375rem;
}

@media screen and (max-width: 400px) {
  nav a span.account-icon,
  nav a.cart-button span:not(.amount-in-cart) {
    font-size: 1.2rem;
  }
  .amount-in-cart {
    font-size: 0.5rem;
    position: absolute;
    top: 50%;
    right: -50%;
    background-color: var(--primary-color);
    color: var(--background-color);
    border-radius: 50%;
    padding: 0.1rem 0.1rem;
    width: 1.1rem;
    height: 1.1rem;
    text-align: center;
  }
  nav a.icon,
  nav .account-button,
  .cart-button {
    margin: 0px 6px;
  }
  .logo-navbar {
    width: 3rem;
  }
  .logo {
    margin: 0;
  }
}
nav a {
  position: relative;
}
.amount-in-cart {
  font-size: 0.8rem;
  position: absolute;
  top: 50%;
  right: -50%;
  background-color: var(--primary-color);
  color: var(--background-color);
  border-radius: 50%;
  padding: 0.2rem 0.2rem;
  width: 1.5rem;
  height: 1.5rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* nav a .hover-image{
    width:25px;
    position:absolute;
    right:auto;
    top:30px;
    left:5px;
    display: none;
  }
  nav a:hover .hover-image{
    display: block;
  }
  nav a .active-image{
    display: none;
    width:25px;
    position:absolute;
    right:auto;
    top:30px;
    left:5px;
  }
.active .active-image{
  display: block;
  } */
