﻿/********************************/
/* Size                         */
/********************************/
/********************************/
/* Colors                       */
/********************************/
/********************************/
/* Mixins                       */
/********************************/
/********************************/
/* Page                         */
/********************************/
html, body {
  font-size: 15px;
  font-weight: 300;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  overflow: hidden; }

* {
  box-sizing: border-box; }

#artboard {
  width: 100%;
  height: 100%; }
  #artboard:focus {
    outline: none; }
  #artboard .text-editor {
    outline: none;
    background-color: #FFFFFFC0;
    resize: none; }
  #artboard .text-editor:focus {
    outline: none; }

main {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%; }
  main .content {
    flex-grow: 1;
    background: #f5f1eb; }
  main .artboard {
    padding-right: 200px; }
  main .properties {
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
    height: 100%;
    min-width: 250px;
    z-index: 1; }
    main .properties .tab-view {
      height: 100%; }
      main .properties .tab-view .content {
        overflow-y: scroll; }
  main .selection {
    z-index: 2; }
  main .toolbar {
    z-index: 3; }

/********************************/
/* Generic                      */
/********************************/
.hidden {
  display: none; }

.selected {
  opacity: 1 !important; }

/********************************/
/* Label                        */
/********************************/
label.caption.selectable {
  cursor: pointer; }
  label.caption.selectable:hover {
    text-decoration: underline; }

/********************************/
/* List                         */
/********************************/
.list-view label.caption {
  font-size: 1rem;
  font-weight: normal;
  line-height: 1em;
  text-transform: none; }

.list-view .dragging .move-item {
  height: 4px;
  background-color: #f5f1eb; }
  .list-view .dragging .move-item.drag-over {
    height: 30px; }
    .list-view .dragging .move-item.drag-over.before {
      border-top: solid 1px #888; }
    .list-view .dragging .move-item.drag-over.after {
      border-bottom: solid 1px #888; }

.list-view > div {
  font-size: 0.9rem;
  font-weight: 300;
  border: solid 1px #ccc;
  border-radius: 0px;
  padding: 8px;
  max-height: 200px;
  overflow-y: auto;
  background-color: #FFF; }
  .list-view > div .move-item {
    transition-duration: 0.3s;
    height: 0; }
  .list-view > div > .item {
    flex-grow: 1;
    display: flex;
    align-items: center;
    cursor: default;
    padding: 4px;
    transition-duration: 0.3s; }
    .list-view > div > .item.dragged {
      visibility: hidden;
      opacity: 0;
      height: 0; }
    .list-view > div > .item .body {
      flex-grow: 1; }
    .list-view > div > .item:hover {
      background-color: rgba(0, 0, 0, 0.1); }
    .list-view > div > .item.selected {
      background-color: rgba(0, 0, 0, 0.15);
      color: inerit; }

/********************************/
/* Tree                         */
/********************************/
.tree-view {
  font-size: 0.9rem;
  font-weight: 300;
  border: solid 1px #ccc;
  border-radius: 0px;
  padding: 8px;
  max-height: 200px;
  max-width: 220px;
  overflow-x: auto;
  overflow-y: auto;
  background-color: #FFF; }
  .tree-view .item {
    position: relative; }
    .tree-view .item header {
      display: flex;
      align-items: center; }
      .tree-view .item header .expand-collapse {
        cursor: pointer;
        padding: 2px;
        transition-duration: 0.3s; }
      .tree-view .item header .body {
        padding: 4px;
        flex-grow: 1;
        display: flex;
        align-items: center;
        cursor: default;
        transition-duration: 0.1s;
        white-space: nowrap; }
        .tree-view .item header .body:hover {
          background-color: rgba(0, 0, 0, 0.1); }
    .tree-view .item .children {
      margin-left: 24px;
      transition-duration: 0.3s;
      position: relative; }
    .tree-view .item.selected > header > .body {
      background-color: rgba(0, 0, 0, 0.15);
      color: inerit; }
    .tree-view .item.collapsed .expand-collapse {
      transform: rotate(-90deg); }
    .tree-view .item.collapsed .children {
      opacity: 0;
      margin-top: -20px;
      height: 20px;
      visibility: collapse; }
    .tree-view .item.no-items .expand-collapse {
      visibility: hidden;
      pointer-events: none; }

/********************************/
/* Button                       */
/********************************/
.button-text {
  border: none;
  background-color: #18A0FB;
  color: #EFEFEF;
  padding: 8px;
  min-width: 100px;
  margin-right: 8px;
  text-transform: uppercase; }
  .button-text:last-of-type {
    margin-right: 0; }
  .button-text:focus {
    outline: none; }
  .button-text:hover {
    opacity: 0.8; }
  .button-text.minimal {
    min-width: initial; }
  .button-text.secondary {
    background-color: #FFF;
    color: #444; }

.button-icon {
  border: none;
  background: none;
  padding: 0; }
  .button-icon:focus {
    outline: none; }
  .button-icon:hover {
    background: none;
    color: #666; }
  .button-icon:active {
    background: none;
    color: #18A0FB; }

/********************************/
/* Range                        */
/********************************/
.range .container {
  display: flex;
  align-items: center;
  flex-direction: row; }
  .range .container span {
    font-size: 0.9rem;
    font-weight: 300;
    width: 3em;
    text-align: right; }
  .range .container input {
    flex-grow: 1;
    min-width: 100px; }

/********************************/
/* Color                        */
/********************************/
.color .container {
  display: flex;
  flex-direction: row;
  align-items: center; }

.color input[type=range] {
  flex-grow: 1; }

.color .picker {
  margin-left: 8px;
  cursor: pointer; }
  .color .picker:hover {
    color: #18A0FB; }

/********************************/
/* Group                        */
/********************************/
.group {
  background-color: #EFEFEF;
  margin: 0;
  border-bottom: solid 1px #888; }
  .group.no-header > * {
    margin-bottom: 8px; }
  .group.no-header.margin-v {
    margin-top: 8px;
    margin-bottom: 8px; }
  .group.no-header.horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-right: -8px; }
    .group.no-header.horizontal > * {
      margin-right: 8px;
      margin-bottom: 0; }
      .group.no-header.horizontal > *.fill {
        flex-grow: 1; }
  .group > header {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    padding: 8px;
    display: flex;
    flex-direction: row;
    align-items: center; }
    .group > header span {
      flex-grow: 1; }
    .group > header .icon {
      transition-duration: 0.3s;
      display: none; }
  .group > .body {
    padding: 8px;
    transition-duration: 0.3s; }
    .group > .body > * {
      margin-bottom: 8px; }
      .group > .body > * .caption {
        font-size: 0.75rem;
        color: #444;
        display: block;
        margin-bottom: 4px; }
    .group > .body .group {
      padding: 0;
      border: none; }
      .group > .body .group.separator {
        border-top: solid 1px #888;
        border-bottom: solid 1px #888;
        padding-top: 8px;
        margin-top: 8px;
        padding-bottom: 8px;
        margin-bottom: 8px; }
      .group > .body .group .static.separator {
        border-bottom: solid 1px #888;
        margin-bottom: 16px;
        padding-bottom: 8px; }
      .group > .body .group > header {
        font-size: 1rem;
        font-weight: normal;
        line-height: 1em;
        text-transform: none;
        padding: 0;
        padding-top: 8px;
        padding-bottom: 8px; }
      .group > .body .group .body {
        padding: 0;
        padding-left: 8px; }
    .group > .body input[type=text], .group > .body select, .group > .body textarea, .group > .body input[type=number] {
      font-size: 0.9rem;
      font-weight: 300;
      border: solid 1px #ccc;
      border-radius: 5px;
      background-color: #FFF;
      padding: 4px;
      width: 100%; }
      .group > .body input[type=text]:focus, .group > .body select:focus, .group > .body textarea:focus, .group > .body input[type=number]:focus {
        outline: none; }
  .group.collapsed > .body {
    opacity: 0;
    visibility: collapse;
    height: 0;
    overflow: hidden;
    transform: translate(0, -20px); }
  .group.collapsed > header {
    border-bottom: solid 1px #888; }
    .group.collapsed > header .icon {
      transform: rotate(-90deg); }
  .group.collapsed > .body {
    border-bottom: none; }
  .group.collapsible > header {
    border-top: solid 1px #888;
    cursor: pointer; }
    .group.collapsible > header .icon {
      display: block; }
  .group.collapsible > .body {
    border-bottom: solid 1px #888; }

/********************************/
/* Toggle                       */
/********************************/
.toggle label {
  font-size: 0.9rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0 !important; }

.toggle input {
  padding: 0;
  margin-right: 8px; }

/********************************/
/* Object Picker                */
/********************************/
.object-picker > div {
  font-size: 0.9rem;
  font-weight: 300;
  border: solid 1px #ccc;
  border-radius: 5px;
  background-color: #FFF;
  padding: 4px;
  width: 100%;
  cursor: pointer; }
  .object-picker > div.drag-over {
    border: solid 2px #000; }

/********************************/
/* Image Picker                */
/********************************/
.image-picker > div {
  font-size: 0.9rem;
  font-weight: 300;
  display: flex;
  flex-direction: column; }
  .image-picker > div .image-preview {
    display: none;
    border: solid 1px #888;
    width: 100px;
    align-self: center;
    margin-top: 8px; }
  .image-picker > div .file-name {
    border: solid 1px #ccc;
    border-radius: 5px;
    background-color: #FFF;
    padding: 4px;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis; }
  .image-picker > div.image-loaded .image-preview {
    display: block; }

/********************************/
/* Point Edit                   */
/********************************/
.group.point-editor > header {
  font-size: 0.75rem;
  color: #444;
  font-size: 0.75rem !important;
  display: block;
  padding-top: 0 !important;
  padding-bottom: 4px !important; }

.group.point-editor .body {
  display: flex;
  flex-direction: row;
  padding-left: 0 !important; }
  .group.point-editor .body > * {
    margin-right: 8px;
    flex-grow: 1; }
    .group.point-editor .body > *:last-of-type {
      margin-right: 0; }

/********************************/
/* Static                       */
/********************************/
.static {
  display: block; }
  .static.title {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 8px; }

/********************************/
/* TabView                       */
/********************************/
.tab-view {
  display: flex;
  flex-direction: column; }
  .tab-view > header {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0; }
    .tab-view > header > * {
      padding: 8px;
      border-bottom: solid 2px #FFF;
      cursor: default; }
      .tab-view > header > *.active {
        border-bottom-color: #888;
        background-color: rgba(0, 0, 0, 0.15);
        color: inerit; }
  .tab-view .content {
    flex-grow: 1;
    overflow: auto; }
    .tab-view .content > * {
      display: none; }
      .tab-view .content > *.active {
        display: block; }

/********************************/
/* PopUp                       */
/********************************/
.popup-container {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background-color: transparent;
  opacity: 0;
  transition-duration: 0.3s;
  align-items: center;
  justify-content: center;
  justify-items: center; }
  .popup-container.visible {
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 1; }
    .popup-container.visible .popup {
      transform: scale(1, 1);
      opacity: 1; }
  .popup-container .popup {
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
    padding: 16px;
    padding-bottom: 8px;
    background-color: #FFF;
    transform: scale(0, 0);
    opacity: 0;
    transition-duration: 0.3s; }
    .popup-container .popup header {
      font-size: 1rem;
      font-weight: 500;
      text-transform: uppercase;
      padding: 0; }
    .popup-container .popup .body {
      margin-top: 8px;
      margin-bottom: 8px;
      padding: 0; }
    .popup-container .popup footer {
      display: flex;
      flex-direction: row;
      justify-content: flex-end; }

/********************************/
/* Context Menu                 */
/********************************/
.menu-container {
  position: absolute;
  z-index: 20;
  box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
  background-color: #FFF;
  transform: scale(0);
  opacity: 0;
  transition: all 0.1s ease-in-out; }
  .menu-container.visible {
    opacity: 1;
    transform: scale(1); }

.context-menu {
  margin: 0;
  padding: 0; }
  .context-menu .separator {
    border-bottom: solid 1px #888;
    margin-bottom: 4px;
    padding-bottom: 4px;
    width: 100%; }
  .context-menu .item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px;
    transition: background-color 0.1s;
    box-sizing: border-box;
    width: 100%;
    cursor: default; }
    .context-menu .item:hover {
      background-color: rgba(0, 0, 0, 0.1);
      flood-color: inerit; }
    .context-menu .item .icon {
      color: inerit;
      width: 16px; }
    .context-menu .item .text {
      font-size: 0.9rem;
      font-weight: 300;
      line-height: normal;
      margin-left: 8px;
      flex-grow: 1; }

/********************************/
/* Toast                        */
/********************************/
.toast {
  position: fixed;
  margin: auto;
  top: -1em;
  left: 0;
  right: 0;
  transition-duration: 0.3s;
  opacity: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  z-index: 30;
  pointer-events: none; }
  .toast .body {
    padding: 8px;
    background: #444;
    color: #FFF; }
  .toast.visible {
    top: 60px;
    opacity: 1; }

/********************************/
/* SPECIFIC                     */
/********************************/
.error-message .body {
  padding-top: 24px !important;
  display: flex;
  flex-direction: row; }
  .error-message .body .icon {
    font-size: 128px;
    margin-right: 24px;
    color: #ef5350; }

.project-items {
  width: 332px;
  box-sizing: border-box; }
  .project-items .current-folder {
    background: #FFF;
    border: solid 1px #888;
    min-height: 1em;
    margin: 8px;
    padding: 8px; }
  .project-items .group.items {
    display: flex;
    flex-direction: row;
    padding: 8px;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0;
    padding: 0; }
    .project-items .group.items.active {
      display: flex !important; }
    .project-items .group.items .parent-folder .text {
      font-size: 32px; }
    .project-items .group.items > .folder, .project-items .group.items .parent-folder {
      background: #FFF;
      border: solid 1px #ccc;
      margin: 8px;
      display: flex;
      flex-direction: column;
      align-items: center;
      transition-duration: 0.3s;
      width: 150px;
      height: 150px;
      justify-content: center; }
      .project-items .group.items > .folder .icon, .project-items .group.items .parent-folder .icon {
        font-size: 64px;
        color: #18A0FB;
        order: 0; }
      .project-items .group.items > .folder .text, .project-items .group.items .parent-folder .text {
        color: #444;
        order: 1; }
    .project-items .group.items > .item {
      background: #FFF;
      border: solid 1px #ccc;
      margin: 8px;
      display: flex;
      flex-direction: column;
      align-items: center;
      transition-duration: 0.3s;
      width: 150px; }
      .project-items .group.items > .item:hover {
        border-color: #18A0FB;
        border-width: 1px;
        transform: scale(1.05, 1.05); }
      .project-items .group.items > .item img {
        width: 150px; }
      .project-items .group.items > .item label {
        margin-top: 8px;
        margin-bottom: 8px; }

.control-param {
  position: relative; }
  .control-param .add-param {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    transition-duration: 0.1s;
    color: #18A0FB; }
    .control-param .add-param:hover {
      opacity: 0.7;
      cursor: pointer; }
  .control-param:hover .add-param {
    opacity: 1; }
  .control-param:hover label.caption {
    color: #18A0FB !important; }

.current-selection {
  box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
  padding: 4px;
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 0px;
  width: 250px;
  overflow-y: scroll;
  transition-duration: 0.3s; }
  .current-selection > header {
    display: none; }
  .current-selection.hidden {
    display: block;
    left: -250px;
    opacity: 0; }

.group.with-label > header {
  font-size: 0.75rem;
  color: #444;
  font-size: 0.75rem !important;
  display: block;
  padding-top: 0 !important;
  padding-bottom: 4px !important; }

.tools {
  top: 0;
  right: 0;
  left: 0;
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: center; }
  .tools header {
    display: none; }
  .tools .body {
    box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
    background-color: #EFEFEF;
    padding: 4px;
    display: flex;
    flex-direction: row;
    position: absolute; }
    .tools .body > *:not(.separator) {
      padding: 4px;
      margin: 0;
      width: 32px;
      text-align: center;
      border: solid 1px transparent; }
      .tools .body > *:not(.separator):hover {
        background-color: white;
        border: solid 1px #ccc; }
      .tools .body > *:not(.separator).selected {
        color: #18A0FB;
        border: solid 1px #999; }
    .tools .body .static.separator {
      width: 1px;
      margin: 4px;
      display: block;
      background-color: #ccc;
      border: none; }
