.topheader {
    position: fixed;
    background-color: var(--black);
    left: 0;
    top: 0;
    width: 100%;
    z-index: 100;
}
  
.topnav {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    width: 95%;
    max-width: 120rem;
    margin: 0 auto;
    height:8rem;
}
  
  /* Logo */
.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 400;
}

.logotype {
  margin-left: 1rem;
  display: flex;
  justify-content: center;

}
  
.logo img {
  border-radius: 50%;
  width: 5rem;
  height: 5rem;
  object-fit: cover;
}

.menu {
  display:flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;

  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  align-items: center;
  background-color: var(--black);
  height: 100%;
  overflow-y: auto;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.menu li {
    padding: 0;
}

.menu a {
    font-weight: 400;
    text-transform: uppercase;
    position: relative;
}

.menu .selected {
  color: var(--primary);
}

.menu a:hover{
  color: var(--red);
}

.menu a, .menu .selected {
    line-height: 7rem;
    font-size: 2.5rem;
}

.menu-open,
.menu-close {
    display: block;
    border: none;
    background: none;
    cursor: pointer;
    color:var(--white);
    font-size:3rem;
}

.menu-close {
    align-self: flex-end;
    padding: 2rem;
}

.menu-opened {
    opacity: 1;
    pointer-events: all;
}

.open-menu:focus:not(:focus-visible),
.close-menu:focus:not(:focus-visible) {
    outline: none;
}

@media (min-width: 768px) {
    .logotype {
        width: 20rem;
        max-width: 20rem;
        margin: 0;
    }
    .menu {
        /* max-width: 50%; */
        flex-direction: row;
        justify-content: end;
        /* width: 100%;
        max-width: 100%; */
        /* margin: 0 auto; */
        /* align-items: center;
        height: auto; */
        overflow-y: unset;
        position: static;
    
        opacity: 1;
        pointer-events: all;
        transition:none;
    }
    .menu li {
        padding: 0 1.5rem;
    }  
    .menu a, .menu .selected {
        font-size: 1.8rem;
        line-height: 5rem;
    }
    .menu a::after {
        content: "";
        background-color:var(--grey);
        position: absolute;
        left: 0;
        top: calc(100% + .4rem);
        width: 100%;
        height: .4rem;
        opacity: 0;
        transition: opacity .3s;
    }
    .menu .selected::after, .menu a:hover::after{
      opacity: 0.8;
    }
    .menu-open,
    .menu-close {
      display: none;
    }   
}