/* General styling */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Varta";
}
.local-link {
  padding-top: 70px;
  margin-top: -70px;
}
section * {
  vertical-align: top;
  overflow-wrap: break-word;
}
a {
  text-decoration: none;
}
main {
  margin-left: 200px;
  width: calc(100% - 205px);
}
main p {
  font-family: "Varta";
}

/* Color classes */
.purple {
  color: #6123b4;
}

/* Navigation */
nav {
  position: fixed;
}
nav ul {
  list-style: none;
  padding: 0px 20px;
}
nav ul li {
  padding: 25px;
  color: black;
  position: relative;
}
nav ul a li:hover {
  color: #6123b4;
}
nav ul a li:before {
  content: "";
  position: absolute;
  left: 20px;
  height: 40%;
  width: 2px;
  transform: scale(0);
  transition: all 0.5s ease-in-out;
  background: #6123b4;
}
nav ul a li:hover:before {
  transform: scale(1);
}
aside {
  position: fixed;
  top: 0px;
  width: 108px;
  height: 100vh;
  border-right: 1px solid black;
}

nav ul li {
  list-style: none;
  padding: 15px 25px;
}
.social ul {
  padding-left: 15px;
}
.rotated {
  -webkit-writing-mode: vertical-lr;
  writing-mode: vertical-rl;
  writing-mode: tb-lr;
  transform: scale(-1, -1);
  white-space: nowrap;
}
h3.section-title {
  margin: 0px;
  padding-left: 80px;
  font-family: "NeoDisplay--bold";
  font-size: 25px;
  display: inline-block;
}

.mobile-menu-toggle {
  display: none;
  position: fixed;
  color: #403e3e;
  font-size: 22px;
  top: 0px;
  background: white;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  z-index: 11;
  cursor: pointer;
  border-bottom: 1px solid grey;
}
label.mobile-menu-toggle:focus + aside {
  transform: translateY(0);
  opacity: 1;
}
.section-content {
  width: 70%;
  font-weight: 400;
  font-size: 15px;
  display: inline-block;
}
#close-button {
  display: none;
  cursor: pointer;
}
@media (max-width: 800px) {
  h3.section-title.rotated.purple {
    padding-left: 25px;
  }
}

@media (max-width: 640px) {
  #close-button {
    display: block;
  }
  .mobile-menu-toggle {
    display: block;
  }
  aside nav ul:has("a") {
    display: none;
  }
  a:active {
    color: green;
  }
  aside {
    transform: translateY(-100vh);
    width: 100%;
    z-index: 15;
    background: white;
    overflow: hidden;
    transition: all 1s ease-in;
  }
  aside ul {
    margin-top: 0;
  }
  h3.section-title.rotated.purple {
    margin-bottom: 40px;
    padding-left: 5%;
  }
  nav ul {
    margin-top: 50px;
  }
  nav ul li {
    font-size: 25px;
  }
  .social ul li {
    float: right;
  }
  nav ul a li:before {
    display: none;
  }
  .rotated {
    transform: none;
    writing-mode: unset;
  }
}
