/* Color Theme: Green, White, Red */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Navigation Menu */
.main-nav {
    display: flex;
    background: linear-gradient(to right, #d32f2f 0%, #1b5e20 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.nav-item:last-child {
    border-right: none;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.nav-item.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-item.refresh {
    background-color: #2196F3;
}

.nav-item.refresh:hover {
    background-color: #1976D2;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2d7a3e 0%, #1b5e20 100%);
    padding: 50px 20px;
    text-align: center;
    color: white;
}

.welcome-text {
    font-size: 26px;
    color: #ffeb3b;
    margin-bottom: 12px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.site-title {
    font-size: 38px;
    color: #d32f2f;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    padding: 15px;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
}

.site-title marquee {
    color: #d32f2f;
}

/* Site Intro Section */
.site-intro-section {
    background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
    padding: 25px 20px;
    border-top: 3px solid #d32f2f;
    border-bottom: 3px solid #d32f2f;
}

.intro-heading {
    text-align: center;
    color: #b71c1c;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.intro-marquee {
    background-color: rgba(255, 255, 255, 0.3);
    padding: 12px;
    border-radius: 5px;
    color: #1b5e20;
    font-size: 16px;
    font-weight: 500;
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    line-height: 1.8;
}

.about-section p {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 15px;
}

/* Section Heading */
.section-heading {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    text-align: center;
    padding: 22px 20px;
    font-size: 26px;
    font-weight: bold;
    margin: 25px 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.15);
}

.section-heading-white {
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    color: white;
    text-align: center;
    padding: 22px 20px;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 25px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

/* Results Section */
.results-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

/* Main Game Section */
.main-game-section {
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8f5e9 100%);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border: 3px solid #2d7a3e;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: #d32f2f;
}

.game-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.game-card h3 {
    color: #2d7a3e;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
}

.game-time {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.close-time {
    display: inline-block;
    padding: 8px 12px;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 4px solid #f44336;
    border-radius: 4px;
    color: #c62828;
    font-weight: 600;
    font-size: 13px;
}

.game-status {
    background: linear-gradient(135deg, #4caf50 0%, #2d7a3e 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(45, 122, 62, 0.2);
}

.game-status:hover {
    background: linear-gradient(135deg, #45a049 0%, #245a2f 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(45, 122, 62, 0.3);
}

.game-status.closed {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.game-status.closed:hover {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
}

.status-badge {
    display: inline-block;
    color: white;
    text-decoration: none;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.result-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    border: 3px solid #2d7a3e;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: #d32f2f;
}

.market-name {
    color: #2d7a3e;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
}

.market-time {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 600;
    padding: 8px 12px;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 4px solid #f44336;
    border-radius: 4px;
    color: #c62828;
}

.result-number {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    font-size: 35px;
    font-weight: bold;
    padding: 18px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.25);
}

/* Charts Preview Section */
.charts-preview {
    padding: 30px 20px;
    background-color: #f5f5f5;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.chart-box {
    background: linear-gradient(135deg, #2d7a3e 0%, #1b5e20 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.chart-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.chart-box h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.chart-box p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.view-btn {
    display: inline-block;
    background-color: white;
    color: #2d7a3e;
    padding: 10px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background-color: #d32f2f;
    color: white;
    transform: scale(1.05);
}

/* Charts Main Section */
.charts-main-section {
    padding: 40px 20px;
    background-color: white;
}

.chart-year-section {
    margin-bottom: 0;
}

.chart-year-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1200px;
    margin: 0 auto 0 auto;
    border: 2px solid white;
}

.chart-year-box {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border: 1px dotted white;
    transition: all 0.3s ease;
}

.chart-year-box:hover {
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
    transform: scale(1.02);
    cursor: pointer;
}

.chart-year-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.chart-year-box .year {
    font-size: 18px;
    margin: 0;
    opacity: 0.95;
    font-weight: 500;
}

/* Intro Text Section */
.intro-text-section {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    padding: 40px 20px;
    border-top: 3px solid #d32f2f;
    border-bottom: 3px solid #2d7a3e;
}

.intro-text-container {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text-container p {
    color: white;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    margin: 0;
    font-weight: 400;
}

/* Sample Chart Section */
.sample-chart-section {
    padding: 30px 20px;
    background-color: #f5f5f5;
}

/* Chart Tables for charts.html page */
.chart-table-container {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    overflow-x: auto;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    background-color: white;
}

.chart-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.chart-table thead {
    background: linear-gradient(135deg, #2d7a3e 0%, #1b5e20 100%);
    color: white;
}

.chart-table th {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 15px;
}

.chart-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.chart-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.chart-table tbody tr:hover {
    background-color: #e8f5e9;
    transition: background-color 0.3s ease;
}

.month-cell {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: white !important;
    font-weight: bold;
}

/* Chart Info Section */
.chart-info-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 40px 20px;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
}

.info-heading {
    text-align: center;
    color: #1b5e20;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: bold;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #2d7a3e;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: #d32f2f;
}

.info-card h3 {
    color: #2d7a3e;
    font-size: 20px;
    margin-bottom: 10px;
}

.info-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Panna Section */
.panna-section {
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    padding: 40px 20px;
}

.panna-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.panna-card {
    background-color: #1565C0;
    border: 2px solid white;
    border-bottom: 1px solid white;
    padding: 20px;
    text-align: center;
}

.panna-card:last-child {
    border-bottom: 2px solid white;
}

.panna-title {
    color: white;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.panna-numbers {
    color: white;
    font-size: 15px;
    line-height: 1.8;
    font-weight: 500;
    margin: 0;
}

/* Footer Section */
.footer-section {
    background: linear-gradient(135deg, #6a1b9a 0%, #4a148c 100%);
    color: white;
    padding: 35px 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ffeb3b;
    font-weight: bold;
}

.footer-section p {
    max-width: 1000px;
    margin: 0 auto 15px auto;
    line-height: 1.7;
    font-size: 15px;
}

.copyright {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-item {
        font-size: 11px;
        padding: 12px 5px;
    }

    .site-title {
        font-size: 20px;
        padding: 10px;
    }

    .welcome-text {
        font-size: 18px;
    }

    .intro-heading {
        font-size: 18px;
    }

    .intro-marquee {
        font-size: 13px;
    }

    .intro-text-container p {
        font-size: 14px;
        line-height: 1.7;
    }

    .section-heading {
        font-size: 18px;
        padding: 15px;
    }

    .section-heading-white {
        font-size: 16px;
        padding: 15px;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .result-number {
        font-size: 24px;
        padding: 10px;
    }

    .market-name {
        font-size: 16px;
    }

    .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .game-icon {
        font-size: 36px;
    }

    .game-card h3 {
        font-size: 16px;
    }

    .chart-year-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-year-box {
        padding: 20px 15px;
    }

    .chart-year-box h3 {
        font-size: 16px;
    }

    .chart-year-box .year {
        font-size: 15px;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-table {
        font-size: 12px;
    }

    .chart-table th,
    .chart-table td {
        padding: 8px 4px;
        font-size: 11px;
    }

    .info-heading {
        font-size: 22px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-card {
        padding: 20px;
    }

    .info-card h3 {
        font-size: 18px;
    }

    .panna-title {
        font-size: 18px;
    }

    .panna-numbers {
        font-size: 13px;
    }

    .about-section p {
        font-size: 13px;
    }
}

/* Live Highlight Section */
.live-highlight-section {
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.live-result-box {
    background: #00FF00; /* Neon Green */
    padding: 30px 20px;
    text-align: center;
}

.live-game-name {
    font-size: 64px;
    font-weight: 900;
    color: #4A4A4A;
    margin: 0;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.2);
    letter-spacing: -1px;
}

.live-game-time {
    font-size: 28px;
    font-weight: 800;
    color: #FFFF00; /* Yellow */
    margin: 10px 0;
}

.live-number-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

.live-number {
    font-size: 80px;
    font-weight: 900;
    color: #FF0000; /* Red */
    text-shadow: 0 0 15px rgba(0,0,255,0.8), 0 0 5px rgba(0,0,255,1);
    line-height: 1;
}

.hand-icon {
    font-size: 60px;
    filter: drop-shadow(0 0 5px rgba(0,0,255,0.5));
}

.live-clock-box {
    background: #757575; /* Grey */
    padding: 20px;
    text-align: center;
    color: white;
}

.clock-display {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.date-display {
    font-size: 20px;
    font-weight: bold;
    opacity: 0.9;
}

/* Mobile Responsive Live Highlight */
@media (max-width: 768px) {
    .live-game-name { font-size: 36px; }
    .live-game-time { font-size: 20px; }
    .live-number { font-size: 50px; }
    .hand-icon { font-size: 40px; }
    .clock-display { font-size: 40px; }
    .date-display { font-size: 16px; }
    .live-number-container { gap: 15px; }
}

@media (max-width: 480px) {
    .nav-item {
        font-size: 10px;
        padding: 10px 3px;
    }

    .site-title {
        font-size: 16px;
        padding: 8px;
    }

    .welcome-text {
        font-size: 16px;
    }

    .intro-marquee {
        font-size: 12px;
    }

    .intro-text-container p {
        font-size: 12px;
        line-height: 1.6;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .chart-year-grid {
        grid-template-columns: 1fr;
    }

    .chart-year-box {
        padding: 18px 12px;
    }

    .chart-year-box h3 {
        font-size: 15px;
    }

    .chart-year-box .year {
        font-size: 14px;
    }

    .chart-table {
        font-size: 10px;
    }

    .chart-table th,
    .chart-table td {
        padding: 6px 3px;
        font-size: 9px;
    }

    .info-heading {
        font-size: 18px;
    }

    .info-card h3 {
        font-size: 16px;
    }

    .info-card p {
        font-size: 13px;
    }
}
