
/* Define global CSS variables */
:root {
  --main-bg-color: #ffcc99;   /* change this once, applies everywhere */
  --box-border-color: red;
  --box-text-color: #222;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

p {
  margin-top: 0%;
}
/* Apply background color to entire page */
body {
  background-color: var(--main-bg-color);
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Reusable box class */
.highlight-box {
  background-color: var(--main-bg-color); /* uses same variable */
  border: 2px solid var(--box-border-color);
  border-radius: 12px;
  padding: 16px;
  margin: 20px auto;
  text-align: center;
  color: var(--box-text-color);
  max-width: 95%;
  text-align: center;
}


/* --- Responsive Breakpoints --- */
@media (min-width: 320px) { .highlight-box { font-size: 12px; } }
@media (min-width: 360px) { .highlight-box { font-size: 13px; } }
@media (min-width: 375px) { .highlight-box { font-size: 13px; padding: 18px; } }
@media (min-width: 414px) { .highlight-box { font-size: 14px; } }
@media (min-width: 425px) { .highlight-box { font-size: 14px; padding: 20px; } }

@media (min-width: 600px) { .highlight-box { font-size: 15px; } }
@media (min-width: 768px) { .highlight-box { font-size: 16px; padding: 22px; } }
@media (min-width: 834px) { .highlight-box { font-size: 16px; padding: 24px; } }
@media (min-width: 1024px) { .highlight-box { font-size: 17px; } }

@media (min-width: 1280px) { .highlight-box { font-size: 18px; padding: 26px; } }
@media (min-width: 1366px) { .highlight-box { font-size: 18px; padding: 28px; } }
@media (min-width: 1440px) { .highlight-box { font-size: 19px; } }
@media (min-width: 1920px) { .highlight-box { font-size: 20px; padding: 30px; max-width: 70%; } }

@media (min-width: 2560px) { .highlight-box { font-size: 22px; max-width: 60%; } }
@media (min-width: 3440px) { .highlight-box { font-size: 24px; padding: 32px; max-width: 50%; } }
@media (min-width: 3840px) { .highlight-box { font-size: 26px; max-width: 45%; } }
@media (min-width: 5120px) { .highlight-box { font-size: 28px; padding: 36px; max-width: 40%; } }


.highlight-box h2 {
  margin-bottom: 4px; /* reduce space below Hello */
}

.rights-text {
  font-size: 0.8em;       /* smaller than h2 */
  margin-top: 0;          /* remove extra gap */
  color: var(--box-text-color);
  opacity: 0.8;           /* optional subtle look */
}


/* === Extra Responsive Box (isolated) === */

/* Reusable box class */
.highlight-box1 {
  background-color: var(--main-bg-color); /* uses same variable */
  border: 2px solid var(--box-border-color);
  border-radius: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 16px;
  padding-right: 16px;
  margin: 20px auto;
  text-align: center;
  color: var(--box-text-color);
  max-width: 99%;
}

.extra-box {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  background-color: var(--main-bg-color); /* peach background */
  border: none; /* transparent border */
  width: 100%;
}

.extra-image {
  flex: 0 0 30%;
  min-width: 120px;
}

.extra-image img {
  width: 100%;
  height: auto;
  display: block;
}

.extra-text {
  flex: 1;
  padding: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.extra-line {
  width: 100%;
  height: 1px;
  background-color: var(--box-border-color); /* black line */
  margin: 10px 0;         /* spacing above and below */
}

.marquee {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 12s linear infinite;
  background-color: transparent; 
}

@keyframes marquee {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}


/* Responsive ratios */
@media (max-width: 320px) { .extra-image { flex: 0 0 40%; } }
@media (max-width: 360px) { .extra-image { flex: 0 0 38%; } }
@media (max-width: 375px) { .extra-image { flex: 0 0 36%; } }
@media (max-width: 414px) { .extra-image { flex: 0 0 35%; } }
@media (max-width: 425px) { .extra-image { flex: 0 0 34%; } }

@media (max-width: 600px) { .extra-image { flex: 0 0 33%; } }
@media (max-width: 768px) { .extra-image { flex: 0 0 30%; } }
@media (max-width: 834px) { .extra-image { flex: 0 0 28%; } }
@media (max-width: 1024px) { .extra-image { flex: 0 0 25%; } }

@media (max-width: 1280px) { .extra-image { flex: 0 0 24%; } }
@media (max-width: 1366px) { .extra-image { flex: 0 0 22%; } }
@media (max-width: 1440px) { .extra-image { flex: 0 0 20%; } }
@media (max-width: 1920px) { .extra-image { flex: 0 0 18%; } }

@media (max-width: 2560px) { .extra-image { flex: 0 0 15%; } }
@media (max-width: 3440px) { .extra-image { flex: 0 0 12%; } }
@media (max-width: 3840px) { .extra-image { flex: 0 0 10%; } }
@media (max-width: 5120px) { .extra-image { flex: 0 0 8%; } }





/* 1 ///////////////////////// */




/* Heading centered
.heading-container {
  text-align: center;
  margin-bottom: 20px;
}
*/
.heading-container h2 {
  text-align: center;
} 

/* Table centered */
.table-container {
  display: flex;
  justify-content: center;   /* Horizontal center */
}

.jodi-chart {
  border-collapse: collapse;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
}

.jodi-chart th, .jodi-chart td {
  border: 1px solid #000;
  padding: 5px 0px;
  text-align: center;
  font-weight: 800;
}

.jodi-chart th {
  background: #444;
  color: #fff;
}

.jodi-chart tr:nth-child(even) {
  background: var(--main-bg-color);
}

.jodi-chart td.highlight {
  color: red;
  font-weight: bold;
}

/* Responsive breakpoints */

/* Mobile */
@media (max-width: 425px) {
  .jodi-chart th, .jodi-chart td {
    padding: 6px;
    font-size: 12px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .jodi-chart th, .jodi-chart td {
    padding: 8px;
    font-size: 14px;
  }
}

/* Laptop/Desktop */
@media (max-width: 1366px) {
  .jodi-chart {
    width: 95%;
  }
}

/* Extra wide */
@media (max-width: 1920px) {
  .jodi-chart {
    width: 80%;
  }
}



/* 2 ///////////////////////// */



.matka-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background: rgb(6, 240, 84);
}

.matka-table tbody {
  background: var(--main-bg-color);
}

.matka-table th,
.matka-table td {
  border: 1px solid var(--box-border-color);
  padding: 8px;
  vertical-align: middle;
}

.table-title {
  background: rgb(177, 8, 8);
  color: rgb(255, 255, 255);
  font-size: 20px;
  text-align: center;
}

/* Date cell vertically aligned */
.date-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-weight:800;
}
.date-cell .fromDate,
.date-cell .to,
.date-cell .endDate {
  font-size: 28px;
}

/* Day cell horizontally aligned with left flush left, right flush right */
.day-cell {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Left and Right parts: vertical stack, smaller font */
.day-cell .left,
.day-cell .right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 28px;
  color: #000000;
  text-align: center;
  font-weight: 800;
}

/* Center part: bigger text */
.day-cell .center {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 900;
  flex: 1;
  text-align: center;
}

/* Red highlight for entire cell */
.day-cell.red .left div,
.day-cell.red .center,
.day-cell.red .right div {
  color: #ff0000;
  font-weight: bold;
}

/* Responsive breakpoints */

@media (max-width: 245px) {
  .matka-table {
    display: block;
    overflow-x: auto;   /* scroll instead of breaking */
    white-space: nowrap;
  }
  .matka-table th, .matka-table td {
    min-width: 100px;   /* ensures cells stay usable */
    font-size: 12px;    /* smaller text for readability */
  }
  .day-cell .center {
    font-size: 12px;
  }
  .day-cell .left, .day-cell .right {
    font-size: 10px;
  }
}


@media (max-width: 320px) {
  .day-cell .center { font-size: 14px; }
  .day-cell .left, .day-cell .right { font-size: 11px; }
  .date-cell div { font-size: 12px; }
}
@media (max-width: 360px) { .day-cell .center { font-size: 14px; } }
@media (max-width: 375px) { .day-cell .center { font-size: 15px; } }
@media (max-width: 414px) { .day-cell .center { font-size: 15px; } }
@media (max-width: 425px) { .day-cell .center { font-size: 15px; } }

@media (max-width: 600px) { .day-cell .center { font-size: 16px; } }
@media (max-width: 768px) { .day-cell .center { font-size: 16px; } }
@media (max-width: 834px) { .day-cell .center { font-size: 17px; } }
@media (max-width: 1024px) { .day-cell .center { font-size: 17px; } }

@media (max-width: 1280px) { .day-cell .center { font-size: 18px; } }
@media (max-width: 1366px) { .day-cell .center { font-size: 18px; } }
@media (max-width: 1440px) { .day-cell .center { font-size: 19px; } }
@media (max-width: 1920px) { .day-cell .center { font-size: 20px; } }

@media (max-width: 2560px) { .day-cell .center { font-size: 28px; } }
@media (max-width: 3440px) { .day-cell .center { font-size: 32px; } }
@media (max-width: 3840px) { .day-cell .center { font-size: 38px; } }
@media (max-width: 5120px) { .day-cell .center { font-size: 40px; } }




/* 3 ///////////////////////// */


/* Table base */
.layout-table {
  width: 100%;
  border-collapse: collapse;
}

/* .row {
  border-bottom: 2px solid var(--box-border-color);
} */

/* Left column */
.leftHand {
  width: 20%;
  text-align: left;
  vertical-align: middle;
  justify-content: flex-start;
}

/* Middle column */
.middleHand {
  width: 60%;
  text-align: center;
  vertical-align: middle;
}

.topHand h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
}
.topHand {
    margin-top: 2%;
    /* margin-bottom: -2%; */
}

.bottomHand {
  margin-top: 5px;
  font-size: 0.9rem;
  color: #555;
}

/* .row td {
  vertical-align: middle; 
} */


/* Right column */
.rightHand {
  width: 20%;
  text-align: right;
  vertical-align: middle;
  justify-content: flex-end;
}

.leftHand, .rightHand {
  /* display: flex; */
  align-items: center;   /* vertical centering */
}

/* Fixed small button style */
.small-btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 4px;
  background-color: #0078d7;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* --- Responsive breakpoints for all devices --- */

/* Mobile (small phones up to large phones) */
@media (max-width: 425px) {
  .layout-table {
    width: 100%;
  }
  .leftHand, .rightHand {
    text-align: center;
  }
  .middleHand {
    text-align: center;
  }
  .topHand h3 {
    font-size: 1.2rem;
  }
  .bottomHand {
    font-size: 0.8rem;
  }
}

/* Tablet */
@media (max-width: 600px),
       (max-width: 768px),
       (max-width: 834px),
       (max-width: 1024px) {
  .topHand h3 {
    font-size: 1.3rem;
  }
  .bottomHand {
    font-size: 0.85rem;
  }
}

/* Laptop/Desktop */
@media (max-width: 1280px),
       (max-width: 1366px),
       (max-width: 1440px),
       (max-width: 1920px) {
  .topHand h3 {
    font-size: 1.4rem;
  }
  .bottomHand {
    font-size: 0.9rem;
  }
}

/* Extra wide */
@media (max-width: 2560px),
       (max-width: 3440px),
       (max-width: 3840px),
       (max-width: 5120px) {
  .layout-table {
    max-width: 80%;
    margin: auto;
  }
  .topHand h3 {
    font-size: 1.6rem;
  }
  .bottomHand {
    font-size: 1rem;
  }
}

.liveResultTitles {
  background-color: #ff00a2;
}

.layout-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--box-border-color);
}


.titles {
  background-color: #ff00a2; /* uses same variable */
  border: 2px solid #fff;
  border-radius: 12px;
  padding-top: 8px;
  margin: 20px auto;
  text-align: center;
  color: #fff8f8;
  max-width: 97%;
}



/* Small phones */
@media (max-width: 320px) {
  .titles {
    font-size: 14px;
    padding: 4px 8px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .titles {
    font-size: 16px;
    padding: 5px 9px;
  }
}

/* Laptops */
@media (max-width: 1366px) {
  .titles {
    font-size: 18px;
  }
}

/* Desktops */
@media (max-width: 1920px) {
  .titles {
    font-size: 20px;
  }
}

.no-style-link {
    text-decoration: none;
    font-style: normal;
    color: inherit;
}
/*
.party-table-wrapper {
    width: 100%;
    overflow-x: auto;
}
.party-table {
    width: 100%;
    min-width: 500px;
}
.party-table th,
.party-table td {
    vertical-align: middle;
}
.party-table input[type="number"] {
    width: 100%;
    max-width: 100px;
    box-sizing: border-box;
}
@media (max-width: 576px) {
    .container {
        width: 100%;
        padding: 10px;
    }
    .party-table {
        min-width: 450px;
    }
    .party-table th,
    .party-table td {
        padding: 8px;
        font-size: 14px;
    }
}
*/