@import url("https://fonts.googleapis.com/css?family=Fira+Mono");

html,
body,
* {
  margin: 0;
  padding: 0;
}

body {
  font-size: 20px;
}

#code-input,
#code-view,
#statusbar,
#jscode {
  padding: 1em;
}

pre {
  font-family: "Fira Mono", monospace;
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
}

#statusbar {
  font-family: "Fira Mono", monospace;
  position: sticky;
  top: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: background-color 0.2s;
}
#statusbar.hidden {
  display: none;
}
#statusbar.error {
  background-color: #ff5544;
}
#statusbar.warn {
  background-color: #ffbb44;
}
#statusbar.info {
  background-color: #44bbff;
}

.comment {
  padding: 2em 1em 1em;
  user-select: none;
}
.comment.js {
  color: rgba(0, 0, 0, 0.25);
}
.comment.dl {
  background-color: #282c34;
  color: rgba(255, 255, 255, 0.25);
}

.editor {
  position: relative;
  height: 500px;
  padding: 0;

  background-color: #282c34;
  overflow: scroll;
}

.editor #code-input,
.editor #code-view {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  resize: none;
}

#code-input,
#code-view {
  font-family: "Fira Mono", monospace;
  font-size: 20px;
  line-height: 1.3;

  resize: none;
  white-space: pre;
  outline: none;
  border: none;
}

#code-input {
  z-index: 1;
  background: transparent;
  color: #282c34;
  caret-color: #44bbff;
}

#code-view {
  z-index: 2;
  pointer-events: none;
  color: #abb2bf;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.special {
  color: #44bbff;
}
.definition {
  color: #ff44bb;
}
.keyword {
  color: #ff5544;
}
.lit-string {
  color: #44ffbb;
}
.lit-number {
  color: #ffbb44;
}
