/* =========================================
   90s FAMILY HOMEPAGE - RETRO STYLESHEET
   Best viewed in Netscape Navigator 4.0!
   ========================================= */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Comic Sans MS", "Comic Sans", cursive, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #ffff00;
    background-color: #000033;
    background-image: url("../../../images/star_tiles.gif");
    background-repeat: repeat;
    min-height: 100vh;
}

/* Main Layout Table */
.main-table {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
}

.main-table td {
    vertical-align: top;
    padding: 10px;
}

/* Sidebar Navigation */
.sidebar {
    width: 150px;
    background-color: #000066;
    border: 3px outset #6666ff;
    padding: 10px;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 15px;
    text-align: center;
}

.sidebar-nav a {
    display: block;
    text-decoration: none;
}

.sidebar-nav img {
    display: block;
    margin: 0 auto 5px auto;
    max-width: 100px;
    height: auto;
}

.sidebar-nav span {
    display: block;
    font-size: 12px;
    color: #00ffff;
}

.sidebar-nav a:hover span {
    color: #ff00ff;
}

/* Content Area */
.content {
    background-color: rgba(0, 0, 51, 0.85);
    border: 3px inset #6666ff;
    padding: 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "Times New Roman", Times, serif;
    color: #00ffff;
    text-shadow: 2px 2px #ff00ff;
    margin-bottom: 15px;
}

h1 {
    font-size: 2em;
    text-align: center;
}

h2 {
    font-size: 1.5em;
    border-bottom: 2px dashed #ff00ff;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.2em;
    color: #00ff00;
}

p {
    margin-bottom: 15px;
}

/* Links - Classic 90s colors */
a:link {
    color: #0000ff;
    text-decoration: underline;
}

a:visited {
    color: #800080;
}

a:hover {
    color: #ff00ff;
    text-decoration: none;
    background-color: #ffff00;
}

a:active {
    color: #ff0000;
}

/* Bright link variant for dark backgrounds */
.content a:link,
.sidebar a:link {
    color: #00ffff;
}

.content a:visited,
.sidebar a:visited {
    color: #ff99ff;
}

.content a:hover,
.sidebar a:hover {
    color: #ff00ff;
    background-color: transparent;
    text-shadow: 0 0 5px #ff00ff;
}

/* Header Banner */
.header-banner {
    text-align: center;
    padding: 20px 0;
}

.header-banner img {
    max-width: 100%;
    height: auto;
}

/* Animated Divider */
.divider {
    text-align: center;
    margin: 20px 0;
}

.divider img {
    max-width: 100%;
    height: auto;
}

/* Badge Row */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 10px;
    border: 2px dotted #ff00ff;
    background-color: #000033;
}

.badge-row img {
    height: 31px;
    width: auto;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 10px;
    font-family: "Times New Roman", serif;
    background-color: #c0c0c0;
    color: #000000;
    border: 2px outset #ffffff;
    text-decoration: none;
}

.badge:hover {
    border-style: inset;
}

/* Hit Counter */
.hit-counter {
    font-family: "Courier New", monospace;
    font-size: 14px;
    color: #00ff00;
    background-color: #000000;
    padding: 5px 10px;
    border: 2px inset #333333;
    display: inline-block;
}

/* Updates Box */
.updates-box {
    background-color: #000066;
    border: 3px ridge #ffff00;
    padding: 15px;
    margin: 20px 0;
}

.updates-box h3 {
    color: #ffff00;
    margin-bottom: 10px;
}

.updates-box ul {
    list-style-type: square;
    margin-left: 20px;
    color: #ffffff;
}

.updates-box li {
    margin-bottom: 5px;
}

.updates-box .date {
    color: #00ff00;
    font-weight: bold;
}

/* Bio Cards */
.bio-card {
    background-color: #000066;
    border: 3px outset #00ffff;
    padding: 15px;
    margin-bottom: 20px;
}

.bio-card h3 {
    color: #ff00ff;
    border-bottom: 1px dashed #00ffff;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.bio-card .role {
    font-style: italic;
    color: #00ff00;
    margin-bottom: 10px;
}

.bio-card ul {
    list-style-type: disc;
    margin-left: 20px;
    color: #ffffff;
}

.bio-card li {
    margin-bottom: 5px;
}

.bio-card .quest {
    margin-top: 10px;
    padding: 10px;
    background-color: #330066;
    border: 1px dotted #ff00ff;
    color: #ffff00;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 10px;
}

.photo-thumb {
    background-color: #333366;
    border: 3px outset #6666ff;
    padding: 5px;
    text-align: center;
}

.photo-thumb img {
    max-width: 100%;
    height: auto;
    border: 1px solid #000000;
}

.photo-thumb .caption {
    font-size: 12px;
    color: #ffffff;
    margin-top: 5px;
}

.photo-placeholder {
    width: 140px;
    height: 100px;
    background-color: #666699;
    border: 2px dashed #00ffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
    text-align: center;
    padding: 5px;
}

/* Guestbook */
.guestbook-entry {
    background-color: #330066;
    border: 2px groove #ff00ff;
    padding: 15px;
    margin-bottom: 15px;
}

.guestbook-entry .author {
    font-weight: bold;
    color: #00ff00;
}

.guestbook-entry .date {
    font-size: 12px;
    color: #999999;
    font-style: italic;
}

.guestbook-entry .message {
    margin-top: 10px;
    color: #ffffff;
    padding: 10px;
    background-color: #220044;
    border-left: 3px solid #ff00ff;
}

.guestbook-form {
    background-color: #000066;
    border: 3px ridge #00ffff;
    padding: 15px;
    margin-top: 20px;
}

/* Links Page */
.link-category {
    background-color: #000066;
    border: 2px outset #00ff00;
    padding: 15px;
    margin-bottom: 20px;
}

.link-category h3 {
    color: #00ff00;
    margin-bottom: 10px;
}

.link-category ul {
    list-style-type: none;
}

.link-category li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.link-category li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: #ff00ff;
}

.link-category .description {
    display: block;
    font-size: 12px;
    color: #999999;
    margin-top: 2px;
}

/* Recipe Card */
.recipe-card {
    background-color: #003300;
    border: 3px outset #00ff00;
    padding: 15px;
    margin-bottom: 20px;
}

.recipe-card h3 {
    color: #ffff00;
    background-color: #006600;
    padding: 5px 10px;
    margin: -15px -15px 15px -15px;
}

.recipe-card .ingredients {
    float: left;
    width: 40%;
    padding-right: 15px;
}

.recipe-card .instructions {
    float: right;
    width: 55%;
}

.recipe-card::after {
    content: "";
    display: table;
    clear: both;
}

.recipe-card ul {
    list-style-type: square;
    margin-left: 20px;
    color: #ffffff;
}

.recipe-card ol {
    margin-left: 20px;
    color: #ffffff;
}

.recipe-card li {
    margin-bottom: 5px;
}

/* Downloads Grid */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.download-item {
    background-color: #333366;
    border: 3px outset #6666ff;
    padding: 15px;
    text-align: center;
}

.download-item h4 {
    color: #00ffff;
    margin-bottom: 10px;
}

.download-item .preview {
    width: 150px;
    height: 100px;
    margin: 0 auto 10px auto;
    background-color: #666699;
    border: 1px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 11px;
}

.download-item .btn {
    display: inline-block;
    padding: 5px 15px;
    background-color: #c0c0c0;
    color: #000000;
    border: 2px outset #ffffff;
    text-decoration: none;
    font-size: 12px;
}

.download-item .btn:hover {
    border-style: inset;
    background-color: #a0a0a0;
}

/* Privacy & Info Boxes */
.info-box {
    background-color: #003366;
    border: 2px solid #00ffff;
    padding: 15px;
    margin-bottom: 15px;
}

.info-box h3 {
    color: #ffff00;
    margin-bottom: 10px;
}

.warning-box {
    background-color: #660000;
    border: 3px ridge #ff0000;
    padding: 15px;
    margin: 20px 0;
    color: #ffffff;
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: 50px 20px;
}

.error-page h1 {
    font-size: 3em;
    color: #ff0000;
    text-shadow: 3px 3px #ffff00;
}

.error-page .error-gif {
    margin: 30px 0;
}

/* Under Construction */
.under-construction {
    background-color: #ffff00;
    color: #000000;
    padding: 15px;
    text-align: center;
    border: 3px dashed #ff0000;
    margin: 20px 0;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Marquee substitute (CSS-only) */
.scrolling-text {
    overflow: hidden;
    white-space: nowrap;
    background-color: #000066;
    color: #00ff00;
    padding: 10px;
    border: 2px inset #333333;
}

.scrolling-text span {
    display: inline-block;
    animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Tables */
table {
    border-collapse: collapse;
    margin: 15px 0;
}

th, td {
    border: 1px solid #6666ff;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #000066;
    color: #00ffff;
}

tr:nth-child(even) {
    background-color: rgba(0, 0, 102, 0.5);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #999999;
    border-top: 2px dashed #333366;
    margin-top: 20px;
}

.footer a {
    color: #6666ff;
}

/* Webring Parody */
.webring {
    background-color: #000033;
    border: 2px double #ffff00;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.webring h4 {
    color: #ffff00;
    margin-bottom: 10px;
}

.webring-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.webring-nav a {
    color: #00ffff;
}

/* Utility Classes */
.center {
    text-align: center;
}

.blink {
    animation: blink 1s step-end infinite;
}

.rainbow {
    background: linear-gradient(90deg, red, orange, yellow, green, blue, purple);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow-shift 3s linear infinite;
}

@keyframes rainbow-shift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.highlight {
    background-color: #ffff00;
    color: #000000;
    padding: 2px 5px;
}

.new-badge {
    display: inline-block;
    background-color: #ff0000;
    color: #ffffff;
    font-size: 10px;
    padding: 2px 5px;
    margin-left: 5px;
    animation: blink 0.5s infinite;
}

/* Placeholder markers */
.placeholder {
    color: #ff6600;
    font-style: italic;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .main-table,
    .main-table tbody,
    .main-table tr,
    .main-table td {
        display: block;
        width: 100%;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sidebar-nav li {
        margin: 5px 10px;
    }

    .recipe-card .ingredients,
    .recipe-card .instructions {
        float: none;
        width: 100%;
    }
}
