@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-color: #11121a;
  --hover-color: #272832;
  --accent-color: #0071ff;
  --text-color: #c9c9c9;
}

@view-transition {
  navigation: auto;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  color: var(--text-color);
}

body {
  font-family: poppins;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--primary-color);
}

main {
  padding: min(5em, 7%);
}

main p {
  margin-top: 0.35em;
}

nav {
  background: var(--primary-color);
  border-bottom: 1px solid var(--hover-color);
}

nav li {
  display: flex;
}

nav ul {
  list-style: none;
  display: flex;
}

nav .home-li {
  margin-right: auto;
}

nav a {
  display: flex;
  text-decoration: none;
  color: var(--text-color);
  padding: 1em 2em;
}

nav a:hover {
  background-color: var(--hover-color);
}

nav a.active-link {
  border-bottom: 2px solid var(--text-color);
}

nav a.accent-link {
  background-color: var(--accent-color);
}

#open-sidebar-button {
  display: none;
  background: none;
  border: none;
  padding: 1em;
  margin-left: auto;
  cursor: pointer;
}

#close-sidebar-button {
  display: none;
  background: none;
  border: none;
  padding: 1em;
  cursor: pointer;
}
#overlay {
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9;
}

@media screen and (max-width: 700px) {
  #open-sidebar-button,
  #close-sidebar-button {
    display: block;
  }
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(15em, 100%);
    z-index: 10;
    border-left: 1px solid var(--hover-color);
    transition: right 300ms ease-in;
  }

  nav.show {
    right: 0;
  }
  nav.show ~ #overlay {
    display: block;
  }

  nav ul {
    width: 100%;
    flex-direction: column;
  }

  nav a {
    width: 100%;
  }

  nav a.active-link {
    border-bottom: none; /* remove this line if not needed */
    background-color: var(--hover-color);
    font-weight: 600;
  }

  nav .home-li {
    margin-right: unset;
  }
}
