:root {
    --bg: transparent;
    --panel: transparent;
    --border: grey;
    --text: white;
    --text-dim: #white;
    --accent: #58a6ff;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
    box-sizing: content-box;
}

html,
body {
    margin: 0;
    height: 100%;
    background-image: url("../images/background.jpg");
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#layout {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
}

#code-pane {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
}

#code-sidebar {
    border-right: 1px solid var(--border);
    width: 280px;
    flex-shrink: 0;
    overflow-y: auto;
    padding: 12px 8px;
}

#code-sidebar h1 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text);
    margin: 4px 8px 12px;
    font-weight: 600;
}

#filebar {
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 14px;
    color: var(--text);
    background: var(--panel);
}

#code-content {
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-shrink: 0;
    overflow-y: auto;
    padding: 12px 8px;
}

#content {
    flex:1;
    overflow: auto;
    box-sizing: border-box;
}

#content pre {
    margin: 0;
    padding: 0 20px 0 20px !important;
    font-size: 13px;
    min-height: 100%;
}

#placeholder {
    flex: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text);
    font-size: 14px;
    flex-direction: column;
    gap: 8px;
}

#placeholder .big {
    font-size: 32px;
}

.tree-node {
    user-select: none;
}

.tree-node {
    user-select: none;
}

.tree-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    color: var(--text);
}

.tree-row:hover {
    background: darkorchid;
}

.tree-row.active {
    background: darkorchid;
    color: #fff;
}

.tree-children {
    margin-left: 16px;
}

.icon {
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    opacity: .8;
    font-size: 12px;
}

.caret {
    display: inline-block;
    width: 10px;
    transition: transform .1s;
    font-size: 10px;
    color: var(--text-dim);
}

.caret.open {
    transform: rotate(90deg);
}

.hljs {
    color: white;
    background: transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: coral;
    border-radius: 5px;
}

::-webkit-scrollbar-track {
    background: darkslateblue;
}

/* Firefox */
#content {
    scrollbar-width: thin;
    scrollbar-color: coral darkslateblue;
}

#flutter-pane {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 1rem;
    box-sizing: border-box;
}

#flutter-bg {
    height: 100%;
    max-height: 844px;
    width: auto;
    aspect-ratio: 390 / 844;
    background-image: url("../images/mobile_background.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 20px;
    box-sizing: border-box;
}

#flutter-container {
    width: 100%;
    height: 100%;
}



/* @media (max-width: 900px) {
} */