.overlay {
  position: fixed;
  background: rgba(0, 0, 0, 0.8);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: auto;
  z-index: 500;
  visibility: hidden;
  opacity: 0;
  transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1), visibility 225ms cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay_active {
  visibility: visible;
  opacity: 1;
}