body {
  margin: 0;
  padding: 0;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-visible {
  overflow: visible;
}

#right-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  background-color: #e9e9ed;
  border: solid lightgray 1px;
  border-radius: 0.25rem;
  cursor: pointer;
  z-index: 1000;
}

#right-btn .dots {
  width: 4px;
  height: 4px;
  background-color: darkgrey;
  border-radius: 50%;
  margin: 2px auto;
}

#right-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 16rem;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

nav {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  /* for Firefox */
  min-height: 0;
}

nav h2 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
  /* for Firefox */
  min-height: 0;
}

nav ul li {
  margin-bottom: 0.5rem;
}

nav ul li a {
  display: block;
  text-decoration: none;
  color: #333;
  border-radius: 0.25rem;
}

nav ul li a:hover {
  background-color: #f3f4f6;
}

@media (prefers-color-scheme: dark) {
  body {
    color: white;
    background-color: black;
  }
  img {
    border: 1px solid grey;
    box-shadow: 0 0 10px grey;
    filter: drop-shadow(0 0 5px grey);
  }
  #right-sidebar {
    background-color: black;
  }
  nav ul li a {
    color: #ccc;
  }
}
