:root {
    --font-main: 'Pixelify Sans', 'Silkscreen', 'Courier New', monospace;
    --body-bg-color: #fff0f5; 
    --body-bg-image: url('background.png'); 
    --container-bg: rgba(255, 255, 255, 0.85); 
    --container-border: #ffacd1;
    --container-border-width: 2px;
    --container-border-style: solid;
    --box-bg: #ffffff; 
    --box-border: #add8e6;
    --box-border-width: 1px;
    --box-border-style: solid;
    --box-alt-bg: #fff8fb; 
    --box-alt-border: #ffc1e3;
    --box-alt-border-style: solid;
    --status-box-border-width: 2px;
    --status-box-border-style: double;
    --title-color: #ff89b4;
    --title-underline: #ffe4f1;
    --text-color: #6a6a6a;
    --text-alt-color: #aaaaaa;
    --link-color: #ff89b4;
    --link-hover-color: #e56ca0;
    --button-bg: #ffffff;
    --button-border: #ffacd1;
    --button-border-width: 1px;
    --button-text: #ff89b4;
    --button-hover-bg: #ffacd1;
    --button-hover-text: #ffffff;
    --button-hover-border: #ff89b4;
    --player-button-border: #ffc1e3;
    --player-button-border-style: dashed;
    --player-button-text: #ff89b4;
    --player-button-hover-bg: #ffacd1;
    --player-button-hover-text: #ffffff;
    --footer-bg: #ffe4f1;
    --footer-border: #ffc1e3;
    --footer-text: #7d7d7d;
    --placeholder-bg: #f0f8ff;
    --placeholder-border: #e0e0e0;
    --placeholder-border-style: solid;
    --placeholder-text: #cccccc;
    --scrollbar-track-bg: #eafcff;
    --scrollbar-track-border: #c1e7ff;
    --scrollbar-thumb-bg: #ffacd1;
    --scrollbar-thumb-border: #ff89b4;
    --scrollbar-thumb-hover-bg: #ff89b4;
    --gradient-nav-start: #fff0f5;
    --gradient-nav-end: #ffffff;
    --gradient-todo-start: #f8f8ff;
    --gradient-todo-end: #eafcff;
    --gradient-music-start: #ffffff;
    --gradient-music-end: #f8f8ff;
    --box-shadow-color: rgba(255, 172, 209, 0.3);
    --font-floral: 'Silkscreen', 'Pixelify Sans', 'Press Start 2P', monospace; 
    --success-color: #3c763d;
    --error-color: #a94442;
}

body[data-theme='floral'] {
    --font-main: var(--font-floral);
    --body-bg-color: #fef8dd;
    --body-bg-image: url('background.png'); 
    --container-bg: rgba(255, 250, 246, 0.85);
    --container-border: #ff94bd;
    --container-border-width: 2px;
    --container-border-style: dotted;
    --box-bg: #ffffff;
    --box-border: #614d3c;
    --box-border-width: 1px;
    --box-border-style: dotted;
    --box-alt-bg: #fff0f5;
    --box-alt-border: #ff94bd;
    --box-alt-border-style: dotted;
    --status-box-border-width: 2px;
    --status-box-border-style: dotted;
    --title-color: #614d3c;
    --title-underline: #ffe4f1;
    --text-color: #6f5d4c;
    --text-alt-color: #a08c7d;
    --link-color: #ff89b4;
    --link-hover-color: #614d3c;
    --button-bg: linear-gradient(to bottom, #ffffff, #fff0f5);
    --button-border: #ff94bd;
    --button-border-width: 1px;
    --button-text: #614d3c;
    --button-hover-bg: #ff94bd;
    --button-hover-text: #ffffff;
    --button-hover-border: #614d3c;
    --player-button-border: #ff94bd;
    --player-button-border-style: dotted;
    --player-button-text: #614d3c;
    --player-button-hover-bg: #ff94bd;
    --player-button-hover-text: #ffffff;
    --footer-bg: #fff0f5;
    --footer-border: #ffc1e3;
    --footer-text: #a08c7d;
    --placeholder-bg: #fef8dd;
    --placeholder-border: #fcecf0;
    --placeholder-border-style: dotted;
    --placeholder-text: #d9d3c0;
    --scrollbar-track-bg: #fef8dd;
    --scrollbar-track-border: #fcecf0;
    --scrollbar-thumb-bg: #ff94bd;
    --scrollbar-thumb-border: #614d3c;
    --scrollbar-thumb-hover-bg: #ff7aad;
    --gradient-nav-start: transparent;
    --gradient-nav-end: transparent;
    --gradient-todo-start: transparent;
    --gradient-todo-end: transparent;
    --gradient-music-start: transparent;
    --gradient-music-end: transparent;
    --box-shadow-color: rgba(255, 148, 189, 0.4);
    --success-color: #6b8a6d;
    --error-color: #c8879a;
}

body[data-theme='floral'] .profile-box {
    background-image: url('chocola2.jpg'); 
}
body[data-theme='floral'] .header-welcome-box .image-placeholder {
    background-image: url('banner.jpg');
}
body[data-theme='floral'] .header-image {
    background-image: url('chocola1.jpg');
}
body[data-theme='floral'] .main-image {
    background-image: url('poopooop.png');
}
body[data-theme='floral'] .todo-image {
    background-image: url('hmmm'); 
}

body[data-theme='floral'] .profile-box,
body[data-theme='floral'] .header-welcome-box .image-placeholder,
body[data-theme='floral'] .header-image,
body[data-theme='floral'] .main-image,
body[data-theme='floral'] .todo-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: transparent; 
    font-size: 0; 
    background-color: transparent; 
}

body[data-theme='original'] {
    --font-main: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    --body-bg-color: #fceeed;
    --body-bg-image: none; 
    --container-bg: rgba(255, 250, 240, 0.85);
    --container-border: #fa8072;
    --container-border-width: 2px;
    --container-border-style: dashed;
    --box-bg: #fffaf0;
    --box-border: #fa8072;
    --box-border-width: 2px;
    --box-border-style: dashed;
    --box-alt-bg: #fffaf0;
    --box-alt-border: #f4a460;
    --box-alt-border-style: dashed;
    --status-box-border-width: 2px;
    --status-box-border-style: dashed;
    --title-color: #dc143c;
    --title-underline: #f4a460;
    --text-color: #5c3a34;
    --text-alt-color: #777;
    --link-color: #dc143c;
    --link-hover-color: #a0522d;
    --button-bg: #ffe4c4;
    --button-border: #f4a460;
    --button-border-width: 1px;
    --button-text: #8b4513;
    --button-hover-bg: #d2b48c;
    --button-hover-text: #8b4513;
    --button-hover-border: #f4a460;
    --player-button-border: #f4a460;
    --player-button-border-style: dashed;
    --player-button-text: #8b4513;
    --player-button-hover-bg: #d2b48c;
    --player-button-hover-text: #8b4513;
    --footer-bg: #f08080;
    --footer-border: #f08080;
    --footer-text: #ffffff;
    --placeholder-bg: #eee;
    --placeholder-border: #ccc;
    --placeholder-border-style: dashed;
    --placeholder-text: #777;
    --scrollbar-track-bg: #fff0eb;
    --scrollbar-track-border: #f8c8be;
    --scrollbar-thumb-bg: #e57373;
    --scrollbar-thumb-border: #c56c5c;
    --scrollbar-thumb-hover-bg: #c56c5c;
    --gradient-nav-start: transparent;
    --gradient-nav-end: transparent;
    --gradient-todo-start: transparent;
    --gradient-todo-end: transparent;
    --gradient-music-start: transparent;
    --gradient-music-end: transparent;
    --box-shadow-color: rgba(250, 128, 114, 0.2);
    --success-color: #5cb85c;
    --error-color: #d9534f;
}

body[data-theme='light'] {
    --body-bg-image: url('kangelbg2.jpg');
    --box-bg: rgba(255, 255, 255, 0.9); 
    --box-alt-bg: rgba(255, 248, 251, 0.9); 
}


 body[data-theme='light'] .profile-box { background-image: url('kangelpfp.jpg'); color: transparent; font-size: 0; background-color: transparent; background-size: cover; background-position: center; background-repeat: no-repeat;}
 body[data-theme='light'] .header-welcome-box .image-placeholder { background-image: url('kangelbanner.jpg'); color: transparent; font-size: 0; background-color: transparent; background-size: cover; background-position: center; background-repeat: no-repeat;}
 body[data-theme='light'] .header-image { background-image: url('transparentkangel.png'); color: transparent; font-size: 0; background-color: transparent; background-size: cover; background-position: center; background-repeat: no-repeat;}
 body[data-theme='light'] .main-image { background-image: url(''); color: transparent; font-size: 0; background-color: transparent; background-size: cover; background-position: center; background-repeat: no-repeat;}
 body[data-theme='light'] .todo-image { background-image: url('yuh.png'); color: transparent; font-size: 0; background-color: transparent; background-size: cover; background-position: center; background-repeat: no-repeat;}


body[data-theme='light'] .profile-box,
body[data-theme='light'] .header-welcome-box .image-placeholder,
body[data-theme='light'] .header-image,
body[data-theme='light'] .main-image,
body[data-theme='light'] .todo-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: transparent;
    font-size: 0;
    background-color: transparent;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: 12px;
    margin: 0;
    background-image: var(--body-bg-image);
    background-color: var(--body-bg-color);
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 20px;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease, background-image 0.3s ease;
}

body[data-theme='original'] {
    background-image: none;
}

.container {
    display: grid;
    grid-template-columns: 160px 1fr 150px;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
    max-width: 900px;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    min-height: unset;
    background-color: var(--container-bg);
    border: var(--container-border-width) var(--container-border-style) var(--container-border);
    border-radius: 10px;
    box-shadow: 0 0 8px var(--box-shadow-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, border-style 0.3s ease;
}

.header-area {
    grid-column: 1 / -1;
    grid-row: 1;
    border: var(--box-border-width) var(--box-border-style) var(--box-border);
    border-radius: 8px;
    padding: 10px;
    background-color: var(--box-bg);
    margin-bottom: 5px;
    position: relative;
    min-height: 120px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    gap: 5px 10px;
    overflow: hidden;
    flex-shrink: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, border-style 0.3s ease;
}

.left-sidebar,
.main-content,
.right-sidebar {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
}

.left-sidebar { grid-column: 1; }
.main-content { grid-column: 2; }
.right-sidebar { grid-column: 3; }

.bottom-bar {
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: center;
    padding: 8px;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    font-size: 11px;
    border-radius: 5px;
    margin-top: 5px;
    flex-shrink: 0;
    min-height: 28px;
    border-top: 1px solid var(--footer-border);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.content-box,
.profile-box, 
.update-log-box,
.status-box,
.main-image, 
#about-content,
.navigation-box,
.music-player-box,
.theme-box,
.todo-list-box {
    background-color: var(--box-bg);
    border: var(--box-border-width) var(--box-border-style) var(--box-border);
    padding: 8px;
    border-radius: 8px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, border-style 0.3s ease;
}

h2, h3 {
    color: var(--title-color);
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: normal;
    border-bottom: 1px solid var(--title-underline);
    padding-bottom: 3px;
    flex-shrink: 0;
    text-transform: lowercase;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.status-box h3, .theme-box h3 { text-align: center; border-bottom: none; }


.header-text-left, .header-text-right {
    font-size: 11px;
    color: var(--text-alt-color);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    height: 1.2em;
}
.header-text-left { grid-column: 1; grid-row: 1; align-self: start; }
.header-text-right { grid-column: 2; grid-row: 1; text-align: right; align-self: start; }

.header-welcome-box {
    grid-column: 1;
    grid-row: 2;
    border: 1px var(--box-alt-border-style) var(--box-alt-border);
    background-color: var(--box-alt-bg);
    border-radius: 4px;
    height: 85px;
    display: flex;
    padding: 0;
    overflow: hidden !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, border-style 0.3s ease;
}

.header-image { 
    grid-column: 2;
    grid-row: 2;
    height: 85px;
    width: 100px;
    min-height: unset;
    flex-shrink: 0;
    
    background-color: var(--placeholder-bg);
    border: 1px var(--placeholder-border-style) var(--placeholder-border);
    color: var(--placeholder-text);
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-welcome-box .image-placeholder { 
    flex-grow: 1;
    aspect-ratio: auto;
    min-height: unset;
    border-color: var(--placeholder-border);
    border-style: var(--placeholder-border-style);
    background-color: var(--placeholder-bg);
    color: var(--placeholder-text);
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-box { 
    height: 120px; 
    min-height: unset;
    aspect-ratio: auto;
    padding: 0; 
    
    background-color: var(--placeholder-bg);
    border: 1px solid var(--placeholder-border); 
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--placeholder-text);
    font-size: 10px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.update-log-box {
    flex-grow: 1;
    min-height: 100px;
    display: flex;
    flex-direction: column;
}

.update-log-box .content-area {
    overflow-y: auto;
    height: 100%;
    flex-grow: 1;
    font-size: 11px;
    padding-right: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: var(--text-alt-color);
}
.update-log-box p:has(> strong:only-child) {
    margin-bottom: 2px;
}
.update-log-box strong { color: var(--title-color); }


.status-box {
    display: flex;
    flex-direction: column;
    padding: 8px;
    height: auto;
    min-height: 60px;
    align-items: stretch;
    border-width: var(--status-box-border-width);
    border-style: var(--status-box-border-style);
    border-color: var(--box-alt-border);
    transition: border-color 0.3s ease, border-style 0.3s ease;
    gap: 2px;
}
.status-box h3 {
     text-align: center;
     border-bottom: none;
     margin-bottom: 4px;
}
.discord-status-content {
    font-size: 11px;
    line-height: 1.3;
    overflow: hidden;
    color: var(--text-alt-color);
    width: 100%;
    text-align: center;
    white-space: nowrap;
}
#discord-online-status {
    display: inline;
    vertical-align: middle;
    margin-right: 5px;
}
#discord-platform-icon {
    font-size: 10px;
    cursor: help;
    vertical-align: middle;
}
.discord-activity-wrapper {
    display: inline;
    margin-left: 5px;
    overflow: hidden;
    white-space: nowrap;
    max-width: calc(100% - 70px);
    vertical-align: middle;
}
#discord-activity {
    display: inline-block;
    white-space: nowrap;
    transition: none;
    padding-left: 0;
    vertical-align: middle;
}
#discord-activity.sliding {
    padding-left: 100%;
    animation: marquee-slide 15s linear infinite;
}
.elapsed-time {
    font-size: 9px;
    color: var(--text-alt-color);
    margin-left: 4px;
    white-space: nowrap;
    vertical-align: middle;
}


.main-image { 
    height: 100px;
    min-height: unset;
    width: 100%;
    aspect-ratio: auto;
     
    background-color: var(--placeholder-bg);
    border: 1px var(--placeholder-border-style) var(--placeholder-border);
    color: var(--placeholder-text);
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#about-content {
    flex-grow: 1;
    min-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
    border: var(--box-border-width) var(--box-border-style) var(--box-border); 
    background-color: var(--box-bg); 
    padding: 8px; 
}

#about-content h2 { margin-bottom: 10px; }

.about-content-inner {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: flex-start;
}

.about-text {
    flex-grow: 1;
    font-size: 12px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.about-text p:has(> a:only-child) {
    margin: 0;
}
.about-text a { color: var(--link-color); text-decoration: underline; }
.about-text a:hover { color: var(--link-hover-color); }


#dynamic-content-area {
    flex-grow: 1;
    min-height: 150px;
    overflow-y: auto; 
    padding-right: 0px; 
    display: none; 
    background-color: transparent;
    border: none;
    padding: 0;
}

#dynamic-content-area .content {
    background-color: var(--box-bg);
    border: var(--box-border-width) var(--box-border-style) var(--box-border);
    padding: 10px; 
    border-radius: 8px;
    width: 100%;
    height: 100%; 
    overflow-y: auto; 
    padding-right: 15px; 
    display: none; 
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: background-color 0.3s ease, border-color 0.3s ease, border-style 0.3s ease;
}

#dynamic-content-area .content h2 {
    color: var(--title-color);
    font-size: medium;
    margin-bottom: 5px;
    border-bottom: 1px solid var(--title-underline);
    padding-bottom: 3px;
    flex-shrink: 0;
}

.navigation-box {
    flex-grow: 1;
    min-height: 100px;
    overflow-y: auto;
    padding-right: 5px;
    background: linear-gradient(to bottom, var(--gradient-nav-start), var(--gradient-nav-end));
    transition: background 0.3s ease;
    border-style: var(--box-border-style);
}
.navigation-box h2 { text-align: center; }
.navigation-box ul { list-style: none; padding: 0; margin: 0; width: 100%; }
.navigation-box li { margin-bottom: 4px; }
.nav-button {
    display: block; width: 100%; padding: 5px 8px; text-align: center;
    border: var(--button-border-width) solid var(--button-border);
    background: var(--button-bg);
    color: var(--button-text);
    cursor: pointer;
    transition: background 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, font-weight 0.2s ease;
    border-radius: 15px;
    font-size: 11px;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.nav-button:hover {
    background: var(--button-hover-bg);
    color: var(--button-hover-text);
    border-color: var(--button-hover-border);
}
.nav-button.active {
    background: var(--title-color);
    color: var(--box-bg);
    border-color: var(--title-color);
    box-shadow: inset 0 0 3px rgba(0,0,0,0.2);
    font-weight: bold;
}


.theme-box {
    min-height: unset;
    height: auto;
    padding-bottom: 10px;
    padding-top: 10px;
    gap: 6px;
    border-style: var(--box-border-style);
}
.theme-box h3 {
    text-align: center;
    margin-bottom: 6px;
}
.theme-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}
.theme-button {
     flex-basis: auto;
     flex-grow: 1;
     padding: 4px 5px;
     border: var(--button-border-width) solid var(--button-border);
     background: var(--button-bg);
     color: var(--button-text);
     border-radius: 10px;
     cursor: pointer;
     font-size: 9px;
     font-family: var(--font-main);
     transition: background 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
     text-align: center;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
     min-width: 30%;
}
.theme-button:hover {
    background: var(--button-hover-bg);
    color: var(--button-hover-text);
    border-color: var(--button-hover-border);
}
.theme-button.active {
    background: var(--title-color);
    color: var(--box-bg);
    border-color: var(--title-color);
    box-shadow: inset 0 0 3px rgba(0,0,0,0.2);
    font-weight: bold;
}


.music-player-box {
    min-height: 70px;
    height: auto;
    gap: 5px;
    justify-content: center;
    background: linear-gradient(to bottom, var(--gradient-music-start), var(--gradient-music-end));
    transition: background 0.3s ease;
    border-style: var(--box-border-style);
}

.music-player-box h3 {
    margin-bottom: 5px;
    text-align: center;
}

.music-player-box audio {
    display: none;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
}

.player-button {
    padding: 3px 6px;
    border: 1px var(--player-button-border-style) var(--player-button-border);
    background-color: var(--button-bg);
    color: var(--player-button-text);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, border-style 0.2s ease;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
    min-width: 30px;
    text-align: center;
}

.player-button:hover {
    background-color: var(--player-button-hover-bg);
    color: var(--player-button-hover-text);
}

.song-info {
    font-size: 11px;
    color: var(--text-alt-color);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex-grow: 1;
    text-align: left;
}

#song-title {
    display: inline-block;
    white-space: nowrap;
    transition: none;
    padding-left: 0;
}

#song-title.sliding {
    padding-left: 100%;
    animation: marquee-slide 10s linear infinite;
}

@keyframes marquee-slide {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}


.todo-list-box {
    height: 150px;
    min-height: unset;
    overflow-y: auto;
    padding-right: 5px;
    background: linear-gradient(to bottom, var(--gradient-todo-start), var(--gradient-todo-end));
    transition: background 0.3s ease;
    border-style: var(--box-border-style);
}
.todo-list-box h2, .todo-list-box h3 { text-align: center; }
.todo-list-box ul {
    list-style: none;
    padding-left: 5px; margin: 5px 0;
    font-size: 11px; flex-shrink: 0;
    min-height: 1em;
    text-align: center;
}
.todo-list-box li { margin-bottom: 3px; }
.todo-list-box .todo-image { 
    height: 80px;
    width: 100px;
    min-height: unset;
    max-width: unset;
    margin-top: auto;
    margin-bottom: 0;
    align-self: center;
    flex-shrink: 0;
    
    background-color: var(--placeholder-bg);
    border: 1px var(--placeholder-border-style) var(--placeholder-border);
    color: var(--placeholder-text);
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: auto; 
}


.image-placeholder {
    background-color: var(--placeholder-bg);
    border: 1px var(--placeholder-border-style) var(--placeholder-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    color: var(--placeholder-text);
    text-align: center;
    border-radius: 4px;
    overflow: hidden;
    width: 100%; 
    height: 100%; 
    min-height: 50px; 
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, border-style 0.3s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header-image { height: 85px; width: 100px; flex-shrink: 0;}
.profile-box { height: 120px; width: 100%; padding: 0;}
.main-image { height: 100px; width: 100%; }
.todo-image { height: 80px; width: 100px; flex-shrink: 0; align-self: center; margin-top: auto; margin-bottom: 0;}
.header-welcome-box .image-placeholder { flex-grow: 1; height: 100%; width: 100%; min-height: unset; aspect-ratio: auto; }


.container ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.container ::-webkit-scrollbar-track {
  background: var(--scrollbar-track-bg);
  border-radius: 8px;
  border: 1px solid var(--scrollbar-track-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.container ::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb-bg);
  border-radius: 8px;
  border: 1px solid var(--scrollbar-thumb-border);
   transition: background-color 0.3s ease, border-color 0.3s ease;
}
.container ::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover-bg);
}


.left-sidebar,
.main-content,
.right-sidebar,
.update-log-box .content-area,
#about-content,
#dynamic-content-area .content,
.navigation-box,
.todo-list-box {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-bg) var(--scrollbar-track-bg);
}

.header-welcome-box {
    overflow: hidden !important;
}


@media (max-width: 768px) {
    body {
        padding: 10px;
        align-items: flex-start; 
    }

    .container {
        display: flex; 
        flex-direction: column;
        height: auto; 
        max-height: none;
        max-width: 100%;
        overflow: visible; 
        border-width: 1px;
    }

    .header-area {
        
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        min-height: unset;
        height: auto;
        padding: 8px;
        gap: 8px;
        
        order: 1; 
    }
    .header-text-left { grid-column: 1; grid-row: 1; text-align: center; }
    .header-text-right { grid-column: 1; grid-row: 2; text-align: center; }
    .header-welcome-box { grid-column: 1; grid-row: 3; height: 100px; order: 3;} 
    .header-image { grid-column: 1; grid-row: 4; width: 120px; height: auto; margin: 5px auto; order: 4;} 


    
    .left-sidebar { order: 2; }
    .main-content { order: 3; }
    .right-sidebar { order: 4; }
    .bottom-bar { order: 5; }

    .left-sidebar,
    .main-content,
    .right-sidebar {
        width: 100%;
        overflow: visible; 
        min-height: unset;
        padding-right: 0; 
    }

    
    .update-log-box,
    .navigation-box,
    #about-content,
    #dynamic-content-area {
        flex-grow: 0;
    }

    
    .content-box,
    .profile-box,
    .update-log-box,
    .status-box,
    .main-image,
    #about-content,
    .navigation-box,
    .music-player-box,
    .theme-box,
    .todo-list-box,
    #dynamic-content-area,
    #dynamic-content-area .content {
        height: auto;
        min-height: 50px; 
        overflow: visible; 
    }
    
    #about-content, #dynamic-content-area .content, .update-log-box .content-area {
        min-height: 150px; 
        max-height: 300px; 
        overflow-y: auto; 
    }
    .navigation-box {
        min-height: unset;
        overflow: visible;
        flex-grow: 0;
    }
    .music-player-box { min-height: unset; }
    .theme-box { min-height: unset; }
    .todo-list-box { height: auto; min-height: 150px; } 


    .about-content-inner {
        flex-direction: column; 
    }


    .status-box {
        height: auto;
        align-items: stretch;
        padding: 8px;
        text-align: center; 
    }

    .discord-status-content {
        text-align: center; 
        white-space: normal; 
        overflow: visible; 
    }
     .discord-activity-wrapper {
        display: block; 
        text-align: center;
        white-space: normal; 
        overflow: visible; 
        margin-left: 0; 
        max-width: 100%; 
     }
     #discord-activity.sliding {
        animation: none; 
        padding-left: 0;
        display: inline; 
     }
     #discord-activity {
        display: inline;
     }


    .todo-image {
        width: 100px; height: auto; 
        align-self: center; 
     }

      
     .image-placeholder {
        aspect-ratio: auto; 
        height: auto; 
        width: 100%; 
     }
     
     .profile-box { height: 150px;} 
     .main-image { height: 120px;} 
     .header-welcome-box .image-placeholder { height: 100px;} 
     .header-image { width: 120px; height: auto;} 
     .todo-image { width: 100px; height: auto;} 


      
     .container ::-webkit-scrollbar {
        width: 5px;
        height: 5px;
     }
     .container ::-webkit-scrollbar-track {
        border: none; 
     }

     
     .left-sidebar,
     .main-content,
     .right-sidebar,
     .update-log-box .content-area,
     #about-content,
     #dynamic-content-area .content,
     .navigation-box,
     .todo-list-box {
        scrollbar-width: thin;
     }

} 

@media (hover: hover) and (min-width: 769px) {
    #song-title.sliding:hover,
    #discord-activity.sliding:hover {
        animation-play-state: paused;
    }
}

#comment-form input[type="text"],
#comment-form input[type="password"],
#comment-form textarea {
    padding: 8px 10px;
    border: var(--box-border-width) var(--box-border-style) var(--box-border);
    border-radius: 5px;
    font-size: 12px;
    font-family: var(--font-main);
    background-color: var(--box-alt-bg); 
    color: var(--text-color);
    width: 100%;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    margin-bottom: 5px; 
}


#comment-form input[type="text"]:focus,
#comment-form input[type="password"]:focus,
#comment-form textarea:focus {
    outline: none;
    border-color: var(--link-color); 
}


#comment-form textarea {
    min-height: 60px; 
    resize: vertical; 
    
}



#comment-form button[type="submit"] {
    padding: 8px 15px;
    background: var(--button-bg);
    color: var(--button-text);
    border: var(--button-border-width) solid var(--button-border);
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-family: var(--font-main);
    transition: background 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    align-self: flex-start; 
    margin-top: 5px; 
}

#comment-form button[type="submit"]:hover {
    background: var(--button-hover-bg);
    color: var(--button-hover-text);
    border-color: var(--button-hover-border);
}
/* General link styling - applies theme color */
a {
    color: var(--link-color);
    text-decoration: none; /* Or underline, depending on your preference */
    transition: color 0.2s ease; /* Smooth hover */
  }
  
  a:hover {
    color: var(--link-hover-color);
    text-decoration: underline; /* Optional: underline on hover */
  }