/* Define light and dark theme colors */
/* :root {
    color-scheme: light dark;
    --background-color: light-dark(#f4f4f4, #1e1e1e);
    --text-color: light-dark(#333, #f4f4f4);
    --h-text-color: light-dark(#333, #fff);
    --header-background: light-dark(#333, #000);
    --header-text-color: light-dark(#fff, #fff);
    --link-color: light-dark(#007bff, #ff6600);
    --button-background: light-dark(#ff6600, #007bff);
    --button-hover-background: light-dark(#cc5200, #0056b3);
} */

:root {
    color-scheme: light dark;
    --background-color: light-dark(#f4f4f4, #051427);
    --text-color: light-dark(#333, #f4f4f4);
    --h-text-color: light-dark(#333, #fff);
    --header-background: light-dark(#333, #051427);
    --header-text-color: light-dark(#fff, #fff);
    --link-color: light-dark(#007bff, #ff6600);
    --button-background: light-dark(#ff6600, #051427);
    --button-hover-background: light-dark(#cc5200, #040922);
}
/* 
https://lospec.com/palette-list/japanese-woodblock
https://www.behance.net/gallery/119259641/SHINENDO-Brand-Identity/modules/679367423
https://judi-design.jp/how-to-choose-a-colour-palette-for-your-brand/


:root {
    color-scheme: light dark;
    --background-color: light-dark(#f4f4f4, #1e1e1e);
    --text-color: light-dark(#333, #f4f4f4);
    --h-text-color: light-dark(#333, #fff);
    --header-background: light-dark(#333, #000);
    --header-text-color: light-dark(#fff, #fff);
    --link-color: light-dark(#243d5c, #d4804d);
    --button-background: light-dark(#d4804d, #243d5c);
    --button-hover-background: light-dark(#cc5200, #0056b3);
} */

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

/* Reset some default styles */
body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    padding-top: 50px; /* Space for the fixed header */
    overflow-x: hidden; /* Prevent horizontal overflow */
}

/* Particles.js container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; /* Ensure it's at the correct layer */
    background: var(--background-color); /* Match background color */
    pointer-events: auto; /* Allow pointer events for interactivity */
}

/* Content wrapper */
.content-wrapper {
    position: relative;
    max-width: 1000px;
    z-index: 1; /* Ensure content is above the particles */
    margin: 0 auto; /* Center the content horizontally */
}

/* Header and Navigation */
header {
    background: var(--header-background);
    color: var(--header-text-color);
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

header .name-button {
    background-color: var(--button-background);
    color: var(--header-text-color);
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

header .name-button:hover {
    background-color: var(--button-hover-background);
}

header .nav-links {
    display: flex;
    gap: 10px;
}

header .nav-links a {
    color: var(--header-text-color);
    text-decoration: none;
    padding: 10px 20px;
    transition: background 0.3s ease;
}

header .nav-links a:hover {
    background: var(--link-color);
}

/* Theme toggle button */
.theme-toggle-button {
    all: unset;
    background-color: var(--header-background);
    color: var(--header-text-color);
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

/* .theme-toggle-button:hover {
    background-color: var(--button-hover-background);
} */

/* Main content */
main {
    /* max-width: 1200px; */
    margin: 20px auto;
    padding: 20px;
    background: var(--background-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: var(--header-background);
    color: var(--header-text-color);
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 20px;
    color: var(--h-text-color);
}

p {
    margin-bottom: 20px;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Post detail */
.post-detail {
    margin: 20px auto;
    padding: 20px;
    max-width: 800px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.post-detail h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.post-date {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 20px;
}

.post-content {
    line-height: 1.6;
}

.post-navigation {
    margin-top: 20px;
    text-align: right;
}

.post-navigation .button {
    padding: 10px 15px;
    background-color: var(--button-background);
    color: var(--header-text-color);
    text-decoration: none;
    border-radius: 4px;
}

.post-navigation .button:hover {
    background-color: var(--button-hover-background);
}
