:root{
    --bg: #0f172a;
    --text: #cbd5e1;
    --muted: #c5d4e2;
    --accent: #364057;
    --accent-2: #1e293b;
    --link: #5b6c94;
    --link-hover: #4c99dd;
}

[data-theme="dark"]{ color-scheme: dark; }

body{
    display: flex;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'system-ui';
    font-size: 1.05em;
    letter-spacing: 0.01em;
    overflow: hidden;
    margin: 0;
}

.gif-img-floater {
    position: fixed; 
    right: 1vw; 
    max-width: 25%;
    animation: breathe 5s ease-in-out infinite;
}

.float-img-left {
    float: left;
    max-height: 15%;
    width: auto;
    margin: 0 1em 1em 0;
}

.float-img-right {
    float: right;
    max-height: 20%;
    width: auto;
    margin: 0 6vw 1em 0;
}

.Logo{
    max-width: 100%;
    max-height: auto;
}

.Static1{
    border-right: 1px solid var(--accent);
    overflow-y: auto;
    overflow-x: hidden;
    width: 15%;
    height: 100%;
    background-color: #10182c;
}

/* Hide scrollbar for Static1 (menu container) */
.Static1::-webkit-scrollbar {
    display: none;
}

.Static1 {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

.Static2{
    overflow-y: auto;
    width: 100%;
    height: 100%;
}

.USE {
    font-family: monospace;
    color: chartreuse;
}

ul{
    padding-left: 0;
}

li{
    padding: 0.25em;
    list-style-type: none;
    transition: background 0.2s, color 0.2s;
}

li:hover{ background: var(--accent); color: #e0e0e0; }

.Link{
    display: inline;
    text-decoration: underline;
    transition-duration: 0.4s;
    color: var(--link);
    font-weight: 500;
}

.Link:hover{ color: var(--link-hover); text-decoration: underline; }

.hljs{
    font-size: 15;
    border-style: solid;
    border-width: 0.05em;
    border-radius: 0.2em;
    border-color:rgba(172, 0, 57, 0.63);
}

@keyframes breathe {
    0%, 100% {
        box-shadow: 0 0 10px rgba(37, 37, 37, 0.377);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.473), 0 0 40px rgba(0, 0, 0, 0.281);
    }
}

#menu > details {
    margin-left: 1em;
    padding-left: 0;
    border-left: none;
}

#menu > details > li {
    border-left: 1px solid var(--accent);
    padding-left: 1em;
}

#menu summary {
    list-style: none;
}
#menu details > summary::-webkit-details-marker {
    display: none;
}
#menu details > summary::marker {
    display: none;
}

p {
    color: var(--muted);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5em;
    padding-right: 1.5em;
    box-sizing: border-box;
    text-align: left;
}

.Static2 ul li {
    color: #c5d4e2;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5em;
    padding-right: 1.5em;
    box-sizing: border-box;
    text-align: left;
    
    list-style-type:decimal;
}

pre {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5em;
    padding-right: 1.5em;
    box-sizing: border-box;
    text-align: left;
}

.language-cpp {
    border-top: #00000000;
    border-bottom: #00000000;
    border-left: #00000000;
    border-color: var(--accent);
    border-radius: 0;
    border-width: 0.2vw;
}

h1 {
    font-family: 'system-ui';
    font-size: 2.5em;
    font-weight: 500;
    color: #dae2eb;
    text-align: center;
    padding-bottom: 1em;
    padding-top: 0.5em;
    position: relative;
    left: -5vw;
}

h1::after {
    content: "";
    display: block;
    margin: 0.5em auto 0 auto;
    width: 60%;
    border-bottom: 1px solid var(--accent);
}

h2 {
    font-family: 'system-ui';
    font-size: 2em;
    font-weight: 400;
    color: #d6d6d6;
    text-align: center;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
    position: relative;
    left: -5vw;
}

h2::after {
    content: "";
    display: block;
    margin: 0.5em auto 0 auto;
    width: 30%;
    border-bottom: 1px solid var(--accent);
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
    background: var(--accent);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 8px;
    border: 2px solid var(--accent);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--accent);
}

/* Scroll indicator underglow effects */
.scroll-indicator {
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: fixed;
    bottom: 0;
    height: 20px;
    background: linear-gradient(to top, rgba(238, 246, 255, 0.315), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 10;
}

.scroll-indicator.has-scroll::after {
    opacity: 1;
}

/* Specific styling for Static1 (menu) scroll indicator */
.Static1 ul.scroll-indicator::after {
    left: 0;
    width: 13%;
    background: linear-gradient(to top, rgba(66, 128, 194, 0.2), transparent);
    height: 2vh;
}

/* Specific styling for Static2 (content) scroll indicator */
.Static2.scroll-indicator::after {
    left: 13%;
    right: 0;
    background: linear-gradient(to top, rgba(66, 128, 194, 0.2), transparent);
    height: 3.5vh;
}

table {
    border-collapse: collapse;
    width: 80%;
    margin-left: 6.5em;
    color: #cbd5e1;
    font-size: 1em;
}

table th, table td {
    border-left: 1px solid var(--accent);
    padding: 1em;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

table th {
    background: var(--accent-2);
    color: #e0e0e0;
    font-weight: bold;
}

table th:first-child,
table td:first-child {
    border-left: none;
}

/* Vertical growth column class for descriptions and longer text */
.vertical-grow {
    max-width: 20em;
    width: 20em;
    word-wrap: break-word;
    white-space: normal;
    vertical-align: top;
    line-height: 1.4;
}