html {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif; }

*, *::before, *::after {
  box-sizing: inherit; }

body {
  margin: 0;
  padding: 0;
  height: 100%;
  line-height: 1.5em; }

h1, h2, h3, h4, h5, h6 {
  font-family: serif;
  margin-top: .25em;
  margin-bottom: .25em;
  line-height: 1.75em; }

h1 {
  font-size: 3rem;
  border-bottom: 1px solid grey; }

h2 {
  font-size: 2.5rem; }

h3 {
  font-size: 2rem; }

h4 {
  font-size: 1.5rem; }

h5 {
  font-size: 1.25rem; }

h6 {
  font-size: 1rem;
  font-weight: bold; }

main {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 95%;
  height: 95%; }

footer {
  display: flex;
  padding: 1rem 1rem 1rem 5.5rem;
  color: white;
  background: #222;
  font-size: .9rem;
  z-index: 2; }

footer .column {
  flex: 1; }

.init {
  background: linear-gradient(140deg, #d53369 0%, #daae51 80%); }

.fullscreen {
  display: block;
  width: 100%;
  height: 100vh; }

.dialog {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 30rem;
  border: 3px solid #222;
  border-radius: 10px;
  background: #FAFAFA;
  padding: 2em;
  margin: 1em;
  box-shadow: 15px 20px 0px rgba(0, 0, 0, 0.25); }
  .dialog *:first-child {
    margin-top: 0; }
  .dialog *:last-child {
    margin-bottom: 0; }
  .dialog h1 {
    padding-bottom: .25em;
    line-height: 1.25em;
    font-weight: normal;
    border-width: 3px;
    border-color: black; }
  .dialog form {
    display: block; }
    .dialog form button {
      display: block;
      cursor: pointer; }
      .dialog form button.confirm {
        background: #ff9f1c;
        padding: .5rem;
        outline: 0;
        border: 0;
        border-radius: 0;
        font-weight: bold;
        text-transform: uppercase; }
    .dialog form .item {
      display: block;
      padding: .5rem 0;
      border-bottom: 1px solid grey; }
      .dialog form .item.text label,
      .dialog form .item.text input[type="text"],
      .dialog form .item.text input[type="password"] {
        display: block; }
      .dialog form .item.text label {
        margin: .5rem 0; }
      .dialog form .item.text input[type="text"],
      .dialog form .item.text input[type="password"] {
        padding: .5rem .5rem;
        width: 100%;
        outline: 0;
        border: 2px solid grey;
        border-radius: 0;
        transition-property: border-color;
        transition-duration: .1s; }
        .dialog form .item.text input[type="text"]:focus,
        .dialog form .item.text input[type="password"]:focus {
          border-color: #ff9f1c; }
      .dialog form .item.buttonrow {
        display: flex;
        justify-content: space-between; }
        .dialog form .item.buttonrow button {
          flex: 1; }
      .dialog form .item:first-of-type {
        padding-top: 0; }
      .dialog form .item:last-of-type {
        padding-bottom: 0;
        border-bottom: 0; }

.message {
  display: flex;
  position: relative;
  align-items: center;
  width: 100%;
  padding: .5em;
  margin: 1rem 0rem;
  font-size: 1em; }
  .message > .icon {
    display: block;
    width: 2em;
    height: 2em;
    margin-right: .5em;
    line-height: 2em;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    border-width: 2px;
    border-style: solid; }
  .message > .payload {
    display: block;
    flex: 80; }
  .message > .buttonRow {
    display: flex;
    flex-direction: row-reverse;
    position: absolute;
    top: 0;
    right: 0;
    width: initial;
    height: 2em;
    background: transparent; }
    .message > .buttonRow > button {
      display: block;
      width: 2em;
      line-height: 1em;
      background: transparent;
      border: 0;
      border-radius: 0; }
      .message > .buttonRow > button:hover {
        background: #D8000C;
        color: white;
        cursor: pointer; }

.message.alert {
  padding-right: 2rem;
  color: #D8000C;
  background: #FFD2D2;
  border-color: transparent; }

.loader {
  display: block;
  width: 5em;
  height: 5em;
  padding: 1em;
  margin: 1em;
  background: transparent;
  border-width: .75em;
  border-top-color: grey;
  border-left-color: lightgrey;
  border-right-color: lightgrey;
  border-bottom-color: grey;
  border-style: solid;
  border-radius: 50%;
  animation: spin 1s linear infinite; }

@keyframes spin {
  0% {
    transform: rotate(0); }
  100% {
    transform: rotate(360deg); } }

.popup {
  display: block;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5 !important; }
  .popup .backdrop {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); }
  .popup .body {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 4rem;
    max-height: 100%;
    background: white;
    border: 3px solid black;
    transform: translate(-50%, -50%);
    overflow-y: auto; }
    .popup .body h1 {
      display: block;
      margin-top: 0;
      font-weight: normal;
      line-height: 1.25em;
      border-color: black;
      border-width: 3px; }
    .popup .body > *:last-child {
      margin-bottom: 0; }

@media screen and (max-width: 1400px) {
  .popup .body {
    width: 75%; } }

@media screen and (max-width: 900px) {
  .popup .body {
    width: 90%; } }

.key {
  display: inline-block;
  padding: 0 .25rem;
  background: lightgrey;
  border: 1px solid grey;
  color: #c33;
  font-family: monospace; }

header {
  display: block;
  position: relative;
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 5.5rem;
  background: #3d4752;
  color: white;
  z-index: 4; }

header h1 {
  display: inline-block;
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 2.5rem;
  border: 0; }

.menu {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  color: #222;
  padding: 4.5rem 1rem 1rem 1rem;
  width: 45vw;
  max-width: 30rem;
  height: calc(3.5rem + calc(100vh - 3.5rem));
  background: #e6e6e6;
  border-right: 1px solid #777;
  z-index: 3;
  transition: all 0.3s ease; }
  .menu.hidden {
    left: -45vw; }
  .menu .category {
    display: block;
    margin: 1rem 0;
    border-bottom: 1px solid black; }
    .menu .category:last-child {
      border-bottom: 0; }
    .menu .category h1 {
      display: block;
      margin: 0;
      font-size: 1.25em;
      font-weight: bold;
      border-bottom: 0; }
    .menu .category .option {
      display: flex;
      margin: 1rem 0;
      line-height: 2em; }
      .menu .category .option .description {
        flex: 4; }
      .menu .category .option .input {
        flex: 6; }

.switch {
  display: flex; }
  .switch .description {
    flex: 1;
    margin: 0 1em; }
    .switch .description.left {
      text-align: right; }
    .switch .description.right {
      text-align: left; }
  .switch .input {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 3.5em;
    line-height: 1.6em;
    margin: .2em 0;
    cursor: pointer; }
    .switch .input::before, .switch .input::after {
      content: '';
      position: absolute;
      display: block; }
    .switch .input::before {
      width: 100%;
      top: 0;
      left: 0;
      bottom: 0;
      border-radius: .8em;
      transition: background .2s ease; }
    .switch .input::after {
      content: '';
      width: 1.4em;
      top: .1em;
      bottom: .1em;
      margin-left: .1em;
      margin-right: .1em;
      background: #fff;
      border-radius: .7em;
      transition: all .2s ease; }
  .switch.on .input::before {
    background: #3a3; }
  .switch.on .input::after {
    left: calc(100% - 1.7em); }
  .switch.off .input::before {
    background: #bbb; }
  .switch.off .input::after {
    left: .1em; }

.toggle {
  display: flex; }
  .toggle.bar > label {
    flex: 1;
    color: #222;
    background: white;
    border-width: 1px;
    border-right-width: 0;
    border-style: solid;
    border-color: #e6e6e6;
    font-weight: bold;
    text-align: center;
    cursor: pointer; }
    .toggle.bar > label > input[type="radio"] {
      display: none; }
    .toggle.bar > label.active {
      color: white;
      background: #ff9f1c;
      border-color: #ff9f1c;
      border-left-color: #e6e6e6; }
      .toggle.bar > label.active:hover {
        border-color: #ff9f1c; }
        .toggle.bar > label.active:hover + label {
          border-left-color: #ff9f1c; }
      .toggle.bar > label.active:first-child {
        border-left-color: #ff9f1c; }
      .toggle.bar > label.active:last-child {
        border-right-color: #ff9f1c; }
    .toggle.bar > label:first-child {
      border-radius: 5px 0 0 5px;
      border-left-color: #e6e6e6; }
    .toggle.bar > label:last-child {
      border-radius: 0 5px 5px 0;
      border-right-color: #e6e6e6;
      border-right-width: 1px; }
    .toggle.bar > label:hover {
      border-color: #777; }
      .toggle.bar > label:hover + label {
        border-left-color: #777; }

.menu-toggle {
  display: block;
  position: absolute;
  width: 3.5rem;
  height: 3.5rem;
  top: 0;
  left: 1rem;
  background: transparent;
  z-index: 5; }

.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer; }

.menu-toggle .bar {
  display: block;
  position: absolute;
  top: 50%;
  left: .5em;
  width: 2.5em;
  height: .25em;
  background: white;
  transform: translateY(-50%);
  transition-property: background;
  transition-duration: 0s;
  transition-delay: 0.15s;
  border-radius: 5px; }

.menu-toggle .bar::before {
  display: block;
  position: relative;
  content: "";
  top: -0.75em;
  left: 0em;
  width: 2.5em;
  height: .25em;
  background: white;
  transition-property: top, transform;
  transition-duration: 0.15s, 0.15s;
  transition-delay: 0.15s, 0s;
  border-radius: 5px; }

.menu-toggle .bar::after {
  display: block;
  position: relative;
  content: "";
  top: .5em;
  left: 0em;
  width: 2.5em;
  height: .25em;
  background: white;
  transition-property: top, transform;
  transition-duration: 0.15s, 0.15s;
  transition-delay: 0.15s, 0s;
  border-radius: 5px; }

.menu-toggle.open {
  position: fixed; }

.menu-toggle.open .bar {
  background: transparent; }

.menu-toggle.open .bar::before {
  top: 0;
  transform: rotate(45deg);
  transition-delay: 0s, 0.15s; }

.menu-toggle.open .bar::after {
  top: -0.25em;
  transform: rotate(-45deg);
  transition-delay: 0s, 0.15s; }

.modeller {
  height: calc(100vh - 3.5rem);
  width: 100%;
  z-index: 1; }

.modeller .pane {
  background: white;
  overflow: hidden; }

.modeller .pane.right {
  flex-grow: 1; }

.modeller .resizer {
  background: lightgrey;
  left: 0 !important;
  margin-left: 0 !important;
  width: 0.75rem !important;
  z-index: 2; }

.modeller.is-resizing .resizer {
  background: darkgrey; }

.modeller .resizer:before {
  content: "";
  display: block;
  width: 0.25rem;
  height: 5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  background: darkgrey;
  text-align: center;
  transform: translate(-50%, -50%);
  border-radius: 5px; }

.modeller.is-resizing .resizer:before {
  background: grey; }

.editorMenu {
  position: absolute;
  margin: 0;
  padding: 0;
  background: white;
  border: 1px solid #777;
  box-shadow: 4px 4px 2px 0 rgba(0, 0, 0, 0.3); }
  .editorMenu input[type="text"] {
    display: block;
    width: 100%;
    margin: .5em 0;
    padding: .25em; }
  .editorMenu select {
    display: block;
    width: 100%;
    padding: .25em .5em; }
  .editorMenu > .input {
    border-bottom: 1px solid #777; }
  .editorMenu > .buttons {
    display: flex;
    padding: .5em; }
    .editorMenu > .buttons > button {
      flex: 1;
      margin: 0 1em;
      padding: .5em;
      color: #222;
      font-weight: bold;
      border: 0;
      border-radius: 10px;
      cursor: pointer; }
      .editorMenu > .buttons > button.confirm {
        background: #ff9f1c; }
        .editorMenu > .buttons > button.confirm:hover {
          background: #d35400; }
      .editorMenu > .buttons > button.cancel {
        color: #3d4752;
        background: transparent; }
        .editorMenu > .buttons > button.cancel:hover {
          background: rgba(0, 0, 0, 0.2); }
      .editorMenu > .buttons > button:first-child {
        margin-left: 0; }
      .editorMenu > .buttons > button:last-child {
        margin-right: 0; }

.editor {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; }
  .editor .backdrop {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent; }
  .editor button.editorButton {
    display: block;
    margin: .5rem 0;
    padding: .25rem 1rem;
    background: #e6e6e6;
    color: #222;
    border: 2px solid #222;
    font-weight: bold;
    cursor: pointer; }
    .editor button.editorButton:hover {
      background: #aaa; }

#feedbackButtons {
  display: block;
  position: absolute;
  bottom: .5rem;
  left: .5rem; }

#editorButtons {
  display: block;
  position: absolute;
  bottom: .5rem;
  right: .5rem; }

.contextMenu {
  display: block;
  position: absolute;
  margin: 0;
  padding: 0;
  width: 10em;
  background: white;
  border: 1px solid grey;
  border-radius: 0;
  box-shadow: 5px 5px 4px 0 rgba(0, 0, 0, 0.3); }
  .contextMenu .item {
    display: block;
    margin: 0;
    padding: 0 1em;
    line-height: 2em;
    cursor: pointer; }
    .contextMenu .item:hover {
      background-color: orange;
      padding-left: 1.25em; }

.messenger {
  display: block;
  position: absolute;
  top: .5rem;
  right: .5rem;
  max-width: 25em;
  background: white;
  border: 2px solid black; }
  .messenger .item {
    display: block;
    padding: .5em .5em;
    border-bottom: 1px solid grey; }
    .messenger .item:last-child {
      border-bottom: 0; }

.editState {
  transform: translateX(-50%); }
  .editState > .input.places {
    display: flex; }
  .editState > .input > .place {
    flex: 1;
    padding: .5em;
    max-width: 7.5em;
    border-right: 1px solid #aaa; }
    .editState > .input > .place:last-child {
      border-right: 0; }
    .editState > .input > .place > .name {
      text-align: center; }
    .editState > .input > .place > input {
      text-align: center; }
    .editState > .input > .place > .buttons {
      display: flex;
      border: 1px solid #222; }
      .editState > .input > .place > .buttons button {
        flex: 1;
        border: 0;
        border-right: 1px solid #222;
        cursor: pointer; }
        .editState > .input > .place > .buttons button:last-child {
          border-right: 0; }

.editEdge {
  top: 50%;
  left: 50%;
  min-width: 10em;
  transform: translateX(-50%); }
  .editEdge > .input {
    padding: .5em; }
    .editEdge > .input > select {
      display: block;
      width: 100%; }

.imager .image {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  height: 100%;
  margin: 0 auto;
  transform: translate(-50%, -50%); }

.imager .loader {
  position: absolute;
  top: 50%;
  left: 50%;
  animation: central-spin 1s linear infinite; }

@keyframes central-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg); }
  100% {
    transform: translate(-50%, -50%) rotate(360deg); } }

footer {
  display: flex;
  position: relative;
  padding: 1rem 1rem 1rem 5.5rem;
  color: #e6e6e6;
  background: #222;
  font-size: .9em;
  box-shadow: 0px 25px 10px -10px inset rgba(0, 0, 0, 0.4);
  z-index: 4; }
  footer a {
    color: inherit;
    text-decoration: none; }
    footer a:hover {
      text-decoration: underline; }

footer .column {
  flex: 1; }

