/* https://github.com/elad2412/the-new-css-reset v1.11.1 */
/* custom styles for: pre, code */

*:where(:not(html, iframe, canvas, img, svg, video, audio, pre, code):not(svg *, symbol *)) {
  all: unset;
  display: revert;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

a, button {
  cursor: revert;
}

ol, ul, menu, summary {
  list-style: none;
}

img {
  max-inline-size: 100%;
  max-block-size: 100%;
}

table {
  border-collapse: collapse;
}

input, textarea {
    -webkit-user-select: auto;
}

textarea {
    white-space: revert;
}

meter {
    -webkit-appearance: revert;
    appearance: revert;
}

:where(pre) {
  all: revert;
  box-sizing: border-box;
}

::placeholder {
  color: unset;
}

::marker {
    content: initial;
    font-weight: bold;
}

:where([hidden]) {
  display: none;
}

:where([contenteditable]:not([contenteditable="false"])) {
  -moz-user-modify: read-write;
  -webkit-user-modify: read-write;
  overflow-wrap: break-word;
  -webkit-line-break: after-white-space;
  -webkit-user-select: auto;
}

:where([draggable="true"]) {
  -webkit-user-drag: element;
}

:where(dialog:modal) {
  all: revert;
  box-sizing: border-box;
}

pre, code {
  margin: 0;
}

::-webkit-details-marker {
  display: none;
}
:root {
    /* Primary */
    /* --soft-dark: #181820; */
    --soft-dark-transparent: #181820cc;; 
    /* --dark: rgb(19, 19, 26); */
    --dark-transparent:      rgba(19, 19, 26, 0.93);
    --dark-hover:            rgba(57, 57, 76, 0.25);       /* --vscode-list-inactiveSelectionBackground; */
    --darker:                rgb(11, 11, 15);
    --darker-transparent:    rgb(11, 11, 15, 0.93);
    --white:                 #c8c8d5;                           /* --vscode-list-activeSelectionForeground; --vscode-list-inactiveSelectionForeground */
    --white-small-fade:      #a4a4b6;                /*--vscode-list-focusForeground */
    --white-fade:            rgba(171, 171, 191, 0.8);     /* --vscode-breadcrumb-foreground */
    --white-fade2:           rgba(255, 255, 255, 0.65);

    /* Body */
    --body-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

    /* Home */
    --home-title-1:          var(--white);
    --home-title-2:        #866ee7;
    --home-description:      var(--white-small-fade);
    --home-button-text:      var(--white);

    /* Highlight */
    --highlight-bg:        #f6cf34fc;
    --highlight-hover-bg:  #f3db53;
    --highlight-bg-softer: #e5c74ef5;
    /* 
    --highlight-bg:       #dab3f0;
    --highlight-hover-bg: #cda6ea; 
    /
    /* 
    --highlight-bg:       #c1b9e5;
    --highlight-hover-bg: #cda6ea; 
    */

    --highlight-text:             #130606;
    --highlight-hover-text:       #0c0b0b;

    /* Site Logo */
    --logo-font: "Arial", serif;
    --logo-border:                rgba(225, 225, 225, .1);

    /* Projects */
    --projects-details-close:       var(--white-small-fade);
    --projects-details-open:        var(--white);
    
    /* Study */
    --study-cards-bg:               rgba(0, 0, 0, 0.20);
    --study-cards-padding:          24px;

    /* Study Sidebar */
    --study-sidebar-bg:             var(--soft-dark-transparent);
    --study-sidebar-bg-hover:       var(--dark-hover);
    --study-sidebar-text:           var(--white-small-fade);
    --study-sidebar-text-hover:     var(--white);
    --study-sidebar-border:         var(--darker);
    --study-sidebar-border-details: var(--white);
    --study-sidebar-h2-hover:       var(--white);
    --study-sidebar-h3:             var(--white-fade);
    --study-sidebar-h3-hover:       var(--white-small-fade);

    /* Study Central */
    --central-bg:                   var(--soft-dark-transparent);

    /* Central Header Buttons */
    --header-button-bg:             var(--dark-transparent);
    --header-button-border:         var(--darker);
    --header-button-text:           var(--white);
    --header-button-hover-bg:       var(--dark-hover);
    --header-button-hover-text:     var(--white);

    /* Central Footer */
    --footer-text:                  var(--white);

    /* Note */
    --note-headers:                 var(--white);
    --note-title:                   var(--white);
    --note-text:                    var(--white);

    /* _Note Subtitle */
    --note-subtitle:              rgba(171, 171, 191, 0.8);

    /* Checkbox */
    --checkbox-border:            #555;

    /* Table */
    --table-border:                 var(--white);
    --table-scrollbar:            #f1f1f1;

    /* Hyperlink */
    --hyperlink:                  #7ad0ec;
    --hyperlink-hover:            #6cbcd6;

    /* Line Emphasis */
    --line-emphasis:              rgba(0, 128, 0, 0.258);

    /* Strike-through */
    --strikethrough:              red;
    --table-strikethrough:        #8c8c8c;

    /* Code */
    --code-font: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    /* Code Inline */
    --code-inline-bg:   #22262e;
    --code-inline-text: #bad3ac;

    /* Code Block */
    --code-bg:             #22262e;
    --code-text:             var(--white);
    --code-comment:        #9893a5;
    --code-tag:            #b4637a;
    --code-variable:       #d7827e;
    --code-builtin:        #ea9d34;
    --code-selector:       #56949f;
    --code-title:          #56949f;
    --code-keyword:        #907aa9;
    --code-string:         #286983;
    --code-function-names: #d7827e;
    --code-punctuation:    #575279;

    /* Block Quote */
    --blockquote-info-backgound:        #954ce3;
    --blockquote-info-foreground:       rgba(0, 0, 0, .08);
    --blockquote-info-color:            #ffffff;
    --blockquote-info-anchor:           #d2aefc;
    --blockquote-info-anchor-text-shadow: .4px 0 .8px black;
}
/* ROOT */
    html {
        scroll-behavior: smooth;
        scroll-padding: 2em;
    }


    body {
        display: flex;

        margin: 0;
        min-height: 100vh;

        overflow-y: hidden;
        overflow-x: hidden;
        
        font-family: var(--body-font);
    }

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;

        background-image: url("/assets/bg.png");
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

/* SCROLLBAR */
    #note-wrapper,
    #left-sidebar-wrapper,
    #left-sidebar,
    #left-sidebar nav 
    {
        /* optional, smooth scrolling on mobile */
        -webkit-overflow-scrolling: touch; 
    }

    #note-wrapper::-webkit-scrollbar,
    #left-sidebar-wrapper::-webkit-scrollbar,
    #left-sidebar::-webkit-scrollbar,
    #left-sidebar nav::-webkit-scrollbar 
    {
        width: 12px;
        height: 12px;
    }

    /* Track */
    #note-wrapper::-webkit-scrollbar-track,
    #left-sidebar-wrapper::-webkit-scrollbar-track,
    #left-sidebar::-webkit-scrollbar,
    #left-sidebar nav::-webkit-scrollbar 
    {
        background: var(--scrollbar-bg);
        border-radius: 6px;
    }

    /* Thumb */
    #note-wrapper::-webkit-scrollbar-thumb,
    #left-sidebar-wrapper::-webkit-scrollbar-thumb,
    #left-sidebar::-webkit-scrollbar,
    #left-sidebar nav::-webkit-scrollbar 
    {
        background: #6f6f73;
        border-radius: 6px;
    }

    /* Hover */
    #note-wrapper::-webkit-scrollbar-thumb:hover,
    #left-sidebar-wrapper::-webkit-scrollbar-thumb:hover,
    #left-sidebar::-webkit-scrollbar,
    #left-sidebar nav::-webkit-scrollbar 
    {
        background: #57575a;
    }

    /* Corner where a horizontal and vertical scrollbar meet (prevents default white square) */
    /* html::-webkit-scrollbar-corner, */
    #note-wrapper::-webkit-scrollbar-corner,
    #left-sidebar-wrapper::-webkit-scrollbar-corner,
    #left-sidebar::-webkit-scrollbar,
    #left-sidebar nav::-webkit-scrollbar 
    {
        background: var(--scrollbar-bg);
    }


/* LEFT SIDEBAR */
    #left-sidebar-wrapper {
        display: flex;
        position: sticky;
        top: 0;

        height: 100dvh;
        min-height: 100vh;
        min-width: 15dvw;

        background: var(--central-bg);
    }

    @media (orientation: portrait) {
        #left-sidebar-wrapper {
            display: none;
        }
    }

    #left-sidebar {
        display: flex;
        flex-direction: column;

        width: 20dvw;

        padding-right: 15px;
        margin: var(--study-cards-padding);
        
        background: var(--study-cards-bg);
        border-radius: 12px;
        border: 1px solid var(--darker);
        
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Logo */
    #left-sidebar > header {
        display: flex;
        padding: 32px 32px;
        gap: 15px;
        justify-content: center;
    }

    .site-logo {
        /* width: 480px; */

        color: transparent;
        background: linear-gradient(45deg, #ea60da, #ed8f57, #fbd41d);
        -webkit-text-fill-color: transparent;
        -webkit-text-stroke: .5px var(--logo-border);

        text-transform: uppercase;
        font-family: var(--logo-font);
        font-size: 1.4em;
        letter-spacing: 3px;
        font-weight: 800;
        
        background-clip: text;
        -webkit-background-clip: text;

        text-align: center;
        align-content: center;
    }

    .breadcrums-division {
        color: transparent;
        background: linear-gradient(45deg, #ea60da, #ed8f57, #fbd41d);
        -webkit-text-fill-color: transparent;
        -webkit-text-stroke: .5px var(--logo-border);

        text-transform: uppercase;
        font-family: var(--logo-font);
        font-size: 1.15em;
        letter-spacing: 3px;
        font-weight: 800;
        
        background-clip: text;
        -webkit-background-clip: text;

        text-align: center;
        align-content: center;
    }

    .breadcrumbs-studies {
        /* width: 480px; */

        color: transparent;
        background: linear-gradient(45deg, #ea60da, #ed8f57, #fbd41d);
        -webkit-text-fill-color: transparent;
        -webkit-text-stroke: .5px var(--logo-border);

        text-transform: uppercase;
        font-family: var(--logo-font);
        font-size: 1.15em;
        letter-spacing: 3px;
        font-weight: 800;
        
        background-clip: text;
        -webkit-background-clip: text;

        text-align: center;
        align-content: center;
    }

    /* NAV */
    #left-sidebar nav {
        padding: 0 24px;
        margin-right: 16px;

        overflow-y: auto;
        overflow-x: clip;
    }

    #left-sidebar > nav > details {
        padding-bottom: 0;
    }
    #left-sidebar > nav > details[open] {
        padding-bottom: calc(16px * 1.5);
    }
    #left-sidebar > nav > details > summary {
        display: flex;
        padding: 16px 0;

        color: var(--note-title);

        font-weight: bold;
        cursor: cell;
        user-select: none;
    }

    #left-sidebar > nav > details > summary:hover {
        background: var(--study-sidebar-bg-hover);
        color: var(--note-title);
    }

    #left-sidebar > nav > details[open] > summary {
        color: var(--note-title);
    }



    #left-sidebar > nav > details > ul > li {
        border-left: 1px solid var(--study-sidebar-border-details);

        margin: 0 8px;
    }

    #left-sidebar > nav > details > ul > li > a {
        color: var(--study-sidebar-text);

        display: flex;
        cursor: pointer;
        padding: 8px;
    }

    #left-sidebar > nav > details > ul > li > a:hover:not(.active) {
        background: var(--study-sidebar-bg-hover);
        color:      var(--study-sidebar-text-hover);
        
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    /* TIER 1 */
    #left-sidebar > nav > details > ul > li > a::before {
        background: var(--study-siderbar-bg);
        border: 1px solid var(--study-sidebar-border-details);

        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        
        position: relative;
        left: calc((16px * -.78));
        top: 3px;
        transform: rotate(45deg);
    }
    #left-sidebar > nav > details > ul > li > a.active {
        background: var(--highlight-bg-softer);
        color: var(--highlight-text);

        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }
    #left-sidebar > nav > details > ul > li > a.active::before {
        background: var(--highlight-bg-softer);
        border: var(--highlight-bg-softer);

        left: calc((16px * -.76));
    }

    /* TIER 2 */
    #left-sidebar > nav > details > ul > li > ul > li > a {
        display: block;
        padding: 8px;
        cursor: pointer;
        color: var(--study-sidebar-h3);
    }

    #left-sidebar > nav > details > ul > li > ul > li > a:hover:not(.active) {
        background: var(--study-sidebar-bg-hover);
        color: var(--study-sidebar-h2-hover);

        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    #left-sidebar > nav > details > ul > li > ul > li > a::before {
        background: var(--study-sidebar-bg);
        border: 1px solid var(--study-sidebar-border-details);
        content: '';
        display: inline-block;
        position: relative;
        left: -14px;
        width: 11px;
        height: 11px;
        border-radius: 50%;
    }
    /* TIER 2: Active */
    #left-sidebar > nav > details > ul > li > ul > li > a.active {
        background: var(--highlight-bg-softer);

        color: var(--highlight-text);
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }
    #left-sidebar > nav > details > ul > li > ul > li > a.active::before {
        background: var(--study-sidebar-bg);
    }
    #left-sidebar > nav > details > ul > li > ul > li > a:hover:not(.active) {
        background: var(--study-sidebar-bg-hover);
        color: var(--study-sidebar-h3-hover);

        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    /* TIER 3 */
    #left-sidebar > nav > details > ul > li > ul > li > ul > li > a {
        display: block;
        padding: 8px;
        cursor: pointer;
        color: var(--study-sidebar-h3);
    }

    #left-sidebar > nav > details > ul > li > ul > li > ul > li > a:hover:not(.active) {
        background: var(--study-sidebar-bg-hover);
        color: var(--study-sidebar-h2-hover);

        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    #left-sidebar > nav > details > ul > li > ul > li > ul > li > a::before {
        background: var(--study-sidebar-bg);
        border: 1px solid var(--study-sidebar-border-details);
        content: '';
        display: inline-block;
        position: relative;
        left: -14px;
        width: 11px;
        height: 11px;
        border-radius: 50%;
    }

    /* TIER 3: Active */
    #left-sidebar > nav > details > ul > li > ul > li > ul > li > a.active {
        background: var(--highlight-bg-softer);

        color: var(--highlight-text);
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }
    #left-sidebar > nav > details > ul > li > ul > li > ul > li > a.active::before {
        background: var(--study-sidebar-bg);
    }
    #left-sidebar > nav > details > ul > li > ul > li > ul > li > a:hover:not(.active) {
        background: var(--study-sidebar-bg-hover);
        color: var(--study-sidebar-h3-hover);

        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    /* ANY TIER */
    #left-sidebar ul ul {
        border-left: 1px solid var(--study-sidebar-border-details);

        margin-left: calc(16px * 1.75);
    }

    /* Strike-through */
    #left-sidebar del, #left-sidebar s {
        /* font-weight: lighter; */
        /* color: red; */
        
        text-decoration-line: line-through;
        text-decoration-color: var(--table-strikethrough);
        text-decoration-thickness: 2px;
        /* text-decoration-style: dotted; */
    }

    #left-sidebar-footer {
        padding: 18px;
    }



/* CENTRAL */
    #central-wrapper {
        background: var(--central-bg);
        
        display: flex;
        flex-direction: column;
        flex: 1;

        overflow-y: hidden;
        overflow-x: clip;
    }

    #central {
        display: flex;
        flex-direction: row;
        flex: 1 1 auto;

        height: 1px;

        padding: 0 32px;
        margin: var(--study-cards-padding) var(--study-cards-padding) var(--study-cards-padding) 0;
        
        overflow-y: hidden;
        overflow-x: clip;

        background: var(--study-cards-bg);
        border-radius: 12px;
        border: 1px solid var(--darker);
        
    }

    @media (orientation: portrait) {
        #central {
            margin: 18px;
            padding: 0 12px;
        }
    }

    #note-wrapper {
        display: flex;
        flex-direction: column;
        flex: 1;

        overflow-y: hidden;
        overflow-x: clip;
    }

    @media (orientation: portrait) {
        #note-wrapper {
            font-size: small;
        }
    }

/* NOTE */

    #note-header {
        padding: 36px 16px 28px;
    }

    @media (orientation: portrait) {
        #note-header {
            padding: 16px;
        }
    }

    #note-header > h1 {
        color: var(--note-title);
        font-size: 3em;
    }

    #note-header > p {
        color: var(--note-subtitle);

        font-size: 0.9em;
        padding-top: 8px;
    }

    /* NOTE CONTENT is on a different .css */

    #note-footer {
        padding: 18px;
    }

    @media (orientation: portrait) {
        #note-footer {
            padding: 8px;
        }
    }


/* CENTRAL HEADER */
    #central-header {
        display: flex;

        position: sticky;
        top: 0;
        height: 5px;
    }

/* CENTRAL FOOTER */
    #central-footer {
        color: var(--footer-text);
        display: flex;
        
        margin-top: -28px;
        padding: 8px 56px 6px;
        gap: 8px;
        justify-content: end;

        font-size: smaller;
    }

    @media (orientation: portrait) {
        #central-footer {
            justify-content: center;
            font-size: x-small;
            padding: 10px 0px;
            margin-top: -19px;
        }
    }
    
    #central-footer > a {
        background: var(--highlight-bg);
        color: var(--highlight-text);

        border-radius: 4px;
        cursor: pointer;
        padding: 0 8px;
    }


/* NOTE CONTENT */

#note-content {
    display: flex;
    flex-direction: column;

    padding: 16px 16px;
    
    overflow-y: scroll;
    overflow-x: clip;

    color: var(--note-text);
}

@media (orientation: portrait) {    
    #note-content {
        padding: 8px 16px;
    }
}

/* HEADERS */

#note-content h1,
#note-content h2,
#note-content h3,
#note-content h4,
#note-content h5,
#note-content h6 {
    line-height: 1em;
}

#note-content h1 {
    font-size: 3.1em;
    font-weight: 400;
}

#note-content h2 {
    font-size: 1.65em;
    font-weight: bold;
    color: #3d7fe0;
    margin: 3.0em 0em 0.5em;
}

#note-content h3 {
    font-size: 1.4em;
    font-weight: bold;
    color: #eecf1d;
    margin: 2.0em 0em 0.5em;
}

#note-content h4 {
    font-size: 1.20em;
    font-weight: bold;
    color: #ff8513;
    margin: 2.0em 0em 0.5em;
}
#note-content h5 {
    font-size: 1.05em;
    font-weight: bold;
    color: #f04545;
    margin: 1.5em 0em 0.3em;
}
#note-content h6 {
    font-size: 1.0em;
    font-weight: bold;
    color: #ff82b2;
    margin: 1.5em 0em 0.3em;
}

/* 
Only the first h2 OR the first h3 in the div will have; it's the first between both.
Only whichever comes first among all children of the div—and only if it is an <h2> or <h3>—will get the style. Later <h2> or <h3> elements are ignored.
*/
#note-content h2:first-child, 
#note-content h3:first-child {
    margin-top: .6em
}


#note-content .highlight,
#note-content blockquote,
#note-content dl,
#note-content ol,
#note-content p,
#note-content table,
#note-content ul {
    line-height: 1.8rem;
    letter-spacing: -.1px;
}


/* HYPERLINK */

#note-content a {
    color: var(--hyperlink);
    text-decoration: none
}

#note-content a:hover {
    color: var(--hyperlink-hover);
    text-decoration: underline
}

#note-content .internal-link {
    font-weight: 800;
}


/* STRONG */

#note-content strong, 
#note-content b, 
#note-content table th {
  font-weight: 600
}


/* EMPHASIS */

#note-content em {
    font-style: italic
}

#note-content .line-emphasis {
   font-style: normal;
   background-color: var(--line-emphasis);
   border-radius: 4px;
   margin-left: -4px;
   padding-left: 4px;
}


/* STRIKE-THROUGH */

#note-content del, 
#note-content s {
    text-decoration-line: line-through;
    text-decoration-color: var(--strikethrough);
    text-decoration-thickness: 2px;
}


/* LISTS */

#note-content dl,
#note-content ol,
#note-content ul {
  margin-left: 20px
}

#note-content dl dl,
#note-content dl ol,
#note-content dl ul,
#note-content ol dl,
#note-content ol ol,
#note-content ol ul,
#note-content ul dl,
#note-content ul ol,
#note-content ul ul {
  margin-top: 0;
  margin-bottom: 0
}


/* Numbered List */
/* 
Even if I use this 3 at the same time, the counter doesn't reset.
<div class="ordered-list-wrapper"> 
    <ol start="1"> 
        <li value="1">
Apparently I'll have to create a counter with counter-reset and counter-increment, 
and use its value to change the content of the marker, something like that.
For now, I'll use a different symbol and remove these previous attempts.
*/

#note-content li {
    position: relative;
}

#note-content li > ol {
    list-style: square;
}

#note-content ol {
    list-style: square;
}

#note-content li p {
    margin: 0
}

#note-content li .highlight,
#note-content li blockquote,
/* #note-content li iframe, */
#note-content li table {
  margin: 1em 0
}


#note-content li::before {
    content: "•";

    position: absolute;
    left: -0.7em;
    top: -0.1em;
    
    font-size: x-large;
    font-weight: bold;
}

#note-content li li::before {
    content: "◦";  /* Unicode 25E6 */
    top: -0.025em;
    left: -0.6em;
}


/* INPUT (Checkbox) */

input {
    width: 16px;
    height: 16px;
    border: 2px solid var(--checkbox-border);
    border-radius: 3px;
    position: relative;
}

input[type="checkbox"] {
  appearance: checkbox;
  -webkit-appearance: checkbox; /* Safari */
}


/* DL */

#note-content dl {
    list-style: square
}


#note-content hr:before {
    color: var(--white-fade);

    display: block;
    text-align: center;
    content: "∙ ∙ ∙";
    letter-spacing: .6em;
    top: calc(16px/3.7);
    margin: 2.6em 0 1em;
}


/* P TABLE */

#note-content .table {
    white-space: nowrap;
    font-family: var(--code-font);
    max-width: 100%; 
    overflow-x: auto;

    border: 1px solid #ccc;
    padding: 0px 2px;

    /* Firefox: Scrollbar */
    scrollbar-width: thin;                
    scrollbar-color: var(--highlight-bg) var(--table-scrollbar);

    cursor: grab; /* hint that it can be dragged */

    user-select: none;
}


#note-content .table:active {
    cursor: grabbing;
}

/* Chrome, Safari, Edge: Scrollbar */
#note-content .table::-webkit-scrollbar {
  height: 12px;
}
#note-content .table::-webkit-scrollbar-track {
  background: var(--table-scrollbar);
  border-radius: 6px;
}
#note-content .table::-webkit-scrollbar-thumb {
  background: var(--highlight-bg);
  border-radius: 6px;
}
#note-content .table::-webkit-scrollbar-thumb:hover {
  background: var(--checkbox-border);
}


/* So the table is correctly aligned even if has code */
#note-content .table code {
    font-size: 1.0em;
}



/* TABLE */

#note-content table {
    box-shadow: 0 0 0 1px var(--table-border);

    max-width: 100%;
    border-radius: 4px;
}

#note-content table thead th:first-child{
    border-top-left-radius: 4px;
}
#note-content table thead th:last-child{
    border-top-right-radius: 4px;
}

#note-content table tbody tr:last-child{
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

#note-content table tbody tr:last-child td:first-child{
    border-bottom-left-radius: 4px;
}
#note-content table tbody tr:last-child td:last-child{
    border-bottom-right-radius: 4px;
}

#note-content table td,
#note-content table th {
  padding: 5px 15px
}

#note-content table tr:nth-child(2n) {
    background: var(--background)
}

#note-content table thead tr {
    background: var(--background-embed)
}


/* BLOCK QUOTE */

#note-content blockquote p {
  margin: 1em 0
}

#note-content blockquote dl,
#note-content blockquote ol,
#note-content blockquote ul {
  margin: 0 1em 1em 1em
}

#note-content blockquote {
    padding: 8px 12px;
    position: relative;
    background: var(--code-bg);
    border-left-width: 5px;
    border-radius: 6px;
}

#note-content blockquote footer {
  margin: 1em 0;
  font-style: italic
}

#note-content blockquote footer cite:before {
  content: "—";
  padding: 0 .3em
}

#note-content blockquote footer cite a {
    color: var(--table-border);
}

#note-content blockquote code {
    background: var(--code-bg);
}

#note-content blockquote.info code {
    background: var(--blockquote-info-foreground);
}

#note-content blockquote.info {
    border: none;
    background: var(--blockquote-info-backgound);
    color: var(--blockquote-info-color);
}

#note-content blockquote.info > p {
    display: flex;
    gap: 8px;
}

#note-content blockquote.info > p:first-child > strong:first-child {
    font-size: 2.5em;
}

#note-content blockquote.info li {
    margin: 0 8px;
}

#note-content blockquote.info a {
    color: var(--blockquote-info-anchor);
    text-shadow: var(--blockquote-info-anchor-text-shadow);
}


/* IMAGE, VIDEO */

#note-content img,
#note-content video {
    max-width: 100%;
    border-radius: 4px
}


/* EXCALIDRAW IFRAME */

.excalidraw {
    /* flex: 1;  */
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}
/*!
    ORIGINAL THEME: Rose Pine
    The idea is:
        I should replace this colors by variables declared inside the theme.css file.
        When changing the color preference to light <-> dark, all is handled through the theme.css
*/

/* CODE BLOCK */

pre {
    font-family: var(--code-font);
    font-size: .9em;
    line-height: 1.8;
    letter-spacing: -.1px;

    border-radius: 8px;

    margin-top: 1em;
    margin-bottom: 1em;
}

pre code {
    background: var(--code-bg);
    color: var(--code-text);

    display: block;
    overflow-x: auto;
    white-space: pre;

    border-radius: 8px;
    
    padding: 1em;
}


/* INLINE CODE */

code {
    background: var(--code-inline-bg);
    color: var(--code-inline-text);

    font-family: var(--code-font);
    font-size: .9em;

    padding: calc(16px/3.7);

    border-radius: 4px;
}


/*  Comment */
.hljs-meta,
.hljs-comment {
    color: var(--code-comment);
}

/* This keyword, HTML elements, Regex group symbol, CSS units, Terminal Red */
.hljs-tag,
.hljs-doctag,
.hljs-selector-id,
.hljs-selector-class,
.hljs-regexp,
.hljs-template-tag,
.hljs-selector-pseudo,
.hljs-selector-attr,
.hljs-variable.language_,
.hljs-deletion {
    color: var(--code-tag);
}

/* Number and Boolean constants, Language support constants */
.hljs-variable,
.hljs-template-variable,
.hljs-number,
.hljs-literal,
.hljs-type,
.hljs-params,
.hljs-link {
    color: var(--code-variable);
}

/* Function parameters, Regex character sets, Terminal Yellow */
.hljs-built_in,
.hljs-attribute {
    color: var(--code-builtin);
}

/* Object properties, Regex quantifiers and flags, Markdown headings, Terminal Cyan, Markdown code, Import/export keywords */
.hljs-title.function_,
.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-subst,
.hljs-property {
    color: var(--code-title);
}

/* Object literal keys, Markdown links, Terminal Green */
.hljs-selector-tag {
    color: var(--code-selector);
}

/* Strings, CSS class names */
.hljs-quote,
.hljs-string,
.hljs-symbol,
.hljs-bullet,
.hljs-addition {
    color: var(--code-string);
}

/* Function names, CSS property names, Terminal Blue */
.hljs-code,
.hljs-formula,
.hljs-section {
    color: var(--code-function-names);
}

/* Control Keywords, Storage Types, Regex symbols and operators, HTML Attributes, Terminal Magenta */
.hljs-name,
.hljs-keyword,
.hljs-operator,
.hljs-char.escape_,
.hljs-attr {
    color: var(--code-keyword);
}
.hljs-punctuation {
    color: var(--code-punctuation)
}

.hljs-emphasis {
    font-style: italic
}
.hljs-strong {
    font-weight: bold
}
