/* === Reset and Base === */
body {
    background-color: #1e1e1e;
    color: #d0d0d0;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

/* === Navigation Bar === */
nav {
    background-color: #2c2c2c;
    padding: 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: #4ecdc4;
    margin: 0 20px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* === Main Content Area === */
main {
    max-width: 900px;
    margin: 40px auto;
    background-color: #2c2c2c;
    padding: 30px;
    border-radius: 6px;
}

/* === Typography === */
h1, h2 {
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

p {
    line-height: 1.6;
}

/* === Images === */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

/* === Pagination === */
.pagination {
    text-align: center;
    margin-top: 50px;
}

.pagination a {
    color: #4ecdc4; /* Pagination link color */
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
}

.pagination a:hover {
    text-decoration: underline;
}

/* === Footer === */
footer {
    text-align: center;
    color: #666;
    margin: 40px 0;
}

/* === Auto Format Text === */
.auto-format {
    white-space: pre-line;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: inherit;
    color: inherit;
}

/* === Horizontal Rule / Divider === */
hr {
    margin: 40px 0;
    border: none;
    border-top: 1px solid #444;
}

/* === Bold === */
b {
    color: #ffb86c;
    font-weight: normal;
    /*background-color: rgba(255, 184, 108, 0.1); !* subtle highlight glow *!*/
    font-size: 0.95em; /* Slightly smaller than surrounding text */
    padding: 0 4px;
    border-radius: 2px;
}

/* === Bulletin list === */
ul {
    padding-left: 1.2em;
    margin-bottom: 1em;
    list-style-type: disc;
    font-size: 0.95em; /* slightly smaller than normal text */
}

li {
    margin-bottom: 1em;
}

/* ==== Smooth jumping between links ===*/
html {
    scroll-behavior: smooth;
}

/* Modify all links to match the navigation link color */
a {
    color: #4ecdc4; /* Set the color to match navigation links */
    text-decoration: none; /* Remove underline from links */
}

/* Optional: Add hover effect for all links */
a:hover {
    text-decoration: underline; /* Add underline on hover for better UX */
}

/* Optional: Target links specifically inside the About Me content */
.about-content a {
    color: #4ecdc4; /* Ensure links in the About section match the navbar color */
}

/* === Subtle Code Block Styling === */
pre {
    background-color: #262626; /* slightly softer than pure black */
    border: 1px solid #333;
    border-radius: 6px;
    padding: 1em;
    overflow-x: auto;
    font-size: 0.85em; /* smaller and more discreet */
    line-height: 1.4;
    color: #bbbbbb; /* softer text color */
    box-shadow: none; /* remove glow to reduce visual weight */
}

code {
    font-family: 'Consolas', 'Fira Code', monospace;
    color: inherit; /* uses the subtle color from <pre> */
}

.code-highlight {
    color: #ffb86c;
    font-family: 'Consolas', 'Fira Code', monospace;
    /*color: inherit;  !* uses the subtle color from <pre> *!*/
}

.code-bold {
    color: #ffb86c;
    font-weight: bold;
    font-size: 1em; /* Slightly smaller than surrounding text */
    padding: 0 4px;
    border-radius: 2px;
}

/* === Caption text === */
.image-with-caption {
    text-align: center;
    margin-bottom: 4em;
}

.image-caption {
    font-size: 0.85em;
    color: #999;
    margin-top: 0.0em;
}

/* Base content block styling */
.content-box {
    padding: 1em;
    background-color: #1e1e1e;
    border-radius: 8px;
    margin-bottom: 2em;
    color: #aaaaaa;
}

.content-box p {
    color: #777;
    font-size: 0.9em;
    line-height: 1.4;
}

.content-box h2 {
    margin-top: 0;
}

/* Base content block styling */
.image-box {
    padding: 1em;
    /*text-align:  center;*/
    background-color: #1e1e1e;
    border-radius: 8px;
    color: #aaaaaa;
}

.image-box p {
    color: #777;
    font-size: 0.9em;
    line-height: 1.4;
}

div {
    margin-bottom: 2em;
}

/* === Step by step section === */
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 2rem;
}

.step {
    display: grid;
    grid-template-columns: minmax(220px, 420px) 1fr;
    gap: 1.5rem;
    align-items: start;
}

.step-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.step-content h3 {
    margin: 0 0 0.5rem 0;
}

.step-content p {
    margin: 0 0 0.75rem 0;
}

/* Mobile */
@media (max-width: 800px) {
    .step {
        grid-template-columns: 1fr;
    }
}

/* Images next to each other, 2x */
.two-up {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.two-up a {
    flex: 1;              /* each takes half the row */
}

.two-up img {
    width: 100%;
    margin: 0;            /* override your global img margin */
}

/* === Scroll Indicator === */
#scroll-indicator {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
    z-index: 100;
}

#scroll-indicator.hidden {
    opacity: 0;
}

#scroll-indicator svg {
    width: 42px;
    height: 42px;
    color: #4ecdc4;
    opacity: 0.9;
    animation: scroll-bounce 1.6s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(78, 205, 196, 0.4));
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0);   }
    50%       { transform: translateY(6px); }
}