:root {
  /**  @font family declaration */
  --bd-primary: #1d9c00;
  --bd-secondary: #ffb800;
  --font-family1: "Roboto", serif;
  --font-family2: "Oswald", serif;
  --bd-body-text: #808080;
  --bd-fs-body: 1rem;
  --bd-body-primary: #e5fff2;
  --bd-white: #ffffff;
  --bd-black: #000000;
}

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  color: var(--bd-body-text);
  font-family: var(--font-family1);
  font-size: var(--bd-fs-body);
  font-weight: normal;
  line-height: 1.5;
  background: var(--bd-body-primary);
}

a {
  text-decoration: none;
}

p {
  margin: 0;
}

.nav-link a:hover {
  color: var(--bd-primary);
}

.ff1 {
  font-family: var(--font-family1);
}

.ff2 {
  font-family: var(--font-family2);
}

.fs-06 {
  font-size: 0.6rem;
}

.fs-07 {
  font-size: 0.7rem;
}

.fs-08 {
  font-size: 0.8rem;
}

.fs-09 {
  font-size: 0.9rem;
}

.fs-10 {
  font-size: 1rem;
}

.fs-12 {
  font-size: 1.2rem;
}

.fs-14 {
  font-size: 1.4rem;
}

.fs-16 {
  font-size: 1.6rem;
}

.fs-18 {
  font-size: 1.8rem;
}

.bg-light-green {
  background: var(--bd-body-primary);
}

.fs-20 {
  font-size: 2rem;
}

.btn-success {
  background: var(--bd-primary);
}

.bg-success {
  background: var(--bd-primary) !important;
}

.btn-full {
  background-color: #000;
  color: yellow;
  font-weight: bold;
}

.navbar {
  background-color: var(--bd-white);
}

.navbar-nav .nav-link:hover {
  border-bottom: 2px #1d9c00 solid;
}

.bd-header-top {
  background-color: var(--bd-primary);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.background-color-primary {
  background-color: var(--bd-primary);
}

@media (max-width: 991.98px) {
  .offcanvas-collapse {
    border: 1px solid #dedede;
    position: fixed;
    top: 72px; /* Height of navbar */
    bottom: 0;
    left: 100%;
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    overflow-y: auto;
    visibility: hidden;
    background-color: var(--bd-white);
    /*background-color: #343a40;*/
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }

  .offcanvas-collapse.open {
    visibility: visible;
    transform: translateX(-100%);
  }
}

.mainContent {
  display: block;
  min-height: calc(100vh - 259px);
}

.mainContent .form-check {
  min-height: 1rem;
}

.mainContent .form-check-input {
  border: 1px solid var(--bd-primary);
}

.go-top {
  position: fixed;
  bottom: 2em;
  right: 2em;
  text-decoration: none;
  color: white;
  background-color: var(--bd-body-primary);
  font-size: 1rem;
  padding: 1em;
  display: none;
}

.go-top:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 575px) {
  .bd-header-top {
    display: none;
  }

  .navbar {
    margin-top: 0px;
  }

  .navbar-nav {
    padding-top: 20px;
  }

  .navbar-nav .nav-link {
    background: var(--bd-body-primary);
    border-radius: 8px;
    margin-bottom: 4px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .navbar-nav .nav-link:hover {
    text-decoration: none;
  }
}

/* Default Table Styling */
.table-contest {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.table-contest th,
.table td {
  padding: 0.5rem;
  text-align: left;
  border: 1px solid #dee2e6;
}

.table-contest th {
  background-color: #f8f9fa;
}

/* Responsive Table Styling for Mobile */
@media (max-width: 768px) {
  .table-contest {
    /* display: block; */
    width: 100%; /* Ensure it takes the full width */
    min-width: 380px;
  }

  .table-contest thead {
    display: none; /* Hide the table header */
  }

  .table-contest tr {
    display: block;
    margin-bottom: 1rem; /* Add space between rows */
    border-bottom: 2px solid #dee2e6; /* Visual separation */
  }

  .table-contest td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    width: 100%; /* Ensure cells take full width */
    padding: 0.5rem;
    position: relative;
    /* border: none; Remove borders inside rows */
    box-sizing: border-box;
  }

  .table-contest td::before {
    content: attr(data-label); /* Use the data-label for the pseudo-element */
    flex: 1; /* Allow space for the label */
    font-weight: bold;
    text-align: left;
    margin-right: 0.5rem;
    color: #6c757d; /* Muted text color for labels */
  }

  .table-contest td span {
    flex: 1; /* Ensure content aligns properly */
  }

  .table-contest td:last-child {
    border-bottom: none; /* Remove the last border for cleaner UI */
  }
}

.legend p {
  font-size: 0.938rem;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legend p.legend-icon {
  max-width: 80%;
}

.legend li span,
.legend span {
  background-color: yellow;
  font-size: 14px;
  padding: 1px 6px;
  margin-left: 5px;
  margin-right: 5px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 2px;
}

.scratched {
  text-decoration: line-through;
}

.voided {
  color: red !important;
  text-decoration: line-through;
}

.color-red {
  color: red !important;
}

.color-green {
  color: #198754 !important;
}

.text-right {
  text-align: right !important;
}

.result-header {
  color: yellowgreen;
  font-weight: 600;
  font-size: 17px;
}

.custom-badge {
  font-size: 12px;
  color: #ffc107;
  border-radius: 50rem !important;
  background-color: #6c757d !important;
}

/********** Horse Racing Colors ************/

.numberT1 {
  background-color: #d20001;
  color: white;
  padding: 0px 5px;
}

.numberT2 {
  background-color: #cccccc;
  color: black;
  padding: 0px 5px;
}

.numberT3 {
  background-color: #2d2efa;
  color: white;
  padding: 0px 5px;
}

.numberT4 {
  background-color: #e8ea31;
  color: black;
  padding: 0px 5px;
}

.numberT5 {
  background-color: #008001;
  color: white;
  padding: 0px 5px;
}

.numberT6 {
  background-color: #242424;
  color: yellow;
  padding: 0px 5px;
}

.numberT7 {
  background-color: #fb581f;
  color: black;
  padding: 0px 5px;
}

.numberT8 {
  background-color: #fbaabd;
  color: black;
  padding: 0px 5px;
}

.numberT9 {
  background-color: #22c5c4;
  color: black;
  padding: 0px 5px;
}

.numberT10 {
  background-color: #8700cf;
  color: white;
  padding: 0px 5px;
}

.numberT11 {
  background-color: #8a8a8a;
  color: white;
  padding: 0px 5px;
}

.numberT12 {
  background-color: #a2dbae;
  color: black;
  padding: 0px 5px;
}

.numberT13 {
  background-color: #6c4735;
  color: white;
  padding: 0px 5px;
}

.numberT14 {
  background-color: #5d1231;
  color: white;
  padding: 0px 5px;
}

.numberT15 {
  background-color: #c9c2ba;
  color: black;
  padding: 0px 5px;
}

.numberT16 {
  background-color: #888aba;
  color: white;
  padding: 0px 5px;
}

.numberT17 {
  background-color: #2d3573;
  color: white;
  padding: 0px 5px;
}

.numberT18 {
  background-color: #a98cff;
  color: black;
  padding: 0px 5px;
}

.numberT19 {
  background-color: #ffad5b;
  color: black;
  padding: 0px 5px;
}

.numberT20 {
  background-color: #004f4f;
  color: white;
  padding: 0px 5px;
}

/*------------- Developer's Css -------------*/
.btn {
  padding: 0.3rem 0.5rem;
}

.race-button-mw {
  min-width: 65px;
}

.preloader {
  display: none;
  position: fixed;
  background-color: var(--bd-black);
  background-position: center center;
  background-repeat: no-repeat;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  text-align: center;
  opacity: 0.8 !important;
}

.preloader__image {
  animation-fill-mode: both;
  animation-name: flipInY;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  background-image: url(../images/dailycontest-logo-only-final.svg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 60px auto;
  width: 100%;
  height: 100%;
}

.preloader.show {
  display: block;
}

.track-table tbody tr.selected-row td,
.table tbody tr.selected-row td {
  background-color: rgba(29, 156, 0, 0.4) !important;
}

.form-select:focus,
.form-control:focus {
  border-color: #1d9c0066;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(25, 156, 0, 0.2);
}

.card-item {
  padding: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
  border-radius: 5px;
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  box-shadow: 0px 4px 5px 2px rgba(0, 0, 0, 0.05);
  -webkit-box-shadow: 0px 4px 5px 2px rgba(0, 0, 0, 0.05);
  -moz-box-shadow: 0px 4px 5px 2px rgba(0, 0, 0, 0.05);
}

.dropbtn {
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.dropbtn.icons li {
  background: none repeat scroll 0 0 black;
  height: 5px;
  width: 5px;
  line-height: 0;
  list-style: none outside none;
  margin-right: 15px;
  margin-top: 3px;
  vertical-align: top;
  border-radius: 50%;
  pointer-events: none;
}

.legend {
  display: flex;
}

.wager-card {
  transition: all 0.2s ease-in-out;
}

.nav-link,
.nav-link:focus,
.nav-link:hover {
  color: #000;
}

.navbar-nav .nav-link.active {
  color: var(--bs-navbar-active-color);
  border-bottom: 2px #1d9c00 solid;
}

#results .form-control-sm {
  padding: 0.2rem 0.25rem;
}

.modal .modal-header {
  background-color: var(--bd-primary);
}

.modal .modal-header h1,
.modal .modal-header .btn-close {
  color: #ffffff;
}

/* .modal .table th {
  background-color: var(--bd-primary);
  color: var(--bd-white);
} */

/* Table CSS */
th[data-label="Content Closes"],
th[data-label="Entry Fee"] {
  cursor: pointer;
  color: var(--bd-primary) !important;
}

th[data-label="Players"],
th[data-label="Pool"],
th[data-label="Leaderboard"],
th[data-label="Rules"],
th[data-label="Action"],
td[data-label="Players"],
td[data-label="Pool"],
td[data-label="Leaderboard"],
td[data-label="Rules"],
td[data-label="Action"] {
  text-align: center;
}

.ri-arrow-up-s-line,
.ri-arrow-down-s-line {
  font-size: 18px !important;
  line-height: 18px !important;
}

tr.bg-warning td {
  background-color: rgba(
    var(--bs-warning-rgb),
    var(--bs-bg-opacity)
  ) !important;
}
