body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background: #f4f6f9;
}

/* Header */
.header {
    background: #2c3e50;
    color: #fff;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

/* Container */
.container {
    padding: 20px;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Live Results */
.live-result {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.no-right-border {
    border-right: none;
}

.no-left-border {
    border-left: none;
}

th {
    background: #34495e;
    color: white;
    cursor: pointer;
}

tr:hover {
    background: #f1f1f1;
}

/* Responsive */
@media(max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.center {
    text-align: center;
}

.red {
    color: #e74c3c;
}

.divider {
    border: 1px solid #ccc;
}

.classic-btn {
    display: block;
    padding: 10px 20px;
    background: #3498db;
    margin: 1rem auto;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    text-align: center;
}

/* Table Wrapper for scroll */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Prevent table breaking */
table {
    min-width: 900px;
}

/* Better spacing for mobile */
td {
    line-height: 1.5;
    font-size: 14px;
}

/* Sticky header (nice UX) */
th {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Mobile adjustments */
@media (max-width: 768px) {

    .container {
        padding: 10px;
    }

    .card {
        padding: 15px;
    }

    h2 {
        font-size: 18px;
    }

    th,
    td {
        padding: 8px;
        font-size: 12px;
    }
}

.bg-red {
    background: red;
    color: white;
}

.bg-red:hover {
    background: #f1f1f1;
    color: black;
}

.back-btn {
    margin-bottom: 10px;
    padding: 6px 12px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    float: right;
}

.back-btn:hover {
    background-color: #555;
}

.card-override {
    overflow: hidden;
    white-space: nowrap;
    background: #f8f8f8;
    padding: 10px;
}

.marquee {
    display: inline-block;
    padding-left: 100%;
    animation: scrollText 30s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

@keyframes scrollText {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Header bar */
.bazar-header {
    background: #ef2f2f;
    color: yellow;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    font-size: 18px;
}

.red-bg {
    background-color: red !important;
    text-align: center;
    color: #000 !important;
}

/* Grid container */
.bazar-grid {
    width: 100%;
}

/* Each row */
.bazar-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

/* Time cells */
.bazar-row .time {
    background: #3498db;
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid #333;
}

/* Result cells */
.bazar-row .result {
    background: #9fb3bb;
    text-align: center;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    border: 1px solid #333;
}

/* Mobile view */
@media (max-width: 600px) {
    .bazar-row {
        grid-template-columns: 1fr 1fr;
    }

    .three {
        display: none;
    }

    .four {
        display: none;
    }
}

.border-right-none {
    border-right: none !important;
}

.border-left-none {
    border-left: none !important;
}

.ft-large {
    font-size: larger;
}