body {
    font-family: emoji;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #2b2b2b;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    padding: 10px 0;
}

.header {
    background-color: #007bff;
    color: white;
    padding: 20px;
    text-align: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.header h1 {
    margin: 0;
    font-size: 3em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header p {
    margin: 5px 0 0;
    font-size: 1.1em;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    padding: 20px;
}

.result-card {
    background-color: #333;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.game-name {
    font-size: 1.6em;
    font-weight: bold;
    color: #ffc107;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.result-number {
    font-size: 3em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.result-number.waiting {
    font-size: 1.5em;
    color: #aaa;
}

.result-time {
    font-size: 0.9em;
    color: #ccc;
}

.footer {
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
    color: #888;
    border-top: 1px solid #444;
}

/* General body reset */
/* body { margin: 0; font-family: sans-serif; } */

/* Reusing previous header styles */
.top-nav-container {
    width: 100%;
    background-color: #007bff;
}

.top-nav {
    display: flex;
    justify-content: stretch;
    width: 100%;
    margin: 0 auto;
}

.top-nav .nav-item {
    flex-grow: 1;
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 15px 10px;
    font-weight: bold;
    border-right: 2px solid #fdfdfd;
    white-space: normal;
}

.top-nav .nav-item:last-child {
    border-right: none;
}

.top-nav .home-icon {
    background-color: #dc3545;
    flex-grow: 0;
    padding: 15px 20px;
}

.top-nav .special-link {
    background-color: #28a745;
}

.marquee-bar {
    background-color: #800020;
    color: white;
    padding: 10px 0;
    font-weight: bold;
    border-top: 5px solid #fff;
}

.main-content-header {
    background: linear-gradient(to bottom, #003333, #001a1a);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 5px;
}

.main-content-header .main-heading {
    font-size: 2em;
}

.main-content-header .sub-heading {
    color: #fff;
}

.main-content-header .brand-name {
    color: #ffff00;
    font-size: 2.5em;
    margin: 20px 0;
}

.main-content-header .add-text {
    font-size: 1.5em;
}

.main-button {
    font-size: 20px;
    color: wheat;
}

.main-content-header .main-button {
    display: inline-block;
    background-color: #dc3545;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

.footer-bar {
    background-color: #ffff00;
    color: #000;
    text-align: center;
    padding: 15px;
    font-weight: bold;
}

/* Styling for the page content and boxes */
.page-content {
    padding: 20px;
    background-color: #e9ecef;
}

.content-box {
    background-color: white;
    border: 3px solid #007bff;
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.content-box .box-header-text {
    font-weight: bold;
    font-size: 1.1em;
    margin: 0;
}

.content-box .box-sub-text {
    color: #dc3545;
    font-weight: bold;
}

.content-box .box-main-text {
    font-size: 1em;
}

.content-box .box-title {
    color: #007bff;
    font-size: 2em;
    margin: 10px 0;
}

.content-box .box-add-text {
    font-size: 1.2em;
    margin: 5px 0;
}

.content-box .box-button {
    display: inline-block;
    background-color: #dc3545;
    color: white;
    padding: 10px 30px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
}

/* Styling for Dark Promo Box */
.dark-promo-box {
    background: linear-gradient(to bottom, #003333, #001a1a);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.dark-promo-box .promo-heading {
    color: #ffff00;
    font-size: 2em;
}

.dark-promo-box .promo-sub-heading {
    font-size: 1.2em;
}

.dark-promo-box .promo-title {
    color: #ffff00;
    font-size: 2.5em;
    margin: 20px 0;
}

/* Styling for Floating Buttons */
.floating-buttons-left {
    position: fixed;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    z-index: 1000;
    /* Keep them on top */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-buttons-left .float-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-size: 0.9em;
    border: 1px solid #fff;
}

/* Styling for Live Chat Widget */
.live-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1010;
}

.chat-icon-button {
    background-color: #007bff;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    line-height: 85px;
    text-align: center;
}

.chat-window {
    width: 320px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    color: #333;
}

.chat-header {
    background: #007bff;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.chat-body {
    padding: 15px;
    height: 300px;
    overflow-y: auto;
}

.chat-footer {
    display: flex;
    border-top: 1px solid #eee;
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    padding: 15px;
    outline: none;
}

.chat-footer button {
    background: #eee;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-nav {
        justify-content: flex-start;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .top-nav::-webkit-scrollbar {
        display: none;
    }

    .top-nav .nav-item {
        flex-shrink: 0;
        width: 15px;
    }

    .floating-buttons-left {
        display: none;
    }

    /* Hide floating buttons on small screens */
}


.tc-black {
    color: black !important;
}

.d-f {
    display: flex;
}



/* Main Footer Styling */
.site-footer {
    background-color: #000000;
    /* Black background */
    color: #ffffff;
    /* White text */
    padding: 40px 20px;
    /* Padding around the content */
    font-family: Arial, sans-serif;
}

.footer-container {
    max-width: 1200px;
    /* Max width for the content */
    margin: 0 auto;
    /* Center the content */
    text-align: center;
    /* Center all content by default */
}

/* 1. Styling for Top Navigation Buttons */
.footer-nav {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* Allow buttons to wrap on small screens */
    gap: 10px;
    /* Space between buttons */
}

.footer-nav-btn {
    background-color: #c82333;
    /* Reddish color */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #a01c28;
}

/* 2. Styling for Tag Cloud Links */
.footer-tags {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* This is key for the tag cloud effect */
    gap: 10px;
    /* Space between tags */
}

.tag-link {
    background-color: #ffff00;
    /* Yellow background */
    color: #000000;
    /* Black text */
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #b3b300;
    white-space: nowrap;
    font-size: 11px;
    /* Prevent text from breaking */
}

/* 3. Styling for the Separator Line */
.footer-separator {
    border: 0;
    height: 1px;
    background-color: #444;
    /* Dark grey color for the line */
    margin: 30px 0;
}

/* 4. Styling for the Copyright Text */
.footer-copyright {
    font-size: 1em;
    color: #aaa;
    /* Lighter grey for copyright text */
}

.chart-container {
    width: 100%;
    background: #fff;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Top Header Styling */
.chart-header {
    background-color: #ffff00;
    /* Yellow background */
    color: #000;
    text-align: center;
    padding: 15px;
    font-size: 1.5em;
    font-weight: bold;
}

/* Table Wrapper for Horizontal Scrolling */
.table-wrapper {
    overflow-x: auto;
    /* This enables horizontal scrolling */
}

/* Main Results Table */
.results-table {
    width: 100%;
    min-width: 800px;
    /* Minimum width to encourage scrolling */
    border-collapse: collapse;
}

.results-table th,
.results-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
    /* Prevent text from wrapping */
}

.results-table thead th {
    background-color: #603813;
    /* Brown color */
    color: #fff;
    text-transform: uppercase;
}

.results-table tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
    /* Light grey for odd rows */
}

.results-table tbody td:first-child {
    background-color: #e6e6fa;
    /* Lavender for the date column */
    color: #333;
}

.results-table td {
    color: #00008b;
    /* Dark blue for result numbers */
    font-size: 1.1em;
}

.result-section {
    background-color: #fffad7;
    padding: 30px 0;
}

/* bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbblink  */
.new-result {
    background-color: yellow;
    border: 1px solid red;
    animation: blink 1s infinite;
    padding: 2px 6px;
    display: inline-block;
    font-weight: bold;
    color: black;
}

@keyframes blink {
    0% {
        background-color: yellow;
    }

    50% {
        background-color: red;
        color: white;
    }

    100% {
        background-color: yellow;
    }
}

.old-result {
    background-color: #f2f2f2;
    padding: 2px 6px;
    color: #333;
    font-weight: normal;
    display: inline-block;
}

.countdown-timer {
    color: #999;
    font-style: italic;
}