/* jotted
 */
.jotted {
  position: relative;
  height: 12em;
  overflow: hidden;
  border: 1px solid rgba(51,51,51,0.24);
  border-radius: 2px;
  box-sizing: border-box;
  font-family: sans-serif;
}
/* nav
 */
.jotted-nav {
  position: absolute;
  z-index: 2;
  display: block;
  width: 100%;
  height: 2.4em;
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style-type: none;
  background: rgba(51,51,51,0.08);
  border-bottom: 1px solid rgba(51,51,51,0.2);
}
.jotted-nav-item {
  display: none;
  float: left;
  border-width: 0 1px;
  border-style: solid;
  border-color: transparent;
  color: #555;
}
.jotted-nav-item:first-child {
  border-width: 0 1px 0 0;
}
.jotted-nav-item:hover,
.jotted-nav-item:focus {
  background: rgba(51,51,51,0.04);
}
.jotted-nav-item:active {
  background: rgba(51,51,51,0.12);
}
.jotted-nav-item a {
  display: block;
  padding: 0 0.8em;
  color: inherit;
  line-height: 2.4em;
  text-decoration: none;
}
.jotted-pane-active-result .jotted-nav-item-result,
.jotted-pane-active-html .jotted-nav-item-html,
.jotted-pane-active-css .jotted-nav-item-css,
.jotted-pane-active-js .jotted-nav-item-js {
  background: #fff;
  border-color: rgba(51,51,51,0.3);
  color: #222;
}
/* always show the result tab nav
 */
jotted-nav-item,
.jotted-nav-item-result {
  display: block;
}
/* show tabs if we have content for them
 */
.jotted-has-html .jotted-nav-item-html,
.jotted-has-css .jotted-nav-item-css,
.jotted-has-js .jotted-nav-item-js {
  display: block;
}
/* pane
 */
.jotted-pane {
  position: absolute;
  z-index: 1;
  visibility: hidden;
  height: 100%;
  width: 100%;
  padding-top: 2.4em;
  box-sizing: border-box;
  background: #fff;
}
.jotted-pane-active-result .jotted-pane-result,
.jotted-pane-active-html .jotted-pane-html,
.jotted-pane-active-css .jotted-pane-css,
.jotted-pane-active-js .jotted-pane-js {
  position: relative;
  visibility: visible;
}
/* editor
 */
.jotted-editor {
  height: 100%;
}
.jotted-pane-result iframe,
.jotted-editor textarea {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  box-sizing: border-box;
}
.jotted-editor textarea {
  padding: 1em;
  background: #fff;
}
/* status
 */
.jotted-status-active-html .jotted-pane-html,
.jotted-status-active-css .jotted-pane-css,
.jotted-status-active-js .jotted-pane-js {
  padding-bottom: 1.5em;
}
.jotted-status {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  padding: 0 0.6em;
}
.jotted-status p {
  margin: 0;
  color: #333;
  font-size: 0.8em;
  line-height: 1.8em;
}
.jotted-status p:before {
  content: '';
  position: relative;
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.8em;
  margin-bottom: 0.28em;
  border-radius: 100%;
  color: #fff;
  font-size: 0.8em;
  font-family: monospace;
  font-weight: bold;
  line-height: 1.2em;
  text-align: center;
  vertical-align: middle;
}
.jotted-status-loading {
  background: #fff6d5;
}
.jotted-status-loading p:before {
  background: #fd5;
}
.jotted-status-error {
  background: #ffccbc;
}
.jotted-status-error p:before {
  background: #c0392b;
}
/* buttons
 * used by plugins
 */
.jotted-button {
  padding: 0 1em;
  border: 1px solid #ccc;
  background: rgba(236,236,236,0.92);
  background: linear-gradient(rgba(249,249,249,0.92), rgba(236,236,236,0.92));
  border-radius: 2px;
  cursor: pointer;
  line-height: 1.6em;
}
.jotted-button:hover {
  background: #f9f9f9;
}
/* plugins
 */
.jotted-plugin-ace .jotted-editor > textarea {
  display: none;
}
.jotted-plugin-ace .ace_editor {
  width: 100%;
  height: 100%;
}
.jotted-plugin-codemirror .CodeMirror {
  height: 100%;
}
.jotted-nav-item-console {
  display: block;
}
.jotted-pane-console {
  background: #fff;
}
.jotted-pane-active-console .jotted-pane-console {
  position: relative;
  visibility: visible;
}
.jotted-pane-active-console .jotted-nav-item-console {
  background: #fff;
  border-color: rgba(51,51,51,0.3);
  color: #222;
}
.jotted-console-container {
  height: 100%;
  overflow: auto;
  font-family: monospace;
}
.jotted-console-output {
  margin: 0;
  padding: 0;
  list-style-type: none;
  line-height: 2.8em;
}
.jotted-console-log {
  padding: 0 1em;
}
.jotted-console-log-history {
  border-width: 1px 0;
  border-style: solid;
  border-color: rgba(51,51,51,0.08);
  background: rgba(51,51,51,0.04);
}
.jotted-console-log-error {
  background: #ffccbc;
  color: #500;
}
.jotted-console-input {
  position: relative;
  background: rgba(51,51,51,0.12);
}
.jotted-console-input:before {
  content: '>';
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  padding: 0 1em;
  pointer-events: none;
  font-family: inherit;
  font-weight: bold;
  line-height: 2.4em;
}
.jotted-console-input input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 2.4em;
  border: 0;
  padding: 0 1em 0 2.4em;
  background: transparent;
  line-height: 2.4em;
  font-family: inherit;
}
.jotted-console-clear {
  position: absolute;
  top: 3.3em;
  right: 1.4em;
}
.jotted-plugin-pen {
  display: flex;
  flex-flow: row wrap;
  user-select: none;
}
.jotted-plugin-pen .jotted-pane-result {
  flex: 1 100%;
}
.jotted-plugin-pen .jotted-editor .CodeMirror {
  height: calc(100% - 39px);
}
.jotted-plugin-pen .jotted-nav {
  display: none;
}
.jotted-plugin-pen .jotted-pane {
  padding-top: 0;
  height: 50%;
}
.jotted-plugin-pen .jotted-pane-title {
  display: block;
  background: rgba(51,51,51,0.08);
  border-bottom: 1px solid rgba(51,51,51,0.2);
  padding: 0 0.8em;
  line-height: 2.4em;
  font-family: sans-serif;
}
.jotted-plugin-pen .jotted-pane-title-result {
  display: none;
}
.jotted-plugin-pen .jotted-pane-result,
.jotted-plugin-pen.jotted-has-html .jotted-pane-html,
.jotted-plugin-pen.jotted-has-css .jotted-pane-css,
.jotted-plugin-pen.jotted-has-js .jotted-pane-js,
.jotted-plugin-pen.jotted-plugin-console .jotted-pane-console {
  position: relative;
  visibility: visible;
}
.jotted-plugin-pen.jotted-has-html .jotted-pane,
.jotted-plugin-pen.jotted-has-css .jotted-pane,
.jotted-plugin-pen.jotted-has-js .jotted-pane {
  max-width: 100%;
  width: 100%;
}
.jotted-plugin-pen.jotted-has-html.jotted-has-css .jotted-pane-html,
.jotted-plugin-pen.jotted-has-html.jotted-has-css .jotted-pane-css,
.jotted-plugin-pen.jotted-has-html.jotted-has-js .jotted-pane-html,
.jotted-plugin-pen.jotted-has-html.jotted-has-js .jotted-pane-js,
.jotted-plugin-pen.jotted-has-css.jotted-has-js .jotted-pane-css,
.jotted-plugin-pen.jotted-has-css.jotted-has-js .jotted-pane-js {
  max-width: 50%;
  width: 50%;
}
.jotted-plugin-pen.jotted-has-html.jotted-has-css.jotted-has-js .jotted-pane-html,
.jotted-plugin-pen.jotted-has-html.jotted-has-css.jotted-has-js .jotted-pane-js,
.jotted-plugin-pen.jotted-has-html.jotted-has-css.jotted-has-js .jotted-pane-css {
  max-width: 33.3333%;
  width: 33.3333%;
}
.jotted-plugin-pen.jotted-plugin-console .jotted-console-clear {
  top: 4.3em;
}
.jotted-plugin-console.jotted-plugin-pen.jotted-has-html .jotted-pane,
.jotted-plugin-console.jotted-plugin-pen.jotted-has-css .jotted-pane,
.jotted-plugin-console.jotted-plugin-pen.jotted-has-js .jotted-pane {
  width: 50%;
}
.jotted-plugin-console.jotted-plugin-pen.jotted-has-html.jotted-has-css .jotted-pane,
.jotted-plugin-console.jotted-plugin-pen.jotted-has-html.jotted-has-js .jotted-pane,
.jotted-plugin-console.jotted-plugin-pen.jotted-has-css.jotted-has-js .jotted-pane {
  width: 33.33%;
}
.jotted-plugin-console.jotted-plugin-pen.jotted-has-html.jotted-has-css.jotted-has-js .jotted-pane {
  width: 25%;
}
.jotted-plugin-pen-expander {
  position: absolute;
  height: 100%;
  width: 3px;
  z-index: 5;
  cursor: col-resize;
  border-left: 1px solid #ddd;
}
.jotted-button-play {
  position: absolute;
  top: 0.52em;
  right: 0.52em;
  z-index: 3;
}
/* themes
 */
.jotted-nav-item,
.jotted-pane {
  box-sizing: border-box;
}
.jotted-theme-bin {
  overflow: hidden;
}
.jotted-theme-bin .jotted-nav {
  clear: both;
}
.jotted-theme-bin .jotted-nav-item {
  background: transparent;
  pointer-events: none;
  text-align: center;
}
.jotted-theme-bin .jotted-nav-item,
.jotted-theme-bin .jotted-pane {
  border-width: 0 1px 0 0;
  border-style: solid;
  border-color: #ddd;
}
.jotted-theme-bin .jotted-pane:last-child {
  border: 0;
}
.jotted-theme-bin .jotted-pane-result,
.jotted-theme-bin.jotted-has-html .jotted-pane-html,
.jotted-theme-bin.jotted-has-css .jotted-pane-css,
.jotted-theme-bin.jotted-has-js .jotted-pane-js {
  position: relative;
  float: left;
  visibility: visible;
}
.jotted-theme-bin .jotted-pane-result,
.jotted-theme-bin .jotted-nav-item {
  width: 100%;
}
.jotted-theme-bin.jotted-has-html .jotted-nav-item,
.jotted-theme-bin.jotted-has-css .jotted-nav-item,
.jotted-theme-bin.jotted-has-js .jotted-nav-item,
.jotted-theme-bin.jotted-has-html .jotted-pane,
.jotted-theme-bin.jotted-has-css .jotted-pane,
.jotted-theme-bin.jotted-has-js .jotted-pane {
  width: 50%;
}
.jotted-theme-bin.jotted-has-html.jotted-has-css .jotted-nav-item,
.jotted-theme-bin.jotted-has-html.jotted-has-js .jotted-nav-item,
.jotted-theme-bin.jotted-has-css.jotted-has-js .jotted-nav-item,
.jotted-theme-bin.jotted-has-html.jotted-has-css .jotted-pane,
.jotted-theme-bin.jotted-has-html.jotted-has-js .jotted-pane,
.jotted-theme-bin.jotted-has-css.jotted-has-js .jotted-pane {
  width: 33.33%;
}
.jotted-theme-bin.jotted-has-html.jotted-has-css.jotted-has-js .jotted-nav-item,
.jotted-theme-bin.jotted-has-html.jotted-has-css.jotted-has-js .jotted-pane {
  width: 25%;
}
.jotted-theme-bin .jotted-pane-console {
  position: relative;
  float: left;
  visibility: visible;
}
.jotted-plugin-console.jotted-theme-bin.jotted-has-html .jotted-nav-item,
.jotted-plugin-console.jotted-theme-bin.jotted-has-css .jotted-nav-item,
.jotted-plugin-console.jotted-theme-bin.jotted-has-js .jotted-nav-item,
.jotted-plugin-console.jotted-theme-bin.jotted-has-html .jotted-pane,
.jotted-plugin-console.jotted-theme-bin.jotted-has-css .jotted-pane,
.jotted-plugin-console.jotted-theme-bin.jotted-has-js .jotted-pane {
  width: 33.33%;
}
.jotted-plugin-console.jotted-theme-bin.jotted-has-html.jotted-has-css .jotted-nav-item,
.jotted-plugin-console.jotted-theme-bin.jotted-has-html.jotted-has-js .jotted-nav-item,
.jotted-plugin-console.jotted-theme-bin.jotted-has-css.jotted-has-js .jotted-nav-item,
.jotted-plugin-console.jotted-theme-bin.jotted-has-html.jotted-has-css .jotted-pane,
.jotted-plugin-console.jotted-theme-bin.jotted-has-html.jotted-has-js .jotted-pane,
.jotted-plugin-console.jotted-theme-bin.jotted-has-css.jotted-has-js .jotted-pane {
  width: 25%;
}
.jotted-plugin-console.jotted-theme-bin.jotted-has-html.jotted-has-css.jotted-has-js .jotted-nav-item,
.jotted-plugin-console.jotted-theme-bin.jotted-has-html.jotted-has-css.jotted-has-js .jotted-pane {
  width: 20%;
}
