.navbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}

.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
}

.menu > li {
  margin-right: 1rem;
  overflow: hidden;
}

.menu-button-container {
  display: none;
  height: 34px;
  width: 20px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#menu-toggle {
  display: none;
}
.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #000000;
  position: absolute;
  height: 4px;
  width: 35px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 10px;
}
.menu-button::before {
  content: "";
  margin-top: -10px;
}

.menu-button::after {
  content: "";
  margin-top: 10px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0;
  transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

/* Closing X hamburger bar */
#menu-toggle:checked + .menu-button-container .menu-button::after {
  /* change this an irregular cross  */
  margin-top: 0;
  transform: rotate(-405deg);
}
.portfolioSmScreen {
  display: none;
}

.portfolio--links {
  width: 100%;
  display: none;
  position: absolute;
  flex-direction: row;
  gap: 2em;
}
.portfolio--links > li {
  background-color: white;
  text-align: center;
  list-style-type: none;
}
.menu > li:hover .portfolio--links {
  display: flex;
  /* text-shadow: #fc0 0px 0 20px; */
}

.translated_version {
  text-decoration: none;
  font-size: 28px;
  color: black;
}
nav ul {
  padding: 0;
}
nav ul li a {
  color: black;
  text-decoration: none;
  font-size: 28px;
}
nav ul li a:hover {
  color: darkslategrey;
}

@media (max-width: 700px) {
  .navbar {
    justify-content: center;
  }

  /* actual hamburger icon */
  .menu-button-container {
    display: flex;
    margin-left: 5px;
  }

  /* hamburger menu list */
  .menu {
    position: absolute;
    top: 15px;
    margin-top: 50px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    background-color: rgb(255, 255, 255);
  }

  /* unfolded h. menu li */
  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  /* folded menu  */
  #menu-toggle:checked ~ .menu li {
    height: 3em;
    padding: 0.5em;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em;
    width: 100%;
  }
  .portfolioSmScreen a {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .portfolioSmScreen span {
    font-size: 0.5em;
  }
  #portfolio {
    display: none;
  }
  .portfolio--links {
    flex-direction: column;
    gap: 0;
  }
}
