﻿/* ==========================================================================
   Base Styles - Vintage Newspaper
   ========================================================================== */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    background-color: #d4c5a9;
    background-image: repeating-linear-gradient( 0deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px );
    color: #1a1a1a;
    line-height: 1.6;
    position: relative;
}

    /* Newsprint texture overlay */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /></filter><rect width="300" height="300" filter="url(%23noise)" opacity="0.05"/></svg>');
        pointer-events: none;
        z-index: 1;
    }

/* Form Controls */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ==========================================================================
   Newspaper Container - Aged Paper
   ========================================================================== */

.newspaper {
    max-width: 1200px;
    margin: 4px auto 80px auto; 
    padding: 30px 40px;
    background-color: #f9f6f0;
    background-image: repeating-linear-gradient( 90deg, transparent, transparent 2px, rgba(139,119,101,.04) 2px, rgba(139,119,101,.04) 4px );
    box-shadow: 0 0 20px rgba(0,0,0,0.3), inset 0 0 100px rgba(139,119,101,0.1);
    border: 1px solid #8b7765;
    position: relative;
    z-index: 2;
}

    /* Aged paper effect corners */
    .newspaper::before,
    .newspaper::after {
        content: '';
        position: absolute;
        background: linear-gradient(45deg, transparent 48%, #8b7765 50%, transparent 52%);
    }

    .newspaper::before {
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
    }

    .newspaper::after {
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
    }

    /* Print registration mark */
    .newspaper > *:first-child::before {
        content: '+';
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 0.6rem;
        color: rgba(0,0,0,0.2);
        font-weight: 100;
    }

/* ==========================================================================
   Masthead - Classic Newspaper Header
   ========================================================================== */

.newspaper-masthead {
    text-align: center;
    padding: 15px 0 20px;
    border-bottom: 4px double #1a1a1a;
    border-top: 3px solid #1a1a1a;
    margin-bottom: 5px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.02) 50%, transparent 100% );
}

.masthead-top {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
}

.newspaper-title h1 {
    font-family: 'Playfair Display', 'Libre Baskerville', 'Old English Text MT', Georgia, serif;
    font-size: 4.5rem;
    font-weight: 900;
    margin: 15px 0;
    letter-spacing: 8px;
    color: #1a1a1a;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
    font-style: italic;
    position: relative;
}

    /* Decorative flourishes */
    .newspaper-title h1::before,
    .newspaper-title h1::after {
        content: '';
        font-size: 1.5rem;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.6;
    }

    .newspaper-title h1::before {
        left: -50px;
    }

    .newspaper-title h1::after {
        right: -50px;
    }

    .newspaper-title h1 a {
        color: inherit;
        text-decoration: none;
    }

        .newspaper-title h1 a:hover,
        .newspaper-title h1 a:visited,
        .newspaper-title h1 a:active,
        .newspaper-title h1 a:focus {
            color: inherit;
            text-decoration: none;
        }

.masthead-info {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-top: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Courier New', Courier, monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.volume-issue {
    font-weight: 900;
    letter-spacing: 0.5px;
    text-align: left;
}

.date-info {
    text-align: center;
    grid-column: 2;
    font-weight: 900;
}

.edition-info,
.publication-date {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 900;
}

.price {
    font-weight: 900;
    letter-spacing: 0.5px;
    text-align: right;
    font-size: 0.85rem;
}

.masthead-divider {
    border: 0;
    border-top: 2px solid #1a1a1a;
    margin: 0 0 25px 0;
    opacity: 0.8;
}

/* ==========================================================================
   Front Page Layout
   ========================================================================== */

.front-page-section {
    margin-bottom: 35px;
}

.above-fold {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}


/* Hero Story */
.hero-story {
    padding-right: 25px;
    border-right: 2px solid #1a1a1a;
    position: relative;
}

    /* Column rule decorative element */
    .hero-story::after {
        content: '';
        position: absolute;
        right: -2px;
        top: 0;
        bottom: 0;
        width: 1px;
        background: linear-gradient( to bottom, transparent 0%, #1a1a1a 5%, #1a1a1a 95%, transparent 100% );
    }

.hero-headline {
    font-family: 'Arial Black', 'Impact', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 18px;
    /* text-transform: uppercase; */
    letter-spacing: -0.5px;
    color: #1a1a1a;
    text-shadow: 0.5px 0.5px 0px rgba(0,0,0,0.3), 1px 1px 0px rgba(0,0,0,0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

    .hero-headline a {
        color: #1a1a1a;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .hero-headline a:hover {
            color: #4a4a4a;
            text-decoration: underline;
            text-decoration-thickness: 2px;
        }

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 12px;
    text-align: justify;
    font-family: 'Georgia', 'Times New Roman', serif;
    hyphens: auto;
    color: #222;
    column-count: 2;
    column-gap: 20px;
}

    /* Drop cap for hero story */
    .hero-description::first-letter {
        float: left;
        font-size: 4rem;
        line-height: 3rem;
        padding-right: 8px;
        margin-top: 5px;
        font-weight: 900;
        font-family: 'Georgia', serif;
        color: #1a1a1a;
    }

/* Side Stories */
.side-stories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-story {
    padding-bottom: 18px;
    border-bottom: 2px solid #1a1a1a;
}

    .side-story:last-child {
        border-bottom: none;
    }

.side-headline {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
    /*text-transform: uppercase;*/
    font-family: 'Arial Black', Arial, sans-serif;
    color: #1a1a1a;
}

    .side-headline a {
        color: #1a1a1a;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .side-headline a:hover {
            color: #4a4a4a;
            text-decoration: underline;
        }

.side-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2a2a2a;
    text-align: justify;
}

/* Below the Fold */
.section-break {
    border: 0;
    border-top: 3px double #1a1a1a;
    margin: 25px 0;
}

.below-fold {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.column-story {
    padding: 0 15px;
    border-right: 2px solid #1a1a1a;
    position: relative;
}

    /* Column rule gradient */
    .column-story::after {
        content: '';
        position: absolute;
        right: -1px;
        top: 0;
        bottom: 0;
        width: 1px;
        background: linear-gradient( to bottom, transparent 0%, #1a1a1a 10%, #1a1a1a 90%, transparent 100% );
    }

    .column-story:last-child {
        border-right: none;
    }

        .column-story:last-child::after {
            display: none;
        }

.column-headline {
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Arial Black', Arial, sans-serif;
    color: #1a1a1a;
}

    .column-headline a {
        color: #1a1a1a;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .column-headline a:hover {
            color: #4a4a4a;
            text-decoration: underline;
        }

.column-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #3a3a3a;
    text-align: justify;
    hyphens: auto;
    text-shadow: 0.3px 0.3px 0px rgba(0,0,0,0.1);
}

/* Page Divider */
.page-divider {
    border: 0;
    border-top: 5px double #1a1a1a;
    margin: 35px 0;
    position: relative;
}

    .page-divider::after {
        content: '✦';
        position: absolute;
        top: -12px;
        left: 50%;
        transform: translateX(-50%);
        background: #f9f6f0;
        padding: 0 15px;
        font-size: 1.2rem;
    }

/* ==========================================================================
   Section Pages
   ========================================================================== */

.section-pages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-section-page {
    overflow: hidden;
    padding: 15px;
    border: 3px double #1a1a1a;
    background-color: #fdfcfa;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.03);
    position: relative;
    display: flow-root;
}

    /* Victorian corner brackets */
    .news-section-page::before,
    .news-section-page::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        border: 3px solid #1a1a1a;
    }

    .news-section-page::before {
        top: -3px;
        left: -3px;
        border-right: none;
        border-bottom: none;
    }

    .news-section-page::after {
        bottom: -3px;
        right: -3px;
        border-left: none;
        border-top: none;
    }

    .news-section-page:last-child {
        padding-bottom: 0 !important;
    }



.section-header {
    background-color: #1a1a1a;
    color: #f9f6f0;
    padding: 10px 18px;
    margin: -18px -18px 18px -18px;
    border-bottom: 2px solid #1a1a1a;
}

.section-name {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    font-family: 'Arial Black', Arial, sans-serif;
}

/* Section Lead Story */
.section-lead-story {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 3px double #1a1a1a;
}

.section-lead-headline {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 12px;
    /*text-transform: uppercase;*/
    font-family: 'Arial Black', Arial, sans-serif;
    color: #1a1a1a;
    text-shadow: 0.5px 0.5px 0px rgba(0,0,0,0.3), 1px 1px 0px rgba(0,0,0,0.1);
}

    .section-lead-headline a {
        color: #1a1a1a;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .section-lead-headline a:hover {
            color: #4a4a4a;
            text-decoration: underline;
        }

.section-lead-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 10px;
    text-align: justify;
    hyphens: auto;
    color: #222;
}

    /* Drop cap for section lead stories */
/*    .section-lead-text::first-letter {
        float: left;
        font-size: 3rem;
        line-height: 1;
        padding-right: 8px;
        margin-top: 3px;
        margin-bottom: -5px;
        font-weight: 900;
        font-family: 'Georgia', serif;
        color: #1a1a1a;
    }*/

/* Section Briefs */
.section-briefs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    column-gap: 12px;
}

.brief-story {
    padding-bottom: 12px;
    border-bottom: 1px solid #8b7765;
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

    /* Section marker */
    .brief-story::before {
        content: '•';
        position: absolute;
        left: 0;
        font-size: 1.2rem;
        font-weight: 900;
        color: #1a1a1a;
        opacity: 0.8;
    }

.brief-headline {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
    /*text-transform: uppercase;*/
    font-family: 'Arial', sans-serif;
    color: #1a1a1a;
}

    .brief-headline a {
        color: #1a1a1a;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .brief-headline a:hover {
            color: #4a4a4a;
            text-decoration: underline;
        }


/* ==========================================================================
   Story Metadata
   ========================================================================== */

.story-meta {
    font-size: 0.75rem;
    font-style: italic;
    color: #666;
    margin-top: 8px;
    font-family: 'Georgia', serif;
}

.brief-meta {
    font-size: 0.7rem;
    color: #888;
    margin-top: 4px;
    font-style: italic;
}

.story-byline {
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.meta-separator {
    margin: 0 6px;
}

.story-date {
    color: #888;
}

/* ==========================================================================
   Weather Section
   ========================================================================== */

.weather-page {
    margin: 35px 0;
    padding: 25px;
    border: 4px double #1a1a1a;
    background-color: #fdfcfa;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.04);
}

.weather-header {
    text-align: center;
    border-bottom: 3px double #1a1a1a;
    padding-bottom: 12px;
    margin-bottom: 25px;
}

    .weather-header h2 {
        font-size: 2.2rem;
        font-weight: 900;
        letter-spacing: 4px;
        margin: 0;
        font-family: 'Arial Black', Arial, sans-serif;
        text-transform: uppercase;
    }

.weather-date {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 8px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.weather-forecast {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}

.weather-day {
    text-align: center;
    padding: 18px;
    background-color: #fff;
    border: 2px solid #1a1a1a;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.2);
}

.day-name {
    font-weight: 900;
    font-size: 1.00rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
    font-family: 'Arial Black', Arial, sans-serif;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 8px;
}

.weather-icon {
    font-size: 3.5rem;
    margin: 15px 0;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.2));
}

.temps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
}

    .temps .high {
        font-size: 1.2rem;
        font-weight: 900;
        font-family: 'Arial Black', Arial, sans-serif;
    }

    .temps .low {
        font-size: 1rem;
        color: #666;
        font-weight: 700;
    }

.description {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 12px 0;
    min-height: 45px;
    font-style: italic;
    color: #2a2a2a;
}

.weather-details {
    font-size: 0.75rem;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #1a1a1a;
    font-family: 'Courier New', monospace;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
    font-weight: 600;
}

    .detail-row .label {
        font-weight: 900;
        text-transform: uppercase;
    }

/* ==========================================================================
   Images - Vintage Photo Style
   ========================================================================== */

.hero-image {
    width: 100%;
    margin-bottom: 18px;
    border: 3px solid #1a1a1a;
    padding: 3px;
    background: #fff;
}

    .hero-image img {
        width: 100%;
        height: auto;
        max-height: 450px;
        object-fit: cover;
        filter: sepia(15%) contrast(1.1);
    }

.side-image {
    width: 100%;
    margin-bottom: 12px;
    border: 2px solid #1a1a1a;
    padding: 2px;
    background: #fff;
}

    .side-image img {
        width: 100%;
        height: auto;
        max-height: 150px;
        object-fit: cover;
        filter: sepia(15%) contrast(1.1);
    }

.section-lead-image {
    width: 100%;
    max-width: 300px;
    margin-bottom: 15px;
    margin-right: 18px;
    float: left;
    border: 2px solid #1a1a1a;
    padding: 2px;
    background: #fff;
}

    .section-lead-image img {
        width: 100%;
        height: auto;
        max-height: 220px;
        object-fit: cover;
        filter: sepia(15%) contrast(1.1);
    }

        /* Image loading placeholder */
        .hero-image img:not([src]),
        .side-image img:not([src]),
        .section-lead-image img:not([src]) {
            display: none;
        }

/* ==========================================================================
   Sports Scores
   ========================================================================== */

.sports-scores-link {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 2px double #1a1a1a;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.sports-scores-link a {
    text-decoration: none;
}


/* Sports Scores Logo */
.scores-logo {
    width: 150px !important;
    height: auto;
    vertical-align: middle;
    display: block;
    margin: 0 auto;
}


.scores-button {
    display: block;
    padding: 5px 55px;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    vertical-align: middle;
    line-height: normal;
    background-color: #1a1a1a;
    color: #f9f6f0;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: 3px solid #1a1a1a;
    transition: all 0.3s ease;
    font-family: 'Arial Black', Arial, sans-serif;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.3);
}

    .scores-button:hover {
        background-color: #f9f6f0;
        color: #1a1a1a;
        transform: translate(-2px, -2px);
        box-shadow: 5px 5px 0px rgba(0,0,0,0.3);
    }

/* ==========================================================================
   Archive Button
   ========================================================================== */

.archive-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 3px double #1a1a1a;
}

.archive-button {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .archive-button img {
        width: 88px;
        height: 31px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0.85;
    }

    .archive-button:hover img {
        transform: scale(1.1);
        opacity: 1;
    }

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.no-stories {
    padding: 25px;
    font-style: italic;
    text-align: center;
    color: #999;
    font-family: 'Georgia', serif;
}

.loading-state {
    padding: 60px;
    font-size: 1.3rem;
    text-align: center;
    color: #666;
    font-family: 'Georgia', serif;
    font-style: italic;
}

.container {
    margin-top: 3px !important;
}

#refresh-timer {
    margin-top: 0;
    margin-bottom: 1px;
    padding: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
    .newspaper {
        padding: 20px 25px;
    }

    .newspaper-title h1 {
        font-size: 3rem;
        letter-spacing: 4px;
    }

        .newspaper-title h1::before,
        .newspaper-title h1::after {
            display: none;
        }

    .above-fold {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-story {
        padding-right: 0;
        padding-bottom: 25px;
        border-right: none;
        border-bottom: 3px double #1a1a1a;
    }

        .hero-story::after {
            display: none;
        }

    .hero-description {
        column-count: 1;
    }

    .below-fold {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .section-pages {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 576px) {
    .newspaper {
        padding: 20px 15px;
        margin: 10px;
    }

    .newspaper-title h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .hero-headline {
        font-size: 1.8rem;
    }

    .hero-description::first-letter {
        font-size: 3rem;
        line-height: 2.5rem;
    }

    .below-fold {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .section-briefs {
        grid-template-columns: 1fr;
    }

    .column-story {
        padding: 0;
        padding-bottom: 18px;
        border-right: none;
        border-bottom: 2px solid #1a1a1a;
        margin-bottom: 18px;
    }

        .column-story:last-child {
            border-bottom: none;
        }

        .column-story::after {
            display: none;
        }

    .section-lead-image {
        float: none;
        max-width: 100%;
        margin-right: 0;
    }
}

/* ==========================================================================
   Obituaries Section
   ========================================================================== */

.obituaries-section {
    background: #f7f3e9;
    border: 2px dashed #8b7765;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 18px;
}

.obituaries-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.obituary-name {
    font-family: 'Georgia', serif;
    font-size: 1.3rem;
    font-weight: bold;
    color: #1a1a1a;
}

.obituary-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 6px;
}

.obituary-description {
    font-size: 1rem;
    color: #333;
    font-style: italic;
}

.obituary-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 2px solid #8b7765;
    background: #fff;
}

/* ==========================================================================
   Archive Button
   ========================================================================== */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: #2c1810;
    color: #f4f1ea;
    border: 2px solid #8b4513;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease, transform 0.2s ease;
    animation: slideOut 0.3s ease; 
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

    .back-to-top.show {
        opacity: 0.5;
        visibility: visible;
        animation: slideIn 0.3s ease;
    }

    .back-to-top:hover {
        background-color: #8b4513;
        color: #fff;
        opacity: 1;
        transform: translateY(-3px) scale(1.05);
    }

    .back-to-top:active {
    transform: translateY(-1px) scale(0.98);
    }

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 0.5;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 0.5;
    }

    to {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* Back to Top - Mobile positioning */
@media (max-width: 576px) {
    .back-to-top {
        position: fixed;
        bottom: 2rem;
        right: 0.5em;
        width: 50px;
        height: 50px;
        background-color: #2c1810;
        color: #f4f1ea;
        border: 2px solid #8b4513;
        border-radius: 50%;
        font-size: 1.5rem;
        font-weight: bold;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease, transform 0.2s ease;
        animation: slideOut 0.3s ease;
        z-index: 1000;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
}

/* ==========================================================================
   Lottery Section - Modern Style
   ========================================================================== */

.lottery-section {
    margin: 35px 0;
    padding: 25px;
    border: 4px double #1a1a1a;
    background-color: #1a1a1a;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.2);
}

.lottery-header {
    text-align: center;
    border-bottom: 2px solid #444;
    padding-bottom: 12px;
    margin-bottom: 25px;
}

    .lottery-header h2 {
        font-size: 2.2rem;
        font-weight: 900;
        letter-spacing: 4px;
        margin: 0;
        font-family: 'Arial Black', Arial, sans-serif;
        text-transform: uppercase;
        color: #f9f6f0;
    }

.lottery-games {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.lottery-game {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    min-width: 300px;
    max-width: 350px;
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    /* Mega Millions - Blue/Teal gradient */
    .lottery-game.mega-millions {
        background: linear-gradient(135deg, #1a5276 0%, #2e86ab 50%, #1a5276 100%);
        border: 3px solid #3498db;
    }

    /* Powerball - Orange/Red gradient */
    .lottery-game.powerball {
        background: linear-gradient(135deg, #c0392b 0%, #e67e22 50%, #c0392b 100%);
        border: 3px solid #e74c3c;
    }

.lottery-game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.lottery-logo {
    text-align: left;
}

.jackpot-info {
    text-align: right;
}

.jackpot-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: 'Arial', sans-serif;
}

.jackpot-amount {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    font-family: 'Arial Black', Arial, sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.draw-results-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    font-family: 'Arial', sans-serif;
}

.lottery-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.lottery-ball {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    font-family: 'Arial Black', Arial, sans-serif;
    box-shadow: inset 0 -3px 6px rgba(0,0,0,0.3), inset 0 3px 6px rgba(255,255,255,0.4), 0 2px 4px rgba(0,0,0,0.3);
}

    .lottery-ball.white {
        background: linear-gradient(145deg, #ffffff 0%, #e8e8e8 50%, #d0d0d0 100%);
        color: #1a1a1a;
        border: 2px solid #ccc;
    }

    .lottery-ball.special.powerball {
        background: linear-gradient(145deg, #ff4444 0%, #cc0000 50%, #990000 100%);
        color: #fff;
        border: 2px solid #ff6666;
    }

    .lottery-ball.special.megaball {
        background: linear-gradient(145deg, #ffd700 0%, #ffb700 50%, #cc9900 100%);
        color: #1a1a1a;
        border: 2px solid #ffdd44;
    }

.multiplier-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 5px;
    font-family: 'Arial Black', Arial, sans-serif;
}

.multiplier-label {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
}

    .multiplier-label .play-text {
        color: #ffd700;
    }

.multiplier-value {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 900;
}

.next-draw {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    margin-top: auto;
    padding-top: 15px;
    letter-spacing: 0.5px;
    font-family: 'Arial', sans-serif;
}

.lottery-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.check-btn {
    padding: 10px 20px;
    background: linear-gradient(180deg, #27ae60 0%, #1e8449 100%);
    color: #fff;B
    border: none;
    border-radius: 5px;
    font-weight: 900;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .check-btn:hover {
        background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%);
        transform: translateY(-2px);
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .lottery-section {
        padding: 15px;
    }

    .lottery-games {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .lottery-game {
        min-width: unset;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .lottery-ball {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .lottery-game-header {
        flex-direction: column;
        gap: 10px;
    }

    .lottery-logo, .jackpot-info {
        text-align: center;
    }
}

/* ==========================================================================
   Lottery Number Checker Results - Enhanced Visual Display
   ========================================================================== */

.checker-result {
    margin-top: 15px;
    display: none;
}

    .checker-result.show {
        display: block;
    }

.number-set-result {
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

    .number-set-result:last-child {
        margin-bottom: 0;
    }

    .number-set-result.winner {
        border-color: #ffd700;
        background: linear-gradient(135deg, rgba(255,215,0,0.2) 0%, rgba(255,183,0,0.1) 100%);
        animation: winner-glow 2s ease-in-out infinite;
    }

    .number-set-result.partial {
        border-color: rgba(255,255,255,0.4);
        background: rgba(255,255,255,0.1);
    }

    .number-set-result.no-match {
        border-color: rgba(255,255,255,0.1);
    }

@keyframes winner-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255,215,0,0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(255,215,0,0.6);
    }
}

.set-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.set-number {
    font-weight: 900;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.result-badge {
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

    .result-badge.winner {
        background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
        color: #1a1a1a;
        animation: pulse-badge 1.5s ease-in-out infinite;
    }

    .result-badge.partial {
        background: rgba(255,255,255,0.2);
        color: #fff;
    }

    .result-badge.no-match {
        background: rgba(0,0,0,0.3);
        color: rgba(255,255,255,0.7);
    }

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Result Balls Display */
.result-balls {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.result-ball {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    font-family: 'Arial Black', Arial, sans-serif;
    transition: all 0.3s ease;
    position: relative;
}

    /* Non-matching balls - dimmed */
    .result-ball.no-match {
        background: linear-gradient(145deg, #666 0%, #444 50%, #333 100%);
        color: #999;
        border: 2px solid #555;
        opacity: 0.6;
    }

    /* Matching balls - highlighted */
    .result-ball.match {
        background: linear-gradient(145deg, #ffffff 0%, #e8e8e8 50%, #d0d0d0 100%);
        color: #1a1a1a;
        border: 3px solid #4CAF50;
        box-shadow: 0 0 15px rgba(76, 175, 80, 0.6), inset 0 -3px 6px rgba(0,0,0,0.2), inset 0 3px 6px rgba(255,255,255,0.4);
        animation: match-pop 0.5s ease;
    }

        /* Match checkmark indicator */
        .result-ball.match::after {
            content: '✓';
            position: absolute;
            bottom: -8px;
            right: -8px;
            width: 18px;
            height: 18px;
            background: #4CAF50;
            color: #fff;
            border-radius: 50%;
            font-size: 0.65rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 900;
            box-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

@keyframes match-pop {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* Special balls - Powerball */
.result-ball.special.powerball.no-match {
    background: linear-gradient(145deg, #8b3030 0%, #5a1a1a 50%, #3a0a0a 100%);
    border-color: #6a2020;
}

.result-ball.special.powerball.match {
    background: linear-gradient(145deg, #ff4444 0%, #cc0000 50%, #990000 100%);
    color: #fff;
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.6), 0 0 20px rgba(255, 68, 68, 0.4), inset 0 -3px 6px rgba(0,0,0,0.3), inset 0 3px 6px rgba(255,255,255,0.3);
}

/* Special balls - Mega Ball */
.result-ball.special.megaball.no-match {
    background: linear-gradient(145deg, #8b8b00 0%, #5a5a00 50%, #3a3a00 100%);
    border-color: #6a6a00;
}

.result-ball.special.megaball.match {
    background: linear-gradient(145deg, #ffd700 0%, #ffb700 50%, #cc9900 100%);
    color: #1a1a1a;
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.6), 0 0 20px rgba(255, 215, 0, 0.4), inset 0 -3px 6px rgba(0,0,0,0.2), inset 0 3px 6px rgba(255,255,255,0.4);
}


/* Responsive */
@media (max-width: 576px) {
    .result-ball {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .set-header {
        flex-direction: column;
        text-align: center;
    }

    .result-badge {
        font-size: 0.75rem;
    }
}