@font-face {
    font-family: "JetBrainsMono";
    src: url("../fonts/JetBrainsMono-Regular.ttf");
}

:root {
    --font: "JetBrains Mono", "monospace";
    --background: #282828;
    --foreground: #ebdbb2;
    --gb_magenta: #b06698;
    --red: #cc241d;
    --gb_orange: #d65d03;
    --gb_green: #98971a;
    --branch: 1px solid #ebdbb2;
}

html {
    overflow-x: hidden;
    scrollbar-width: none
}

html::-webkit-scrollbar {
    width: 0;
    height: 0;
}

body {
    background: var(--background);
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

main {
    margin: 5vh 0;
    /* min-height: calc(var(--listHeight) + 7.0125rem); */
    min-height: var(--listHeight);

    /* -24 */
}

.prompt {
    font-family: var(--font);
    color: var(--foreground);
}

.prompt~.prompt {
    padding: 1.5rem 0 0.3125rem;
}

span.user {
    color: var(--gb_green);
}

span.host {
    color: var(--gb_magenta)
}

h1 {
    display: inline-block;
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: normal;
    color: var(--gb_orange);
    cursor: pointer;
    user-select: none;
}

.tree>ul {
    margin: 0;
    padding-left: 1.25rem;
}

ul {
    list-style: none;
    padding-left: 2.5rem;

    display: flex;
    justify-content: flex-end;
    flex-direction: column;

    max-height: var(--height);
    overflow: hidden;
    transition: 0.125s max-height ease-out;
}

li {
    position: relative;
}

li.hideChildren > ul {
    max-height: 0;
}

li::before,
li::after {
    content: "";
    position: absolute;
    left: -1rem;
}

li::before {
    border-top: var(--branch);
    top: 0.75rem;
    width: 0.75rem;
}

li::after {
    border-left: var(--branch);
    height: 100%;
    top: 0.25rem;
}

li:last-child::after {
    height: 0.5rem;
}

a {
    font-family: var(--font);
    font-size: 1rem;
    color: var(--foreground);
    text-decoration: none;
    outline: none;
}

a:hover,
a:focus {
    color: var(--background);
    background: var(--gb_orange);
}

form h1 {
    padding-left: 0.125rem;
}

/* you can fill the texarea above/below? the Viewport */
#search {
    font-family: var(--font);
    font-size: 1rem;
    color: var(--foreground);
    background-color: var(--background);
    border: none;
    outline: none;
    position: absolute;
    width: 50vw;
    /* height: 50vh; */
    word-break: break-all;
    resize: none;
}

li::before, li {
    transition: 0.125s width ease-out;
}

li > h1 {
    transition: 0.125s transform ease-out;
}

/* Uitll */
.noTransition * {
    transition: none !important;
}
