* {
    font-family: monospace;
}

html {
    height: 100vh;
}

body {
    margin: 0;
    overflow-y: hidden;
}

main {
    display: flex;
    gap: 20px;
    margin: 0;
}

h3 {
    margin-bottom: 5px;
}

section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.fancytree-node {
    display: flex !important;
    min-height: auto !important;
    padding-top: 0.1em;
    padding-bottom: 0.1em;
}

.fancytree-title {
    font-size: 16px !important;
}

.fancytree-custom-icon,
.fancytree-icon {
    height: 16px !important;
    width: 16px !important;
}

.material-icons-round {
    font-size: 16px !important;
    position: relative;
    top: 1px;
}

.fancytree-title {
    font-size: 13px !important;
    min-height: auto !important;
}

.fancytree-selected {
    background-color: transparent !important;
}

ul[role="group"] {
    padding-top: 0em !important;
    padding-left: 0.7em !important;
}

.fancytree-container {
    width: 10em;
    height: calc(100vh - 60px);
    overflow: scroll;
    border: none !important;
    border-right: 1px solid !important;
}

#nav {
    margin-right: 4em;
    border-right: 1px solid;
}

.tree-meta {
    min-width: 22em;
    height: calc(100vh - 60px);
    border-left: 1px solid;
    margin-left: 4em;
}

.tree-meta > h3 {
    padding-left: 20px;
}
.tree-meta > h4 {
    padding-left: 30px;
    margin-bottom: 0px;
}
.tree-meta > .sources {
    padding-left: 30px;
}

.toc > ul > ul {
    list-style: none;
    padding-top: 10px;
    padding-left: 41px;
}

.toc > ul li::marker {
    content: "";
}

.toc > ul li::before {
    margin-right: 6px;
}

.toc > ul li:not(:last-child)::before {
    content: "├─";
}

.toc > ul li:last-child::before {
    content: "└─";
}

.source-list li::marker {
    content: "- ";
}

.source-list {
    padding-inline-start: 26px;
}

.source-list p {
    margin-top: 6px;
    margin-bottom: 6px;
}

header {
    height: 30px;
    display: flex;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid;
}

header > div > span {
    font-weight: 900;
    letter-spacing: 2px;
}

.content {
    display: flex;
    height: calc(100vh - 50px);
    
    flex-grow: 1;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

.content-bottom-margin {
    height: 50px;
}

.content-title {
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.content-date {
    margin: 0;
}

.codehilite {
    padding-left: 2em;
    margin-bottom: 10px;
}

.MathJax {
    font-size: 1em !important;
    position: relative;
}

ul,
ol {
    margin-top: 0px;
}

a {
    color: #002638;
    text-decoration: none;
    padding: 2px 5px;
}

button {
    color: #002638;
    text-decoration: none;
    padding: 2px 5px;
}

li {
    margin-block-start: 0.7em;
    margin-block-end: 0.3em;
}

button:hover {
    background-color: rgba(0, 0, 0);
    color: white;
}

a:hover {
    background-color: rgba(0, 0, 0);
    color: white;
}

.divider {
    margin-top: 25px;
}

.fancytree-node:has(.fancytree-title:hover) .fancytree-custom-icon {
    background-color: black;
    color: white;
}

/* Hide scrollbar for Firefox */
* {
    scrollbar-width: none;
}

/* Hide scrollbar for IE and Edge (legacy) */
* {
    -ms-overflow-style: none;
}

::selection {
    background-color: black;
    color: white;
}

/*code {
    #background-color: color-mix(paleturquoise, rgba(255,255,255) 20%);
}*/