:root {
  color-scheme: light dark;
  --html-background-color: #e1e1e1;
  --font-color: rgba(0, 0, 0, 0.87);
  --dialog-background-color: rgb(255, 255, 255);
  --dialog-pane-color: rgb(255, 255, 255, 0.8);
}
@media (prefers-color-scheme: dark) {
  :root {
    --html-background-color: black;
    --font-color: white;
    --font-color-light: none;
    --dialog-background-color: rgb(0, 0, 0);
    --dialog-pane-color: rgb(0, 0, 0, 0.8);
  }
}

* {
  box-sizing: border-box;
}

body {
  background: var(--html-background-color);
  color: var(--font-color);
}

a {
  text-decoration: none;
  color: var(--font-color);
}

a:visited {
  text-decoration: none;
  color: var(--font-color);
}

#control .header {
  font-size: xx-large;
  display: flex;
  align-items: baseline;
}

#control .viewNavigation {
  margin-left: 1em;
}

#control .options {
  padding: 1em;
}

.hidden {
  display: none;
}

#dialogPane {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}

#dialog {
  padding-top: 60px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  z-index: 1000;
  background: var(--dialog-pane-color);
}

.dialog {
  width: 300px;
  height: 360px;
  padding: 1em;
  border: 2px solid white;
  outline: 2px solid gray;
  background: var(--dialog-background-color);
}

.dialog .header {
  display: flex;
  justify-content: space-between;
  font-size: large;
}

.dialog .content {
  margin-top: 1em;
}

.dialog .content div {
  margin-top: 1em;
}

#d_type {
  width: 280px;
  height: 2em;
}

#d_text {
  width: 280px;
  height: 2em;
}

#d_date {
  width: 280px;
  height: 2em;
}

.dialog .buttons {
  margin-top: 0.5em;
  text-align: center;
  display: flex;
  justify-content: space-between;
}

.dialog .button {
  display: inline-block;
  min-height: 40px;
  width: 80px;
  line-height: 40px;
  text-align: center;
  vertical-align: middle;
  padding-left: 0.5em;
  padding-right: 0.5em;
  background: rgb(28, 28, 28);
  margin: 0.5em;
}

.dialog .button:hover {
  cursor: pointer;
}

.dialog .red {
  background: rgb(128, 0, 0, 0.8);
}

.dialog .green {
  background: rgb(0, 128, 0, 0.8);
}

.dialog .black {
  background: rgb(0, 0, 0, 0.8);
}

label:hover {
  cursor: pointer;
}

input[type="checkbox"]:hover {
  cursor: pointer;
}
