#template-selector {
  align-self: flex-end;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  background: white;
  padding: 50px;
  height: 70vh;
  overflow-y: scroll;
  border-radius: 5px;
  overflow-x: clip;
}

#popup-screen {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: 100vh;
  background: black;
  opacity: 0.7;
  z-index: 98;
  transition: all 100ms ease-out;
}

#popup-screen.hidden {
  opacity: 0;
  pointer-events: none !important;
}

#popup.hidden {
  opacity: 0;
  pointer-events: none !important;
}