#drawer {
  position: fixed;
  top: 0; right: 0;
  width: 240px; height: 100%;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 1001;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
}
#drawer.open {
  transform: translateX(0);
  opacity: 1;
}
#drawer a {
  text-decoration: none;
  color: #23234a;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
#drawer a:hover {
  color: #800080;
}
.close-btn {
  font-size: 2rem;
  border: none;
  background: none;
  align-self: flex-end;
  cursor: pointer;
  color: #800080;
}

#overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 1000;
}
#overlay.show {
  opacity: 1;
  visibility: visible;
}
