
html, body {
    padding: 0px;
    margin: 0px;
    overflow: hidden;
    height: 100%;
}

body {
    color: #cccfd4;
    background-color: #212428;
    height: 100%;
    min-height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
    font-size: 13px;
    font-family: 'Source Sans Pro', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.embedded {
    overflow: hidden;
}

body,
#console,
#hierarchy-tree,
#properties-list {
    scrollbar-width: thin;
    scrollbar-color: #596572 #242a31;
}

body::-webkit-scrollbar,
#console::-webkit-scrollbar,
#hierarchy-tree::-webkit-scrollbar,
#properties-list::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

body::-webkit-scrollbar-track,
#console::-webkit-scrollbar-track,
#hierarchy-tree::-webkit-scrollbar-track,
#properties-list::-webkit-scrollbar-track {
    background: #242a31;
}

body::-webkit-scrollbar-thumb,
#console::-webkit-scrollbar-thumb,
#hierarchy-tree::-webkit-scrollbar-thumb,
#properties-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #5b6774 0%, #444d57 100%);
    border: 2px solid #242a31;
    border-radius: 999px;
}

body::-webkit-scrollbar-thumb:hover,
#console::-webkit-scrollbar-thumb:hover,
#hierarchy-tree::-webkit-scrollbar-thumb:hover,
#properties-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #697686 0%, #4e5864 100%);
}

*:focus {
    outline: none;
}

button, input, select {
    -webkit-appearance: none;
    -webkit-border-radius: 0px;
    background: linear-gradient(180deg, #4b555f 0%, #363d45 100%);
    border-radius: 8px;
    border: 1px solid #5c6772;
    color: #eff2f6;
    min-height: 36px;
    height: auto;
    padding: 0px 14px 0px 14px;
    margin: 0px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 13px;
    font-family: 'Source Sans Pro', sans-serif;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(8, 12, 18, 0.18);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button:active, input:active, select:active {
    background: linear-gradient(180deg, #3c444c 0%, #2f353d 100%);
    border-color: #6b7784;
    box-shadow: 0 4px 10px rgba(8, 12, 18, 0.12);
    transform: translateY(1px);
    transition: background 0s ease 0s;
}

button:hover, select:hover {
    background: linear-gradient(180deg, #57626d 0%, #404850 100%);
    border-color: #7a8794;
    box-shadow: 0 10px 18px rgba(8, 12, 18, 0.22);
}

button:focus-visible, select:focus-visible {
    outline: 2px solid #39a3e4;
    outline-offset: 2px;
}

button[disabled], select[disabled], input[disabled] {
    cursor: default;
}

#splash {
    display: block;
    background-color: #434448;
    position: fixed;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
    z-index: 999999;


    color: #b3b4b5;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 18px;
    font-family: 'Source Sans Pro', sans-serif;

    cursor: pointer;
}

#splash>div {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 200px;
    height: 0px;
    margin: auto;
    text-align: center;
}

#toolbar {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 12px 20px;
    box-sizing: border-box;
    line-height: 1.35;
    color: #737679;
    border-bottom: 1px solid #2d3136;
}

#share-wrap {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.toolbar-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1 1 420px;
    min-width: 0;
}

.toolbar-actions {
    flex: 0 1 auto;
    min-width: 0;
}

.toolbar-label {
    color: #d9dde2;
    font-size: 14px;
    font-weight: 700;
}

.toolbar-logo {
    width: auto;
    height: 32px;
    margin-right: 6px;
    flex: 0 0 auto;
}

.toolbar-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 220px;
    max-width: 100%;
}

.toolbar-select-wrap::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 10px;
    height: 6px;
    transform: translateY(-50%);
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23eff2f6' d='M5 6 0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 6px;
}

#scene {
    min-width: 220px;
    max-width: 100%;
    width: 100%;
    padding-right: 38px;
    color: #eff2f6;
    background: linear-gradient(180deg, #343b43 0%, #262c33 100%);
}

#scene option {
    color: #eff2f6;
    background: #252a31;
}

#defold_version {
    color: #98a1aa;
    font-size: 12px;
    white-space: nowrap;
}

.toolbar-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1em;
    font-size: 15px;
    line-height: 1;
    pointer-events: none;
}

#layout {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    margin: 8px;
}

.pane-content {
    background-color: #2c2e33;
    border-radius: 3px;
    overflow: hidden;
}

body.embedded .pane-content {
    border-radius: 0px;
}

.tabs-wrap {
    position: absolute;
    top: 0px;
    height: 38px;
    width: 100%;
    padding: 0px 0px 0px 0px;
    margin: 0px;
    border: 0px;
    font-size: 13px;
}

.tabs-wrap label {
  opacity: 0.4;
  color: #eff2f6;
  margin: 0px;
  padding: 0px;
  height: 38px;
  line-height: 38px;
  padding: 0px 12px 0px 12px;
  border: none;
  border-bottom: 2px solid #212428;
  display: inline-block;
  transition: all 0.2s ease 0s;
}

.tabs-wrap input {
  margin: 0px;
  padding: 0px;
  display: none;
}

.tabs-wrap [type=radio]:checked + label
{
  opacity: 1;
  color: #eff2f6;
  border-bottom: 2px solid #fd6623;
}

svg, .svg-image {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

button .svg-image,
.toolbar-actions .svg-image,
.toolbar-main .svg-image {
    pointer-events: none;
}

button .svg-image {
    margin-right: 0px;
}

#pane-editor, #pane-console, #pane-canvas, #row-top, #row-bottom, #inspector-pane {
    position: relative;
}

#inspector-wrap {
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
}

#editor-wrap {
    width: 100%;
    position: absolute;
    top: 40px;
    bottom: 0px;
}

#editor-wrap > button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 999998;
}

#editor {
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
}

#canvas {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

#console-wrap {
    position: absolute;
    top: 40px;
    bottom: 0px;
    left: 0px;
    right: 0px;
}

#console-wrap > button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 999998;
}

#console {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 0px;
    margin: 0px;
    border: 0px;
    overflow: auto;
    font-size: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
}

#hierarchy-pane, #properties-pane {
    position: relative;
    height: 100%;
}

#hierarchy-tree, #properties-list {
    position: absolute;
    top: 38px;
    bottom: 8px;
    left: 8px;
    right: 8px;
    overflow: auto;
    font-size: 12px;
}

#hierarchy-pane .tabs-wrap, #properties-pane .tabs-wrap {
    background-color: #2a2d32;
    border-bottom: 1px solid #1f2125;
}

#hierarchy-pane .tabs-wrap label, #properties-pane .tabs-wrap label {
    opacity: 1;
    border-bottom: none;
    color: #cfd3d7;
    font-weight: 600;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 2px;
    cursor: pointer;
}

.tree-item:hover {
    background-color: #34373c;
}

.tree-item.is-selected {
    background-color: #3d4046;
    color: #ffffff;
}

.tree-caret {
    width: 10px;
    height: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a6;
    font-size: 10px;
    flex: 0 0 10px;
}

.tree-caret::before {
    content: "\25B8";
    transform: rotate(0deg);
    transition: transform 0.15s ease;
}

.tree-node.is-expanded > .tree-item .tree-caret::before {
    transform: rotate(90deg);
}

.tree-node.is-collapsed > .tree-children {
    display: none;
}

.tree-label {
    font-weight: 600;
}

.tree-meta {
    margin-left: auto;
    opacity: 0.6;
    font-size: 11px;
}

.tree-children {
    margin-left: 14px;
    border-left: 1px solid #32353a;
    padding-left: 6px;
}

.properties-header {
    font-weight: 600;
    margin-bottom: 8px;
    color: #eff2f6;
}

.prop-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;
    padding: 6px 0px;
}

.prop-key {
    color: #9aa0a6;
    text-transform: capitalize;
}

.prop-value {
    background-color: #25282d;
    border: 1px solid #3a3d43;
    border-radius: 3px;
    color: #d0d4d9;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    white-space: pre-wrap;
    word-break: break-word;
    padding: 4px 6px;
}

.gutter {
}

.gutter.gutter-horizontal {
  cursor: ew-resize;
}

.gutter.gutter-vertical {
  cursor: ns-resize;
}

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

.split.split-vertical, .gutter.gutter-vertical {
  width: 100%;
  float: none;
}

.canvas-app-container {
  background: #000;
  position: relative;
  width: 100%;
  height: 100%;
}

.canvas-app-container:-webkit-full-screen {
  width: auto;
  height: auto;
}

.canvas-app-canvas {
    width: 100%;
    height: 100%;
}

#defold-progress-label {
    width: 200px;
}

#defold-progress {
    width: 200px;
    height: 2px;
    /*background: #0f0;*/
    margin-top: 10px;
    display: inline-block;
}

#defold-progress-bar {
    height: 100%;
    background-color: #fff;
}

body.embedded #toolbar {
    display: none;
    height: 0px;
    padding: 0px;
    border: 0px;
}

body.embedded #layout {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0px;
}

#view_source, #reload_page {
    display: none;
}

body.embedded #view_source, body.embedded #reload_page {
    display: inline-block;
    position: fixed;
}

body.embedded #view_source {
    right: 20px;
    bottom: 20px;
}

body.embedded #reload_page {
    right: 20px;
    top: 20px;
}

@media (max-width: 960px) {
    #toolbar {
        padding: 12px 14px;
    }

    #share-wrap {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    #toolbar {
        gap: 8px 10px;
        padding: 10px 12px;
    }

    .toolbar-main,
    .toolbar-actions {
        width: 100%;
    }

    #scene {
        flex: 1 1 100%;
        min-width: 0;
    }

    .toolbar-select-wrap {
        flex: 1 1 100%;
        min-width: 0;
    }

    #defold_version {
        white-space: normal;
    }
}
