:root {
    --scale-factor: 0.85;
}

@font-face {
    font-family: 'W95FA';
    src: url('../assets/fonts/w95fa.woff2') format('woff2'),
        url('../assets/fonts/w95fa.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

#oneko {
    display: none;
}

/* General Styles */
body {
    background: #141414;
    color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'W95FA', sans-serif;
}

/* Background Image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0) 50%) repeat-y,
        url('../assets/img/backgrounds/1.png') no-repeat center center;
    background-size:
        100% 4px,
        /* Adjust this value to control scanline thickness */
        cover;
    z-index: -1;
}

@keyframes rainbow-text {
    0% {
        color: #89ffbe;
    }

    20% {
        color: #80ffee;
    }

    40% {
        color: #61d2ff;
    }

    60% {
        color: #60dfff;
    }

    80% {
        color: #75fff4;
    }

    100% {
        color: #83ffc1;
    }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #141414;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: #fff;
}

/* Container */
.container {
    background: #141414;
    padding: 20px;
    width: 90%;
    max-width: 900px;
    border: 1px solid #ffffff;
    font-size: 14px;
    box-sizing: border-box;
    margin-top: 100px;
    margin-bottom: 100px;
}

/* Header */
header {
    text-align: left;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ffffff;
}

header h1 {
    font-size: 30px;
    margin: 0;
    text-align: center;
}

header h2 {
    font-size: 18px;
    margin: 5px 0;
    color: #666;
}

header p {
    margin: 0;
    font-size: 10px;
    color: #999;
}

/* Layout: Flexbox for Columns */
.layout {
    display: flex;
    gap: 10px;
    width: 100%;
}

/* Left and Right Columns */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 33.333%;
    /* Set explicit width */
    flex: 0 0 33.333%;
    /* Don't grow or shrink */
    min-width: 0;
    /* Prevent overflow */
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 66.667%;
    /* Set explicit width */
    flex: 0 0 66.667%;
    /* Don't grow or shrink */
    min-width: 0;
    /* Prevent overflow */
}

/* Card Styles */
.card {
    background: #141414;
    padding: 10px;
    border: 1px solid #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    /* Ensure padding and border are included in the element's total width and height */
}

/* Typography */
.card h3 {
    font-size: 16px;
    margin: 0 0 10px;
    border-bottom: 2px solid rgb(255, 255, 255);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

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

.card ul li {
    margin-bottom: 5px;
}

.card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Flag Counter Styling */
.card img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Responsive Adjustments for Small Screens */
@media (max-width: 800px) {
    .layout {
        flex-direction: column;
    }

    .left-column,
    .right-column {
        width: 100%;
        flex: none;
    }
}

/* Header Container */
.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

/* ASCII Art (Left) */
.header-container .ascii-art {
    flex: 1;
    max-width: 50%;
    font-size: 1vw;
    line-height: 1;
    white-space: pre;
    text-align: center;
}

/* Black Container */
.black-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 20vh;
    width: 100%;
    margin: 0 auto;
    background-color: black;
    padding: 20px;
    box-sizing: border-box;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .header-container .ascii-art,
    .header-container .text-content {
        font-size: 2vw;
        max-width: 100%;
        text-align: center;
    }
}

/* Update ASCII art container styles */
.ascii-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    margin-bottom: -20px;
}

.ascii-container a {
    text-decoration: none;
}

.ascii-box {
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: pre;
}

@keyframes softColorCycle {
    0% {
        color: #ffd5d5;
    }

    20% {
        color: #c9ffd7;
    }

    40% {
        color: #c6e4ff;
    }

    60% {
        color: #d7c8ff;
    }

    80% {
        color: #ffcbcb;
    }

    100% {
        color: #ffd5d5;
    }
}

.ascii-box pre {
    margin: 0;
    padding: 0;
    font-size: clamp(8px, 1vw, 16px);
    line-height: 1;
    animation: softColorCycle 10s ease-in-out infinite;
    display: inline-block;
}

hr {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.705);
    margin: 25px 0;
    padding: 0;
}

.heading-underline {
    border-bottom: 1px solid #ffffff23;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.chat-container {
    flex-direction: column;
    height: 200px;
    position: relative;
    background: #141414;
    backdrop-filter: blur(10px);
    font-family: 'W95FA', monospace;
    color: #ffffff;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message {
    padding: 2px 0;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    padding-left: 20px;
}

.message::before {
    content: ">";
    position: absolute;
    left: 5px;
    opacity: 0.5;
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid #ffffff23;
}

.chat-input::before {
    content: "$";
    opacity: 0.5;
    padding: 5px;
}

.chat-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'W95FA', monospace;
    font-size: 14px;
    padding: 5px;
}

.chat-input input:focus {
    outline: none;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.chat-input input::after {
    content: "▋";
    animation: blink 1s step-end infinite;
}

.messages::-webkit-scrollbar {
    width: 5px;
}

.messages::-webkit-scrollbar-thumb {
    background: #ffffff23;
}

.status-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 4px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
    padding: 2px 4px;
}

.service {
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.state {
    white-space: nowrap;
    margin-left: 8px;

}

.state.ok {
    color: #8ee28e;
}

.state.down {
    color: #d67c7c;
}

.track-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.album-art {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-album-art {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    box-sizing: border-box;
}

.current-album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 4px;
    flex: 1;
}

.track-title {
    font-size: 14px;
    font-weight: bold;
}

.track-title a {
    color: #ffffff;
    text-decoration: none;
}

.track-title a:hover {
    color: #e48f8f;
}

.track-artist {
    font-size: 12px;
    opacity: 0.8;
}

.track-last-played {
    font-size: 11px;
    opacity: 0.8;
}

nav {
    display: flex;
    justify-content: flex-start;
    margin: 15px 0 0px 0;
    padding-left: 5px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0px;
    gap: 20px;
    padding: 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
    font-size: 14px;
}

nav a:hover {
    color: #e48f8f;
}

.nav-container {
    margin-top: 10px;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(20px, 1fr));
    grid-template-rows: repeat(2, auto);
    gap: clamp(4px, 1.5vw, 8px);
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
    place-items: center;
    justify-content: center;
}

.icon-link {
    aspect-ratio: 1;
    width: 100%;
    max-width: 28px;
    color: #fff;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 800px) {
    .icon-grid {
        gap: 4px;
        padding: 0 5px;
        place-items: center;
    }
}

.icon-link:hover {
    color: #e48f8f;
    background: rgba(255, 255, 255, 0.1);
}

.icon-link svg {
    width: 18px;
    height: 18px;
}

.slider-container {
    margin: 20px auto;
    border: 1px solid #fff;
    padding: 20px 0px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.slide {
    min-width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .slide {
        min-width: 50%;
        flex: 0 0 50%;
    }
}

.cert-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.cert-content {
    width: 100%;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cert-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.cert-content h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    line-height: 1.3;
}

.cert-content p {
    margin: 0;
    font-size: 12px;
}

.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 10;
}

.prev {
    left: 5px;
}

.next {
    right: 5px;
}

.discord-status {
    position: relative;
    overflow: hidden;
    padding: 3px;
}

.status-text {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
}

.status-prefix {
    font-size: 20px;
    opacity: 0.7;
}

/* style.css */
.status-indicator {
    display: inline-flex;
    align-items: center;
}

.status-state {
    font-size: 28px;
    font-weight: bold;
    position: relative;
    background: linear-gradient(transparent 0%,
            rgb(255, 73, 73) 50%,
            transparent 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.status-state.online {
    font-size: 28px;
    font-weight: bold;
    position: relative;
    background: linear-gradient(transparent 0%,
            rgb(118, 255, 84) 100%,
            transparent 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.status-exclaim {
    font-size: 28px;
    font-weight: bold;
    display: inline-block;
    transform: rotate(15deg) skew(-15deg, 0);
    transform-origin: bottom;
    margin-left: -5px;
    background: linear-gradient(transparent 0%,
            rgb(255, 73, 73) 50%,
            transparent 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.status-exclaim.online {
    font-size: 28px;
    font-weight: bold;
    display: inline-block;
    transform: rotate(15deg) skew(-15deg, 0);
    transform-origin: bottom;
    margin-left: -5px;
    color: #fff;
    /* Ensure text color is set */
    background: linear-gradient(transparent 0%,
            rgb(118, 255, 84) 100%,
            transparent 100%);
    background-clip: text;
    /* Clip the background to the text */
    -webkit-background-clip: text;
    /* For Safari */
    color: transparent;
    /* Make the text color transparent to show the background */
}

.tweet-container {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px;
}

.profile-image {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tweet-content {
    flex: 1;
}

.tweet-header {
    margin-bottom: 4px;
}

.display-name a {
    font-weight: bold;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
}

.display-name a:hover {
    color: #e48f8f;
}

.username {
    font-size: 12px;
    opacity: 0.7;
    margin-left: 4px;
}

.tweet-text {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.posted-date {
    font-size: 12px;
}

/* BLOG POST PAGE TEMPLATE */
.post-header {
    margin-bottom: 2rem;
}

.post-meta {
    color: #888;
    font-size: 0.9rem;
}

.reading-time {
    margin-left: 1rem;
}

.post-content {
    line-height: 1.6;
    margin: 2rem 0;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

.tag {
    background: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    position: relative;
}

.prev-post,
.next-post {
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 40%;
    display: flex;
    align-items: center;
}

.prev-post::before,
.next-post::after {
    content: "";
    display: inline-block;
    width: 1.2em;
    text-indent: 0;
    overflow: visible;
}

.prev-post::before {
    content: "←";
    margin-right: 0.5em;
}

.next-post::after {
    content: "→";
    margin-left: 0.5em;
}


.prev-post:hover,
.next-post:hover {
    color: #e48f8f;
}

.post-meta {
    color: #888;
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem;
}

.post-excerpt {
    margin: 1rem 0;
    line-height: 1.6;
}

.read-more {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.read-more:hover {
    color: #e48f8f;
}

#blog-index a {
    color: #ffffff;
    text-decoration: none;

}

#blog-index a:hover {
    color: #e48f8f;
}

.post-header img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.card.about a {
    text-decoration: underline;
    color: #ffffff;
}

.card.about a:hover {
    text-decoration: underline;
    color: #e48f8f;
}

.about-facts-list {
    margin-top: 15px;
}

.about-facts-list ul {
    list-style: initial;
    margin-top: 5px;
    padding: 10px;

}

.blurred {
    filter: blur(5px);
}

/* Blog Grid Layout */
.blog-grid {
    column-count: 2;
    column-gap: 20px;
}

/* Blog Post Card */
.blog-post-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
    flex-direction: column;
}

.blog-post-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-card h2 {
    margin: 0;
    font-size: 1.5rem;
}

.blog-post-card h2 a {
    color: #fff;
    text-decoration: none;
}

.blog-post-card h2 a:hover {
    color: #e48f8f;
}

@media (max-width: 768px) {
    .blog-grid {
        column-count: 1;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination .page-button {
    background-color: #333;
    color: #fff;
    border: none;
    margin: 0 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 0;
    transition: background-color 0.3s;
}

.pagination .page-button:hover {
    background-color: #555;
}

.pagination .page-button.active {
    background-color: #e48f8f;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.skills-section {
    border: 1px solid #ffffff;
    padding: 15px 20px;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

.skills-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-section li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    gap: 5px;
}

.progress-bar {
    background-color: #333;
    border-radius: 5px;
    overflow: hidden;
    height: 10px;
    width: 100px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skills-section li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .progress-bar {
        width: 100%;
    }
}

.progress-languages {
    background-color: #ff87a5;
    height: 100%;
    width: 0;
}

.progress-frameworks {
    background-color: #b8ffb8;
    height: 100%;
    width: 0;
}

.progress-infrastructure {
    background-color: #9fe1ff;
    height: 100%;
    width: 0;
}

.progress-tools {
    background-color: #dcb0ff;
    height: 100%;
    width: 0;
}

.error-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-content h1 {
    font-size: 40px;
    margin-bottom: -10px;
}

.error-content p {
    font-size: 20px;
    margin-bottom: 20px;
}

.error-content img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.error-content a {
    text-decoration: none;
    color: #ffffff;
}

.error-content a:hover {
    text-decoration: none;
    color: #e48f8f;
}

#rainCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Update these styles in style.css */
.site-settings {
    position: fixed;
    right: 0;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
}

.settings-tab {
    background: #141414;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    border: 1px solid #fff;
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
    height: fit-content;
    position: relative;
    z-index: 1001;
    margin-bottom: 0;
}

.settings-panel {
    position: absolute;
    right: -232px;
    bottom: 0;
    width: 200px;
    background: #141414;
    border: 1px solid #fff;
    padding: 15px;
    transition: right 0.3s ease;
    z-index: 1000;
}

.site-settings.open .settings-panel {
    right: 0;
}

.settings-panel h4 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 14px;
}

.settings-panel label {
    display: block;
    color: #fff;
    margin: 8px 0;
    font-size: 14px;
    cursor: pointer;
}

.settings-panel input[type="checkbox"] {
    margin-right: 8px;
}

.hotlink-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%
}

.small-image-container {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.small-image-container img {
    width: 88px;
    height: 31px;
}

.button-code {
    margin: 0;
    padding: 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    max-width: 200px;
    max-height: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    word-wrap: break-word;
}

.button-code code {
    font-family: monospace;
    font-size: 12px;
    color: #fff;
    display: block;
}

/* Custom scrollbar styling */
.button-code::-webkit-scrollbar {
    width: 4px;
}

.button-code::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.button-code::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

.hotlink-text {
    display: relative;
    align-items: center;
    justify-content: center;
}

.hotlink-text p {
    text-align: center;
    color: #5f5f5f;
}

.hotlink-text .clickable {
    cursor: pointer;
    user-select: none;
}

.hotlink-text .clickable:hover {
    color: #e48f8f;
}

.dropdown-content {
    display: none;
    padding: 10px;
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.4;
}

.dropdown-content.active {
    display: block;
}

@media (max-width: 800px) {
    .layout {
        flex-direction: column;
    }

    .left-column,
    .right-column {
        width: 100%;
        flex: none;
        display: contents;
    }

    .mobile-order-1 {
        order: 1;
    }

    .mobile-order-2 {
        order: 2;
    }

    .mobile-order-3 {
        order: 3;
    }

    .mobile-order-4 {
        order: 4;
    }

    .mobile-order-5 {
        order: 5;
    }

    .mobile-order-6 {
        order: 6;
    }

    .mobile-order-7 {
        order: 7;
    }

    .mobile-order-8 {
        order: 8;
    }

    .mobile-order-9 {
        order: 9;
    }

    .mobile-order-10 {
        order: 10;
    }

    .mobile-order-11 {
        order: 11;
    }

    .mobile-order-12 {
        order: 12;
    }

    /* Make container flex in mobile */
    .container {
        display: flex;
        flex-direction: column;
    }
}

.speed-control {
    margin-top: 15px;
}

.speed-control label {
    display: block;
    margin-bottom: 5px;
}

.speed-control input[type="range"] {
    width: 100%;
    margin: 5px 0;
}

#speedValue {
    color: #fff;
    font-size: 12px;
}

.weather-disable {
    width: 100%;
    padding: 8px;
    background: #333;
    color: #fff;
    border: 1px solid #fff;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 12px;
}

.weather-disable:hover {
    background: #444;
}

a[href^="mailto"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

a[href^="mailto"]:hover {
    color: #e48f8f;
}

a[href^="mailto"] svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    list-style: none;
    padding: 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    padding: 4px;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: #e48f8f;
}

.social-links a svg {
    width: 14px;
    /* Match font size */
    height: 14px;
    /* Match font size */
    vertical-align: middle;
}

.category-section {
    margin-bottom: 10px;
}

.category-section h2 {
    margin-bottom: 20px;
}

.projects-row {
    column-count: 2;
    height: auto;
}

.project-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    break-inside: avoid;
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.project-card h3 {
    font-size: 1.5em;
    margin-top: 15px;
    border: none;
}

.project-card p {
    margin-top: 10px;
    color: #666;
}

.project-card .project-links {
    margin-top: 15px;
}

.project-card .project-links a {
    margin-right: 10px;
    color: #007BFF;
    text-decoration: none;
}

.project-card .project-links a:hover {
    text-decoration: underline;
}

.project-card-button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font: inherit;
}

.project-card-button:hover {
    background-color: #e48f8f;
}

@media screen and (max-width: 600px) {
    .project-card {
        flex: 1 1 100%;
    }
}

@media screen and (max-width: 600px) {
    .projects-row {
        column-count: 1;
    }
}

.subpage-header {
    width: 100%;
    text-align: center;
    padding: 15px 0px;
    position: relative;
    margin-bottom: 15px;
    background: #141414;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.subpage-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            rgba(255, 255, 255, 0.01) 0px,
            rgba(255, 255, 255, 0.01) 1px,
            transparent 1px,
            transparent 3px);
    pointer-events: none;
    animation: scan 8s linear infinite;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
}

@keyframes scan {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(3px);
    }
}

.subpage-header h1 {
    color: rgb(255, 255, 255);
    font-size: 2em;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
    font-family: 'W95FA', monospace;
    white-space: nowrap;
}

.subpage-header h1 .prompt {
    color: rgb(255, 255, 255);
    margin-right: 8px;
}

.subpage-header h1::before {
    content: none;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #fff;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 5px;
}

.category-header h2 {
    margin: 0;
}

.view-all-link {
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
}

.view-all-link:hover {
    color: #e48f8f;
}

.category-divider {
    border: none;
    height: 1px;
    background-color: #ffffff;
    opacity: 0.5;
    margin-top: 10px;
    margin-bottom: 15px;
}

.project-tags {
    margin: 10px 0;
}

.project-tag {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 5px 5px 0;
    border-radius: 12px;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    cursor: default;
    white-space: nowrap;
}

/* Headings */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 2rem 0 1rem;
    line-height: 1.4;
    font-weight: 600;
    color: #ffffff;
}

.post-content h1 {
    font-size: 2.5em;
}

.post-content h2 {
    font-size: 2em;
}

.post-content h3 {
    font-size: 1.75em;
}

.post-content h4 {
    font-size: 1.5em;
}

.post-content h5 {
    font-size: 1.25em;
}

.post-content h6 {
    font-size: 1em;
}

/* Paragraphs and Lists */
.post-content p,
.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    padding-left: 2rem;
}

.post-content li {
    margin: 0.5rem 0;
}

.post-content blockquote {
    border-left: 4px solid #e48f8f;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    font-style: italic;
}

.post-content a {
    color: #e48f8f;
    text-decoration: none;
    border-bottom: 1px dotted #e48f8f;
    transition: all 0.2s ease;
}

.post-content a:hover {
    border-bottom-style: solid;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 4px;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border: 1px solid #333;
}

.post-content th,
.post-content td {
    padding: 0.75rem;
    border: 1px solid #333;
}

.post-content th {
    background: #1a1a1a;
    font-weight: 600;
}

.post-content hr {
    border: none;
    border-top: 1px solid #333;
    margin: 2rem 0;
}

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

    .post-content pre {
        padding: 0.75rem;
        font-size: 0.85em;
    }

    .post-content blockquote {
        padding: 0.75rem 1rem;
    }
}

.post-content pre {
    background: #1a1a1a;
    padding: 2rem 1rem 1rem;
    margin: 2rem 0 1.5rem;
    border-radius: 4px;
    overflow: visible;
    position: relative;
    border: 1px solid #333;
}

.post-content pre code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    color: #ffffff;
    display: block;
    line-height: 1.5;
    background-color: #1a1a1a;
}

.post-content code:not(pre code) {
    background: #292929;
    color: #ffffff;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* Language Label */
.code-language-label {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 0.8em;
    color: #888;
    font-family: 'Consolas', 'Monaco', monospace;
    background: transparent;
    padding: 0;
    margin: 0;
    z-index: 1;
}

.miku-footer {
    margin-top: 15px;
}

.miku-footer img {
    width: 100%;
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.miku-footer p {
    text-align: center;
    margin-top: 10px;
}

.infinite-scroll-container {
    position: relative;
    width: 100%;
    background: #141414;
    overflow: visible;
}

.scroll-wrapper {
    width: 100%;
    overflow: hidden;
}

.scroll-content {
    display: flex;
    animation: scroll 7s linear infinite;
    width: fit-content;
    align-items: center;
    gap: 10px;
}

.scroll-content-2 {
    display: flex;
    animation: scroll 3s linear infinite;
    width: fit-content;
    align-items: center;
    gap: 10px;
}

.scroll-content:hover {
    animation-play-state: paused;
}

.scroll-content a {
    flex-shrink: 0;
    /* Prevent images from shrinking */
    height: 31px;
    display: flex;
    align-items: center;
}

.scroll-content img {
    height: 31px;
    width: 88px;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.cool-sites-pointer {
    position: absolute;
    left: -95px;
    top: 50%;
    transform: translateY(-50%);
    transform-origin: right;
    color: rgba(255, 255, 255, 0.289);
    font-family: 'W95FA', sans-serif;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1;
}

@media (max-width: 800px) {
    .cool-sites-pointer {
        display: none;
    }

    #oneko {
        display: none !important;
    }
}

.site-stats {
    background: #141414;
    border: 1px solid #ffffff;
    padding: 10px;
}

.stats-list {
    font-family: 'Consolas', monospace;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background: rgba(32, 32, 32, 0.16)
}

.stat-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.stat-value-total,
.stat-value-unique {
    font-size: 16px;
    font-weight: bold;
    color: #8ee28e;
    text-shadow: 0 0 5px rgba(142, 226, 142, 0.5);
    min-width: 60px;
    text-align: right;
}

@keyframes countUp {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

.counting {
    animation: countUp 0.1s ease-out;
}

.admin-link {
    position: fixed;
    left: 0;
    bottom: 0;
    background-color: #141414;
    padding: 3px 10px;
    z-index: 1000;
    border-top: 1px solid rgb(255, 255, 255);
    border-right: 1px solid rgb(255, 255, 255);
    border-top-right-radius: 5px;
}

.admin-link a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 12px;
}

.admin-link a:hover {
    color: #e48f8f;
}

.blog-post-card .post-tags {
    margin: 0.5rem 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-tags {
    margin: 1rem 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.blog-post-card .tag {
    margin: 10px 0;
}

.post-tags .tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    cursor: default;
    white-space: nowrap;
}

.prev-post {
    font-weight: bold;
}

.next-post {
    font-weight: bold;
}

.project-description {
    margin: 1rem 0;
    color: #666;
    line-height: 1.6;
}

.project-description p {
    margin-bottom: 1rem;
    color: #666;
}

.project-description a {
    color: #c27a7a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-description a:hover {
    color: #e48f8f;
    text-decoration: underline;
}

.project-description ul {
    padding-left: 2rem;
    list-style-type: disc;
    color: #666;
}

.project-description ol {
    padding-left: 2rem;
    list-style-type: decimal;
    color: #666;
}

.project-description li {
    display: list-item;
}

.project-description hr {
    border: none;
    border-top: 1px solid #666;
    margin: 1.5rem 0;
}

.rss-icon {
    text-align: center;
    margin-top: 20px;
}

.rss-icon a {
    display: inline-block;
}

.rss-icon svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.rss-icon svg:hover {
    color: #e48f8f;
}

.post-navigation .rss-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
}

@media (max-width: 600px) {
    .post-navigation {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .prev-post,
    .next-post {
        width: auto;
        max-width: 40px;
        font-size: 24px;
        text-indent: -9999px;
        position: relative;
        overflow: visible;
    }

    .prev-post::before {
        content: "←";
        position: absolute;
        left: 0;
        text-indent: 0;
    }

    .next-post::after {
        content: "→";
        position: absolute;
        right: 0;
        text-indent: 0;
    }

    .post-navigation .rss-icon {
        position: static;
        transform: none;
        margin: 0;
    }

    .post-meta {
        margin-top: 15px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #888;
        font-size: 0.9rem;
    }

    .edit-separator {
        color: #555;
    }

    .edited-date {
        color: #777;
    }
}