/* Base styles */
html, body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f8f9fa;
color: #212529;
min-height: 100vh;
line-height: 1.6;
}
/* Container utility */
.container {
max-width: 800px;
margin: 0 auto;
padding: 1rem 1.5rem;
}
footer {
background-color: #34495e;
color: #ecf0f1;
padding: 2rem 0;
text-align: center;
border-top: none;
box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
font-size: 0.9rem;
}
footer .container {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}
footer p {
font-size: 0.85rem;
color: #bdc3c7;
line-height: 1.5;
margin: 0;
max-width: 600px;
}
footer p a {
color: #9bd3ff;
text-decoration: none;
transition: color 0.2s ease-in-out;
}
footer p a:hover {
color: #ecf0f1;
text-decoration: underline;
}
footer img {
vertical-align: middle;
margin-left: 0.5rem;
opacity: 0.8;
transition: opacity 0.2s ease-in-out;
}
footer img:hover {
opacity: 1;
}
footer nav {
margin-top: 0;
margin-bottom: 0;
display: flex;
gap: 1.5rem; /* Adjust this value to control spacing between links */
/* If you want them centered within the nav */
justify-content: center;
/* Allow items to wrap to the next line on smaller screens */
flex-wrap: wrap;
}
footer nav p {
margin: 0;
}
footer .social-contact {
display: flex;
gap: 1rem;
flex-wrap: wrap;
justify-content: center;
margin-top: 1rem;
}
footer .social-contact p {
margin: 0;
font-size: 1rem;
font-weight: 600;
}
footer .social-contact p img,
footer .social-contact p svg {
vertical-align: middle;
margin: 0 0.25rem;
width: 24px;
height: 24px;
opacity: 0.9;
transition: opacity 0.2s ease-in-out;
}
footer .social-contact p img:hover,
footer .social-contact p svg:hover {
opacity: 1;
}
@media (max-width: 600px) {
footer .container {
padding: 1.5rem;
}
footer p {
font-size: 0.8rem;
}
}
/* Header */
header#site-header {
background-color: #2c3e50;
color: #ecf0f1;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
header#site-header .container {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
padding: 1rem 0;
}
header#site-header .logo {
font-size: 1.8rem;
font-weight: bolder;
position: relative;
}
header#site-header .logo a {
color: inherit;
text-decoration: none;
position: relative;
display: inline-block;
}
header#site-header .logo a::after {
content: "";
position: absolute;
left: 0;
bottom: -2px;
width: 100%;
height: 2px;
background-color: #ecf0f1;
transform: scaleX(0);
transform-origin: left;
transition: transform 0.3s ease;
}
header#site-header .logo a:hover::after {
transform: scaleX(1);
}
/* Layout */
.layout {
display: flex;
max-width: 1200px;
margin: 2rem auto;
padding: 0 1.5rem;
gap: 2rem;
}
/* Responsive layout */
@media (max-width: 900px) {
.layout {
flex-direction: column;
}
}
/* Main content */
main.container {
flex: 1;
background-color: #ffffff;
padding: 2rem;
border-radius: 6px;
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
main h1 {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 1rem;
border-bottom: 2px solid #2c3e50;
padding-bottom: 0.3rem;
}
main article p {
font-size: 1rem;
color: #444;
}
/* Content area */
main {
margin-left: 200px;
padding: 1rem;
}
/* Responsive main */
@media (max-width: 900px) {
main.container {
margin: 0;
}
}
@media (max-width: 600px) {
main {
margin-left: 0;
padding: 1rem 0.5rem;
}
}
.menu-years,
.menu-months,
.menu-posts {
list-style: none;
padding-left: 0;
margin: 0;
}
.menu-year {
margin-bottom: 1em;
}
.year-label {
font-weight: bold;
font-size: 1.2em;
display: block;
margin-bottom: 0.5em;
}
.menu-month {
margin-left: 1em;
margin-bottom: 0.5em;
}
.month-label {
font-weight: normal;
display: block;
margin-bottom: 0.3em;
}
.menu-posts {
margin-left: 1em;
}
.menu-posts li {
margin-bottom: 0.3em;
}
.menu-posts a {
text-decoration: none;
color: #007bff;
}
.menu-posts a:hover {
text-decoration: underline;
}
header#site-header nav.site-nav {
display: flex;
gap: 1rem;
}
header#site-header nav.site-nav a {
text-decoration: none;
font-weight: 600;
padding: 0.3rem 0.6rem;
border-radius: 3px;
transition: background-color 0.2s ease-in-out;
}
header#site-header nav.site-nav > a {
color: #ecf0f1;
}
header#site-header nav.site-nav a:hover,
header#site-header nav.site-nav a:focus {
background-color: #34495e;
}
nav.site-nav .dropdown {
position: relative;
display: inline-block;
}
nav.site-nav .dropbtn {
display: inline-block;
cursor: pointer;
}
nav.site-nav .dropdown-content {
display: none;
position: absolute;
background-color: white;
min-width: 160px;
z-index: 1;
box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
}
nav.site-nav .dropdown-content a {
display: block;
padding: 12px 16px;
text-decoration: none;
color: #2c3e50;; /* fixme */
}
nav.site-nav .dropdown-content a:hover {
color: #ecf0f1;
background-color: #f1f1f1;
}
nav.site-nav .dropdown:hover .dropdown-content {
display: block;
}
/* Navigation adjustments for small screens */
@media (max-width: 600px) {
nav.site-nav {
width: 100%;
height: auto;
float: none;
padding: 0.5rem;
text-align: center;
border-bottom: 1px solid #444;
background: #111;
}
nav.site-nav ul {
display: block;
justify-content: center;
flex-wrap: wrap;
gap: 1rem;
padding: 0.5rem 0;
margin: 0;
list-style: none;
}
nav.site-nav ul li {
margin: 0.25rem 0;
border: none;
}
nav.site-nav ul li a {
padding: 0.5rem 1rem;
display: block;
border-radius: 0;
}
nav.site-nav a {
text-transform: capitalize;
}
}
/* Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Sidebar */
.sidebar {
width: 250px;
background-color: #f8f9fa;
border-right: 1px solid #e0e0e0;
padding: 1em;
font-size: 0.95rem;
font-family: Arial, sans-serif;
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}
.sidebar h3.menu-year,
.sidebar h4,
.sidebar a {
text-transform: capitalize !important;
}
.sidebar .menu-year {
font-weight: 700;
font-size: 1.2rem;
color: #333333;
margin-bottom: 1rem;
border-bottom: 2px solid #2c3e50;
padding-bottom: 0.5rem;
text-transform: uppercase;
letter-spacing: 1px;
}
.sidebar nav ul {
list-style: none;
padding-left: 0;
}
.sidebar .menu-month {
margin-bottom: 1rem;
font-weight: 600;
color: #555555;
}
.sidebar .menu-month ul {
list-style: none;
padding-left: 1rem;
margin-top: 0.3rem;
}
.sidebar .menu-month li a {
color: #2c3e50;
text-decoration: none;
display: block;
padding: 0.2rem 0;
transition: color 0.2s ease-in-out;
}
.sidebar .menu-month li a:hover {
color: #1a73e8;
text-decoration: underline;
}
/* Responsive sidebar */
@media (max-width: 900px) {
.sidebar {
width: 100%;
border-right: none;
border-bottom: 1px solid #e0e0e0;
margin-bottom: 1rem;
}
}
/* Enhanced TOC Styles */
.toc {
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 8px;
box-sizing: border-box;
margin-bottom: 1em;
padding: 1.5em;
transition: all 0.3s ease;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.toc.sticky {
position: fixed;
top: 20px;
z-index: 1000;
max-height: calc(100vh - 40px);
overflow-y: auto;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
border-color: #dee2e6;
}
.toc.sticky.bottom-boundary {
position: fixed;
max-height: none;
overflow-y: auto;
}
/* Custom Scrollbar - Subtle and Non-intrusive */
.toc::-webkit-scrollbar {
width: 6px;
}
.toc::-webkit-scrollbar-track {
background: transparent;
border-radius: 3px;
}
.toc::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.2);
border-radius: 3px;
transition: background 0.3s ease;
}
.toc::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.4);
}
/* Firefox Scrollbar */
.toc {
scrollbar-width: thin;
scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}
/* TOC Content Styles */
.toc ul {
list-style: none;
padding: 0;
margin: 0;
}
.toc li {
margin: 0.5rem 0;
position: relative;
}
.toc li.h3 {
margin-left: 1rem;
font-size: 0.9rem;
}
.toc a {
display: block;
padding: 0.5rem 0.75rem;
text-decoration: none;
color: #495057;
border-radius: 4px;
transition: all 0.2s ease;
border-left: 3px solid transparent;
word-wrap: break-word;
line-height: 1.4;
}
.toc a:hover {
background-color: #e9ecef;
color: #2c3e50;
border-left-color: #007bff;
transform: translateX(2px);
}
.toc a:focus {
outline: 2px solid #007bff;
outline-offset: 2px;
}
/* Active link highlighting */
.toc a.active {
background-color: #e3f2fd;
color: #1976d2;
border-left-color: #1976d2;
font-weight: 600;
}
.toc-header {
font-weight: 700;
font-size: 1.1rem;
margin-bottom: 1rem;
color: #2c3e50;
border-bottom: 2px solid #dee2e6;
padding-bottom: 0.5rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Responsive adjustments */
@media (max-width: 900px) {
.toc.sticky {
position: relative;
top: auto;
left: auto;
width: auto !important;
max-height: 300px;
z-index: auto;
}
}
@media (max-width: 600px) {
.toc {
padding: 1rem;
margin-bottom: 1.5rem;
}
.toc-header {
font-size: 1rem;
}
.toc a {
padding: 0.4rem 0.5rem;
font-size: 0.9rem;
}
.toc li.h3 {
margin-left: 0.5rem;
}
}
/* Sidebar adjustments for better TOC integration */
.sidebar {
width: 250px;
background-color: #f8f9fa;
border-right: 1px solid #e0e0e0;
padding: 1em;
font-size: 0.95rem;
font-family: Arial, sans-serif;
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
position: relative; /* Ensure proper positioning context */
}
/* Ensure proper spacing between sidebar sections */
.sidebar nav > * + .toc {
margin-top: 2rem;
border-top: 1px solid #dee2e6;
padding-top: 1.5rem;
}
/* Animation for smooth transitions */
.toc {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.toc.sticky {
animation: slideInSticky 0.3s ease-out;
}
@keyframes slideInSticky {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}