/* =========================================================
   THEME TOKENS
   ========================================================= */
:root{
  --lotto-yellow:#f9d24a;
  --lotto-yellow-2:#f9d24a;
  --lotto-gold:#f9d24a;
  --lotto-black:#000000;
  --lotto-white:#ffffff;
  --lotto-grad-top:#0c0c0c;
  --lotto-grad-bot:#1a0f00; /* deep brown/gold tint */
}

/* =========================================================
   GLOBAL / LAYOUT
   ========================================================= */
*{ box-sizing:border-box; }

html,body{
  height:100%;
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  color:#111;
}

.lottery-bg{
  /* Gradient background (not flat black) */
  background: linear-gradient(180deg, var(--lotto-grad-top) 0%, var(--lotto-grad-bot) 100%);
  background-attachment: fixed;
  background-size: cover;
}

.wrapper{
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

.page-body{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
}

/* =========================================================
   LOGO
   ========================================================= */
.logo-area{
  padding:2px;
  background:#f9d24a;
  display:flex;
  justify-content:center;
   border: 3px solid #ffffff;
    margin: 0 10px 0px;
}
.logo-area img{ max-height:70px; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
    width: 100%;
    max-width: 980px;
    margin: 8px auto -30px;
    /* border: 2px solid var(--lotto-gold); */
    border-radius: 10px;
    /* background: linear-gradient(90deg,#c18000 60%,#bb611e 100%); */
    box-shadow: 0 2px 16px rgba(0,0,0,.12);
    color: #fff;
    font-weight: 700;
    letter-spacing: .5px;
    overflow: hidden;
}
.marquee marquee{
  display:block;
  padding:12px 8px;
  font-size:1.1rem;
}

/* =========================================================
   SLIDER
   ========================================================= */
.slider-container{
  background:linear-gradient(135deg,#fffbe6 0%, var(--lotto-gold) 100%);
  border:2px solid var(--lotto-gold);
  box-shadow:0 6px 32px rgba(255,214,0,.18);
  width:100%;
  max-width:980px;
  margin:0 auto 14px;
  overflow:hidden;
}
.slider-img{
  width:100%;
  height:320px;
  object-fit:cover;
  border:2px solid #f0f4fb;
  background:#f8fafc;
  transition:transform .25s ease;
  display:block;
}
.slider-img:hover{ transform:scale(1.03); }
.carousel-control-prev-icon,
.carousel-control-next-icon{ filter:invert(1); }

/* =========================================================
   RESULTS SECTION (COMPACT CARD)
   ========================================================= */
.results-section {
    width: 100%;
    max-width: 980px;
    margin: 10px auto 28px;
    background: rgb(22 14 3);
    border: 0px solid var(--lotto-gold);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
    padding: 22px 18px;
}

/* Make the inside content compact (table not stretched full) */
.results-compact{
  max-width:780px;          /* << compact width per your request */
}

.results-header{
  display:flex;
  justify-content:center;
  margin-bottom:12px;
}

/* Big yellow action button (Result Report, Submit) */
.lotto-btn{
  display:inline-block;
  background:var(--lotto-yellow);
  color:#000;
  border:3px solid #000;
  border-radius:10px;
  font-weight:800;
  letter-spacing:.4px;
  padding:8px 18px;
  text-transform:uppercase;
  cursor:pointer;
  box-shadow:0 3px 0 #000;
  transition:transform .05s ease, box-shadow .05s ease, filter .2s ease;
}
.lotto-btn:hover{ filter:brightness(1.05); }
.lotto-btn:active{ transform:translateY(1px); box-shadow:0 2px 0 #000; }

/* =========================================================
   INLINE DATE SELECTOR (ONE ROW)
   ========================================================= */
.results-filters.inline-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 3px solid #ffffff;
    background: #fad14a;
    padding: 10px 14px;
    border-radius: 0px;
    margin: 0 auto 14px;
    width: auto;
}

.inline-label{
  font-weight:800;
  color:#000;
  white-space:nowrap;
  font-size: 21px !important;
}

.lotto-date{
  border:3px solid #000;
  border-radius:10px;
  padding:8px 12px;
  font-weight:800;
  background:#ffffff;
  color:#000;
  min-width:220px;
  outline:none;
}

/* keep Submit visually same as header button */
.submit-btn{}

/* On very small screens, allow wrap but keep order */
@media (max-width:520px){
  .results-filters.inline-box{
    flex-wrap:wrap;
    gap:8px;
  }
}

/* =========================================================
   TABLE (BLACK HEADER + YELLOW BODY + WHITE GRIDS)
   ========================================================= */
.table-responsive{
  width:100%;
  overflow-x:auto;
}

/* Thick yellow frame around table */
.table-wrap {
    width: 100%;
    border: 3px solid #ffffff;
    border-radius: 0px;
    overflow: hidden;
    margin: 0 auto;
}

.dataTables_wrapper,
.dataTables_wrapper .row,
#homeResultTable{ width:100% !important; }

/* Core table */
#homeResultTable{
  border-collapse:collapse;
  table-layout:fixed;
  background:#ffffff; /* body yellow */
  font-weight:700;
  margin:0;
}

/* Header: black with yellow text, white grid */
#homeResultTable thead th {
    background: #f9d24a;
    color: #000000;
    text-align: center;
    border: 3px solid #ffffff;
    padding: 10px 8px;
    font-size: 22px !important;
}

/* Cells: yellow with white grid */
#homeResultTable tbody td{
  background:var(--lotto-yellow);
  color:#000;
  border:2px solid var(--lotto-white);
  text-align:center !important;
  padding:10px 6px;
  font-size:22px !important;
}

/* subtle stripe */
#homeResultTable tbody tr:nth-child(odd) td{
  background:var(--lotto-yellow-2);
}

/* Remove datatables UI (you fill via JS) */
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate{
  display:none !important;
}

/* Prevent any unexpected shrinkage by plugin wrappers */
.dataTables_wrapper .dataTables_scroll,
.dataTables_wrapper .dataTables_scrollHead,
.dataTables_wrapper .dataTables_scrollBody{
  width:100% !important;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer{
  background:#f9d24a;
  color:#fff;
  text-align:center;
  font-size:15px;
  font-weight:600;
  padding:12px 8px;
}
footer p{ margin:0; }

/* =========================================================
   MOBILE TWEAKS
   ========================================================= */
@media (max-width:600px){
  .logo-area img{ max-height:54px; }
  .slider-img{ height:150px; }
  .results-section{ padding:16px 12px; }
  #homeResultTable thead th{ font-size:17px; padding:8px 6px; }
  #homeResultTable tbody td{ font-size:17px; padding:4px 6px; }
}
/* Inline Date Selector Row */
.results-filters.inline-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 3px solid #ffffff;
    background: #f9d24a;
    padding: 10px 14px;
    border-radius: 0px;
    margin: 0 auto 14px;
    width: auto;
}

/* Label */
.results-filters.inline-box .inline-label {
  font-weight: 800;
  color: #000;
  white-space: nowrap;
}

/* Date input */
.results-filters.inline-box input[type="date"] {
    border: 2px solid #000;
    border-radius: 6px;
    padding: 5px 8px;
    font-weight: 700;
    background: #f9d24a;
    color: #000;
    width: auto;
    min-width: 160px;
    font-size: 21px;
}

/* Submit button */
.results-filters.inline-box .submit-btn {
  background: var(--lotto-yellow);
  border: 2px solid #000;
  border-radius: 8px;
  font-weight: 800;
  padding: 7px 16px;
  cursor: pointer;
}
*{
    font-family:carter sans-serif !important;
}

table.dataTable thead>tr>th.sorting:after, table.dataTable thead>tr>th.sorting_asc:after, table.dataTable thead>tr>th.sorting_desc:after, table.dataTable thead>tr>th.sorting_asc_disabled:after, table.dataTable thead>tr>th.sorting_desc_disabled:after, table.dataTable thead>tr>td.sorting:after, table.dataTable thead>tr>td.sorting_asc:after, table.dataTable thead>tr>td.sorting_desc:after, table.dataTable thead>tr>td.sorting_asc_disabled:after, table.dataTable thead>tr>td.sorting_desc_disabled:after {
    top: 50%;
    content: "▼";
    content: "▼"/"";
    display: none;
}

table.dataTable thead>tr>th.sorting:before, table.dataTable thead>tr>th.sorting_asc:before, table.dataTable thead>tr>th.sorting_desc:before, table.dataTable thead>tr>th.sorting_asc_disabled:before, table.dataTable thead>tr>th.sorting_desc_disabled:before, table.dataTable thead>tr>td.sorting:before, table.dataTable thead>tr>td.sorting_asc:before, table.dataTable thead>tr>td.sorting_desc:before, table.dataTable thead>tr>td.sorting_asc_disabled:before, table.dataTable thead>tr>td.sorting_desc_disabled:before {
    bottom: 50%;
    content: "▲";
    content: "▲"/"";
    display: none;
}