@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono&family=Inter:wght@400;500;600&display=swap");

* {
  line-height: 1.5em;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 14px;
}

body {
  display: flex;
  min-height: 100vh;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.5em 2em 0.5em 2em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
}

#name {
  font-family: "Inter", Arial;
  font-weight: 500;
  cursor: pointer;
  font-size: 32px;
  text-decoration: none;
  color: #000000;
}

.navbar li {
  display: inline-block;
}

.navbar li a {
  font-family: "Inter", Arial;
  text-decoration: none;
  color: #000000;
  padding: 0.5em 1.5em;
}

.navbar li a:hover {
  background-color: #ebf0e4;
}

.navbar li a.current {
  background-color: #d9e8c7;
}

.navbar li a.github {
  background-color: #fbf7f0;
}

.navbar li a.github:hover {
  background-color: #eee4d4;
}

.hamburger-icon {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  padding: 0;
  box-sizing: border-box;
}

.hamburger-icon div {
  width: 2rem;
  height: 0.3rem;
  background-color: #333;
  /* border-radius: 10px; */
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav .navbar {
  list-style: none;
  display: flex;
  flex-flow: row nowrap;
}

.nav .navbar li {
  padding: 18px 10px;
}

@media (max-width: 768px) {
  .nav .navbar {
    z-index: 1;
    flex-flow: column nowrap;
    background-color: #ffffff;
    position: absolute; /* Changed from 'fixed' to 'absolute' */
    top: 4rem; /* Distance from the top, adjust as needed */
    right: 1rem; /* Distance from the right, adjust as needed */
    width: auto;
    padding: 1rem; /* Adjust as needed */
    box-shadow: 0px 8px 16px 0px rgba(255, 255, 255, 0.2); /* Optional: adds a bit of a drop shadow */
    display: none;
  }

  .nav .navbar li {
    color: #fff;
    display: flex;
  }

  .hamburger-icon {
    display: flex;
  }
}

a {
  color: #0366d6;
  text-decoration: none;
}

#site-footer {
  margin-top: auto;
  padding-top: 4em;
  padding-bottom: 4em;
  bottom: 0;
}
