    :root {
    --accent: #1a1a1a;
    --dim: #888;
    --bg: #fdfdfd;
    --border: #eeeeee;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: var(--bg);
    color: var(--accent);
    /* Classic minimalist font stack */
    font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Slim, sophisticated progress bar */
#progress-container {
    position: fixed;
    top: 0;
    width: 100%;
    height: 2px;
    background: transparent;
}
#progress-bar {
    height: 100%;
    background: var(--accent);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.content-box {
    max-width: 540px;
    width: 100%;
}

/* Using a Serif for the quote makes it feel more thoughtful */
#quote {
    font-family: "Georgia", serif;
    font-size: 2.2rem;
    line-height: 1.3;
    font-weight: 400;
    display: block;
    margin-bottom: 12px;
}

#author {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--dim);
    margin-bottom: 48px;
    display: block;
}

#explanation {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    border-left: 2px solid var(--accent);
    padding-left: 24px;
    margin-top: 20px;
    font-weight: 300;
}

/* Button Refinement */
#refresh-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 100px; /* Pill shape */
    cursor: pointer;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dim);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 60px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

#refresh-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}


/* Smooth transitions */
.fade {
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.hidden {
    opacity: 0;
    transform: translateY(10px);
}

.minimal-footer {
    position: fixed;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 20px;
    z-index: 10;
}

.minimal-footer a {
    text-decoration: none;
    font-size: 0.65rem;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.minimal-footer a:hover { color: var(--accent); }

/* Overlay Template */
.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.98);
    display: none;
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    max-width: 500px;
    padding: 40px;
    position: relative;
    animation: slideUp 0.4s ease;
}

.close-btn {
    position: absolute;
    top: -20px; right: 0;
    background: none; border: none;
    font-size: 2rem; cursor: pointer; color: var(--dim);
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

    /* Footer Styling */


    /* Updated Footer Area */
.footer-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(255,255,255,1) 70%, rgba(255,255,255,0));
}

.stats {
    font-size: 0.65rem;
    color: #bbb;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.minimal-footer {
    display: flex;
    gap: 15px;
}

.minimal-footer a {
    text-decoration: none;
    font-size: 0.65rem;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

/* Mobile Adjustment: Stack them if the screen is very narrow */
@media (max-width: 480px) {
    .footer-container {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    .minimal-footer {
        order: -1; /* Puts links above the progress text on mobile */
    }
}
    .minimal-footer a:hover { color: #1a1a1a; }

    /* Overlay Template */
    .overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(255, 255, 255, 0.98);
        display: none;
        z-index: 1000;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(5px);
    }
    .overlay-content {
        max-width: 500px;
        width: 90%;
        padding: 60px 40px;
        position: relative;
        animation: slideUp 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }
    #overlay-body h2 {
        font-family: "Georgia", serif;
        font-weight: 400;
        font-size: 1.8rem;
        margin-bottom: 24px;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
    }
    #overlay-body p {
        font-size: 0.95rem;
        line-height: 1.8;
        color: #444;
        margin-bottom: 20px;
    }
    .close-btn {
        position: absolute;
        top: 20px; right: 20px;
        background: none; border: none;
        font-size: 1.5rem; cursor: pointer; color: #ccc;
        transition: color 0.2s;
    }
    .close-btn:hover { color: #000; }

    @keyframes slideUp {
        from { transform: translateY(30px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
/* Filter Bar Styling */
        .filter-bar {
        margin-bottom: 30px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .filter-tag {
        background: none;
        border: 1px solid #eee;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #bbb;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .filter-tag.active, .filter-tag:hover {
        border-color: #1a1a1a;
        color: #1a1a1a;
    }