/* All windows: what every window shares. The frame, backdrop and title of the
   Open, Save and message windows, and the floating frame and pointer arrow of
   the Settings, Schedule and Properties windows. */

dialog {
  border: 1px solid var(--popline);
  border-radius: 10px;
  background: var(--pop);
  box-shadow: var(--popshadow);
  color: var(--text);
  width: min(700px, 94vw);
  padding: 18px
}

dialog::backdrop {
  background: rgba(5, 10, 30, .5)
}

dialog h3 {
  font: 600 19px 'Space Grotesk', sans-serif;
  margin: 0 0 10px
}

#settingsWindow,
#scheduleWindow,
#propertiesWindow {
  position: fixed;
  z-index: 20;
  background: var(--pop);
  color: var(--text);
  border: 1px solid var(--popline);
  border-radius: 10px;
  padding: 12px 14px;
  width: 300px;
  box-shadow: var(--popshadow)
}

#settingsWindow[hidden],
#scheduleWindow[hidden],
#propertiesWindow[hidden] {
  display: none
}

#scheduleWindow::before,
#propertiesWindow::before {
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-right-color: var(--popline)
}

#scheduleWindow::after,
#propertiesWindow::after {
  left: -8.5px;
  border-width: 9px 9px 9px 0;
  border-right-color: var(--pop)
}

#scheduleWindow.flip::before,
#propertiesWindow.flip::before {
  left: auto;
  right: -10px;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--popline)
}

#scheduleWindow.flip::after,
#propertiesWindow.flip::after {
  left: auto;
  right: -8.5px;
  border-width: 9px 0 9px 9px;
  border-color: transparent transparent transparent var(--pop)
}

#settingsWindow h4,
#scheduleWindow h4,
#propertiesWindow h4 {
  font: 600 14px 'Space Grotesk', sans-serif;
  margin: 0 0 8px
}
