/*
.save-styles-hex {
    --eggplant: #733D4Cff;
    --old-rose: #B26D73ff;
    --ivory: #F5F7EAff;
    --celestial-blue: #4C9FD0ff;
    --raisin-black: #2B272Cff;
}
*/ 

:root {
    --celadon: hsla(153, 44%, 78%, 1);
    --eggplant: hsla(343, 31%, 35%, 1);
    --old-rose: hsla(355, 31%, 56%, 1);
    --ivory: hsla(69, 45%, 94%, 1);
    --celestial-blue: hsla(202, 58%, 56%, 1);
    --raisin-black: hsla(288, 6%, 16%, 1);
    --bittersweet-shimmer: rgba(216, 107, 112);
    --outer-space: hsl(191, 8%, 28%);
    --air-force-blueish: rgb(29, 58, 71);
    --blueish: rgb(0, 69, 130);
    --greenish: rgb(21, 73, 51);
}

body {
    font-family: Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    background-color: var(--bittersweet-shimmer);
}

a {
    background: transparent;
    text-decoration: none;
    color: var(--blueish);
}

a:hover {
    background: var(--celadon)
}

nav p {
    border-bottom: 1px dotted grey;
    padding: 4px;
    font-weight: 700
}

nav li {
    margin-left: 12px
}

#header {
    background: grey;
    color: var(--ivory);
    width: 100%;
    height: 60px;
    padding-bottom: 7px;
}

#title {
    float: left;
    font-size: 18px;
    font-weight: 700;
    padding: 8px
}

#subtitle {
    font-size: 90%;
    padding: 8px;
    color: var(--ivory)
}

#menu button,
#menu a {
    font-family: Verdana, Arial;
    border: none;
    padding: 4px 8px;
    color: inherit;
    background: inherit;
}

#menu button:hover,
#menu a:hover {
    color: var(--outer-space);
    background: var(--celadon);
}

#left-panel {
    position: absolute;
    left: 0;
    width: 340px;
    top: 67px;
    padding: 8px;
    max-height: calc(100vh - 67px);
    overflow-y: auto;
}

/* #right-panel {
    position: absolute;
    right: 0;
    left: 360px;
    top: 60px;
    border-left: 1px solid grey;
    padding: 8px 16px
} */

.dark,
.dark pre,
.dark code,
.dark blockquote {
    background: #333 !important;
    color: #ccc !important
}

.dark #header {
    background: #444
}

.dark a {
    color: #eee
}

.dark th,
.dark tr:nth-child(even) {
    color: #333
}

@media print {
    #header,
    #left-panel {
        display: none !important
    }

    #right-panel {
        position: relative;
        left: 0px !important;
        top: 0px;
        border: none;
        height: auto;
        overflow: hidden
    }
}

@media screen and (min-width: 600px) and (max-width: 900px) {
    #header {
        width: 100%;
        height: 80px;
    }

    #left-panel {
        display: none;
        position: absolute;
        left: 0px !important;
        width: 100% !important;
        top: 80px;
        padding: 4px 8px
    }

    #right-panel {
        position: absolute;
        left: 0px !important;
        top: 80px;
        overflow: auto;
        padding: 4px 8px
    }
}

@media screen and (max-width: 600px) {
    #header {
        width: 100%;
        height: 100px;
    }

    #left-panel {
        display: none;
        position: absolute;
        left: 0px !important;
        width: 100% !important;
        top: 100px;
        padding: 4px 8px
    }

    #right-panel {
        position: absolute;
        left: 0px !important;
        top: 100px;
        overflow: auto;
        padding: 4px 8px
    }
}

.footnotes-sep {
    border-color: var(--ivory);
}

.footnote-ref a,
.footnote-backref {
    cursor: pointer;
}

.nav-post a {
    color: var(--greenish);
}

.nav-tag a {
    color: var(--blueish);
}

.nav-month a {
    color: var(--outer-space);
}

.post-date {
    font-size: 12px;
    font-weight: 400;
}

.post-title {
    font-size: 16px;
    color: #333
}

.post-tags {
    margin-left: 20px;
    padding: 4px;
    font-size: 12px;
    color: var(--greenish);
    font-weight: 400
}

/* overriding markdown-blog.css and highlightjs styles below */

.markdown blockquote {
    background: var(--ivory);
}

.markdown code {
    background-color: var(--ivory);
    color: var(--blueish);
}

.markdown pre {
    background-color: var(--ivory) !important;
}

.markdown blockquote {
    border-left: 6px solid var(--celestial-blue);
}

.toc h3 {
    color: var(--blueish);
}

.toc li:hover {
    background: var(--celadon);
}

.toc .active {
    color: var(--blueish);
    font-weight: bold;
    background: var(--ivory);
}

/* some gemini-generated css below */

#right-panel {
    position: absolute;
    left: 360px;
    top: 67px;
    padding: 8px 16px;
    right: 8px; /* default small right margin for most screens */
}


#right-panel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;  /* start 1px below the top edge to avoid jutting into header */
    bottom: 0;
    width: 1px;
    background-color: grey;
}

/* old styles */
/* #right-panel {
    position: absolute;
    right: 0;
    left: 360px;
    top: 60px;
    border-left: 1px solid grey;
    padding: 8px 16px
} */

@media print {
    #header,
    #left-panel {
        display: none !important
    }

    #right-panel {
        position: relative;
        left: 0px !important;
        top: 0px;
        border: none;
        height: auto;
        overflow: hidden;
        right: auto; /* remove specific right margin for print */
    }
}

@media screen and (min-width: 901px) { /* For monitors wider than 900px */
    #right-panel {
        right: 15%; /* adjust this percentage to control the right margin */
        /* you can also use a fixed pixel value, e.g., right: 150px; */
    }
}

@media screen and (min-width: 600px) and (max-width: 900px) {
    #header {
        width: 100%;
        height: 80px;
    }

    #left-panel {
        display: none;
        position: absolute;
        left: 0px !important;
        width: 100% !important;
        top: 87px;
        padding: 4px 8px
    }

    #right-panel {
        position: absolute;
        left: 0px !important;
        top: 87px;
        overflow: auto;
        padding: 4px 8px;
        right: 0px; /* Full width for these smaller screens */
    }
}

@media screen and (max-width: 600px) {
    #header {
        width: 100%;
        height: 100px;
    }

    #left-panel {
        display: none;
        position: absolute;
        left: 0px !important;
        width: 100% !important;
        top: 107px;
        padding: 4px 8px
    }

    #right-panel {
        position: absolute;
        left: 0px !important;
        top: 107px;
        overflow: auto;
        padding: 4px 8px;
        right: 0px; /* full width for very small screens */
    }
}

/* blog-specific image and caption styling */
/* .markdown img {
    border-radius: 8px; /* optional: adds slightly rounded corners to images
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* optional: adds a subtle shadow
} */

.image-caption {
    font-size: 0.8em; /* slightly smaller font size for captions */
    color: var(--raisin-black); /* sets a color for the caption */
}