.centered-content {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

#fileTree ul {
    list-style: none;
    padding-left: 1.5em;
    margin: 0;
}

#fileTree .tree-row {
    display: block;
    padding: 3px 0;
    cursor: pointer;
}

#fileTree .tree-icon {
    vertical-align: middle;
    margin-right: 0.3em;
    position: relative;
    top: -2px;
}

#fileTree .tree-icon {
    font-size: 1.1em;
    color: #6c757d;
    margin-right: 0.2em;
    transition: color 0.2s;
}

#fileTree .tree-label {
    font-weight: 500;
}

#fileTree .caret {
    cursor: pointer;
    user-select: none;
}

.caret::before {
    content: "\25B6";
    color: black;
    display: inline-block;
    margin-right: 6px;
}

.caret-down::before {
    transform: rotate(90deg);
    display: inline-block;
}

.nested {
    display: none;
}

.active {
    display: block;
}

body {
    background: #f8f9fa;
    margin: 0;
    overflow-x: hidden;
}

.cv-header {
    background: white;
    /* border-bottom: 1px solid #ddd; */

    display: flex;
}

.cv-header h1 {
    margin-bottom: 0;
}

.cv-header .links a {
    margin-right: 15px;
    text-decoration: none;
    color: #333;
}

.cv-header .links a:hover {
    text-decoration: underline;
}

.main-area {
    min-height: calc(100vh - 160px);
    height: auto;
}

#fileTree ul {
    list-style: none;
    padding-left: 1rem;
}

#fileTree li {
    padding: 3px 0;
}

#fileTree li.file-item {
    cursor: pointer;
}

#fileTree li.file-item:hover {
    text-decoration: underline;
}

#fileTree .caret:hover {
    text-decoration: underline;
}

#content {
    background: white;
    padding: 2rem;
    border-radius: 6px;
    margin: 0 auto;
}

.notebook-frame {
  width: 100%;
  height: 65vh;
  border: none;
  background: white;
  zoom: 1.1;
}

/* Make scrollable markdown area fit better */
.markdown-scroll {
    overflow: scroll;
    box-sizing: border-box;
}


.markdown-frame {
    width: 100%;
    height: 70vh;
}

.markdown-frame .bad {
    color: rgb(224, 0, 0);
    /* text-decoration: line-through; */
}

body {
    width:100vw;
    overflow-y: hidden;
}

.active-file .tree-label, .active-file .tree-icon {
    color: var(--bs-primary, #0d6efd) !important;
    background: none !important;
}

@media (max-width: 768px) {


    .cv-header {
        flex-direction: column;
        align-items: flex-start;
        align-items: center;
        justify-content: center;
    }

    .cv-header h1 {
        text-align: center;
        margin-bottom: 10px;
    }

    .cv-header  .links {
        text-align: center;
        width: 100%;
    }

    .cv-header  p {
        text-align: center;
        width: 100%;
    }


    body {
        overflow-y: auto;
    }

    #contentRow {
        height: 90vh;
        text-align: left;
    }

    .markdown-frame {
        height: 100%;
        text-align: justify;
    }

    .notebook-frame {
        height: 100%;
    }

}

blockquote {
    border-left: 4px solid #0d6efd;
    padding: 1em;
    padding-bottom: .1em;
    background-color: #0d6efd20;
    margin: 1em 0;  
}

pre code.hljs {
    display: block;
    background-color: #f5f5f5; /* The classic light gray background */
    padding: 0.8em;            /* Space inside the box */
    border: 1px solid #e0e0e0; /* Subtle border */
    border-radius: 4px;        /* Slightly rounded corners */
    
    /* Jupyter-like Font Stack */
    font-family: 'Menlo', 'Consolas', 'DejaVu Sans Mono', monospace;
    font-size: 14px;           /* Standard readable size */
    line-height: 1.5;
    overflow-x: auto;          /* Scroll horizontally if code is long */
}

/* Optional: Add the little "In [ ]:" prompt on the left? */
pre {
    position: relative;
    margin-left: 0;
}

.markdown-frame table{
    margin: .5em 0;
}

.markdown-frame td, .markdown-frame th{
    border: 1px solid #ddd;
    padding: .1em .5em;
}