/* == GLOBAL RESET == */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: #ffffff;
  color: #111111;
  font-family: 'Poppins', sans-serif;
}

.table {
   margin-bottom: 0 !important;
}

/* == MAIN PAGE == */
.jodi-page {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px 30px;
}

.chart-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 27px;
  padding: 4px 14px;
  border: 1px solid #26A69A;
  border-radius: 4px;
  background: #80CBC4;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 5px;
}

.jodi-chart-navigation {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 12px 0;
}

.jodi-chart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 12px 8px;
    border: 1px solid #e0d7a3;
    border-radius: 5px;
    background: #fff8c9;
    color: #880e4f;
    font-family: Georgia, serif;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

/* == WEBSITE TITLE == */

.site-heading {
  display: block;
  width: 100%;
  margin: 12px 0 8px;
  text-align: center;
  text-decoration: none !important;
}

.site-heading h1 {
  margin: 0;
  padding: 8px 10px;
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.25;
  font-weight: 700;
  color: #e66526;
  text-transform: uppercase;
  word-break: break-word;
}

/* == MARKET HEADER == */
.market-header {
  width: 100%;
  margin: 0 auto 12px;
  padding: 12px 10px;
  text-align: center;
  background: linear-gradient(135deg, #d71920, #f4511e);
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.market-header .market-name {
  margin: 0;
  color: #ffffff;
  font-size: clamp(30px, 2.2vw, 30px);
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.market-name a {
  color: #fff;
}

.market-header .market-result {
  margin: 3px 0 0;
  color: #FFFF00;
  font-size: clamp(25px, 1.5vw, 30px);
  line-height: 1.3;
  font-weight: 800;
  overflow-wrap: anywhere;
}

/* == SCROLL NAVIGATION == */
.scroll-navigation,
.footer-navigation {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.scroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 135px;
  padding: 8px 15px;
  border: 0;
  border-radius: 5px;
  color: #ffffff !important;
  background: #dc3545;
  font-family: inherit;
  font-size: clamp(11px, 1.4vw, 14px);
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.scroll-btn:hover {
  color: #ffffff !important;
  background: #b91f30;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.20);
}

.scroll-btn:active {
    transform: translateY(0);
}

/* == CHART TITLE == */
.chart-title {
  width: 100%;
  margin: 10px 0 0;
  padding: 10px 8px;
  text-align: center;
  color: #ffffff;
  background: #343a40;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  border: 3px solid #E65100;
}

.chart-title h2 {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

/* == TABLE WRAPPER == */
.chart-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 3px solid #E65100;
  border-top: 0;
  background: #ffffff;
}

/* == JODI TABLE == */

.jodi-table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  background: #ffffff;
  font-size: clamp(9px, 1.4vw, 14px);
}

/* == JODI TABLE CELLS == */

.jodi-table th,
.jodi-table td {
  width: auto;
  margin: 0;
  padding: clamp(4px, 0.7vw, 8px) clamp(2px, 0.5vw, 5px) !important;
  text-align: center;
  vertical-align: middle !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  border-top: 1px solid #795548;
  border-left: 1px solid #795548;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* == FIRST COLUMN == */
.jodi-table th:first-child,
.jodi-table td:first-child {
  border-left: 0;
}

/* == TABLE HEADER == */
.jodi-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: clamp(4px, 0.6vw, 7px) clamp(2px, 0.4vw, 4px) !important;
  background: #212529;
  color: #ffffff;
  font-size: clamp(8px, 1.15vw, 13px);
  line-height: 1.15;
  font-weight: 700;
  text-transform: uppercase;
  white-space: normal;
}

/* == JODI TABLE BODY == */
.jodi-table tbody td {
  background: #ffffff;
  color: #000000;
  font-size: clamp(22px, 2.35vw, 25px);
  line-height: 1.15;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: Georgia, serif;
}

/* == ALTERNATE ROW == */
.jodi-table tbody tr:nth-child(even) td {
  background: #f8f9fa;
}

/* == HOVER == */
.jodi-table tbody tr:hover td {
  background: #fff5f5;
}

/* == FOOTER== */
.site-footer {
  width: 100%;
  margin-top: 15px;
  padding: 12px 10px;
  text-align: center;
  background: #212529;
  border-radius: 5px;
}

.footer-text {
  margin: 0;
  color: #ffffff;
  font-size: clamp(10px, 1.4vw, 14px);
  line-height: 1.6;
  font-weight: 600;
}

/* == FLOATING BUTTONS == */
.floating-scroll {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-scroll button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: #dc3545;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.floating-scroll button:hover {
  background: #b91f30;
  transform: scale(1.05);
}

/* == MOBILE == */

@media (max-width: 768px) {
  .jodi-page {
    padding-left: 6px;
    padding-right: 6px;
  }
  
  .jodi-table th,
  .jodi-table td {
    padding: 5px 2px !important;
  }

}

/* == SMALL MOBILE == */

@media (max-width: 480px) {
  .jodi-page {
    padding-left: 4px;
    padding-right: 4px;
  }
  .site-heading {
    margin-top: 8px;
  }
  .market-header {
    padding: 9px 6px;
  }
  .scroll-btn {
    min-width: 125px;
    padding: 7px 11px;
    font-size: 11px;
  }
  .jodi-table {
    font-size: 10px;
  }
  .jodi-table th,
  .jodi-table td {
    padding: 5px 1px !important;
    line-height: 1.1;
  }
  .jodi-table thead th {
    font-size: 10px;
  }
  .jodi-table tbody td {
    font-size: 22px;
  }
  .floating-scroll {
    right: 8px;
    bottom: 8px;
  }
  .floating-scroll button {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

}
/* == VERY SMALL MOBILE == */

@media (max-width: 360px) {

  .jodi-page {
    padding-left: 2px;
    padding-right: 2px;
  }
  .jodi-table th,
  .jodi-table td {
    padding: 4px 1px !important;
  }
  .jodi-table thead th {
    font-size: 9px;
  }
  .jodi-table tbody td {
    font-size: 18px;
  }

}


/*Footer Modern code start*/

.modern-footer {
    width: 100%;
    box-sizing: border-box;
    margin-top: 25px;
    padding: 28px 16px;
    background: #060c47;
    color: #e5e7eb;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

.modern-footer * {
    box-sizing: border-box;
}

.footer-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 22px;
}

.footer-link-group {
    display: contents;
}

.footer-links a {
    display: inline-block;
    color: #dbeafe;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #fbbf24;
}

.footer-divider {
    width: 100%;
    max-width: 650px;
    height: 1px;
    margin: 0 auto 10px;
    background: rgba(255, 255, 255, 0.18);
}

.footer-brand {
    display: inline-block;
    color: #ffffff;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-decoration: none;
}

.footer-brand:hover {
    color: #fbbf24;
}

.footer-copyright {
    margin: 10px 0 5px;
    color: #aeb8cc;
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: 1px;
}

.footer-domain {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.footer-domain a {
    color: #93c5fd;
    text-decoration: none;
}

.footer-domain a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

/* Tablet */
@media (max-width: 768px) {
    .modern-footer {
        padding: 24px 14px;
    }

    .footer-links {
        gap: 8px 18px;
        margin-bottom: 5px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-brand {
        font-size: 24px;
    }
}

/* Mobile: 3 links per row */
@media (max-width: 600px) {
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .footer-link-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 14px;
    }

    .footer-links a {
        font-size: 18px;
        white-space: normal;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .modern-footer {
        padding: 22px 12px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .footer-link-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 14px;
    }

    .footer-links a {
        font-size: 18px;
        white-space: normal;
        text-align: center;
    }

    .footer-brand {
        font-size: 22px;
    }

    .footer-copyright {
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .footer-domain {
        font-size: 12px;
    }
}


/*Footer Modern code End*/
