/* theme: mid-2000s, "old web" */
/* background, font */
body {
    margin: 0;
    font-family: DejaVuSansMono, monospace;
    background: #141018;                /* deep night */
    color: #f2eadb;                     /* warm paper */
    background-image:
        radial-gradient(circle at 20% 10%, rgba(255, 214, 102, 0.18), transparent 40%),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.08), transparent 35%),
        linear-gradient(180deg, #0b1020, #070a12);
}

/* Centered site frame */
.wrap {
    max-width: 980px;               /* desktop size */
    margin: 0 auto;                 /* centers */
    padding: 12px;
}

/* A shiny-ish container */
.frame {
    border: 2px solid #d7b35d;              /* gold */
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(255, 214, 102, 0.12);
}

/* HEADER */
header {
    position: relative;
    padding: 14px 12px;
    border-bottom: 2px solid rgba(215, 179, 93, 0.7);
    background:
        linear-gradient(180deg, rgba(215, 179, 93, 0.25), rgba(0, 0, 0, 0.25));
}

/* "Last Updated" in header */
#last-updated {
    position: absolute;             /* float it over the header */
    top: 12px;                      /* same padding as header */
    right: 12px;                   /* same padding from right edge */
    font-size: 11px;               /* small, understated */
    color: rgba(245, 241, 230, 0.6);                /* slightly muted warm paper */
    font-style: italic;             /* subtle, old-web vibe */
}

#secretLink {
    position: absolute;
    bottom: 0;
    right: 0;

    width: 10px;     /* clickable area size */
    height: 10px;

    display: block;
    background: transparent;
}

.banner {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(245, 241, 230, 0.45);
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

h1 {
    margin: 0;
    font-size: 24px;
    color: #ffd666;                    /* gold */
    text-shadow: 0 1px 0 rgba(0,0,0,0.8);
}

.tagline {
    margin: 4px 0 0;
    color: rgba(245, 241, 230, 0.85);
    font-size: 13px;
}

/* i-tittle clear storage button */
.i-dot {
    position: relative;
    display: inline-block;
}

#clearStorageBtn {
    position: absolute;
    top: 0.3em;
    left: 0.05em;
    width: 0.6em;
    height: 0.5em;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0;
}






/* MARQUEE */
.marquee {
    border: 1px solid rgba(255, 214, 102, 0.35);
    background: rgba(0, 0, 0, 0.35);
    margin: 10px 12px 0;
    padding: 6px;
    font-size: 12px;
}

/* NAV */
nav {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 2px solid rgba(215, 179, 93, 0.45);
    background: rgba(255, 214, 102, 0.08);
    padding: 6px;
    margin-top: 11px;
}

nav ul {
    margin: 0;
    padding: 8px 10px;
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.nav-bell-item {
    margin-left: auto;
    margin-right: 5px;

    width: 26px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 26px;
}

.nav-bell-wrap {
    width: 26px;
    height: 20px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    position: relative;

    overflow: visible;
}

.nav-bell {
    height: 18px;
    width: auto;

    display: block;

    opacity: 0.96;

    transform-origin: top center;
    will-change: transform;

    filter:
        drop-shadow(-0.5px 0px 0 rgba(255, 240, 190, 0.55))
        drop-shadow(0 1.5px 0 rgba(20, 16, 24, 0.95))
        drop-shadow(0 0 3px rgba(255, 214, 102, 0.14));
}

.nav-bell {
    transition:
        filter 0.18s ease,
        opacity 0.18s ease;
}

.nav-bell:hover {
    opacity: 1;

    filter:
        brightness(1.08)
        saturate(1.08)

        drop-shadow(-0.5px 0px 0 rgba(255, 240, 190, 0.62))
        drop-shadow(0 1.5px 0 rgba(20, 16, 24, 0.95))
        drop-shadow(0 0 4px rgba(255, 214, 102, 0.22));
}

.nav-bell-item {
    position: relative;
}

/*
    POPUP PANEL
*/

.nav-bell-popup {
    position: absolute;

    top: calc(100% + 10px);
    right: -6px;

    width: 270px;

    padding: 11px 12px 12px;

border: 1px solid rgba(245, 241, 230, 0.28);

    background:
        linear-gradient(
            180deg,
            rgba(24, 18, 30, 0.96),
            rgba(12, 10, 18, 0.98)
        );

    box-shadow:
        0 0 10px rgba(0, 0, 0, 0.42),
        0 0 12px rgba(255, 214, 102, 0.05);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(3px);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;

    z-index: 9999;
}

/*
    OPEN STATE
*/

.nav-bell-popup.is-open {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0);
}

/*
    CLOSE BUTTON
*/

.nav-bell-close {
    position: absolute;

    top: 4px;
    right: 6px;

    border: none;
    background: transparent;

    color: rgba(245, 241, 230, 0.42);

    font-size: 13px;

    cursor: pointer;

    padding: 0;

    opacity: 0.72;
}

.nav-bell-close:hover {
    opacity: 1;
    color: #ffd666;
}

/*
    TEXT
*/

.nav-bell-text {
    margin: 0 0 10px;

    font-size: 11px;
    line-height: 1.5;

    color: rgba(245, 241, 230, 0.82);

    font-style: italic;
}

.nav-bell-private {
    color: rgba(245, 241, 230, 0.48);
}

/*
    FORM
*/

.nav-bell-form {
    display: flex;
    gap: 6px;
}

/*
    INPUT
*/

.nav-bell-input {
    flex: 1;

    min-width: 0;

    border: 1px solid rgba(245, 241, 230, 0.22);

    background: rgba(0, 0, 0, 0.24);

    color: #f5f1e6;

    padding: 5px 6px;

    font-family: inherit;
    font-size: 11px;
}

.nav-bell-input:focus {
    outline: none;

    border-color:
        rgba(255, 214, 102, 0.55);

    background:
        rgba(255, 214, 102, 0.04);
}

/*
    BUTTON
*/

.nav-bell-submit {
    border: 1px solid rgba(255, 214, 102, 0.28);

    background:
        rgba(255, 214, 102, 0.08);

    color: #ffd666;

    padding: 5px 7px;

    font-family: inherit;
    font-size: 11px;

    cursor: pointer;
}

.nav-bell-submit:hover {
    background:
        rgba(255, 214, 102, 0.16);

    border-color:
        rgba(255, 214, 102, 0.5);
}

.nav-bell-submit:disabled {
    opacity: 1;

    cursor: default;

    color: #ffd666;

    background:
        rgba(255, 214, 102, 0.10);

    border-color:
        rgba(255, 214, 102, 0.35);
}

.nav-bell-input:disabled {
    opacity: 0.55;
}

/*
    SUCCESS MESSAGE
*/

.nav-bell-success {
    margin-top: 2px;

    padding: 6px 2px 2px;

    font-size: 11px;
    line-height: 1.5;

    color: rgba(245, 241, 230, 0.82);

    font-style: italic;

    opacity: 0.92;
}

@media (max-width: 700px) {

    .nav-bell-popup {
        right: 0;
        width: min(270px, calc(100vw - 32px));
    }
}

nav a {
    color: #f5f1e6;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid rgba(245, 241, 230, 0.25);
    background: rgba(0, 0, 0, 0.25);
    font-size: 13px;
}

nav a:hover {
    background: rgba(255, 214, 102, 0.18);
    border-color: rgba(255, 214, 102, 0.75);
}
    /* "NEW!" badge for Odd Days in Nav */
#odd-days-link {
    position: relative; /* anchor for badge */
}   

#tea-time-link {
    position: relative; /* anchor for badge */
}   

#top-bunk-link {
    position: relative; /* anchor for badge */
}   

.new-badge {
    position: absolute;
    top: -6px;
    right: -6px;

    width: 15px;  
    height: 11px;


    display: flex;     
    
    padding: 1px 5px;
    font-size: 9px;
    font-weight: bold;
    color: #000;
    background: #ffd666;
    border: 1px solid #d7b35d;

    text-transform: uppercase;
    pointer-events: none; /* click still goes to link */
    animation: glow 1.8s ease-in-out infinite alternate;
}

.tea-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    
    align-items: center;
    justify-content: center;

    width: 15px;  
    height: 11px;
    
    display: flex;
    
    padding: 1px 5px;
    font-size: 9px;
    font-weight: bold;
    color: #000;
    background: #ffd666;
    border: 1px solid #d7b35d;

    text-transform: uppercase;
    pointer-events: none; /* click still goes to link */
    animation: glow 1.8s ease-in-out infinite alternate;
}

.tea-badge img {
    max-width: 110%;
    max-height: 110%;
    object-fit: contain;
    display: block;
    transform: translatex(-1px);
    z-index: 1;
    filter: drop-shadow(0px 0.5px 1px rgba(0, 0, 0, 0.9));
}

.bunk-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    
    align-items: center;
    justify-content: center;

    width: 15px;  
    height: 11px;
    
    display: flex;
    
    padding: 1px 5px;
    font-size: 9px;
    font-weight: bold;
    color: #000;
    background: #ffd666;
    border: 1px solid #d7b35d;

    text-transform: uppercase;
    pointer-events: none; /* click still goes to link */
    animation: glow 1.8s ease-in-out infinite alternate;
}

.bunk-badge img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transform: translateX(-1px);
    z-index: 1;
    filter: drop-shadow(-0.5px 1px 1px rgba(92, 64, 28, 0.9));
}




@keyframes glow {
    from { box-shadow: 0 0 4px rgba(255, 214, 102, 0.4); }
    to   { box-shadow: 0 0 8px rgba(255, 214, 102, 0.9); }
}






/* BODY */

    /* Three-Column layout */
.columns {
    display: grid;
    grid-template-columns: 220px 1fr 220px; /* left, main, right */
    gap: 12px;
    padding: 12px;
}

    /* Make it mobile-friendly: stack columns */
@media (max-width: 820px) {
    .columns {
        grid-template-columns: 1fr;     /* stack */
    }
}


    /* BOXES */
.box {
    border: 1px solid rgba(245, 241, 230, 0.28);
    background: rgba(0, 0, 0, 0.25);
    margin-bottom: 12px;
}

.box h2 {
    margin: 0;
    padding: 8px 10px;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(245, 241, 230, 0.18);
    background: rgba(255, 214, 102, 0.10);
    color: #ffd666;
    text-transform: uppercase;
}

    /* POSTS */
.post {
    position: relative;
    padding: 10px;
    border-bottom: 1px dashed rgba(245, 241, 230, 0.25);
}
    
    .post:last-child { border-bottom: 0; }

.post-title {
    margin: 0 0 6px;
    font-size: 16px;
    color: #ffd666;
}

.meta {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 8px;
}


    /* WHO? */
        /* Justify text only in the "Who?" section */
.who-content {
    max-width: 90%;  /* Keeps the width from stretching too far */
    margin: 0 auto;  /* Centers the content within the section */
    padding: 12px;
    font-size: 13px;
    line-height: 1.6;  /* More space between lines */
    text-align: justify;  /* Spreads out the text evenly */
    text-align-last: left; /* Ensures the last line aligns left */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);  /* Subtle text shadow for depth */
    margin-top: 6px;
    margin-bottom: 6px;
    margin-left: 8px;
    margin-right: 12px;
}
        /* Container for the sentence */
.invite {
    position: relative;
}

.you {
    text-decoration: underline;
    cursor: pointer;
    color: #b7e4ff;
}

.you:hover { color: #ffffff; }

        /* OUTER LAYER — reach, scale */
.hand-wrap {
    position: absolute;
    left: 100%;
    top: 50%;
    pointer-events: none;
    opacity: 0;

    transform:
        translateY(-50%)
        scale(0.82)
        rotate(-4deg);

    transition:
        opacity 0.35s ease,
        transform 1.0s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    transition-delay: 0.15s;
    z-index: 1;
    margin-left: -0.25em;
}

        /* Hover trigger */
.you:hover + .hand-wrap {
    opacity: 1;
    transform:
        translateY(-50%)
        scale(1.04)
        rotate(1deg);
}

        /* INNER LAYER — breath */
.hand {
    width: 130px;
    display: block;
    animation: hand-breathe 6s ease-in-out infinite;
}

        /* Subtle breathing motion */
@keyframes hand-breathe {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1px);
    }

    100% {
        transform: translateY(0);
    }
}

.waypoint-text{
text-align:center;

font-size: 12px;
opacity:.85;
letter-spacing:.5px;
margin:8px 0 17px 0;
font-style:italic;
}

.box:has(.waypoint-box) h2:before{
content:"◆";
color:#ffd666;
margin-right:6px;
opacity:.7;
}

.box iframe{
margin-bottom:15px;
}

    /* RESOURCES FOR YOUNG MEN */
.resources-header {
    position: relative; /* allows absolute positioning if needed */
    cursor: default;   /* optional: subtle hint for hover */
}

.resources-header .subtitle {
    font-size: 0.85em;           /* slightly smaller than main text */
    color: #d4af37;
    text-shadow: 0 0 8px #fff8dc; /* soft highlight */
    opacity: 0;                   /* invisible initially */
    margin-left: 6px;             /* small spacing from main word */
    transition: opacity 0.8s ease; /* smooth fade-in */
}

.resources-header:hover .subtitle {
    opacity: 1;
}

.tooltip-link {
    position: relative;
}

.tooltip-text {
    position: fixed;
    width: 200px;
    top: 0;
    padding: 10px;
    background-color: #fff8dc; /* old-web cream/gold */
    border: 2px solid #d4af37; /* gold accent */
    font-size: 11px;
    color: #333;
    opacity: 0;
    pointer-events: none; /* avoid blocking mouse */
    transition: opacity 0.4s ease; /* fade-in/out */
    z-index: 10;
}

.tooltip-link:hover .tooltip-text {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.6s ease; /* slower fade-in */
}

.tooltip-link .tooltip-text:hover {
    opacity: 1; /* remain visible if hovering over tooltip */
}

.tooltip-link:hover .tooltip-text {
    transition: opacity 0.6s ease; /* fade-in */
}

.tooltip-text {
    transition: opacity 0.2s ease-out; /* fade-out slightly faster */
    padding: 10px 12px;
    text-align: justify;
    line-height: 1.45;
}

.box .content {
    padding: 10px;
    font-size: 13px;
    line-height: 1.45;
}

/* Waypoint box: let the iframe sit more flush */
.box:has(.waypoint-box) .content {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 10px;
}

/* GENERIC FLIP BOX */
.flip-box {
    padding: 0;
    background: transparent;
    border: none;
}

.flip-wrap {
    perspective: none;
}

.flip-card {
    position: relative;
    height: 328px; /* test this; change freely */
}

.flip-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;

    border: 1px solid rgba(245, 241, 230, 0.28);
    background: rgba(0, 0, 0, 0.25);
}

.flip-front {
    z-index: 2;
    display: flex;
}

.flip-back {
    display: none;
    background:
        linear-gradient(180deg, rgba(255, 214, 102, 0.07), rgba(0, 0, 0, 0.28)),
        rgba(14, 10, 20, 0.92);
    border: 1px solid rgba(255, 214, 102, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.08);
}

.flip-front .content,
.flip-back .content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;

}

.flip-back .content {
    flex: 1;
    min-height: 0;
    overflow-y: hidden;

}

.flip-card.is-swapping {
    animation: flipMidSwap 0.47s linear;
}

@keyframes flipMidSwap {
    0%   { transform: scaleX(1); }
    49%  { transform: scaleX(0.03); }
    51%  { transform: scaleX(0.03); }
    100% { transform: scaleX(1); }
}

.flip-front h2,
.flip-back h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flip-btn {
    appearance: none;
    border: 1px solid rgba(255, 214, 102, 0.28);
    background: rgba(255, 214, 102, 0.06);
    color: #ffd666;
    font: inherit;
    font-size: 12px;
    line-height: 1;
    padding: 2px 6px;
    cursor: pointer;
    opacity: 0.82;
    transition:
        opacity 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.flip-btn:hover {
    opacity: 0.95;
    background: rgba(255, 214, 102, 0.08);
    border-color: rgba(255, 214, 102, 0.28);
    transform: none;
}

.flip-btn:focus-visible {
    outline: 1px solid rgba(255, 214, 102, 0.7);
    outline-offset: 2px;
}

.flip-back .content {
    font-size: 12.5px;
    line-height: 1.55;
}

.flip-back .content p {
    margin-top: 0;
}

.flip-label {
    margin: 14px 0 8px;
    color: #ffd666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.9;
}

/* INDEX TOKENS SCROLLBAR (matches chatbox style) */

.flip-front .content::-webkit-scrollbar,
.flip-back .content::-webkit-scrollbar {
    width: 13px;
}


.flip-front .content::-webkit-scrollbar-track,
.flip-back .content::-webkit-scrollbar-track {
    background: rgba(0,0,0,.25);
}

.flip-front .content::-webkit-scrollbar-thumb,
.flip-back .content::-webkit-scrollbar-thumb {
    background: rgba(215,179,93);   /* was .55 */
    border: 1px solid rgba(255,214,102,.6);
}

.flip-front .content::-webkit-scrollbar-thumb:hover,
.flip-back .content::-webkit-scrollbar-thumb:hover {
    background: #ffd666;
}

.index-token-box-content {
    padding-top: 8px;
}

.index-token-section {
    position: relative;
    padding: 0 10px 0 20px; /* left room for icon, right room to balance */
}

.index-token-section + .index-token-section {
    margin-top: 10px;
}

.index-token-label {
    position: absolute;
    left: 0;
    top: 18px;              /* main tuning value */
    width: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    line-height: 1;
    color: #ffd666;
    opacity: 0.95;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.index-token-list {
    min-width: 0;
}

.index-token-list .token-list-item {
    padding: 6px 7px;
}

.index-token-list .token-list-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.index-token-more {
    margin: 14px 0 0;
    font-size: 11px;
    color: rgba(245, 241, 230, 0.68);
    text-align: center;
    font-style: italic;
}

.index-token-more a {
    color: #ffd666;
    text-decoration: none;
}

.index-token-more a:hover {
    text-decoration: underline;
}

.flip-back .index-token-list .token-list-item {
    background: rgba(0, 0, 0, 0.2);
}

/* BACK OF TOKEN CARD: FLAVOR TEXT */
.index-token-back-text {
    margin: 0 0 10px;
    font-size: 11px;
    line-height: 1.45;
    color: rgba(245, 241, 230, 0.78);
    font-style: italic;
}

/* BACK ARCHIVE BLOCK */
.index-token-archive-block {
    margin-top: 4px;
}

/* VERY SMALL ARCHIVE LIST */
.index-token-archive-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.index-token-archive-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(245, 241, 230, 0.16);
    background: rgba(0, 0, 0, 0.15);
    padding: 4px 5px;
}

.index-token-archive-item:hover {
    border-color: rgba(255, 214, 102, 0.35);
    background: rgba(255, 214, 102, 0.05);
}

.index-token-archive-row {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.index-token-archive-thumb {
    width: 12px;
    height: 12px;
    border: 1px solid var(--author-color, #ffd666);
    border-radius: 3px;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, 0.05);
}

.index-token-archive-title {
    min-width: 0;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
    line-height: 1.2;
    color: #f5f1e6;
}

.index-token-archive-date {
    font-size: 9px;
    line-height: 1;
    color: rgba(245, 241, 230, 0.5);
    white-space: nowrap;
}

.index-token-archive-code {
    display: inline-block;
    min-width: 2.6em;
    padding: 2px 4px 1px;
    border: 1px solid rgba(255, 214, 102, 0.28);
    border-radius: 7px;
    background: rgba(255, 214, 102, 0.04);
    color: rgba(255, 214, 102, 0.88);
    font-size: 8px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
}

.flip-back .index-token-box-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.index-token-archive-block {
    margin-top: 8px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;

    padding-top: 8px;
    padding-bottom: 8px;

    border-top: 1px solid rgba(255, 214, 102, 0.18);
    border-bottom: 1px solid rgba(255, 214, 102, 0.18);
    transform: translatey(-9px);
}

.index-token-archive-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    min-height: 0;
    flex: 1;
    overflow-y: auto;

    padding-top: 2px;
    padding-left: 10px;
    padding-right: 8px;
    padding-bottom: 2px;
}

.flip-back .index-token-more {
    margin-top: 10px;
}

.index-token-archive-list::-webkit-scrollbar {
    width: 7px;
}

.index-token-archive-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,.25);
}

.index-token-archive-list::-webkit-scrollbar-thumb {
    background: rgba(215,179,93);
    border: 1px solid rgba(255,214,102,.6);
}

.index-token-archive-list::-webkit-scrollbar-thumb:hover {
    background: #ffd666;
}

    /* READING BOX */
.reading {
    text-align: center;
    border: 2px solid rgba(245, 241, 230, 0.25);
    background: rgba(0, 0, 0, 0.35);             
    margin-bottom: 12px;
    border: 1px solid rgba(245, 241, 230, 0.28);
    background: rgba(0, 0, 0, 0.25);
}

.reading-padding {
    padding: 12px;
}

.reading h2 {
    text-align: left;
    margin: 0;
    padding: 8px 10px;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(245, 241, 230, 0.18);
    background: rgba(255, 214, 102, 0.10);
    color: #ffd666;
    text-transform: uppercase;
}

.currently-reading {
    font-size: 0.9rem;
    color: #ffd666;
    font-weight: bold;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.book-title {
    font-size: 1.05rem;
    color: #ffd666;
    margin: 8px 0;
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}
        /* Book Title Underline Animation */
.book-title:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 214, 102, 0.75), rgba(255, 214, 102, 0.3), rgba(255, 214, 102, 0.75));
    animation: wave 13s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
    transform: scaleX(0.50);
    }
    50% {
    transform: scaleX(0.95);
    }
}

.reading p.author {
    font-size: 0.9rem;
    color: #d4af37; 
    font-style: italic;
    margin: 6px 0;
}

.reading img {
    width: 120px;             /* Moderate size */
    height: auto;
    border: 2px solid #ffd666;  /* Matching gold border */
    box-shadow: 0 0 10px rgba(255, 214, 102, 0.4); /* Glow effect */
    transition: transform 0.69s ease-in-out, box-shadow 0.95s ease-in-out;
    transform: rotate(-0.5deg) scale(0.90) ;  /* Slight tilt and shrink initially */
}

.reading img:hover {
    transform: rotate(0.92deg) scale(0.92);  /* Rotate more in the opposite direction and grow slightly */
    box-shadow: 0 0 12px rgba(255, 214, 102, 0.8); /* Brighter glow on hover */
}

.reading p.published {
    font-size: 0.8rem;
    color: #d4af37;
    opacity: 0.85;
    margin-top: 8px;
}

.reading .first-impression {
    font-size: 0.93rem;
    font-style: italic;
    color: #f5f1e6;
    margin-top: 12 px;
}

.progress-bar-container {
    width: 100%; /* Full width of the reading box */
    height: 3px; /* Height of the progress bar */
    background-color: transparent; /* Hollow appearance */
    border-radius: 10px; /* Rounded corners */
    border: 1px solid rgba(255, 214, 102, 0.35); /* Subtle outline */
    margin-top: 12px; /* Space between first impression and progress bar */
    position: relative; /* For positioning black lines */
}

        /* Lineation indicators */
.progress-bar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16.66%;  /* 1/6th */
    width: 1px;
    height: 50%;
    background: rgba(255, 214, 102, 0.75);
    opacity: .5;
    transform: translateY(50%); /* Adjust to center */
}

.progress-bar-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 33.33%;  /* 2/6th */
    width: 1px;
    height: 50%;
    background: rgba(255, 214, 102, 0.75);
    opacity: .75;
    transform: translateY(50%); /* Adjust to center */
}

.progress-bar-container .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;  /* 3/6th */
    width: 1px;
    height: 50%;
    background: rgba(255, 214, 102, 0.75);
    opacity: .5;
    transform: translateY(50%); /* Adjust to center */
}

.progress-bar-container .progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 66.66%;  /* 4/6th */
    width: 1px;
    height: 50%;
    background: rgba(255, 214, 102, 0.75);
    opacity: .75;
    transform: translateY(50%); /* Adjust to center */
}

.progress-bar-container .progress-bar .progress-indicator {
    position: absolute;
    top: 0;
    left: 83.33%;  /* 5/6th */
    width: 1px;
    height: 50%;
    background: rgba(255, 214, 102, 0.75);
    opacity: .5;
    transform: translateY(50%); /* Adjust to center */
}

    /* Progress Bar (Inner Box) */
.progress-bar {
    width: 100%;
    height: 100%;
    background-color: transparent; /* Hollow effect */
    position: relative;
    border-radius: 10px; /* Rounded corners */
    display: flex;
}

    /* Progress Fill (Dynamic Filling) */
.progress-fill {
    background-color: #ffd666; /* Gold-like fill color */
    height: 100%;
    border-radius: 10px; /* Match the rounded corners */
    transition: width 0.5s ease-in-out; /* Smooth transition for filling */
}

    /* PLACEHOLDER WEBRING BUTTONS */
.buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn88 {
    height: 31px;
    border: 1px solid rgba(245, 241, 230, 0.35);
    background: rgba(255, 255, 255, 0.06);
    display: grid;
    place-items: center;
    font-size: 11px;
    letter-spacing: 0.3px;
}






/* ODD DAYS SPECIAL FORMATTING */

    /* Two-column layout */
body.odd-days .columns {
    grid-template-columns: 220px 1fr;
    align-items: start;
}


@media (max-width: 820px) {
    body.odd-days .columns {
        grid-template-columns: 1fr; /* stack columns on mobile */
    }
}

.odddays-post-header {
    background: rgba(255, 214, 102, 0.12); /* Subtle gold background */
    padding: 10px 12px;
    text-align: center;
    font-size: 12px;
    color: #f5f1e6;
    font-style: italic;
    margin-bottom: 12px;
    border-radius: 8px; /* Rounded edges for subtlety */
    opacity: 0.8;
}

    /* Post header glowing */
.odddays-post-header p {
    margin: 0;
    animation: fadeIn 4s ease-out infinite alternate;
}

@keyframes fadeIn {
    0% { opacity: 0.6; }
    100% { opacity: 0.9; }
}

    /* Header expand when all posts are read */
.fade-in-expand {
    animation: fadeInRetro 1.5s ease-out forwards;
    max-height: 200px; /* Adjust this based on the actual height of your header */
    overflow: hidden;  /* Prevent content from overflowing during the animation */
}

@keyframes fadeInRetro {
    0% {
    opacity: 0;
    max-height: 0;    /* Start with zero max-height */
    padding-top: 0;
    padding-bottom: 0;
    }
    100% {
    opacity: 1;
    max-height: 200px; /* Set a large enough max-height to accommodate content */
    padding-top: 12px;
    padding-bottom: 12px;
    }
}

    /* Odd Days Archive Post Header */
.odddays-archive-header {
    position:relative;
    background: rgba(255, 214, 102, 0.12); /* Subtle gold background */
    padding: 10px 12px;
    text-align: center;
    font-size: 14px;  /* Slightly larger text for better visibility */
    color: #f5f1e6;   /* Keep warm paper color */
    font-style: italic;
    margin-bottom: 12px;
    border-radius: 8px; /* Rounded edges for subtlety */
    opacity: 0.8;
}

.odddays-archive-header p {
    margin: 0;
    animation: fadeIn 4s ease-out infinite alternate;
}

.back-btn {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%); /* Vertically center the button */
    font-size: 14px;     /* A little larger font */
    color: #ffd666;      /* Gold text color */
    text-decoration: none;
    font-style: normal;  /* Remove italics for the button */
    opacity: 0.85;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.back-btn:hover {
    opacity: 1;          /* Make it fully visible on hover */
    text-decoration: underline;
}



    /* Odd Days Post Sign-offs & Reactions */
.post-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-top: 8px;
}

.sign-off {
    display: flex;
    align-items: center;
    margin-left: 24px; 
    margin-top: 12px;             /* Subtle spacing */
    margin-bottom: 8px;
    font-family: DejaVuSansMono, monospace;  /* Old Web Font */
    font-size: 0.85rem;          /* Slightly smaller text */
    color: #9fc3d9;              /* Matches your color scheme */
    gap: 10px;                   /* Space between image and text */
}

.sign-off .profile-img {
    width: 24px;
    height: 24px;
    border: 1.5px solid #ffd666;   /* Gold border, subtle */
    border-radius: 5px;          /* Slightly rounded corners for "old web" feel */
    object-fit: cover;           /* Ensures image fits well */
}

.sign-off .name {
    font-weight: bold;           /* Bold name for prominence */
    font-size: 0.9rem;           /* Slightly larger than text */
    color: #ffd666;              /* Gold color for name */
}

.reactions-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;     
}

.reactions {
    display: flex;
    align-items: center;
    gap: 6px;

}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 4px;
    border: 1px dashed #9fc3d9;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    border-radius: 3px;
}

.reaction-btn span.count {
    font-size: 0.8rem;
    color: #ffd666;
}

.reaction-popup {
    display: none;              /* align items neatly */
    grid-auto-flow: column;     /* lay out in a row */
    gap: 4px;                   /* space between emojis */
    padding: 5px;               /* same as buttons */
    border: 1px solid #ffd666;
    border-radius: 3px;
    background: rgba(0,0,0,0.25);
    position: absolute;
    bottom: 35px;
    right: 0;
    max-width: fit-content;     /* shrink to content */
}

.reactions .plus-btn {
    order: 2;
    font-size: 0.9rem;
    line-height: 1;
    padding: 2px 4px;
}


.reaction-popup .reaction-option {
    padding: 2px 4px;           /* same as .reaction-btn */
    border: 1px dashed #9fc3d9;
    border-radius: 3px;
    cursor: pointer;
}

.reaction-popup .reaction-option:hover {
    background: rgba(255,214,102,0.15);
}

/* ODD DAYS SPARK */
body.odd-days .spark {
    animation: glow-spark 1.5s ease-in-out infinite alternate;
    border-left: 3px solid #ffd666; /* subtle gold highlight */
    padding-left: 6px;
}

.post.spark .profile-img {
    box-shadow: 0 0 8px rgba(255, 214, 102, 0.9);
    animation: glow-spark 1.5s ease-in-out infinite alternate;
}

@keyframes glow-spark {
    from { box-shadow: 0 0 3px rgba(255, 214, 102, 0.4); }
    to { box-shadow: 0 0 8px rgba(255, 214, 102, 0.9); }
}




/* GLOSSARY SPECIAL FORMATTING */
    /* GLOSSARY STARS */
#stars { position: absolute; top: 0; left: 0; width: 100%; height:100%; pointer-events:none; z-index:-1; }

.star { position: absolute; background-color:#fff; border-radius:50%; opacity:0.6; width:1px;height:1px; animation: twinkle linear infinite; }
@keyframes twinkle {0%,100%{opacity:0.5;} 50%{opacity:0.7;}}

.glossary-title {
    text-align: center;
    font-size: 2.6em; /* slightly larger */
    margin:  1.25em 0 0.5em;
    color: #ffd666;
    letter-spacing: 2px;
    text-shadow:
        0 1px 0 rgba(0,0,0,0.8),   /* existing subtle 3D */
        0 0 6px rgba(255,214,102,0.7),
        0 0 14px rgba(255,214,102,0.5),
        0 0 28px rgba(255,214,102,0.25);
    position: relative;
    z-index: 1;
}

.glossary-description {
    text-align: center;
    max-width: 700px;                     /* slightly narrower to give title more weight */
    margin: 0 auto 2.5em;
    font-size: 1em;
    line-height: 1.6;
    color: rgba(245, 241, 230, 0.8);     /* slightly muted text so title pops */
    background: rgba(255, 214, 102, 0.04); /* very soft, unobtrusive halo */
    border: 1px solid rgba(255, 214, 102, 0.1);
    border-radius: 8px;
    padding: 12px 18px;
    box-shadow: 0 0 6px rgba(255, 214, 102, 0.05); /* faint glow */
    transition: 
        background 0.4s ease, 
        box-shadow 0.4s ease, 
        border 0.4s ease, 
        color 0.4s ease;
}

.glossary-description:hover {
    background: rgba(40, 34, 60, 0.6);        /* softer darkening */
    border: 1px solid rgba(212, 196, 147, 0.2); /* subtle gold border */
    box-shadow: 0 0 3px rgba(212, 196, 147, 0.1); /* minimal hover glow */
    color: rgba(255, 230, 180, 0.9);          /* warm text on hover */
}



    /* GLOSSARY CARDS */
.glossary-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 3em;
    align-items: center;
}

.card {
    background: rgba(20,18,32,0.94);
    border: 1px solid #d4c493;
    border-radius: 12px;
    padding: 1.5em;
    position: relative;
    box-shadow: 0 0 10px rgba(212,196,147,0.3);
    will-change: transform;
    overflow: hidden;
    transition: background 0.3s ease;

    /* flex for vertical centering */
    display: flex;               /* make the card a flex container */
    flex-direction: column;      /* stack content vertically */
    justify-content: center;     /* center content vertically */

    /* sizing */
    flex: 0 0 auto;              /* keep existing flex behavior */
    min-height: 125px;           /* <- tweakable: minimum height to normalize smaller cards */
    transition: transform 1.6s cubic-bezier(0.33, 1, 0.68, 1);

}


.card > * {
    display: block;            /* ensure children are block-level inside the flex column */
}

.card-header {
    display: inline-flex;      /* keeps embellishment, word, pos in one row */
    align-items: baseline;     /* align nicely */
    gap: 0.3em;                /* optional spacing between elements */
}


    /* GLOSSARY CARDS HIGHLIGHT */
.card.highlight {
    background: rgba(40,34,60,0.94);
}

.word {font-weight:bold; font-size:1.2em; color:#d4c493; }
.pos { font-style:italic; color:#cfc7a8; }
.definition { margin-top:0.5em; }
.embellishment { font-size:0.8em; color:#d4c493; margin-right:0.3em; }

.card .def-number {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.75em;                /* smaller, less intrusive */
    font-weight: 400;                  /* lighter weight */
    color: rgba(212,196,147,0.35);    /* very soft gold */
    background: rgba(0,0,0,0.08);     /* faint translucent backing */
    padding: 1px 4px;
    border-radius: 4px;
    line-height: 1;
    pointer-events: none;
    letter-spacing: 0.5px;             /* adds a touch of airy elegance */
    text-shadow: 0 1px 1px rgba(0,0,0,0.15); /* soft depth */
    transition: color 0.4s ease, background 0.4s ease;
}

.card:hover .def-number {
    color: rgba(212,196,147,0.6);    /* subtle lift on hover */
    background: rgba(0,0,0,0.15);    /* slightly more visible */
}



    /* GLOSSARY CONSTELLATIONS */
.constellation {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 50%;                    /* ← new */
    transform: translateY(-50%); /* ← new */
    height: 110px;                /* slightly taller for organic layouts */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card.highlight .constellation { opacity:0.9; }

@media (max-width:768px){
    .card{padding:1em; width:100%; flex:1 1 100%}
}

.definition {
    font-family: "Atkinson Hyperlegible";
    font-size: 0.9em;
    line-height: 1.55em;
    letter-spacing: 0.2px;
}
.definition p {
    margin: 0.2em 0;
}

.definition p.indent {
    margin-left: 1.5em;
    text-indent: 0;
}




/* Footer */
footer {
    position: relative;

    padding: 10px 12px;

    border-top: 2px solid rgba(215, 179, 93, 0.45);

    background: rgba(0, 0, 0, 0.25);

    font-size: 12px;

    opacity: 1;
}

/* =========================
   FOOTER NOTIFY POPUP
========================= */

.footer-notify-popup {
    position: absolute;

    left: 50%;
    bottom: calc(100% + 10px);

    transform:
        translateX(-50%)
        translateY(4px);

    width: 280px;
    opacity: 1;

    padding: 12px;

    border: 1px solid rgba(245, 241, 230, 0.28);

    background:
        linear-gradient(
            180deg,
            rgba(24, 18, 30, 0.96),
            rgba(12, 10, 18, 0.98)
        );

    box-shadow:
        0 0 10px rgba(0, 0, 0, 0.42),
        0 0 12px rgba(255, 214, 102, 0.05);

    visibility: hidden;

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;

    z-index: 9999;
}

.footer-notify-popup.is-open {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}

/*
    CLOSE BUTTON
*/

.footer-notify-close {
    position: absolute;

    top: 4px;
    right: 6px;

    border: none;
    background: transparent;

    color: rgba(245, 241, 230, 0.42);

    font-size: 13px;

    cursor: pointer;

    padding: 0;

    opacity: 0.72;
}

.footer-notify-close:hover {
    opacity: 1;
    color: #ffd666;
}

/*
    TEXT
*/

.footer-notify-text {
    margin: 0 0 9px;

    font-size: 11px;
    line-height: 1.5;

    color: rgba(245, 241, 230, 0.82);

    font-style: italic;
}

/*
    FORM
*/

.footer-notify-form {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

/*
    MESSAGE
*/

.footer-notify-message,
.footer-notify-input {
    border: 1px solid rgba(245, 241, 230, 0.22);

    background:
        rgba(0, 0, 0, 0.24);

    color: #f5f1e6;

    padding: 5px 6px;

    font-family: inherit;
    font-size: 11px;
}

.footer-notify-message {
    min-height: 58px;

    resize: vertical;
}

.footer-notify-message:focus,
.footer-notify-input:focus {
    outline: none;

    border-color:
        rgba(255, 214, 102, 0.55);

    background:
        rgba(255, 214, 102, 0.04);
}

/*
    BUTTON
*/

.footer-notify-submit {
    align-self: flex-end;

    border: 1px solid rgba(255, 214, 102, 0.28);

    background:
        rgba(255, 214, 102, 0.08);

    color: #ffd666;

    padding: 5px 10px;

    font-family: inherit;
    font-size: 11px;

    cursor: pointer;
}

.footer-notify-submit:hover {
    background:
        rgba(255, 214, 102, 0.16);

    border-color:
        rgba(255, 214, 102, 0.5);
}

.footer-notify-submit:disabled {
    opacity: 1;

    cursor: default;

    color: #ffd666;

    background:
        rgba(255, 214, 102, 0.10);

    border-color:
        rgba(255, 214, 102, 0.35);
}

/*
    DISABLED
*/

.footer-notify-message:disabled,
.footer-notify-input:disabled {
    opacity: 0.55;
}

/*
    DIRECT EMAIL
*/

.footer-notify-direct {
    margin: 10px 0 1px;

    text-align: center;

    font-size: 9px;
    line-height: 1.35;

    color: rgba(245, 241, 230, 0.42);

    font-style: italic;
}

/*
    MOBILE
*/

@media (max-width: 700px) {

    .footer-notify-popup {

        width:
            min(
                280px,
                calc(100vw - 32px)
            );

        bottom: 32px;
    }
}

/* Link Styling */
a { color: #b7e4ff; }
a:hover { color: #ffffff; }





