:root {
    --background: #fdf6e3;
    --header-footer: #eee8d5;
    --text: #586e75;
    --accent: #b58900;
}

body.dark-theme {
    --background: #2e1f16;
    --header-footer: #4b2e1f;
    --text: #e0d7c6;
    --accent: #d9b26c;
}


* { margin:0; padding:0; box-sizing:border-box; font-family: Arial, sans-serif; }
body {
    background: var(--background);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Header & Menu */
.site-header {
    position: fixed; top: 0; width: 100%; height: 60px;
    background: var(--header-footer); display: flex; 
    justify-content: space-between; align-items: center; 
    padding: 0 20px; border-bottom: 2px solid var(--accent); z-index: 3000;
}

.menu-toggle { background: none; border: none; color: var(--accent); font-weight: bold; cursor: pointer; font-size: 1.1rem; }
.caret { transition: transform 0.3s ease; display: inline-block; }
.caret.rotate { transform: rotate(90deg); }

.menu {
    position: fixed; top: 60px; left: -260px; width: 250px; height: calc(100% - 60px);
    background: var(--header-footer); border-right: 2px solid var(--accent);
    transition: left 0.3s ease; overflow-y: auto; z-index: 2999;
}
.menu.show { left: 0; }
.menu ul { list-style: none; }
.menu li { padding: 15px; border-bottom: 1px solid rgba(0,0,0,0.05); color: var(--text); }
.menu a { text-decoration: none; color: inherit; display: block; }
/* Activities and Books Pointer Fix */
.has-submenu {
    cursor: pointer;
}
.has-submenu > .submenu { display: none; padding-left: 15px; margin-top: 10px; border-left: 1px solid var(--accent); }
.has-submenu.open > .submenu { display: block; }

/* Default: Hide the Sun, show the Moon */
.sun-icon { display: none; }
.moon-icon { display: inline-block; }

/* When body has .dark-theme: Show the Sun, hide the Moon */
body.dark-theme .sun-icon { display: inline-block; }
body.dark-theme .moon-icon { display: none; }

/* Optional: Smooth transition for the color swap */
#themeSwitcher svg {
    transition: fill 0.3s ease;
    vertical-align: middle;
}
/* Main Layout */


/* style.css */

main {
    margin-top: 60px; /* Space for header */
    height: calc(100vh - 100px); /* 100vh minus (60px header + 40px footer) */
    overflow-y: auto; /* This enables scrolling ONLY inside main */
    display: block; 
}

.content-wrapper {
    max-width: 100%;  /* Changed from 800px to allow full width */
    width: 100%;
    margin: 0;        /* Remove auto margins */
}

h1 { color: var(--accent); font-size: 2.5rem; margin-bottom: 20px; }
h2 { color: var(--accent); margin: 30px 0 15px 0; }
p { margin-bottom: 20px; font-size: 1.2rem; }

/* Footer */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--header-footer);
    border-top: 1px solid var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 0.8rem;
    z-index: 3000;
}
.footer-left {
    display: flex;
    align-items: center; /* This vertically centers everything */
    gap: 15px;           /* This creates even spacing between all items */
}

/* Remove manual margins from the HTML since 'gap' handles it now */
.footer-left a, 
.footer-left span {
    display: flex;
    align-items: center;
    margin-left: 0 !important; 
}
/* Tooltip - Now Theme-Aware */
.tooltip {
    position: absolute;
    background: var(--header-footer);
    color: var(--accent);
    padding: 6px 10px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    white-space: nowrap;
    z-index: 3333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transform: translateY(-4px);
}
.tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Scaling */
@media (max-width: 600px) {
    h1 { font-size: 1.8rem; }
    main { padding: 20px 15px; }
}



/* Theme-aware Scrollbar */

/* Works in Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--background);
}

/* Works in Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 6px;
    border: 2px solid var(--background);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text);
}








* {
  -webkit-tap-highlight-color: transparent;
}