:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: #333333;
  background-color: #ffffff;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body, .root {
  height: 100%;
  margin: 0;
  padding: 0;
  min-height: 0;
}

* {
  box-sizing: border-box;
}

.root {
  display: flex;
  flex-direction: column;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #cccccc;
  padding: 0em 1em;
}

p#error {
  color: #ff9999;
  display: none;
}
p#error.active {
  display: block;
}

main {
  height: 100%;
  position: relative;
  padding: 1em;
}

div#progress {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
}

div.panes {
  display: flex;
  gap: 1em;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}

main.ready div#progress {
  opacity: 0;
}

main.ready div.panes {
  visibility: visible;
  opacity: 1;
}

div.pane {
  flex: 1 0 0%;
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

div.editor-container {
  flex: 1 1 0%;
  height: 100%;
  min-width: 0px;
  min-height: 0px;
}

div.editor {
  height: 100%;
  border: 1px solid #000000;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

li {
  position: relative;
  color: #cccccc;
}

li::before {
  content: "";
  position: absolute;
}

li.started:not(.finished) {
  color: #000000;
}

li.started:not(.finished)::before {
  top: 0.5em;
  left: -1.25em;
  width: 0.5em;
  height: 0.5em;
  border-right: 0.2em solid #9c9c9c;
  border-bottom: 0.2em solid #9c9c9c;
  transform: rotate(-45deg);
  animation: 1s infinite active;
}

@keyframes active {
  0% {
    left: -1.5em;
  }

  100% {
    left: -1em;
  }
}

li.finished {
  color: #333333;
}

li.finished::before {
  top: 0.5em;
  left: -1.25em;
  width: 0.75em;
  height: 0.25em;
  border-left: 0.2em solid #9c9c9c;
  border-bottom: 0.2em solid #9c9c9c;
  transform: rotate(-45deg);
}

.monaco-editor {
	position: absolute !important;
}

footer {
  text-align: center;
}