/*--------------------------------------------------------------
#                         STYLE.CSS
#---------------------------------------------------------------
#       Handles the styling for index.html and 404.html
--------------------------------------------------------------*/


/*--------------------------------------------------------------
# FONT
--------------------------------------------------------------*/
@font-face {
    font-family: 'Terminus';
    src: url('/src/fonts/terminus-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/*--------------------------------------------------------------
# MAIN
--------------------------------------------------------------*/
:root {
    /* DEFAULT THEME: DANGER (Red) */
    --main-color: #e62b2b;
    --main-color-rgb: 230, 43, 43;
    --bg-color: 121, 6, 2; /* RGB values as used in base.js */
    --bg-opacity: 0.494;
    --selection: #941212;
    --warning-color: rgb(255, 204, 0); /* Gold for danger contrast */
    --info-color: #ffffff;
    --nav-color: rgba(20, 2, 1, 0.9);
    --text-color: #e5e5e5;
    font-size: 10px;
}



/*--------------------------------------------------------------
# SCROLLBAR
--------------------------------------------------------------*/

html {
    /* For Firefox */
    overflow-y: scroll;
    scrollbar-width: thin;
    /* Options: auto | thin | none */
    scrollbar-color: var(--main-color) #222;
    /* thumb | track */
    /* scrollbar-color: var(--main-color) rgba(var(--bg-color), 0.2);*/
}

/* Chrome / Edge / Safari */
html::-webkit-scrollbar {
    width: 5px;
}

html::-webkit-scrollbar-track {
    background: rgba(var(--bg-color), 0.2);
}

html::-webkit-scrollbar-thumb {
    background: var(--main-color);
}

pre:not(#title),
code {
    white-space: pre-wrap;
}

body {
    font-family: 'Terminus', sans-serif;

    background-color: black;

    overflow-x: hidden;

    color: var(--main-color);

    /* Disable ligatures so sequences like "..." render as typed (no ellipsis substitution). */
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0;
}

a:link:not(.tab_active, a:hover),
a:visited:not(.tab_active, a:visited:hover),
em a:visited {
    color: var(--main-color);
}

a {
    color: var(--main-color)
}

#canvas {
    font-size: 1.75em;
    padding: 1.8em;
    height: 100%;
    transform: translateZ(0);
    position: relative;
    z-index: 10;
}

#title {
    width: 100%;
    font-size: 0.95em;
    line-height: 1.1;
    letter-spacing: normal;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre;
    -webkit-user-select: none;
    user-select: none;
    margin-bottom: 1em;
}

/* Ensure logo shrinks on small screens */
@media (max-width: 768px) {
    #title { font-size: 0.7em !important; }
}
@media (max-width: 480px) {
    #title { font-size: 0.55em !important; }
}

pre,
p,
li,
h1,
h2,
h3,
h4,
td {
    margin: 0;
    font-weight: normal;
}

#theme_list {
    white-space: nowrap;
    width: 100px;
}


/*--------------------------------------------------------------
# SNOWFLAKES FOR WINTER THEME
--------------------------------------------------------------*/

.snowflake {
    position: fixed;
    animation-timing-function: linear;
    z-index: 1000;
    /* Ensure it stays on top */
    background: white;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
}

@keyframes snowflake-fall {
    0% {
        transform: translateY(-10vh);
        /* Start above the viewport */
    }

    100% {
        transform: translateY(110vh);
        /* End below the viewport */
    }
}

@keyframes snowflake-fall-horizontal-1 {
    0% {
        transform: translateX(0) translateY(-10vh);
        /* Start above the viewport */
    }

    100% {
        transform: translateX(20vw) translateY(110vh);
        /* Fall diagonally */
    }
}

@keyframes snowflake-fall-horizontal-2 {
    0% {
        transform: translateX(0) translateY(-10vh);
        /* Start above the viewport */
    }

    100% {
        transform: translateX(-20vw) translateY(110vh);
        /* Fall diagonally */
    }
}


/*--------------------------------------------------------------
# ICONS FROM ABOUT (MOVIES)
--------------------------------------------------------------*/
.fav-icon {
    font-size: 16px;
    margin-right: 8px;
    width: 24px;
    height: 24px;
    line-height: 24px;
}


.hidden-update {
    display: none;
    /* hide latest updates */
}

#update-list {
    line-height: 1.4;
}

#sub_title,
h4 {
    font-size: 1em;
}

#changeEffects a {
    text-decoration: underline;
}

#div_h {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .2em;
}

/*--------------------------------------------------------------
# NOISE
--------------------------------------------------------------*/
#videohue {
    /* used for background color */
    display: block;

    background: rgba(var(--bg-color), var(--bg-opacity));
    opacity: 0.5;
}

#videohue,
#noise_vid,
.vignette,
#rain_vid,
#g59_overlay {
    position: fixed;
    overflow: hidden;
    pointer-events: none;
    /* Prevent blocking clicks */

    top: 0;
    left: 0;
    bottom: 0;
    right: 0;

    height: 100vh;
    width: 100vw;

    transform: translateZ(0);
}

.latest-updates a {
    position: relative;
    z-index: 50;
    cursor: pointer;
}

.vignette {
    opacity: 0.2;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 50%, rgb(var(--bg-color)) 250%);
}

/*--------------------------------------------------------------
# RAIN VIDEO
--------------------------------------------------------------*/
#rain_vid {
    opacity: 0.125;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* G59 */
#g59_overlay {
    display: none;
    width: 100%;
    height: 110%;
    min-width: 100%;
    min-height: 110%;
    top: 0%;
    right: 0%;
    left: auto;
    bottom: auto;
    object-fit: cover;
    object-position: top right;
}

@media (max-width: 1200px) {
    #g59_overlay {
        width: 170vw;
        height: auto;
        min-width: 0;
        min-height: 0;
        top: 1%;
        right: 2%;
        object-fit: contain;
    }
}

@media (max-width: 580px) {
    #g59_overlay {
        width: min(190vw, 1000px);
        height: auto;
        min-width: 0;
        min-height: 0;
        top: 10px;
        right: 88px;
        opacity: 0.85;
        transform-origin: top right;
    }
}


/*--------------------------------------------------------------
# Navbar
--------------------------------------------------------------*/
nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline-block;
}

nav ul li:not(:last-child) {
    padding-right: 2.5em;
}

nav ul li a {
    display: block;
    text-decoration: underline;
    border-radius: 0px;
    /* was 10px */
    padding: 0.2em 0.3em;
    transition: background-color 0.1s ease-out;
}


#hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 24px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    align-items: center;
    transition: transform 0.3s ease;
    z-index: 10005;
    /* Ensure above everything */
}

#hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--main-color);
    border-radius: 0px;
    /* was 4px */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* When hamburger is active, change bars to "X" */
#hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

#hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/*--------------------------------------------------------------
# DROPDOWN MENU
--------------------------------------------------------------*/
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 5px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--main-color);
    border-radius: 0px;
    /* was 4px */
    z-index: 100;
    margin-top: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--main-color);
    border-radius: 0px;
    /* was always 0px */
    text-align: left;
}

.dropdown-menu a:hover {
    background-color: var(--main-color);
    color: rgba(24, 45, 75, 0.616);
}

/* Fix for when dropdown menu disappears too easily */
.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

/* Add an invisible bridge to prevent gaps */
.dropdown::after {
    content: '';
    position: absolute;
    height: 10px;
    width: 100%;
    top: 100%;
    left: 0;
}

/* Keep the menu visible when hover over the dropdown-menu itself */
.dropdown-menu:hover {
    display: block;
}

.dropdown-toggle i {
    margin-left: 6px;
    font-size: 0.8em;
    margin-right: 0;
    transition: transform 0.2s ease;
    background-color: rgba(var(--dropdown-color), 0.2);
    border-radius: 0%;
    /* was 50% */
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    position: relative;
    top: 0;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-toggle {
    border-radius: 0px !important;
    /* was 10px */
    padding: 0.2em 0.3em !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*--------------------------------------------------------------
# Responsive Navbar
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Responsive Navbar - Compact & Theme-Aware
--------------------------------------------------------------*/
@media (max-width: 580px) {

    /* Hide desktop nav tabs by default */
    #nav_tabs {
        display: none;
    }

    .ptag1 {
        display: none;
    }

    /* Show hamburger menu button */
    #hamburger-menu {
        display: flex;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 10005;
    }

    /* Compact dropdown with glassmorphism */
    #nav_tabs.active {
        display: block;
        position: fixed;
        top: 70px;
        right: 20px;
        width: 220px;

        /* Glassmorphism effect */
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);

        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 18px;
        z-index: 10000;

        /* Enhanced shadow with theme color glow */
        box-shadow:
            0 8px 32px 0 rgba(0, 0, 0, 0.6),
            0 0 20px var(--main-color);
    }

    #nav_tabs ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    #nav_tabs li {
        display: block;
    }

    #nav_tabs li a {
        display: block;
        padding: 12px 14px;
        font-size: 1rem;
        font-weight: 500;

        /* Theme-aware text color with good contrast */
        color: var(--main-color);
        text-shadow: 0 0 8px var(--main-color);

        text-decoration: none;
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    #nav_tabs li a:hover {
        background-color: rgba(255, 255, 255, 0.15);
        border-color: var(--main-color);
        box-shadow: 0 0 15px var(--main-color);
        transform: translateY(-2px);
        text-shadow: 0 0 12px var(--main-color);
    }

    #nav_tabs li a.tab_active {
        background: linear-gradient(135deg,
                rgba(var(--main-color-rgb), 0.3) 0%,
                rgba(var(--main-color-rgb), 0.1) 100%);
        border-color: var(--main-color);
        box-shadow: 0 0 12px var(--main-color), inset 0 0 10px rgba(var(--main-color-rgb), 0.2);
        color: var(--main-color);
        font-weight: 600;
    }
}

/* Make the last dropdown item have the same spacing as regular nav items */
.dropdown>.dropdown-menu a:last-child {
    margin-bottom: 0;
}
}


/* Slide-up animation for the dropdown */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-in effect for each link */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab_active {
    background-color: var(--main-color);
    color: rgba(24, 45, 75, 0.616);
    text-decoration: none;
}

@media (max-width: 580px) {
    .pic_coll_tabs {
        display: inline-block;
        /* treats link as a block element */
        margin: 10px 0;
        /* vertical margin for pic_coll_tabs  */
        transition: background-color 0.3s ease;
    }
}



@media (hover: hover) {
    a:hover {
        background-color: var(--main-color);
        cursor: pointer;
        color: rgba(24, 45, 75, 0.616);

        transition: color box-shadow 0.1s;

        text-decoration: none;
    }

    a:hover:not(.tab_switcher, .pic_coll_tabs) {
        border-radius: 0px;
        /* was 2.5px */
        box-shadow: 0 0 18px 0px var(--main-color);
    }
}



a {
    border-radius: 0px;
    /* was 2.5px */
}

/*--------------------------------------------------------------
# PRINT ANIMATION
--------------------------------------------------------------*/
.fade-in {
    opacity: 0;
    /*transform: translateY(20px);*/
}

.fade-in.visible:not(em) {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.visible em {
    opacity: 0.7;
    transform: translateY(0);
}

@keyframes fade-in-anim {
    0% {
        opacity: 0.75;
        transform: scale(0.975);
    }

    35% {
        opacity: 0.8
    }

    100% {
        opacity: 1.0;
        transform: scale(1.0);
    }
}

.fade-in-anim:not(em) {
    animation: fade-in-anim 0.5s ease-in-out;
}

/*--------------------------------------------------------------
# SELECT
--------------------------------------------------------------*/
::selection {
    background-color: var(--selection);
}

/*--------------------------------------------------------------
# PAGES
--------------------------------------------------------------*/
.invisible {
    display: none;
}

.tabs:not(:target) {
    display: none;
}

.tabs {
    border: solid var(--main-color);
    padding: 1.5em;
    backdrop-filter: blur(100px);
    background: linear-gradient(45deg, rgba(var(--bg-color), 0.05) 70%, rgba(var(--bg-color), 0.2) 110%);
}

.tabs:not(#home) {
    font-size: 1.4em;
}

.about-bottom-row .grid_row_box_dotted {
    min-height: 450px;
}

/*--------------------------------------------------------------
# GRID CONTENT
--------------------------------------------------------------*/
.grid_row,
.grid {
    display: flex;
    gap: 1em;

}


.grid {
    flex-direction: column;
}

.grid_row_box {
    padding: 0.5em;
    width: 100%;
    border: 1px solid var(--main-color);
}

.grid_row_box_dotted {
    padding: 0.5em;
    width: 100%;
    border: 1px dotted var(--main-color);
}

.grid_row_box_shrink {
    flex-shrink: 2;
    width: 100%;
    /* Allow content to dictate width */
    min-width: fit-content;
    box-sizing: border-box;
}

.about-bottom-row .grid_row_box_dotted {
    min-height: 450px;
}

/*--------------------------------------------------------------
# LATEST UPDATES
--------------------------------------------------------------*/
.update-year {
    margin-bottom: 6px;
    border: 1px dotted var(--main-color);
    background: rgba(var(--bg-color), 0.1);
}

#update-list {
    max-height: 350px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) rgba(var(--bg-color), 0.2);
}

#update-list::-webkit-scrollbar {
    width: 8px;
}

#update-list::-webkit-scrollbar-track {
    background: rgba(var(--bg-color), 0.1);
}

#update-list::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 4px;
}

summary {
    color: var(--main-color);
    font-size: 1em;
    padding: 0.3em 0.5em;
    user-select: none;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
    list-style: none;
    /* remove default arrow */
}

summary::-webkit-details-marker {
    display: none;
    /* remove default arrow in webkit browsers */
}

summary:hover {
    background: rgba(var(--bg-color), 0.2);
}

summary::before {
    content: '>>';
    margin-right: 0.4em;
    opacity: 0.7;
}

details[open] summary::before {
    content: 'vv';
}

.update-content {
    padding: 0.6em 0.8em;
    border-top: 1px dotted var(--main-color);
}

.update-content p {
    font-size: 1em;
    margin-bottom: 0.2em;
    line-height: 1.3;
}

.update-content p em {
    font-size: 0.9em;
    opacity: 0.8;
}

details[open] .update-content {
    animation: slideIn 0.2s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*--------------------------------------------------------------
# STATUS
--------------------------------------------------------------*/
.grid_row_box_dotted_status {
    padding: 1em;
    width: 100%;
    border: 1px dotted var(--main-color);
    word-wrap: break-word;
    box-sizing: border-box;
}

.latest-status {
    text-align: left;
    font-size: 1.7rem;
}

.latest-status h3 {
    margin-bottom: 10px;
    white-space: nowrap;
}

.latest-status p {
    font-size: 1.2em;
}

.latest-status .status-emoji {
    text-shadow: none;
}

.latest-status .emoji-container {
    white-space: nowrap;
    margin-bottom: 20px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0px;
    /* was 10px */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    text-shadow: none;
}

.latest-status a h3 {
    display: inline-block;
}

.latest-status a,
.latest-status a:link,
.latest-status a:visited,
.latest-status a:hover,
.latest-status a:active,
.latest-status a:link h3,
.latest-status a:visited h3,
.latest-status a:hover h3,
.latest-status a:active h3 {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--main-color) !important;
    outline: none !important;
    text-decoration: underline !important;
    text-underline-offset: 5px !important;
}



.latest-status img.status-image {
    max-width: 100%;
    max-height: 150px;
    border-radius: 0px;
    /* was 5px */
    margin: 10px 0;
}

.latest-status video.status-video {
    width: 100%;
    max-height: 200px;
    border-radius: 0px;
    margin: 10px 0;
    background: #000;
    outline: none;
}

.latest-status .time-ago {
    font-size: 1.2rem;
    color: #888;
    display: block;
    margin-top: 15px;
}

.latest-status:has(img.status-image, video.status-video) .time-ago {
    margin-top: 0px;
}


textarea {
    background-color: var(--bg-color);
    color: white;
}

/*--------------------------------------------------------------
# PROJECTS
--------------------------------------------------------------*/
#pr_list {
    padding-left: 0;
}

#pr_list li {
    list-style: none;
    border: solid var(--main-color);
    border-width: 1px;
    background: linear-gradient(45deg, rgba(var(--bg-color), 0.05) 70%, rgba(var(--bg-color), 0.2) 110%);
    padding-bottom: 0.5em;
}

#pr_list li>*:not(:first-child) {
    padding: 0 0.5em;
}

#pr_list li:not(:last-child) {
    margin-bottom: 1.5em;
}

#pr_list li a {
    padding: 0.1em 0;
}

.pr_title {
    background-color: var(--main-color);
    color: black;
    margin-bottom: 0.5em;
    padding: 0.25em;
}

.pr_desc {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 1000px;
    /* limit width so wrapping happens */
}


.tag-list {
    display: flex;
    gap: 0.5em;
    margin: 0.5em 0;
}

.tag {
    padding: 0.1em 0.3em;
    background: linear-gradient(90deg, transparent -5%, rgba(var(--bg-color), 0.3) 75%);
    border: 1px solid var(--main-color);
}


.tag[class*='active'],
.tag[class*='archived'],
.tag[class*='inactive'],
.tag[class*='open-source'],
.tag[class*='self-hosted'] {
    border-color: var(--tag-color);
    color: var(--tag-color);
    background: linear-gradient(90deg, transparent -5%, var(--bg-alpha) 120%);
}


/* DONT FORGET TO ADD THE TAG ABOVE TOO!!! */

.tag[class*='active'] {
    --tag-color: rgb(183, 241, 95);
    --bg-alpha: rgba(0, 255, 0, 0.3);
}

.tag[class*='inactive'] {
    --tag-color: rgb(230, 114, 37);
    --bg-alpha: rgba(255, 0, 0, 0.3);
}

.tag[class*='archived'] {
    --tag-color: rgb(120, 132, 156);
    --bg-alpha: rgba(120, 132, 156, 0.15);
}

.tag[class*='open-source'] {
    --tag-color: rgb(179, 138, 245);
    --bg-alpha: rgba(200, 95, 241, 0.3);
}

.tag[class*='self-hosted'] {
    --tag-color: rgb(76, 175, 80);
    --bg-alpha: rgba(76, 175, 80, 0.2);
}




hr.dotted {
    border: none;
    border-top: 1px dotted var(--main-color);
    height: 1px;
    width: 100%;
}

.tooltip {
    position: absolute;
    /* Allows positioning via top/left */
    background-color: rgba(var(--bg-color), 0.45);
    color: var(--main-color);
    padding: 5px 10px;
    border: 1px solid var(--main-color);
    font-size: 14px;
    pointer-events: none;
    /* Prevents interference with mouse events */
    white-space: nowrap;
    /* Prevents text from wrapping */
    opacity: 0;
    /* Start invisible */
    transition: opacity 0.2s ease-in-out;
    /* Smooth fade-in effect */
    z-index: 1000;
    /* Keeps tooltip on top */
}

/*--------------------------------------------------------------
# PICTURES
--------------------------------------------------------------*/
.row,
.img_container {
    margin-top: 1.5em;
    margin-bottom: 1.5em;

    display: flex;
    justify-content: space-between;
    gap: 1.5em;

    width: 100%;
}

.row img,
.img_container {
    flex: 1 1 auto;
    -webkit-user-select: none;
    user-select: none;

    transition: filter 0.3s ease-in-out;

    width: 0;
    /* Needed to make it work in Chrome, for some reason */
}

.img_desc {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    vertical-align: bottom;
}

.img_desc {
    align-items: end;
    filter: opacity(0%);
    transition: .3s;
}

.img_desc:hover {
    filter: opacity(100%);
    background: linear-gradient(transparent 50%, black);
}

.img_container {
    position: relative;
}

.row img:hover {
    filter: brightness(1.5);
    cursor: pointer;
}

.pic_coll:not(:first-of-type) {
    display: none;
}

.pic_coll div img {
    filter: brightness(1.2)
}

#pictures_list nav ul li a {
    padding: 0.2em 0.3em;
    user-select: none;
}

#pictures_list nav {
    margin-top: -.5em;
}

#pictures_list img {
    border: 0.5px solid var(--main-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}


/*--------------------------------------------------------------
# HOME & ABOUT - FIRST ROW HEIGHT
--------------------------------------------------------------*/
#home .grid>.grid_row:first-child,
#about .grid>.grid_row:first-child {
    min-height: 400px;
}

/*--------------------------------------------------------------
# ABOUT
--------------------------------------------------------------*/
#about h2 {
    font-size: 1.3em;
    margin-bottom: 1em;
    color: var(--main-color);
    display: flex;
    align-items: center;
    gap: 0.5em;
}

#home h2 {
    font-size: 1.3em;
    margin-bottom: 0.5em;
    color: var(--main-color);
    display: flex;
    align-items: center;
    gap: 0.5em;
}

#home h2::before,
#about h2::before {
    content: "//";
    color: var(--main-color);
    opacity: 0.7;
}

#home h2::after,
#about h2::after {
    content: "";
    display: block;
    height: 1px;
    background-color: var(--main-color);
    opacity: 0.3;
    flex-grow: 1;
    margin-left: 0.5em;
}

#home .pr_warning {
    padding: 0.3em;
    border-left: 3px solid var(--warning-color);
}

#home .pr_privacy {
    padding: 0.3em;
    border-left: 3px solid #50C878;
}

table {
    width: 100%;
}

.desc {
    padding-left: 1.em;
    width: max-content;
    display: flex;
    justify-content: left;
    text-align: left;
}

p em {
    opacity: 0.7;
}

em a {
    transition: background-color 0.4s ease-out;
}

i {
    margin-right: .75em;
    vertical-align: middle;
}

.contact_link {
    margin-bottom: .25em;
}

.discord {
    margin-left: 3px;
    letter-spacing: 1px;
}

.github {
    margin-left: 6px;
    letter-spacing: 2px;
}

.pronouns {
    margin-left: 5px;
    letter-spacing: 2px;
}

.youtube {
    margin-left: 4px;
    letter-spacing: 2px;
}

.ko-fi {
    margin-left: 6px;
    letter-spacing: 2px;
}



.personality {
    text-decoration: underline;
    position: relative;

    box-shadow: none !important;
    background: transparent !important;
}

.personality:hover {
    text-decoration: underline;
    color: var(--main-color);
}

.music {
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    box-shadow: none !important;
    background: transparent !important;
}

.music:hover {
    color: var(--main-color);
}

.music::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--main-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: bottom left;
}

.music:hover::after {
    transform: scaleX(1);
}

/* Age for about me */
.age-display {
    color: var(--main-color);
    background: rgba(114, 182, 255, 0.1);
    padding: 1px 3px;
    font-size: 0.99em;
    border-radius: 0px;
    /* was 1.5px */
    letter-spacing: 0.2px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: text-bottom;
    line-height: 1;
    user-select: none;
}

.age-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(114, 182, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
    z-index: -1;
}

/* Birthday Popup Styles */
#birthday-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

#birthday-popup.is-closing {
    animation: popupFadeOut 0.3s ease-out forwards;
}

.birthday-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popupFadeIn 0.5s ease-out;
}

.birthday-popup-content {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--main-color);
    border-radius: 0px;
    /* was 15px */
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(var(--main-color-rgb), 0.3);
    animation: popupSlideIn 0.5s ease-out;
}

.birthday-popup-header {
    padding: 20px;
    border-bottom: 1px solid rgba(var(--main-color-rgb), 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(var(--main-color-rgb), 0.1), transparent);
}

.birthday-popup-header h2 {
    color: var(--main-color);
    font-size: 1.8em;
    margin: 0;
    text-shadow: 0 0 10px rgba(var(--main-color-rgb), 0.5);
    text-align: center;
    flex: 1;
}

.birthday-divider {
    border: 0;
    width: 100%;
    height: 0;
    margin: 0 0 18px;
    border-top: 2px solid var(--main-color);
    background: none;
}

.birthday-close-btn {
    background: none;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    width: 30px;
    height: 30px;
    border-radius: 0%;
    /* was 50% */
    cursor: pointer;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.birthday-close-btn:hover {
    background: var(--main-color);
    color: #000;
    box-shadow: 0 0 10px rgba(var(--main-color-rgb), 0.6);
}

.birthday-close-btn:focus,
.birthday-close-btn:focus-visible {
    outline: none;
}


.birthday-popup-body {
    padding: 25px;
    color: #e0e0e0;
    text-align: center;
}

.birthday-age {
    font-size: 1.8em;
    margin-bottom: 15px;
    margin-top: -15px;
}

.age-highlight {
    color: var(--main-color);
    font-weight: bold;
    font-size: 1.2em;
    text-shadow: 0 0 8px rgba(var(--main-color-rgb), 0.5);
}

.birthday-message {
    margin-bottom: 20px;
    font-size: 1.8em;
}


.birthday-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.birthday-btn {
    background: none !important;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    border-radius: 0px;
    /* was 1px */
    padding: 12px 20px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1.5em;
}

.birthday-btn:hover {
    background: rgba(var(--main-color-rgb), 0.2);
    color: #fff;
    box-shadow: none !important;
}

.birthday-btn:focus {
    outline: none;
}


/* Animations */
@keyframes popupFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .birthday-popup-content {
        margin: 20px;
        width: calc(100% - 40px);
    }

    .birthday-popup-header {
        padding: 15px;
    }

    .birthday-popup-header h2 {
        font-size: 1.4em;
    }

    .birthday-popup-body {
        padding: 20px;
    }

    .birthday-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .birthday-btn {
        justify-content: center;
    }

    .birthday-age {
        font-size: 1.5em;
    }

    .birthday-message {
        font-size: 1.3em;
    }
}


@keyframes shimmer {
    0% {
        left: -100%;
    }

    50% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}


/*--------------------------------------------------------------
# CONTACT
--------------------------------------------------------------*/
#contact p a {
    text-decoration: underline;
}


/*--------------------------------------------------------------
# MISC
--------------------------------------------------------------*/
.pr_warning,
.pr_warning em {
    color: var(--warning-color);
}

.pr_info,
.pr_info em {
    color: var(--info-color);
}

.pr_privacy {
    color: #50C878;
}


.pr_privacy a {
    font-weight: bold;
}


/* WEBRING WIDGET REMOVED */

/*--------------------------------------------------------------
# GUESTBOOK (SYSTEM LOGS)
--------------------------------------------------------------*/
.terminal-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-family: 'Terminus', monospace;
}

.terminal-input-group .prompt {
    color: var(--main-color);
    margin-right: 5px;
    white-space: nowrap;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #e5e5e5;
    font-family: 'Terminus', monospace;
    font-size: 1.1em;
    width: 100%;
    outline: none;
}

.terminal-input:focus {
    border-bottom: 1px dashed var(--main-color);
}

.terminal-btn {
    background: transparent;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    padding: 5px 15px;
    font-family: 'Terminus', monospace;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terminal-btn:hover:not(:disabled) {
    background: var(--main-color);
    color: black;
}

.terminal-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

.terminal-logs {
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Terminus', monospace;
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) transparent;
}


/*--------------------------------------------------------------
# MOBILE
--------------------------------------------------------------*/
@media screen and (max-width: 50em) {
    #rain_vid {
        object-fit: fill;
    }

    .row {
        display: block;
    }

    .row img {
        width: 100%;
    }

    .img_desc {
        filter: opacity(100%);
        left: 100%;
        padding: 0 .5em;
        align-items: start;
    }

    .img_desc:hover {
        background: none;
    }

    .row_photography {

        flex-direction: column;
        display: flex;
        gap: 0;
    }

    .img_container {
        width: 50%;
    }

    .grid_row {
        flex-direction: column;
        margin-right: 1em;
    }
}

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

    /* WEBRING @MEDIA REMOVED */

    .contact_link {
        margin-top: .5em;
    }

    #update-list p {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .contact_link {
        margin-bottom: .75em;
    }

    .contact_link a {
        padding: 0.25em 0 0.25em 0;
    }

    #nav_tabs ul li:not(:last-child) {
        padding-right: 0;
    }

    #nav_tabs ul {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .show-more-btn {
        margin-top: 20px;
    }
}

/* WEBRING @MEDIA REMOVED */

/* ABOUT/HOME HEADINGS */
@media screen and (max-width: 1024px) {

    #home h2,
    #about h2 {
        display: block;
        margin-bottom: 0.8em;
        border-bottom: 1px dotted var(--main-color);
        padding-bottom: 0.6em;
        padding-left: 1.5em;
        position: relative;
    }

    #home h2::before,
    #about h2::before {
        position: absolute;
        left: 0;
    }

    #home h2::after,
    #about h2::after {
        display: none;
    }
}

@media screen and (max-width: 1050px) {
    #title {
        font-size: 2.3vw;
        margin-bottom: 2em;
    }

    #canvas {
        padding: 0.5em;
    }

    .tabs {
        padding: 0.75em;
    }

    .show-more-btn {
        margin-top: 20px;
    }
}

@media screen and (min-width: 1600px) {

    /* Prevent the images from getting too big on wide screens */
    .row img {
        max-width: 800px;
    }

    .row {
        justify-content: left;
    }
}

/* To comply with outlinenone.com :) */
:focus {
    outline: 2px solid var(--main-color);
    color: var(--main-color);
    background: rgba(var(--bg-color), 0.3);

    text-decoration: none;
}

/* Will be overwritten if effects enabled */
#noise_vid,
#rain_vid {
    display: none;
}

/* CV Download Button */
.cv-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 12px 24px;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(var(--bg-color), 0.15);
    position: relative;
    overflow: hidden;
    font-size: 1.1em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cv-download-btn:hover {
    background-color: var(--main-color);
    color: #000;
    /* High contrast black text on hover */
    box-shadow: 0 0 20px var(--main-color), inset 0 0 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    cursor: pointer;
    text-decoration: none;
}

.cv-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 10px var(--main-color);
}

.cv-download-btn i {
    margin-right: 10px;
    font-size: 1.1em;
}

/*--------------------------------------------------------------
# ASCII EYES (MORSE CODE)
--------------------------------------------------------------*/
.led-green {
    color: rgb(45, 194, 107) !important;
    text-shadow: 0 0 5px rgb(45, 194, 107);
    transition: all 0.1s ease-out;
}

.led-red {
    color: #ff3333 !important;
    text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000 !important;
    font-weight: bold;
    transition: all 0.05s ease-out;
    /* Fast attack for morse */
}

/*--------------------------------------------------------------
# DASHBOARD
--------------------------------------------------------------*/
#visitor-map {
    z-index: 100;
    /* Ensure map controls are clickable */
    background: #242424;
}

.terminal-select {
    background: black;
    color: var(--main-color);
    border: 1px solid var(--main-color);
    padding: 5px;
    margin-right: 10px;
    font-family: 'Terminus', sans-serif;
    cursor: pointer;
}

.leaflet-popup-content-wrapper {
    background: black;
    color: var(--main-color);
    border: 1px solid var(--main-color);
    border-radius: 0;
    font-family: 'Terminus', sans-serif;
}

.leaflet-popup-tip {
    background: var(--main-color);
}

.chart-container {
    background: black;
    border: 1px solid var(--main-color);
    padding: 10px;
    margin-top: 10px;
    position: relative;
}

.chart-container canvas {
    max-height: 100% !important;
}