@import url('https://fonts.googleapis.com/css2?family=PT+Mono&display=swap');

body.terminal {
    --bg-color: white;
    --text-color: black;
    --accent-color: darkorchid;
    --accent-hover-color: darkmagenta;
    --muted-color: slategrey;
}

body.terminal {
    background: var(--bg-color);
    color: var(--text-color);

    font-family: 'PT Mono', Courier, monospace;
    padding: 16px;
    margin: 0 16px;
}

body.terminal ::selection {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

body.terminal a {
    color: var(--accent-color);
    text-decoration: none;
}

body.terminal a:hover {
    color: var(--accent-hover-color);
    text-decoration: underline;
}

body.terminal .muted {
    color: var(--muted-color);
}

body.terminal ul {
    list-style: none;
    padding-left: 0;
}

body.terminal li {
    position: relative;
}

body.terminal li > ul > li {
    padding-left: 40px;
}

body.terminal li > ul > li::before {
    content: '├──';
    position: absolute;
    left: 0;
    color: var(--muted-color);
}

body.terminal li > ul > li:last-child::before {
    content: '└──';
}

body.terminal li > ul > li > ul > li::before {
    content: '│   ├──';
    position: absolute;
    left: -40px;
    color: var(--muted-color);
}

body.terminal li > ul > li > ul > li:last-child::before {
    content: '│   └──';
}

body.terminal li > ul > li:last-child > ul > li::before {
    content: '\00a0\00a0\00a0\00a0├──';
}

body.terminal li > ul > li:last-child > ul > li:last-child::before {
    content: '\00a0\00a0\00a0\00a0└──';
}

body.terminal li > ul > li > ul > li > ul > li::before {
    content: '│   │   ├──';
    position: absolute;
    left: -80px;
    color: var(--muted-color);
}

body.terminal li > ul > li > ul > li > ul > li:last-child::before {
    content: '│   │   └──';
}

body.terminal li > ul > li:last-child > ul > li > ul > li::before {
    content: '\00a0\00a0\00a0\00a0│   ├──';
}

body.terminal li > ul > li:last-child > ul > li > ul > li:last-child::before {
    content: '\00a0\00a0\00a0\00a0│   └──';
}

body.terminal li > ul > li > ul > li:last-child > ul > li::before {
    content: '│       ├──';
}

body.terminal li > ul > li > ul > li:last-child > ul > li:last-child::before {
    content: '│       └──';
}

body.terminal li > ul > li:last-child > ul > li:last-child > ul > li::before {
    content: '\00a0\00a0\00a0\00a0├──';
}

body.terminal li > ul > li:last-child > ul > li:last-child > ul > li:last-child::before {
    content: '\00a0\00a0\00a0\00a0└──';
}

