body {
    margin: 0;
    padding: 0;
    background-color: #008080;
    min-height: 100vh;
}

.page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Header */
.site-header {
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 0 #000000;
}

.site-header h1 {
    font-size: 36px;
    margin: 0 0 8px 0;
    letter-spacing: 2px;
    display: inline-block;
    animation: title-pulse 3s ease-in-out infinite alternate;
}

@keyframes title-pulse {
    from { transform: rotate(-5deg) scale(0.96); }
    to   { transform: rotate(5deg) scale(1.04); }
}

.site-header .tagline {
    margin: 0;
    font-size: 14px;
}

/* Sections inherit 98.css .window styling — nothing extra needed */

.window-body {
    padding: 12px 4px;
    line-height: 1.5;
    font-size: 15px;
}

.window-body h4 {
    margin-top: 0;
}

/* Contact list */
.contact-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.contact-list li {
    padding: 4px 0;
    font-size: 14px;
}

.contact-list a {
    color: #0000ee;
}

.contact-list a:visited {
    color: #551a8b; /* the proper Web 1.0 purple */
}

/* Footer */
.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    font-size: 12px;
    text-shadow: 1px 1px 0 #000000;
    padding: 20px 0;
}

.site-footer div {
    text-align: center;
}

.rss-link {
    display: block;
    line-height: 0;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.rss-link:hover {
    transform: scale(0.9);
}

.rss-link img {
    display: block;
    image-rendering: auto;
}

/* Mobile */
@media (max-width: 600px) {
    .page {
        padding: 20px 10px;
    }

    .site-header h1 {
        font-size: 28px;
    }

    /* Stack the three columns vertically, content first */
    .window-layout {
        flex-direction: column;
    }

    .window-content {
        order: 1;
    }

    .window-nav {
        order: 2;
        width: auto;
        align-self: center;
    }

    .window-sidebar {
        order: 3;
        width: fit-content;
        align-self: center;
        flex-direction: column;
        border-top: 1px solid #808080;
        padding: 12px 0 0 0;
        gap: 12px;
    }

    .sidebar-box {
        flex: unset;
    }

    .guestbook-link {
        text-align: center;
        align-self: center;
    }
}

/* Badge marquee */
.badge-marquee {
    overflow: hidden;
    border-bottom: 1px solid #808080;
    padding-bottom: 8px;
    margin-bottom: 8px;
    user-select: none;
}

.badge-marquee-inner {
    display: flex;
    gap: 4px;
    width: max-content;
    animation: badge-scroll 25s linear infinite;
}

.badge-marquee-inner:hover {
    animation-play-state: paused;
}

@keyframes badge-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.badge-marquee a {
    display: inline-flex;
    flex-shrink: 0;
}

.badge-marquee img {
    display: block;
    width: 88px;
    height: 31px;
    image-rendering: pixelated;
}

.badge-marquee a:hover {
    transform: scale(0.9);
    transition: transform 0.15s ease;
}

/* Two/three-column layout inside window */
.window-layout {
    display: flex;
    gap: 8px;
}

.window-sidebar {
    width: 130px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-box {
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    background: #d4d0c8;
    padding: 8px 12px;
    flex: 1;
    text-align: center;
}

.guestbook-link {
    text-align: center;
}

.content-box {
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    background: #d4d0c8;
    padding: 8px 12px;
}

.guestbook-link a {
    display: inline-block;
    transition: transform 0.15s ease;
}

.guestbook-link a:hover {
    transform: scale(0.9);
}

.window-content {
    flex: 1;
    min-width: 0;
}

.window-nav {
    width: 130px;
    flex-shrink: 0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    background: #d4d0c8;
    padding: 8px 12px;
}

.nav-heading {
    font-weight: bold;
    font-size: 17px;
    margin: 0 0 6px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #808080;
    text-align: center;
}

.window-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.window-nav li {
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    background: #c0c0c0;
    margin-bottom: 4px;
    transition: transform 0.15s ease;
}

.window-nav li:hover {
    transform: scale(0.9);
}

.window-nav a {
    display: block;
    padding: 3px 8px;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.window-nav a:visited {
    color: #000000;
}

.window-nav a:hover {
    text-decoration: none;
}

.nav-badge {
    text-align: center;
    margin-top: 4px;
}

.nav-badge a {
    display: inline-block;
    transition: transform 0.15s ease;
}

.nav-badge a:hover {
    transform: scale(0.9);
}

.nav-badge img {
    display: block;
    image-rendering: auto;
    height: 28px;
    width: auto;
}

.webring-entry {
    display: flex;
    gap: 2px;
    justify-content: center;
    margin: 0;
}

.webring-btn {
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    background: #c0c0c0;
    padding: 3px 5px;
    color: #000000;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    transition: transform 0.15s ease;
    display: block;
}

.webring-btn:visited {
    color: #000000;
}

.webring-btn:hover {
    transform: scale(0.9);
    text-decoration: none;
}

/* Interest gallery */
.interest-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.interest-card {
    display: flex;
    flex-direction: column;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    background: #c0c0c0;
    padding: 6px;
    gap: 6px;
    width: 290px;
}

.interest-thumbnails {
    display: flex;
    gap: 3px;
}

.interest-thumbnails img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    image-rendering: pixelated;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    background: #808080;
    flex-shrink: 0;
}

.interest-label {
    font-size: 13px;
    margin: 0;
    text-align: center;
}

a.interest-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.interest-card:hover {
    border-color: #000080 #c0c0c0 #c0c0c0 #000080;
    background: #d4d0f8;
}

a.interest-card:hover .interest-thumbnails img {
    border-color: #000080 #ffffff #ffffff #000080;
}

.window-gif {
    text-align: center;
    margin-top: 16px;
}

.window-gif img {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated; /* keeps tiny GIFs crisp instead of blurry when scaled */
}
