@import url("https://fonts.googleapis.com/css?family=Titillium+Web:400,600");
@import url("//cdn.jsdelivr.net/font-hack/2.020/css/hack.min.css");
html {
  color: #39464E;
  font-family: Titillium, "Titillium Web", Ubuntu, sans-serif;
  height: 100vh;
}

body {
  height: 100%;
  margin: 0;
  position: relative;
}

#header {
  font-size: 11pt;
  height: 55px;
  width: 100%;
  background: #FFF;
  padding: 0 15px;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 8;
}

.header-content {
  position: relative;
  float: left;
  height: 100%;
}

.header-content.right {
  float: right;
}

.header-content>* {
  display: block;
  float: left;
}

.header-content img#logo {
  margin-right: 15px;
  width: 48px;
  height: 48px;
  top: 3px;
  transform: none;
}

.header-content .entry, .header-content img {
  top: 50%;
  transform: translateY(-50%);
  position: relative;
}

#progress {
  width: 100%;
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
}

#lupdate-chip {
  box-shadow: none;
}

[class^="icon-"] {
  vertical-align: middle;
}

.modal {
  display: none;
  background-color: #fff;
  width: 272px;
  max-height: 75vh;
  max-height: calc(100vh - 55px - 28px - 1px);
  overflow-y: auto;
  padding: 8px;
  margin: 0;
  line-height: initial;
  border-radius: 2px;
  /* box-shadow: 0 0 1px rgba(57, 70, 78, .15), 0 20px 55px -8px rgba(57, 70, 78, .25); */
  position: absolute;
  top: 100%;
  top: calc(100% + 4px);
  right: -4px;
}

.modal.visible {
  display: block;
}

.modal p {
  margin: 0 0 9px;
}

.modal p:last-child {
  margin: 0;
}

#content {
  height: 100%;
  padding-top: 55px;
  background-color: #F5F5F5;
  box-sizing: border-box;
}

.column {
  width: 100%;
}

.column, .row, .container {
  position: relative;
  box-sizing: border-box;
  height: 100%;
}

.container {
  overflow-y: auto;
  overflow-x: hidden;
}

.padded {
  padding: 8px;
}

.row .label {
  display: table-cell;
  color: #A0A1A7;
  position: absolute;
  top: 8px;
  right: 8px;
  /* text-transform: uppercase; */
  font-size: 9.5pt;
  line-height: 1em;
  z-index: 7;
}

.ckeditor .padded {
  padding: 0;
}

.bounds {
  height: 100%;
  position: relative;
  width: 100%;
}

.bounds>textarea, .bounds>pre {
  background: transparent;
  border: 0;
  box-sizing: border-box;
  font-size: 12pt;
  left: 0;
  line-height: 13pt;
  margin: 0;
  min-height: 100%;
  outline: 0;
  padding: 0;
  position: absolute;
  resize: none;
  top: 0;
  white-space: pre-wrap;
  width: 100%;
  word-wrap: break-word;
}

.bounds>textarea, code {
  display: block;
  font-family: "Ubuntu Mono", monospace;
}

.bounds>textarea {
  color: transparent;
  overflow: hidden;
}

.bounds>textarea:focus {
  color: #000;
}

.bounds>textarea::placeholder {
  color: #A0A1A7;
}

.bounds>pre {
  pointer-events: none;
  text-shadow: 0 0 #F5F5F5;
}

.ckeditor pre, .ckeditor .CodeMirror {
  display: none;
}

.cke_source.cke_source {
  font-family: "Ubuntu Mono", monospace;
  font-size: 11pt;
  padding: 8px;
}

/* CKEditor */

.cke_inner {
  display: flex !important;
  flex-direction: column;
  height: 100% !important;
}

.cke_contents {
  flex-grow: 100;
}

.cke_top, .cke_bottom {
  flex-shrink: 0;
}

/* iFrame */

iframe {
  display: block;
  width: 100%;
  height: 100%;
  background-color: transparent;
  border: none;
  box-sizing: border-box;
  transition: all 1s ease;
}

/* Split.js */

.gutter {
  background-color: #EDEDED;
  background-repeat: no-repeat;
  background-position: 50%;
}

.gutter.gutter-horizontal {
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
  cursor: ew-resize;
  width: 8px;
}

.gutter.gutter-vertical {
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII=');
  cursor: ns-resize;
  height: 8px;
}

.split {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.column, .gutter.gutter-horizontal {
  float: left;
  height: 100%;
}

/* Fooling with variable inputs */

#varia, #varia>span {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#varia>span {
  flex: 2 0;
  margin: 0 3px 0 0;
}

#varia>span:last-child {
  margin: 0 0 0 4px;
}

#varia .lbl {
  margin: 0;
}

.current~#variable-list, #variable-list-current {
  display: none;
}

#variable-list, .current~#variable-list-current {
  display: block;
}

#variables input {
  text-transform: uppercase;
}

[id^="variable-list"]>p {
  display: flex;
  justify-content: space-between;
}

[id^="variable-list"]>p input {
  width: 130px;
  margin: 0 3px 0 0;
  flex: auto;
  text-transform: uppercase;
}

[id^="variable-list"]>p [type="number"] {
  margin: 0 0 0 4px;
}

[id^="variable-list"]>p input::placeholder {
  font-family: fiddle-icons, Titillium, "Titillium Web", Ubuntu, sans-serif;
  opacity: 0;
}

[id^="variable-list"]>p:last-of-type input::placeholder {
  opacity: 1;
}

input:invalid {
  border-color: #f3261b;
}

/* Fooling with Material Design */

.color-accent {
  color: #4db6ac;
}

.mdl-chip {
  background-color: transparent;
}

.mdl-list {
  margin: 0;
  padding: 0;
}

.mdl-textfield {
  width: 100%;
}

.mdl-textfield input:disabled {
  color: rgba(0, 0, 0, .26);
}

.mdl-textfield__label {
  font-family: fiddle-icons, Titillium, "Titillium Web", Ubuntu, sans-serif;
}

.compact .mdl-list__item {
  padding: 0 16px;
}

.compact li:not(:first-of-type) .mdl-textfield {
  margin-top: -20px;
}

#options .mdl-list__item:last-child {
  padding: 16px 16px 0;
}

/* Playing with media queries */

@media (max-width: 1151px) {
  #lupdate-chip {
    display: none;
  }
}
