@import url('https://fonts.googleapis.com/css?family=Lato:300,400,700');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700');

:root {
    /* Scalable Typography System */
    --base-font-size: 16px;
    --font-scale: 1.618;
    
    /* Font sizes using modular scale */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 2.75rem;   /* 44px */
    --font-size-6xl: 3.375rem;  /* 54px */
    
    /* Line heights for optimal readability */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;
    
    /* Letter spacing for different contexts */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
    
    /* Theme colors - customize these for your needs */
    --background-color: rgba(0, 0, 0, 1.0); /* Sonic theme */
    --text-color: rgba(255, 255, 255, 0.8); /* Sonic theme */
    --h1-color: rgba(0, 200, 255, 1.0); /* Sonic theme */
    --h2-color: rgba(0, 200, 255, 0.95); /* Sonic theme */
    --h3-color: rgba(0, 200, 255, 0.9); /* Sonic theme */
    --header-text-color: rgba(0, 200, 255, 0.95); /* Sonic theme */
    --dropdown-bg-color: rgba(0, 0, 0, 1.0); /* Sonic theme */
    --dropdown-text-color: rgba(255, 255, 255, 0.8); /* Sonic theme */
    --dropdown-option-bg-color: rgba(0, 0, 0, 1.0); /* Sonic theme */
    --dropdown-option-text-color: rgba(255, 255, 255, 0.9); /* Sonic theme */
    --container-bg: rgba(0, 0, 0, 0.2); /* Sonic theme */
    --border-color: rgba(0, 200, 255, 0.5); /* Sonic theme */
    --grid-color: rgba(0, 200, 255, 0.3); /* Sonic theme */
    --title-color: rgba(180, 200, 220, 0.7); /* Not in Sonic theme - left unchanged */
    --accent-color-1: rgba(0, 200, 255, 1.0); /* Sonic theme */
    --accent-color-2: rgba(255, 200, 0, 1.0); /* Sonic theme */
    --accent-color-3: rgba(255, 0, 0, 1.0); /* Sonic theme */
    --accent-color-4: rgba(0, 255, 0, 1.0); /* Sonic theme */
    --accent-color-5: rgba(255, 100, 0, 1.0); /* Sonic theme */
    --highlight-color: rgba(255, 255, 255, 0.9); /* Sonic theme */
    --border-highlight: rgba(150, 170, 190, 0.5); /* Not in Sonic theme - left unchanged */
    --glow-color-1: rgba(0, 200, 255, 1.0); /* Sonic theme */
    --glow-color-2: rgba(255, 200, 0, 1.0); /* Sonic theme */
    --glow-color-3: rgba(255, 0, 0, 1.0); /* Sonic theme */
    --spacing-unit: 1rem;
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --background-image: url('../media/black.png');
    --background-opacity: 0.3;
    
    /* Apple-style Typography */
    --font-heading: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, sans-serif;
}
html, body {
	margin: 0;
    margin-left: 2px;
    margin-right: 2px;
	padding: 0;
	height: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
}
/* Mobile First - Base styles (320px+) */
html {
    font-size: 16px; /* Increased base for better readability */
}

p { 
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-xl); /* Increased from lg to xl */
    font-weight: 300;
    margin: 0 0 1rem 0;
    line-height: 1.4;
    letter-spacing: 0.01em;
}


h1 { 
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 300;
    margin: 0 0 1.5rem 0;
    line-height: var(--line-height-tight);
    letter-spacing: 0.01em;
    color: var(--h1-color);
}
h2 { 
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-lg);
    font-weight: 300;
    margin: 2rem 0 1rem 0;
    line-height: var(--line-height-tight);
    letter-spacing: 0.01em;
    color: var(--h2-color);
}
h3 { 
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-lg);
    font-weight: 300;
    margin: 1.5rem 0 0.75rem 0;
    line-height: var(--line-height-normal);
    letter-spacing: 0.01em;
    color: var(--text-color);
}
h4 { 
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-base);
    font-weight: 300;
    margin: 1rem 0 0.5rem 0;
    line-height: var(--line-height-normal);
    letter-spacing: 0.01em;
    color: var(--text-color);
}
/* Small tablets (768px+) */
@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 1.69rem;
        letter-spacing: 0.015em;
    }
    
    h2 {
        font-size: var(--font-size-xl);
        letter-spacing: 0.015em;
    }
    
    h3 {
        font-size: var(--font-size-xl);
    }
    
    p {
        font-size: var(--font-size-lg);
    }
}

/* Large tablets and small desktops (1024px+) */
@media (min-width: 1024px) {
    html {
        font-size: 16px;
    }
    
    h1 {
        font-size: 1.86rem;
        letter-spacing: 0.02em;
    }
    
    h2 {
        font-size: var(--font-size-2xl);
        letter-spacing: 0.02em;
    }
    
    h3 {
        font-size: var(--font-size-2xl);
    }
    
    p {
        font-size: var(--font-size-lg);
    }
}

/* Large desktops (1200px+) */
@media (min-width: 1200px) {
    html {
        font-size: 18px;
    }
    
    h1 {
        font-size: 1.86rem;
        letter-spacing: 0.025em;
    }
    
    h2 {
        font-size: var(--font-size-3xl);
        letter-spacing: 0.025em;
    }
    
    h3 {
        font-size: var(--font-size-2xl);
    }
    
    p {
        font-size: var(--font-size-xl);
    }
}

/* Mobile adjustments (768px and below) */
@media screen and (max-width: 768px) {
    .widget-full-width-fit-content {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
}



#wrapper {
	max-width:1000px;
	margin: 5px auto;
	margin-left: min(20px, auto);
	margin-right: min(20px, auto);
	position:relative;
	min-height:100%;
	box-sizing:border-box;
    overflow-x: hidden;
}
#header {
	position:fixed;
	width:100%;
	max-width:1000px;
	left:50%;
	transform:translateX(-50%);
	height:180px;
    background-color: var(--background-color);
    z-index: 1000;
    top: 0px;
    /* border:1px solid rgba(255, 255, 255, 0.2); */
    display: flex;

}
#header-left {
    width: 170px;
    height: 100%;
    /* border-right: 1px solid rgba(255, 255, 255, 0.2); */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 15px;
    box-sizing: border-box;
}

#header-right {
    flex: 1;
    height: 100%;
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: 15px;
    box-sizing: border-box;
}
@media screen and (max-width: 768px) {
    #header {
        position: relative !important;
        height: 105px;
    }
    #header-left{
        width: 110px;
        padding: 12px;
    }
    #header-right {
        padding: 10px;
        padding-left: 0px;

    }
}
#columns {
	position:relative;
	margin-top:180px;
	min-height:calc(100vh - 180px);
	display:flex;
	gap: 10px;
    overflow-x: hidden;
}
@media screen and (max-width: 768px) {
    #columns {
        margin-top: 0px;
        min-height: calc(100vh - 105px);
        overflow-x: hidden;
    }
}   
#left-column {
	width:200px;
	overflow:hidden;
    /* border:1px solid rgba(255, 255, 255, 0.2); */
    flex-shrink: 0;
    padding: 15px;
    padding-top: 0px;
    box-sizing: border-box;
    position: sticky;
    top: 180px;
    height: calc(100vh - 180px);
    align-self: flex-start;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: none;
    touch-action: none;
}
#right-column {
	width:200px;
	overflow:hidden;
    /* border:1px solid rgba(255, 255, 255, 0.2); */
    flex-shrink: 0;
    padding: 15px;
    padding-top: 0px;
    box-sizing: border-box;
    position: sticky;
    top: 180px;
    height: calc(100vh - 180px);
    align-self: flex-start;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: none;
    touch-action: none;
    visibility: hidden;
    display: none;
}

#content {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    min-width: 0;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    padding: 5px;
    box-sizing: border-box;
    position: relative;
    min-height: calc(100vh - 180px);
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    height: calc(100vh - 180px);
}
#content::-webkit-scrollbar {
	display: none;  /* Chrome, Safari, Opera */
}
#right-column-container {
    display: none;
    width: 100%;
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    margin-top: 20px;
}

.header-left {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}


.logo-image {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-image svg {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* filter: drop-shadow(0 0 0.5rem var(--glow-color-1)) 
    drop-shadow(0 0 0.1875rem var(--glow-color-1)); */
}

.header-text {
    width: 100%;
    text-align: center;
    font-size: 14px;
    margin-top: -5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    animation: headerTextFade 2s infinite alternate ease-in-out,
               textGlow 3s infinite ease-in-out;
}

@keyframes headerTextFade {
    from { opacity: 0.1; }
    to { opacity: 1; }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 5px var(--glow-color-1);
    }
    50% {
        text-shadow: 0 0 10px var(--glow-color-1),
                     0 0 20px var(--glow-color-1),
                     0 0 30px var(--glow-color-2),
                     0 0 40px var(--glow-color-2),
                     0 0 50px var(--glow-color-3),
                     0 0 60px var(--glow-color-3);
    }
    100% {
        text-shadow: 0 0 5px var(--glow-color-1);
    }
}

@media screen and (min-width: 769px) {
    .header-text {
        display: none;
    }
}

.signature-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 0;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {

    .signature-container svg {
        padding-left: 10px;
    }
}

.signature-container svg {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 0.5rem var(--glow-color-1)) 
    drop-shadow(0 0 0.1875rem var(--glow-color-1));
    margin-left: 0;
}
@media screen and (max-width: 768px) {
    .signature-container {
        padding-top: 0px;
        padding-bottom: 0px;
        padding-left: 0px;
        justify-content: flex-start;
    }
}

@media screen and (max-width: 1100px) {
    #columns {
        flex-direction: row;
    }
    #right-column {
        display: none;
    }
    #right-column-container {
        display: none;
    }
}

@media screen and (max-width: 1300px) {
    #left-column {
        left: 20px;
    }
    #right-column {
        right: 20px;
    }
}

@media screen and (max-width: 768px) {
    #left-column {
        display: none;
    }
    #right-column {
        display: none;
    }
    #content {
        height: auto;
        min-height: auto;
    }
    #right-column-container {
        display: none;
    }
}

.themePopup {
    position: fixed;
    top: 0; /* Start from the very top to cover header */
    left: 0;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center;
    align-items: stretch;
    z-index: 3000;
    pointer-events: none;
    background: none;
    gap: 0px;
    padding: 0px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    min-width: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.themePopupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2999;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

.themePopup.showing {
    pointer-events: auto;
}

.themePopup.showing .themePopupOverlay {
    opacity: 1;
    pointer-events: auto;
}

.themePopup-panel {
    width: 50%;
    height: calc(100% - 10px);
    max-height: calc(100% - 10px);
    border: 1.5px solid var(--border-color);
    /* border-radius: 0.5rem; */
    box-sizing: border-box;
    border-top: none;
    border-bottom: none;
    padding: 20px; /* Match mobile padding */
    padding-top: 100px; /* Add top padding to account for header */
    overflow-y: auto;
    position: relative;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(.77,0,.18,1), opacity 0.3s;
    will-change: transform, opacity;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    z-index: 3000;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background-color: color-mix(in srgb, var(--background-color) 93%, transparent);
}

.themePopup-panel::-webkit-scrollbar {
    display: none;
}

.themePopup-left {
    transform: translateX(-100%);
    border-left: 0px none;
}

.themePopup-right {
    transform: translateX(100%);
    border-right: 0px none;
    padding-left: 15px;
}

.themePopup.showing .themePopup-left {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 0.05s;
}

.themePopup.showing .themePopup-right {
    transform: translateX(0);
    opacity: 1;
    transition-delay: 0.15s;
}

.themePopup.hiding .themePopup-left {
    transform: translateX(-100%);
    opacity: 0;
}

.themePopup.hiding .themePopup-right {
    transform: translateX(100%);
    opacity: 0;
}

@media (max-width: 1024px) {
    .themePopup {
        padding: 0px;
    }
    
    .themePopup-panel {
        padding: 20px; /* Match mobile and desktop padding */
    }
}

@media (max-width: 768px) {
    .themePopup {
        padding: 0px;
        margin-top: 0px; /* Remove negative margin since we're now positioned relative to wrapper */
        top: 0; /* Start from the very top on mobile too */
        height: 100vh; /* Full viewport height */
        width: 100vw;
    }
    
    .themePopup-panel {
        width: 100%;
        height: 100vh;
        max-height: none;
        padding: 20px;
        padding-top: 80px; /* Smaller top padding for mobile header */
        box-sizing: border-box;
    }
    
    .themePopup-left {
        transform: translateY(-100%);
    }
    
    .themePopup-right {
        transform: translateY(100%);
    }
    
    .themePopup.showing .themePopup-left {
        transform: translateY(0);
    }
    
    .themePopup.showing .themePopup-right {
        transform: translateY(0);
    }
    
    .themePopup.hiding .themePopup-left {
        transform: translateY(-100%);
    }
    
    .themePopup.hiding .themePopup-right {
        transform: translateY(100%);
    }
}

@media (max-width: 480px) {
    .themePopup {
        padding: 5px;
    }
    
    .themePopup-panel {
        padding: 16px 8px;
    }
}

.themePopup > h2 {
    margin-bottom: 4px;
    color: var(--h2-color);
}

.themePopup > h3 {
    margin-bottom: 8px;
    padding-left: 25px;
    color: var(--h3-color);
}

.themePopup > .placeholder-row {
    padding-left: 5px;
    margin-bottom: 10px;
}

.placeholder-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    padding-left: 5px;
}

.placeholder-item {
    padding: 5px 10px;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    color: var(--text-color);
    font-size: clamp(18px, 2.5vw, 20px);
    position: relative;
    z-index: 1;
    display: inline-block;
}

@media (max-width: 768px) {
    .placeholder-item {
        font-size: 15px;
    }
}

.placeholder-item:hover {
    filter: brightness(1.5);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.placeholder-item.active {
    background-color: var(--dropdown-option-bg-color);
    color: var(--dropdown-option-text-color);
    box-shadow: 0 0 10px var(--glow-color-1);
    position: relative;
    z-index: 2;
}

.placeholder-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background-color: var(--dropdown-option-bg-color);
    z-index: -1;
}

.separator {
    color: var(--text-color);
    opacity: 0.5;
    text-align: left;
    margin: 10px 0;
    margin-top: 0px;
    padding-bottom: 12px;
    padding-top:5px;
    font-size: 14px;
    letter-spacing: 2px;
}

.separator2 {
    color: var(--text-color);
    opacity: 0.5;
    text-align: left;
    margin: 5px 0;
    margin-top: 0px;
    padding-bottom: 0px;
    padding-top:0px;
    font-size: 14px;
    letter-spacing: 2px;
}


.theme-title {
    margin-bottom: 4px;
    padding-left: 10px;
    color: var(--h3-color);
    text-align: left;
}

.themePopup-left .theme-title {
    text-align: right;
    padding-right: 10px;
    padding-left: 0;
}

.themePopup-left .theme-popup-links {
    text-align: right;
    padding: 0px 5px 0px 5px; /* Match the right panel padding */
}

.themePopup-left .theme-popup-links a {
    text-align: right;
    justify-content: flex-end;
}

.themePopup-left .theme-popup-links .file-link a {
    text-align: right;
}

.themePopup-left .theme-popup-links summary {
    text-align: right;
}

.themePopup-left .theme-popup-links ul {
    padding-right: 5px; /* Match the left padding from right panel */
    padding-left: 0;
}

.theme-popup-links {
    list-style: none;
    padding: 0px 5px; /* Match placeholder-row padding */
    margin: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.theme-popup-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: clamp(18px, 2.5vw, 20px);
    display: inline-block;
    padding: 5px 10px;
    margin: 0;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    z-index: 1;
    border-radius: 20px;
}

.theme-popup-links a:hover {
    filter: brightness(1.5);
}

.theme-popup-links a.active {
    background-color: var(--dropdown-option-bg-color);
    color: var(--dropdown-option-text-color);
    box-shadow: 0 0 10px var(--glow-color-1);
    position: relative;
    z-index: 1;
}

.theme-popup-links a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background-color: var(--dropdown-option-bg-color);
    z-index: -1;
}

.theme-popup-links details {
    margin: 0;
}

.theme-popup-links summary {
    cursor: pointer;
    padding: 5px 10px;
    color: var(--text-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.theme-popup-links summary:hover {
    filter: brightness(1.5);
}

.theme-popup-links ul {
    list-style: none;
    padding-left: 20px;
    margin: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.theme-popup-links .file-link a {
    text-decoration: none;
    color: var(--text-color);
    font-size: clamp(18px, 2.5vw, 20px);
    display: inline-block;
    padding: 5px 10px; /* Match placeholder-item padding */
    margin: 0;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    z-index: 1;
    border-radius: 20px;
}

details summary {
    text-decoration: none;
    color: var(--text-color);
    font-size: clamp(18px, 2.5vw, 20px);
    display: block;
    padding: 5px 10px; /* Match placeholder-item padding */
    cursor: pointer;
}

details {
    list-style: none;
}

details summary {
    list-style: disclosure-closed;
}

details[open] summary {
    list-style: disclosure-open;
}

details summary::-webkit-details-marker {
    color: var(--text-color);
    display: inline-block;
}

.theme-popup-links .file-link a:hover {
    filter: brightness(1.5);
}

.theme-popup-links .file-link a.active {
    background-color: var(--dropdown-option-bg-color);
    color: var(--dropdown-option-text-color);
    box-shadow: 0 0 10px var(--glow-color-1);
    position: relative;
    z-index: 1;
}

.theme-popup-links .file-link a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background-color: var(--dropdown-option-bg-color);
    z-index: -1;
}

.social-contacts-icon2 {
    width: 15px;
    height: 10px;
    margin-right: 1px;
    object-fit: contain;
    filter: drop-shadow(0 0 0.1rem var(--glow-color-1)) drop-shadow(0 0 0.12rem var(--glow-color-3));
    transition: opacity 0.75s ease, filter 0.3s ease;
    z-index: 12;
}
.social-contacts-icon-small {
    width: 35px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 0 0.3rem var(--glow-color-1)) drop-shadow(0 0 0.1875rem var(--glow-color-3));
    transition: opacity 0.75s ease, filter 0.3s ease;
    z-index: 12;
}
.social-contacts-icon-container {
    display: none;
    z-index: 12;
}
@media (max-width: 768px) {
    .social-contacts-icon-container {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 11px;
        margin: 1px;
        margin-bottom: 10px;
        height: 30px;
        }
}   

.themes-container {
    cursor: pointer;
    padding: 10px 0;
    padding-top: 0px;
}
.themes-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.themes-text {
    font-size: clamp(20px, 2.5vw, 22px);
    color: var(--text-color);
    text-align: left;
    padding-bottom: 5px;
}
.themes-text-centered {
    font-size: clamp(20px, 2.5vw, 22px);
    color: var(--text-color);
    text-align: center;
}


.theme-colors {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    padding: 5px 2px;
    margin: 0px;
}

.color-circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

#color1 {
    background-color: var(--glow-color-1);
}

#color2 {
    background-color: var(--glow-color-2);
}

#color3 {
    background-color: var(--glow-color-3);
}

#color4 {
    background-color: var(--accent-color-1);
}

.explorer-links {
    list-style: none;
    padding: 0px 0;
    margin: 0;
    text-align: left;
}

.explorer-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: clamp(18px, 2.5vw, 20px);
    display: block;
    padding: 8px 16px;
    margin: 4px;
    transition: all 0.3s ease;
    text-align: left;
}
.file-link a {
    text-decoration: none;
    color: var(--text-color);
    font-size: clamp(18px, 2.5vw, 20px);
    display: block;
    padding: 5px 0;
}

details summary {
    text-decoration: none;
    color: var(--text-color);
    font-size: clamp(18px, 2.5vw, 20px);
    display: block;
    padding: 5px 10px; /* Match placeholder-item padding */
    cursor: pointer;
}

.file-link a:hover {
    color: var(--text-color);
    text-decoration: none;
}


mark {
    background-color: var(--highlight-color) !important;
    color: var(--background-color) !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    font-weight: 500 !important;
}

.separator {
    color: var(--text-color);
    opacity: 0.5;
    text-align: left;
    margin: 10px 0;
    margin-top: 0px;
    padding-bottom: 12px;
    padding-top:5px;
    font-size: 14px;
    letter-spacing: 2px;
}
.horizontal-line-div {
    width: calc(100% - 40px);
    height: 30px;
    margin: 25px 20px 30px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.horizontal-line-div-full {
    width: 97%;
    height: 30px;
    margin: 25px auto 30px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.horizontal-line-div-small {
    width: calc(100% - 40px);
    height: 30px;
    margin: 12px 10px 12px 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.horizontal-line-div::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--background-color);
    opacity: 0.4;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    z-index: 1;
    /* box-shadow: 0 0 10px var(--glow-color-1); */
}
.horizontal-line-div-small::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 6px;
    background-color: var(--background-color);
    opacity: 0.4;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    z-index: 1;
    box-shadow: 0 0 10px var(--glow-color-1);
}

.horizontal-line-div-full::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--glow-color-1) 0%,
        var(--glow-color-2) 10%,
        var(--background-color) 45%,
        var(--background-color) 55%,
        var(--glow-color-2) 90%,
        var(--glow-color-1) 100%);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: themeGlow 20s linear infinite;
    z-index: 2;
    /* box-shadow: 0 0 15px var(--glow-color-3); */
}

.horizontal-line-div-small::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, 
        var(--glow-color-1) 0%,
        var(--glow-color-2) 10%,
        var(--background-color) 45%,
        var(--background-color) 55%,
        var(--glow-color-2) 90%,
        var(--glow-color-1) 100%);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: themeGlow 10s linear infinite;
    z-index: 2;
    box-shadow: 0 0 15px var(--glow-color-3);
}

.horizontal-line-div-full::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--glow-color-1) 0%,
        var(--glow-color-2) 10%,
        var(--background-color) 45%,
        var(--background-color) 55%,
        var(--glow-color-2) 90%,
        var(--glow-color-1) 100%);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: themeGlow 20s linear infinite;
    z-index: 2;
    /* box-shadow: 0 0 15px var(--glow-color-3); */
}

@keyframes themeGlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}


.theme-container {
    width: 100%;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.theme-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.right-sidebar-links{
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    width: 100%;
}
.right-sidebar-links:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--h2-color);
    margin-bottom: 4px;
    display: block;
    text-align: left;
    width: 100%;
    text-decoration: none;
}
.sidebar-title:hover {
    text-decoration: none;
    color: var(--h2-color);
}
.sidebar-description {
    font-size: 15px;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.4;
    display: block;
    text-align: left;
    width: 100%;
    margin-bottom: 10px;
}



.widget-full-width-fit-content {
    width: 100%;
    min-height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
    border: 1.5px solid var(--border-color);
    /* background-color: var(--container-bg); */
    /* box-shadow: 0 0 10px rgba(150, 170, 190, 0.3); */
    border-radius: 0.5rem;
    /* Removed padding to work with new margin system */
    margin: 3rem 0;  /* Increased margin for better separation */

}

/* Content section spacing */
.widget-full-width-fit-content h1 + div {
    margin-top: 1.5rem;
}

.widget-full-width-fit-content h2 + div {
    margin-top: 1rem;
}

.widget-full-width-fit-content h1 + h2 {
    margin-top: 1rem;
}

.widget-full-width-fit-content h2 + p {
    margin-top: 0.5rem;
}

/* Blog post specific spacing */
.three-column-container {
    margin: 2rem 0;
}

@media screen and (max-width: 768px) {
    .three-column-container {
        margin: 0.5rem 0;
    }
}

.three-column-container + div {
    margin-top: 1.5rem;
}

blockquote {
    margin: 1.5rem 0;
    padding: 1rem;
    border-left: 4px solid rgba(80, 100, 120, 0.5);
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 0.25rem;
}

blockquote p {
    margin: 0;
    font-style: italic;
}

/* Remove remaining br tags from content */
p br {
    display: none;
}

.widget-full-width-fit-content img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    .widget-full-width-fit-content {
        /* Removed padding to work with new margin system */
    }
}

.widget-two-thirds-one-third-width-fixed-height {
    width: 100%;
    height: 300px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 13px;
    box-sizing: border-box;
    border-radius: 0.5rem;
}
@media screen and (max-width: 768px) {
    .widget-two-thirds-one-third-width-fixed-height {
        height: 200px;
        gap: 8px;
    }
}

.widget-two-thirds-one-third-single-width-fixed-height {
    width: 100%;
    height: 300px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 13px;
    box-sizing: border-box;
    border-radius: 0.5rem;
}

.widget-two-thirds-one-third-width-fixed-height .main-content {
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    box-sizing: border-box;
    padding: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
@media screen and (max-width: 768px) {
    .widget-two-thirds-one-third-width-fixed-height .main-content {
        padding: 12px;
    }
}

.widget-two-thirds-one-third-width-fixed-height .main-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(to right, 
        var(--background-color) 0%,
        var(--background-color) 30%,
        rgba(10, 20, 30, 0.9) 50%,
        rgba(10, 20, 30, 0.6) 70%,
        transparent 100%
    ),
    var(--background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--background-opacity);
    z-index: 0;
    border-radius: 0.5rem;
}

.widget-two-thirds-one-third-width-fixed-height .main-content > * {
    position: relative;
    z-index: 1;
}


.widget-two-thirds-one-third-width-fixed-height .main-content p {
    margin: 0;
    padding: 0;
    line-height: 1.4;
    color: var(--text-color);
    overflow-y: hidden;
    flex: 1;
}

.widget-two-thirds-one-third-width-fixed-height .side-stacks {
    width: 100%;
    height: 100%;
    display: flex;
    border-radius: 0.5rem;
    flex-direction: column;
    box-sizing: border-box;
    gap: 13px;
}

.widget-two-thirds-one-third-width-fixed-height .side-stack {
    width: 100%;
    height: 100%;
    min-height: 100px;
    background-color: var(--container-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 16px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
@media screen and (max-width: 768px) {
    .widget-two-thirds-one-third-width-fixed-height .side-stack {
        padding: 10px;
        min-height: 60px;
    }
}

.widget-two-thirds-one-third-width-fixed-height .side-stack::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--background-opacity);
    z-index: 0;
    border-radius: 0.5rem;
}

.widget-two-thirds-one-third-width-fixed-height .side-stack > * {
    position: relative;
    z-index: 1;
    max-height: 100%;
}

.side-stack-image {
    width: 100%;
    height: calc(100% - 40px); /* Subtract space for the h2 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.side-stack-image svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.half-height-row-stacks {
    width: 100%;
    height: 150px;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    gap: 13px;
}

@media screen and (max-width: 768px) {
    .half-height-row-stacks {
        height: 100px;
    }
}   

.half-height-stack {
    width: 50%;
    height: 100%;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    z-index: 0;
    border-radius: 0.5rem;
    background-color: var(--container-bg);
    border: 1.5px solid var(--border-color);
    position: relative;
    box-sizing: border-box;
    padding: 16px;
}
@media screen and (max-width: 768px) {
    .half-height-stack {
        padding: 10px;
    }
}

.half-height-stack-bg-image {
    object-position: center;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
  }
  
  .half-height-stack-bg-image svg {
    width: auto;
    height: 100%;
    position: absolute;
    top: -9999px;
    bottom: -9999px;
    left: -9999px;
    right: -9999px;
    margin: auto;
    z-index: -10;
  }


.main-content-link {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    gap: 10px;
}



.main-content-link:hover {
    text-decoration: none;
    color: inherit;
}

.resume-buttons {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    justify-content: flex-start;
}

.resume-button {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--container-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: fit-content; /* Ensure buttons don't fill container */
}

.resume-button:has(.resume-btn-icon:only-child),
.resume-button:has(.resume-btn-icon:first-child:last-child) {
    grid-template-columns: 1fr;
    justify-items: center;
    width: fit-content;
    min-width: auto;
}

.resume-button.icon-only {
    grid-template-columns: 1fr;
    justify-items: center;
    width: fit-content;
    min-width: auto;
}

.resume-btn-text {
    justify-self: start;
}

.resume-btn-icon {
    display: flex;
    align-items: center;
    justify-content: end;
    height: 100%;
}

.resume-btn-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

@media screen and (max-width: 768px) {
    .resume-button {
        font-size: 14px;
        align-items: flex-end;
    }
    .resume-btn-icon svg {
        width: 18px;
        height: 18px;
        display: block;
    }
    .resume-buttons {
        display: flex;
        gap: 6px;
        align-items: flex-end;
        justify-content: flex-start;
    }
}

.resume-button:hover {
    background-color: var(--accent-color-1);
    color: var(--highlight-color);
    text-decoration: none;
}

.resume-button.fit-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--container-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: fit-content;
    white-space: nowrap;
}
@media screen and (max-width: 768px) {
    .resume-button.fit-content {
        font-size: 14px;
    }
}

.resume-button.fit-content:hover {
    background-color: var(--accent-color-1);
    color: var(--highlight-color);
    text-decoration: none;
}

.main-headers {
    font-size: 40px;
    margin: 0;
    color: var(--h1-color);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.main-headers.fade-text {
    color: #d5d5d5;
}

.title-animation-container {
    height: 245px;
    display: flex;
    align-items: flex-start; /* top align the typing lines */
    justify-content: flex-start;
    width: 100%;
}

.typing-container {
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    color: var(--h1-color);
}

.typing-header {
    font-size: 24.7px;
    margin: 0 0 20px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.typing-title {
    font-size: 24.7px;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    display: none;
}

.typing-cursor {
    font-weight: bold;
    opacity: 0;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}


@media screen and (max-width: 768px) {
    .main-headers {
        font-size: 28px;
    }
    
    .title-animation-container {
        min-height: 120px;
        align-items: flex-start;
        padding-left: 5px;
    }
}
@media screen and (max-width: 768px) {
    .title-animation-container {
        height: 155px;
    }
}

.side-stack-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.side-stack-link:hover {
    text-decoration: none;
    color: inherit;
}

@media screen and (max-width: 768px) {
    /* .widget-two-thirds-one-third-width-fixed-height .main-content h2 {
        font-size: 14px;
        margin-bottom: 8px;
    } */

    .widget-two-thirds-one-third-width-fixed-height .main-content p {
        font-size: 12px;
        line-height: 1.3;
    }

    .widget-two-thirds-one-third-width-fixed-height .side-stack {
        padding: 8px;
        min-height: 60px;
    }

    /* .widget-two-thirds-one-third-width-fixed-height .side-stack h2 {
        font-size: 14px;
        margin-bottom: 8px;
    } */

    .side-stack-image {
        height: calc(100% - 30px);
    }
}

.widget-two-thirds-one-third-single-right {
    width: 100%;
    height: 300px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 13px;
    box-sizing: border-box;
    border-radius: 0.5rem;
}
@media screen and (max-width: 768px) {
    .widget-two-thirds-one-third-single-right {
        height: 200px;
        gap: 8px;
    }
}

.widget-two-thirds-one-third-single-right .main-content {
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    box-sizing: border-box;
    padding: 0px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
@media screen and (max-width: 768px) {
    .widget-two-thirds-one-third-single-right .main-content {
        padding: 02px;
    }
}

.widget-two-thirds-one-third-single-right .main-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    z-index: 0;
    border-radius: 0.5rem;
}

.widget-two-thirds-one-third-single-right .main-content > * {
    position: relative;
    z-index: 1;
}

.widget-two-thirds-one-third-single-right .main-content p {
    margin: 0;
    padding: 0;
    line-height: 1.4;
    color: var(--text-color);
    overflow-y: hidden;
    flex: 1;
}

.widget-two-thirds-one-third-single-right .side-single {
    width: 100%;
    height: 100%;
    background-color: var(--container-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 16px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
@media screen and (max-width: 768px) {
    .widget-two-thirds-one-third-single-right .side-single {
        padding: 10px;
    }
}

.widget-two-thirds-one-third-single-right .side-single::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--background-opacity);
    z-index: 0;
    border-radius: 0.5rem;
    display: none; /* Hide this to show the kevinBusiness.png background */
}

.widget-two-thirds-one-third-single-right .side-single > * {
    position: relative;
    z-index: 1;
    max-height: 100%;
}

.widget-two-thirds-one-third-single-right .side-single > svg:not(.resume-social-overlay svg) {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    z-index: 1;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .widget-two-thirds-one-third-single-right .main-content p {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .widget-two-thirds-one-third-single-right .side-single {
        min-height: 60px;
    }
}

.mobile-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 769px) {
    .mobile-popup-overlay {
        display: none;
    }
}

.mobile-popup-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--container-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 16px;
    box-sizing: border-box;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mobile-popup-content.show {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 769px) {
    .mobile-popup-content {
        display: none;
    }
}

.mobile-popup-content > * {
    width: 100%;
    height: fit-content;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 12px;
    box-sizing: border-box;
}


.custom-select {
    position: relative;
    display: inline-block;
}

.select-button {
    background-color: var(--container-bg);
    background: linear-gradient(to bottom, 
        var(--container-bg) 0%,
        rgba(50, 70, 90, 0.3) 10%,
        rgba(50, 70, 90, 0.2) 30%,
        rgba(50, 70, 90, 0) 100%);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.options {
    background-color: var(--container-bg);
    background: linear-gradient(to bottom, 
        var(--container-bg) 0%,
        rgba(50, 70, 90, 0.3) 10%,
        rgba(50, 70, 90, 0.2) 30%,
        rgba(50, 70, 90, 0) 100%);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-top: 5px;
    overflow: hidden;
    display: none;
    min-width: 120px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
    right: 0;
    z-index: 1000;
}

.options.show {
    display: block;
}

.option {
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
    background: var(--dropdown-bg-color);
}

.option:hover {
    color: white;
}

.selected {
    background: var(--dropdown-bg-color);
    color: var(--text-color);
}

.chart-container {
    padding: 0;
    width: 100%;
    flex: 1;
    min-height: 0;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.small-charts-container {
    display: flex;
    gap: 13px;
    width: 100%;
    height: 200px;
}

.content-div-small-chart {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    /* margin-bottom: 20px; */
    display: flex;
    flex-direction: column;
    flex: 1; /* Make each chart take up equal space */
    min-width: 0; /* Allow flex items to shrink below their content size */
}

@media (max-width: 768px) {
    .small-charts-container {
        height: 120px;
        display: flex;
        flex-direction: row;
        gap: 10px;
    }   

    .content-div-small-chart {
        height: 100%;
        padding: 5px;
        margin-bottom: 10px;
        flex: 1;
        min-width: 0;
        background-color: var(--background-color);
        border: 1px solid var(--border-color);
        border-radius: 5px;
        box-sizing: border-box;
    }


    .content-div-small-chart canvas {
        height: 80px !important;
    }
}



.smallDiv {
    margin-bottom: 0px;
    padding: 0;
    line-height: 1.2;
    flex-shrink: 0;
    color: var(--h2-color);
    font-size: clamp(17px, 2vw, 19px);
}

.mobile-right-sidebar-placeholder {
    display: none;
}

.mobile-right-sidebar-placeholder.show {
    display: block;
    background-color: var(--background-color);
    padding: 10px;
    margin-top: 20px;
}

#nutritionChart {
    width: 100%;
    height: 100%;
    display: block;
    max-height: 100%;
    object-fit: contain;
}

.three-column-container {
    width: 100%;
    height: 150px;
    display: flex;
    gap: 13px;
    margin-bottom: 20px;
}

.new-post-container {
    width: 100%;
    height: 100px;
    display: grid;
    grid-template-columns: 1fr 5fr;
    gap: 13px;
    margin-bottom: 20px;
}

.three-column-container-tall {
    width: 100%;
    height: 300px;
    display: flex;
    gap: 13px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .three-column-container-tall {
        height: 190px;
    }
    .new-post-container {
        width: 100%;
        height: 75px;
        display: grid;
        grid-template-columns: 1fr 3fr;
        gap: 13px;
        margin-bottom: 20px;
    }
}

.three-column-item {
    flex: 1;
    height: 100%;
    background-color: var(--container-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 0.5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.three-column-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color-1);
}

.three-column-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--background-opacity);
    z-index: 1;
    border-radius: 0.5rem;
}

.three-column-item .side-stack-link {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px;
}

.three-column-item h2 {
    color: var(--text-color);
    margin: 0;
    text-align: right;
    position: relative;
    z-index: 2;
}

@media screen and (max-width: 768px) {
    .three-column-container {
        height: 100px;
        gap: 8px;
    }
    .two-column-container {
        height: 100px;
        gap: 8px;
    }
}

.skills-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
}

/* Override the h1 + div spacing for skills-icons */
.widget-full-width-fit-content h1 + .skills-icons {
    margin-top: 0.5rem;
}

/* Standardized vertical rhythm system for content blocks */
.widget-full-width-fit-content {
    margin: 3rem 0;  /* Increased margin for better separation */
    padding: 0;  /* Ensure no padding on desktop */
}

/* Enhanced H1 spacing for main content areas */
.widget-full-width-fit-content h1 {
    margin: 0 0 0.75rem 0;  /* Reduced bottom margin by half */
}

/* Three-column container standard spacing */
.three-column-container {
    margin: 1.5rem 0;  /* Reduced to half to account for margin collapse */
}

/* New post cards spacing */
.new-post-card {
    margin: 1.75rem 0;  /* Further reduced desktop spacing */
    width: 100%;  /* Always 100% width of parent container */
}

/* Make post card links take full width */
.new-post-card {
    display: block;  /* Make the card itself a block element */
}

/* Ensure the parent anchor tag also takes full width */
a[href*="page="] {
    display: block;  /* Make anchor tags that link to pages take full width */
    width: 100%;
}

/* Complete list posts container */
.widget-full-width-fit-content.no-border {
    margin: 3rem 0;  /* Increased margin for better separation */
}

/* Footer section spacing */
.widget-full-width-fit-content.no-border-bg {
    margin: 3rem 0;  /* Increased margin for better separation */
}

/* Two-thirds-one-third single right container spacing */
.widget-two-thirds-one-third-single-right {
    margin-bottom: 2rem;  /* Only bottom margin since it's the first element */
    /* Preserve original container structure for resume buttons */
    width: 100%;
    height: 300px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 13px;
    box-sizing: border-box;
    border-radius: 0.5rem;
}

/* Mobile adjustments for vertical rhythm */
@media screen and (max-width: 768px) {
    .widget-full-width-fit-content {
        margin: 1.5rem 0;  /* Increased mobile spacing */
    }
    
    .widget-full-width-fit-content h1 {
        margin: 0 0 0.5rem 0;  /* Increased bottom margin on mobile */
    }
    
    .three-column-container {
        margin: 1rem 0;  /* Reduced spacing on mobile */
    }
    
    .new-post-card {

    }
    
    .widget-full-width-fit-content.no-border,
    .widget-full-width-fit-content.no-border-bg {
        margin: 2.5rem 0;  /* Increased mobile spacing */
    }
    
    .widget-two-thirds-one-third-single-right {
        margin-bottom: 1.5rem;  /* Only bottom margin on mobile too */
        height: 200px;
        gap: 8px;
    }
}

.skill-icon {
    width: 35px;
    height: 30px;
    object-fit: cover;
    /* filter: drop-shadow(0 0 0.3rem var(--glow-color-1)) drop-shadow(0 0 0.1875rem var(--glow-color-3));
    transition: opacity 0.75s ease, filter 0.3s ease; */
    flex: 0 0 35px;
    max-width: 35px;
    max-height: 35px;

}
.work-icon {
    width: auto;
    height: 45px;
    object-fit: cover;
    max-height: 40px;
    flex: 0 0 45px;
}

/* Desktop layout - make work icons 50% bigger */
@media (min-width: 768px) {
    .work-icon {
        height: 67.5px;
        max-height: 60px;
        flex: 0 0 67.5px;
    }
}

.resume-content {
    min-height: auto;
    height: auto;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    position: relative;
    box-sizing: border-box;
    background: var(--background-color);
    border: 1px solid var(--border-highlight);
    border-radius: 0.5rem;
    box-shadow: 0 0 10px rgba(150, 170, 190, 0.3);
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .resume-content {
        height: auto;
        min-height: auto;
    }
}

.glowing-border {
    position: relative;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 10px var(--glow-color-1),
                0 0 20px var(--glow-color-2),
                0 0 30px var(--glow-color-3);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0% {
        box-shadow: 0 0 10px var(--glow-color-1),
                    0 0 20px var(--glow-color-2),
                    0 0 30px var(--glow-color-3);
    }
    50% {
        box-shadow: 0 0 15px var(--glow-color-1),
                    0 0 25px var(--glow-color-2),
                    0 0 35px var(--glow-color-3);
    }
    100% {
        box-shadow: 0 0 10px var(--glow-color-1),
                    0 0 20px var(--glow-color-2),
                    0 0 30px var(--glow-color-3);
    }
}



.list-item {
    list-style: none;
    padding: 0px 0;
    padding-left: 0px;
    position: relative;
    line-height: 1.3;
    color: var(--text-color);
    margin-left: -10px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.list-item::before {
    content: '•';
    position: absolute;
    left: -20px;
    color: var(--glow-color-1);
    text-shadow: 0 0 5px var(--glow-color-1);
}

.list-item a {
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 300;
    color: #d5d5d5;
    margin-bottom: 0;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.list-item a:hover {
    color: var(--text-color);
    filter: brightness(1.5);
}

@media screen and (max-width: 768px) {
    .list-item a {
        font-size: .9rem;
        font-weight: 300;
        color: var(--text-color);
        margin-bottom: 0;
        line-height: 1.3;
    }
}


@media (max-width: 768px) {
    .fade-out-text {
        max-height: 13em; /* Adjust to show the number of lines you want */
    }
}


.themePopup-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* padding: 10px 0; */
}

.themePopup-icons svg {
    width: auto;
    height: 95px;
    object-fit: contain;
    filter: drop-shadow(0 0 0.14rem var(--glow-color-1)) drop-shadow(0 0 0.14rem var(--glow-color-1));
    transition: opacity 0.75s ease, filter 0.3s ease;
}

@media (max-width: 768px) {
    .themePopup-icons svg {
        width: auto;
        height: 60px;
    }
}

#left-column *, #right-column * {
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: none;
    touch-action: none;
}

@media screen and (max-width: 768px) {
    html body #header {
        position: relative !important;
    }
}

.bitcoin-widget-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    position: relative;
    z-index: 2;
}

.bitcoin-widget-icon-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
}

.bitcoin-widget-icon-simple svg {
    width: 80%;
    height: 80%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bitcoin-widget-price-simple {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    margin: 0;
    color: var(--h2-color);
    font-size: 24px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .bitcoin-widget-price-simple {
        font-size: 16px;
        top: 8px;
        left: 8px;
    }
}

.art-icons-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.art-icons-overlay svg {
    width: 80%;
    height: 80%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.side-stack-link .art-icons-overlay {
    width: 100%;
    height: 100%;
}

.side-stack-link .art-icons-overlay svg {
    width: 80%;
    height: 80%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.three-column-item h2 {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    margin: 0;
    color: var(--h2-color);
    font-size: 24px;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .three-column-item h2 {
        font-size: 16px;
        top: 8px;
        left: 8px;
    }
}

.three-column-item {
    position: relative;
    overflow: hidden;
}

.three-column-item > svg:not(.art-icons-overlay svg) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
}




.resume-social-item {
    flex: 1;
    height: 100%;
    /* border: 1.5px solid var(--border-color); */
    border-radius: 0.5rem;

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.resume-social-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    opacity: var(--background-opacity);
    z-index: 1;
    border-radius: 0.5rem;
}

.resume-social-item .side-stack-link {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px;
}

.resume-social-item h2 {
    color: var(--text-color);
    margin: 0;
    text-align: right;
    position: relative;
    z-index: 2;
}

.resume-social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between; /* This spreads items out */
    z-index: 3;
    background: transparent;
}

.resume-social-overlay svg {
    width: 100%;
    height: 100%;
    max-width: 60px;
    max-height: 100%;
    object-fit: contain;
    margin-left: 5px;
    margin-right: 5px;
}

.side-stack-link .resume-social-overlay {
    width: 100%;
    height: 100%;
}

.side-stack-link .resume-social-overlay svg {
    width: 80%;
    height: 80%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.resume-social-item h2 {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    margin: 0;
    color: var(--h2-color);
    font-size: 24px;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .resume-social-item h2 {
        font-size: 16px;
        top: 8px;
        left: 8px;
    }
    .resume-social-overlay svg {
        width: 100%;
        height: 100%;
        max-width: 30px;
        max-height: 100%;
        object-fit: contain;
        margin-left: 5px;
        margin-right: 5px;
    }
}

.resume-social-item {
    position: relative;
    overflow: hidden;
}

.resume-social-item > svg:not(.resume-social-overlay svg) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
}


.no-border-bg {
    border: none !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}
.no-border {
    border: none !important;
    box-shadow: none !important;
}

details {
    list-style: none;
}

details summary {
    list-style: disclosure-closed;
}

details[open] summary {
    list-style: disclosure-open;
}

details summary::-webkit-details-marker {
    color: var(--text-color);
    display: inline-block;
}

.left-column details summary {
    list-style: disclosure-closed !important;
}

.left-column details[open] summary {
    list-style: disclosure-open !important;
}

.left-column details summary::-webkit-details-marker {
    color: var(--text-color) !important;
    display: inline-block !important;
}

.custom-folder {
    margin: 5px 0;
}

.folder-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 0;
    color: var(--text-color);
    font-size: clamp(18px, 2.5vw, 20px);
    transition: all 0.3s ease;
}

.folder-header:hover {
    filter: brightness(1.5);
}

.folder-triangle {
    margin-right: 8px;
    font-size: 12px;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.folder-triangle.open {
    /* Remove transform rotation - we're using text content changes instead */
}

.folder-name {
    flex: 1;
}

.folder-content {
    margin-left: 20px;
    margin-top: 5px;
}

.folder-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.folder-content li {
    margin: 0 0 12px 0;
}

.folder-content a {
    text-decoration: none;
    color: var(--text-color);
    font-size: clamp(16px, 2.2vw, 18px);
    display: block;
    padding: 3px 0;
    transition: all 0.3s ease;
    white-space: normal;
    overflow: visible;
    max-width: 100%;
    word-wrap: break-word;
    word-break: break-word;
}

.folder-content a:hover {
    filter: brightness(1.5);
}

.mobile-menu-icon {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 110000;
}

.mobile-menu-icon svg {
    width: 30px;
    height: 30px;
    cursor: pointer;
    animation: honeycombFade 3s ease-in-out infinite;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after,
.mobile-menu-icon .bee-dot,
.mobile-menu-icon .bee-dot-2 {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--glow-color-3);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.mobile-menu-icon::before {
    animation: beeOrbit1 4s linear infinite;
}

.mobile-menu-icon::after {
    animation: beeOrbit2 4s linear infinite;
    animation-delay: -1.33s;
}

.mobile-menu-icon .bee-dot {
    animation: beeOrbit3 4s linear infinite;
    animation-delay: -2.66s;
}

.mobile-menu-icon .bee-dot-2 {
    animation: beeOrbit4 4s linear infinite;
    animation-delay: -3.99s;
}

@keyframes beeOrbit1 {
    0% {
        transform: rotate(0deg) translateX(8px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        opacity: .5;
    }
    100% {
        transform: rotate(360deg) translateX(8px) rotate(-360deg);
        opacity: 0.5;
    }
}

@keyframes beeOrbit2 {
    0% {
        transform: rotate(120deg) translateX(8px) rotate(-120deg);
        opacity: 0.5;
    }
    50% {
        opacity: .3;
    }
    100% {
        transform: rotate(480deg) translateX(8px) rotate(-180deg);
        opacity: 0.5;
    }
}

@keyframes beeOrbit3 {
    0% {
        transform: rotate(240deg) translateX(13px) rotate(-100deg);
        opacity: 0.5;
    }
    50% {
        opacity: .4;
    }
    100% {
        transform: rotate(600deg) translateX(13px) rotate(-600deg);
        opacity: 0.5;
    }
}

@keyframes beeOrbit4 {
    0% {
        transform: rotate(360deg) translateX(13px) rotate(-360deg);
        opacity: 0.5;
    }
    50% {
        opacity: .2;
    }
    100% {
        transform: rotate(720deg) translateX(13px) rotate(-120deg);
        opacity: 0.5;
    }
}

@keyframes honeycombFade {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu-icon {
        display: block;
    }
    
    #header {
        position: relative;
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu-icon {
        display: block;
    }
    
    #header-left {
        display: none;
    }
    
    #header {
        position: relative;
    }
}

.new-post-card {
    width: 100%;
    min-height: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    /* /* border: 1.5px solid var(--border-color); */
    background-color: rgba(26, 26, 26, .8);
    border-radius: 0.5rem;
    padding: 16px;
    gap: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    margin-bottom: 0px;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.new-post-card:hover {
    background-color: rgba(40, 40, 40, .8);
}

@media screen and (max-width: 768px) {
    .new-post-card {
        margin-bottom: -10px !important;
    }
}

.new-post-image img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: block;
}

.new-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    color: var(--text-color);
}

.new-post-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.15rem;
    font-weight: 300;
    color: #d5d5d5;
    margin-bottom: 8px;
    line-height: 1.3;
}

@media screen and (max-width: 768px) {
    .new-post-title {
        font-family: 'Inter', sans-serif !important;
        font-size: .9rem;
        font-weight: 300;
        color: var(--text-color);
        margin-bottom: 8px;
        line-height: 1.3;
    }
}

.new-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.98rem;
    color: #d5d5d5;
    font-weight: 400;
}

.new-post-date {
    letter-spacing: 0.01em;
    font-size: 1.15em;
}

.dot-separator {
    font-size: 1.2em;
    color: #d5d5d5;
    margin: 0 4px;
}

.new-post-tag {
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 0.95em;
    color: #d5d5d5;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .new-post-tag {
        font-size: 0.85em;
    }
    .dot-separator {
        font-size: 1.2em;
        color: #d5d5d5;
        margin: 0 2px;
    }
    .new-post-date {
        font-size: 0.85em;
    }
}.cursive-icon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0px 0;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    height: 55px;
    overflow: hidden;
}

.cursive-icon svg {
    width: auto;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    /* filter: drop-shadow(0 0 0.5rem var(--glow-color-1)) 
    drop-shadow(0 0 0.1875rem var(--glow-color-1));  */
}

@media (max-width: 768px) {
    .cursive-icon {
        height: 45px;
        overflow: visible;
        margin-top: -15px;
    }
}

.glowing-icon {
    position: relative;
    width: auto;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px var(--glow-color-1)) drop-shadow(0 0 6px var(--glow-color-3));
    animation: pulseGlow 4s ease-in-out infinite;
}

.glowing-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        var(--glow-color-1) 0%,
        var(--glow-color-2) 10%,
        var(--background-color) 45%,
        var(--background-color) 55%,
        var(--glow-color-2) 90%,
        var(--glow-color-1) 100%);
    background-size: 200% 100%;
    animation: themeGlow 10s linear infinite;
    -webkit-mask-image: url('media/iconText.svg');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url('media/iconText.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    z-index: -1;
    opacity: 0.6;
    box-shadow: 0 0 15px var(--glow-color-3);
}

.glowing-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    opacity: 0.8;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    z-index: -2;
    box-shadow: 0 0 10px var(--glow-color-1);
}

.glowing-icon-container {
    position: relative;
    display: inline-block;
    padding: 10px;
}

.glowing-icon-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        var(--glow-color-1) 0%,
        var(--glow-color-2) 10%,
        var(--background-color) 45%,
        var(--background-color) 55%,
        var(--glow-color-2) 90%,
        var(--glow-color-1) 100%);
    background-size: 200% 100%;
    border-radius: 50%;
    animation: themeGlow 10s linear infinite;
    z-index: 1;
    opacity: 0.5;
    box-shadow: 0 0 15px var(--glow-color-3);
}

@keyframes themeGlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

@keyframes pulseGlow {
    0% {
        filter: drop-shadow(0 0 12px var(--glow-color-1)) drop-shadow(0 0 6px var(--glow-color-3));
    }
    50% {
        filter: drop-shadow(0 0 20px var(--glow-color-1)) drop-shadow(0 0 10px var(--glow-color-3));
    }
    100% {
        filter: drop-shadow(0 0 12px var(--glow-color-1)) drop-shadow(0 0 6px var(--glow-color-3));
    }
}

/* Enhanced readability for lists and small text */
ul, ol {
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-xl);
    font-weight: 300;
    line-height: 1.4;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    letter-spacing: 0.01em;
}

/* Complete List of Posts specific styling */
.posts-list-container {
    width: 100%;
    color: #d5d5d5;
    background-color: rgba(26, 26, 26, .8);
    border-radius: 0.5rem;
    box-sizing: border-box;
}

ul.complete-list-posts {
    margin: 0.5rem 0;  /* Reduced top/bottom margin */
    padding: .45rem;
    padding-left: 3.5rem;  /* Tripled left margin (1.5rem × 3) */
    padding-right: 3.5rem;  /* Added right margin to match */
    color: #d5d5d5;

    border-radius: 0.5rem;

}

li {
    font-family: 'Inter', sans-serif;
    font-size: var(--font-size-xl);
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

/* Small text elements */
small, .small-text {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

/* Enhanced content readability */
.content p, .widget-full-width-fit-content p {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-normal);
    max-width: 65ch;
}

/* Professional link styling */
a {
    font-family: var(--font-body);
    font-weight: normal;
}

/* Mobile paragraph size reduction - placed at end to override other rules */
@media screen and (max-width: 768px) {
    p {
        font-size: calc(var(--font-size-xl) * 0.8) !important; /* 30% smaller on mobile */
    }
    
    ul, ol, li {
        font-size: calc(var(--font-size-xl) * 0.8) !important; /* Same size as paragraphs on mobile */
    }
}

/* Force hide any remaining mobile popup elements */
.mobile-popup-overlay,
.mobile-popup-content,
.themePopup,
.themePopupOverlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Simple Hamburger Dropdown - Now handled by verticleCarousel module */

/* Theme navigation container */
.theme-nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
   
    width: 90%;
    height: 100%;
    max-width: 85%;
}

/* Theme navigation buttons */
.theme-nav-btn {
    background: var(--accent-color-2);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theme-nav-btn:hover {
    background: var(--accent-color-3);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.theme-nav-btn:active {
    transform: scale(0.95);
}

/* Theme navigation container */
.theme-nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Theme images */
.theme-nav-image {
    object-fit: contain;
    padding: 0px;
    transition: all 0.3s ease;
}

/* Previous theme image (top) */
.theme-nav-prev {
    width: 45%;
    height: 30%;
    opacity: 0.3;
}

.theme-nav-prev:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Current theme image (center) */
.theme-nav-current {
    width: 90%;
    height: 80%;
    opacity: 1;
}

/* Next theme image (bottom) */
.theme-nav-next {
    width: 45%;
    height: 30%;
    opacity: 0.3;
}

.theme-nav-next:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Theme name */
.theme-nav-name {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Old simple-dropdown CSS removed - now handled by verticleCarousel module */

/* Floating Hamburger Menu Container */
.floating-hamburger-container {
    position: fixed;
    top: 5px;
    right: 5px;
    z-index: 999999;

    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
}

.floating-hamburger-container .mobile-menu-icon {
    position: relative;
    z-index: inherit;
}

/* Mobile: theme-aware glow when simple dropdown is open */
@media (max-width: 768px) {
    #floatingHamburger.glow .mobile-menu-icon svg {
        filter: drop-shadow(0 0 7px var(--glow-color-1)) drop-shadow(0 0 14px var(--glow-color-2)) drop-shadow(0 0 20px var(--glow-color-3));
        animation: floatingHamburgerPulse 2s ease-in-out infinite;
    }
}

@keyframes floatingHamburgerPulse {
    0% {
        filter: drop-shadow(0 0 5px var(--glow-color-1)) drop-shadow(0 0 10px var(--glow-color-2)) drop-shadow(0 0 15px var(--glow-color-3));
    }
    50% {
        filter: drop-shadow(0 0 10px var(--glow-color-1)) drop-shadow(0 0 17px var(--glow-color-2)) drop-shadow(0 0 26px var(--glow-color-3));
    }
    100% {
        filter: drop-shadow(0 0 5px var(--glow-color-1)) drop-shadow(0 0 10px var(--glow-color-2)) drop-shadow(0 0 15px var(--glow-color-3));
    }
}

.hamburger-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--background-color);
    border: 2px solid var(--accent-color-3);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    padding: 20px;
    min-width: 400px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Left Side - Theme Picker */
.theme-picker-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.theme-picker-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color-3);
    margin: 0 0 10px 0;
    text-align: center;
}

.theme-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theme-category {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theme-category-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0;
    opacity: 0.8;
}

.theme-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.theme-item {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--accent-color-2);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.theme-item:hover {
    background: var(--accent-color-3);
    color: var(--background-color);
    border-color: var(--accent-color-3);
    transform: scale(1.05);
}

.theme-item.active {
    background: var(--accent-color-2);
    color: var(--background-color);
    border-color: var(--accent-color-2);
}

/* Right Side - Page Navigation */
.navigation-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.navigation-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-color-3);
    margin: 0 0 10px 0;
    text-align: center;
}

.navigation-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 10px;
    background: transparent;

    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-link:hover {
    background: var(--accent-color-3);
    color: var(--background-color);
    border-color: var(--accent-color-3);
    transform: translateX(5px);
}

.nav-link.active {
    background: var(--accent-color-2);
    color: var(--background-color);
    border-color: var(--accent-color-2);
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger-dropdown {
        min-width: 320px;
        padding: 15px;
    }
    
    .dropdown-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .theme-items {
        justify-content: center;
    }
    
    .nav-link {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .hamburger-dropdown {
        min-width: 280px;
        padding: 12px;
    }
    
    .theme-item {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .nav-link {
        padding: 6px 10px;
    }
    
    .nav-text {
        font-size: 13px;
    }
} 