/* ==========================================================================
   Base Styles
   ========================================================================== */
  :root {
    --highlight-color: #FFD700;
    --highlight-color-rgb: 255, 215, 0;
    --odds-update-flash-color: rgba(228, 252, 228, 0.3);
  }

  input[type="number"]::-webkit-outer-spin-button,
  input[type="number"]::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
  }

  input[type="number"] {
      -moz-appearance: textfield;
      appearance: textfield;
  }

   body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #222;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 1rem;
  background: #fff;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}


.competition-group .competition-events li {
  margin-right: 0;
  margin-left: 0;
}

.game-list-tab > .competition-events > li {
  margin-right: 12%;
  margin-left: 12%;
}

li:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

a {
  color: #007bff;
  text-decoration: none;
}

footer {
  margin-top: 20px;
  font-size: 12px;
  color: #555;
  text-align: center;
}

/* ==========================================================================
   Header / Top Section
   ========================================================================== */

.header-controls {
  position: relative;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  padding: 10px;
  border-radius: 5px;
}

.theme-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  gap: 5px;
  top: 5px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #dadada;
  transition: 0.4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  border-radius: 50%;
  left: 4px;
  bottom: 4px;
  background-color: rgb(255, 255, 255);
  transition: 0.4s;
}

input:checked+.slider {
  background-color: #054f6d;
}

  input:checked+.slider:before {
    transform: translateX(20px);
  }

.logo-container {
  text-align: center;
  margin: 10px 0;
}

.responsive-logo {
  max-width: 90px;
  height: auto;
  width: 100%;
  transition: transform 0.3s ease;
}

.responsive-logo:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   Main Content Headings
   ========================================================================== */
h1 {
  color: #333;
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
}

.description-radar {
  text-align: center;
  display: block;
  padding-bottom: 2%;
  color: #333;
  font-size: 0.9rem;
}

[data-i18n="noGamesFound"] {
  text-align: center;
  margin-top: 20px;
  font-size: 1.1rem;
  color: #666;
}

[data-i18n="noLiveGamesFound"],
[data-i18n="noTodayGamesFound"] {
  text-align: center;
  margin-top: 20px;
  font-size: 1.1rem;
  color: #666;
}

/* ==========================================================================
   Tab Navigation
   ========================================================================== */
.tab-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #dadada;
}

.tab-button {
  background-color: #f0f0f0;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 5px 5px 0 0;
  margin: 0 5px;
  color: #555;
}

.tab-button:hover {
  background-color: #e0e0e0;
}

.tab-button.active {
  background-color: #0056b3;
  color: white;
  border-bottom: 2px solid #007bff;
}

.game-list-tab {
  min-height: 300px;
}

html[data-theme="dark"] .tab-button {
  background-color: #333;
  color: #f0f0f0;
}

html[data-theme="dark"] .tab-button:hover {
  background-color: #444;
}

html[data-theme="dark"] .tab-button.active {
  background-color: #0056b3;
  color: #f0f0f0;
  border-bottom: 2px solid #007bff;
}

/* ==========================================================================
   Search and Favorites Section
   ========================================================================== */
.search-container {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center; 
  align-items: center;
  gap: 0.5em; 
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 650px; 
  margin: 0 auto;
  margin-bottom: 2%;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.search-input {
  padding: 0.75rem 1rem;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  padding-right: 6rem;
}

.search-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.clear-search-btn {
  position: absolute;
  right: 4rem;
  background: none !important;
  border: none;
  color: #444!important;
  font-size: 1.0rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.clear-search-btn:hover {
  color: #222;
}

.search-shortcut {
  position: absolute;
  right: 0.5rem;
  padding: 0.25rem 0.5rem;
  background-color: #eee;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #555;
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
}

html[data-theme="dark"] .search-shortcut {
  background-color: #555;
  color: #eee;
}

html[data-theme="dark"] .search-input {
  background-color: #cacaca;
  color: #333;
}

html[data-theme="dark"] .clear-search-btn {
  color: #555;
}

html[data-theme="dark"] .clear-search-btn:hover {
  color: #888;
}

.search-container button {
  padding: 0.75rem 1rem;
  flex-shrink: 0;
  background-color: #0056b3;
  color: white;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-container button {
  padding: 0.75rem 1rem;
  flex-shrink: 0;
  background-color: #0056b3;
  color: white;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-container button:hover {
  background-color: #004494;
}

.filter-button-container button {
  padding: 0.75rem 1rem;
  flex-shrink: 0;
  background-color: #15ab79;
  color: white;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-right: 0.2em;
}

.odds-filter-count {
  display: none;
  background-color: #0056b3;
  color: #fff;
  border-radius: 50%;
  font-size: 0.8em;
  font-weight: bold;
  margin-left: 0.5em;
  min-width: 1.5em;
  text-align: center;
  line-height: 1.5em;
}

  .filter-button-container button:hover {
    background-color: #15ab79;
  }

  .time-filter-container select {
    padding: 0.75rem 1rem;
    flex-shrink: 0;
    background-color: #15ab79; /* Matching the filter button's background */
    color: white;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    -webkit-appearance: none; /* Remove default select arrow */
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2C197.3L159.3%2C69.6c-3.2-3.2-8.4-3.2-11.6%2C0L1.4%2C197.3c-3.2%2C3.2-3.2%2C8.4%2C0%2C11.6l11.6%2C11.6c3.2%2C3.2%2C8.4%2C3.2%2C11.6%2C0l120.2-120.2l120.2%2C120.2c3.2%2C3.2%2C8.4%2C3.2%2C11.6%2C0l11.6-11.6C290.2%2C205.7%2C290.2%2C200.5%2C287%2C197.3z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 0.7em top 50%, 0 0;
    background-size: 0.65em auto, 100%;
    padding-right: 1.5em; /* Space for the custom arrow */
  }

  .time-filter-container select:hover {
    background-color: #15ab79;
  }

  html[data-theme="dark"] .time-filter-container select {
    background-color: #15ab79; /* Dark mode adjustment */
  }

  html[data-theme="dark"] .time-filter-container select:hover {
    background-color: #15ab79; /* Dark mode hover adjustment */
  }

.star {
  cursor: pointer;
  color: #a0a0a0;
  font-size: 20px;
  transition: color 0.3s ease;
  margin-right: 0.2em;
}

.star.favorited {
  color: #FFD700;
}

.star-competition {
  cursor: pointer;
  color: #a0a0a0;
  font-size: 20px;
  transition: color 0.3s ease;
  margin-right: 5px;
}

.star-competition.favorited {
  color: #FFD700;
}

/* ==========================================================================
   Game List Section
   ========================================================================== */
.competition-group {
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background-color: #f9f9f9;
  margin-right: 12%;
  margin-left: 12%;
  min-height: 50px;
}

.competition-group h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #007bff;
  font-size: 1.2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.competition-group h2 .accordion-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.competition-group.collapsed .competition-events {
  display: none;
}

.competition-group.collapsed .accordion-icon {
  transform: rotate(-90deg);
}


.competition-events {
  list-style: none;
  padding: 0;
  margin: 0;
}

.competition-events li {
  margin-bottom: 10px;
  background: #fff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-right: 0;
  margin-left: 0;
  min-height: 50px;
}

.event-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap; 
}

.event-header strong {
  flex-grow: 1;
  margin-top: 0.2em;
}

.event-time {
  display: block;
  font-size: 0.85em;
  color: #444;
  margin-left: 1.5em; 
}

.competition-events li:last-child {
  margin-bottom: 0;
}

.view-radar-btn {
  background-color: #19692c;
  color: white;
  margin-top: 0.2em;
  padding: 0.6rem;
  border: none;
  border-radius: 0.375rem;
  text-align: center;
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 0 rgba(1, 131, 27, 1);
  animation: pulse-shadow 2s infinite;
}

.view-radar-btn:hover {
  background-color: #114e1f;
}

.view-radar-wh-pack-btn {
  background-color: #007bff; 
  margin-top: 0.2em;
  padding: 0.6rem;
  border: none;
  border-radius: 0.375rem;
  text-align: center;
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
  margin-left: 0.5em; 
}

.view-radar-wh-pack-btn:hover {
  background-color: #0056b3;
}

.packball-link {
  display: inline-block;
  vertical-align: middle;
}

.packball-icon {
  display: inline-block;
  vertical-align: middle;
  width: 32px;
  height: auto;
  margin-top: 0.2em;
  margin-left: 0.5em;
  border-radius: 5px;
}

.radar-wh-pack-icon {
  display: inline-block;
  vertical-align: middle;
  width: 32px;
  height: auto;
  margin-top: 0.2em;
  margin-left: 0.5em;
  border-radius: 5px;
}

.analysis-btn {
  background: none;
  border: none;
  color: #ff8f00;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  transition: color 0.2s ease;
  margin-left: 0.5em;
  padding: 0;
}

.analysis-btn:hover {
  color: #a75d00;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 15px;
  width: 50px;
  height: 50px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#back-to-top:hover {
  background-color: #555;
  transform: scale(1.05);
}

#back-to-top .arrow-up {
  visibility: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#back-to-top .arrow-up::before {
  content: "\2191"; 
  visibility: visible;
  position: absolute;
  font-size: 20px; 
  color: white; 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#back-to-top:focus {
  outline: none;
}

/* ==========================================================================
   Donation Section
   ========================================================================== */
.donation-section {
  margin-top: 30px;
}

.donation-options {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pix-option .qrcode {
  width: 100px;
  height: 100px;
  border-radius: 8px;
}

.pix-option .font-smaller {
  font-size: small;
  color: #444;
  margin-top: -10px;
}

.donate-button {
  background-color: #007bff;
  color: white;
  padding: 7px 10px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 20px auto;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.donate-button:hover {
  background-color: #0056b3;
}

.payment-methods-icons {
  text-align: center;
}

.payment-methods-icons img {
  width: 24px;
  height: 24px;
  gap: 2
}

.footer-timestamps {
  text-align: left;
  margin-left: 12%;
}

/* ==========================================================================
   Dark Mode Styles
   ========================================================================== */
html[data-theme="dark"] {
  background-color: #121212;
  color: #f0f0f0;
}

html[data-theme="dark"] body {
  background-color: #121212;
  color: #f0f0f0;
}

html[data-theme="dark"] .description-radar {
  color: #f0f0f0;
}

html[data-theme="dark"] .pix-option .font-smaller {
  color: #ccc;
}

html[data-theme="dark"] li {
  background: #333;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] .view-radar-btn,
html[data-theme="dark"] .star {
  color: #fff;
}

html[data-theme="dark"] footer {
  color: #ddd;
}

html[data-theme="dark"] .search-container input {
  background-color: #cacaca;
  color: #333;
}

html[data-theme="dark"] .language-switch select {
  background-color: #333;
  color: #f0f0f0;
  border-color: #444;
}

html[data-theme="dark"] .tab-container {
  border-bottom: 2px solid #444;
}

html[data-theme="dark"] .logo-container img {
  filter: brightness(0.8);
}

html[data-theme="dark"] .star.favorited {
  color: #FFD700;
}

html[data-theme="dark"] .competition-group {
  background-color: #222;
  border-color: #444;
}

html[data-theme="dark"] .competition-group h2 {
  color: #6cb5ff;
  border-bottom-color: #444;
}

html[data-theme="dark"] .competition-events li {
  background: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .event-time {
  color: #cccccc;
}

html[data-theme="dark"] .odds-display {
    color: #cccccc;
}

html[data-theme="dark"] .odds-section-container {
    background: #222222;
    border-radius: 0.5em;
}

.odds-filter-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f0f0f0;
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

html[data-theme="dark"] .odds-filter-container {
  background-color: #222;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.odds-filter-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.odds-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 0.5em;
}

.odds-filter-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.odds-filter-group label {
  font-weight: bold;
  color: #333;
}

html[data-theme="dark"] .odds-filter-group label {
  color: #f0f0f0;
}

.filter-select,
.filter-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background-color: #fff;
  color: #333;
}

html[data-theme="dark"] .filter-select,
html[data-theme="dark"] .filter-input {
  background-color: #cacaca;
  color: #333;
  border-color: #555;
}

.filter-select:focus,
.filter-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.filter-button {
  padding: 0.75rem 1rem;
  background-color: #0056b3;
  color: white;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.filter-button:hover {
  background-color: #004494;
}

.clear-button {
  background-color: #dc3545;
}

.clear-button:hover {
  background-color: #c82333;
}

.remove-filter-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem; 
  width: 40px;
  height: 40px; 
}

.remove-filter-button svg {
  width: 24px;
  height: 24px;
}

.add-filter-button {
  background-color: #15ab79;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
}

.add-filter-button:hover {
  background-color: #096446; 
}

.add-filter-button svg {
  width: 24px;
  height: 24px;
}

.odds-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: right;
  margin-top: 1rem;
}

.language-switch select {
  padding: 0.2rem;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  background-color: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.language-switch select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.date-navigation-container {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 10px;
}

.date-nav-button {
  background-color: #ff6f00 !important;
  color: white;
  border: none;
  border-radius: 20px !important;
  padding: 8px 15px !important;
  font-size: 0.8rem !important;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.date-nav-button:hover:not(:disabled) {
  background-color: #e65100;
}

.date-nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

html[data-theme="dark"] .date-nav-button {
  background-color: #ff8f00;
}

html[data-theme="dark"] .date-nav-button:hover:not(:disabled) {
  background-color: #ff6f00;
}


/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 768px) {
  .responsive-logo {
    max-width: 70px;
  }

  .description-radar {
    font-size: 0.7rem;
    padding-bottom: 5%;
  }
}

@media (max-width: 600px) {
  .search-container {
    flex-direction: column;
    gap: 10px;
  }

  .search-container input,
  .search-container button,
  .filter-button-container {
    width: 80%;
    margin-bottom: 0;
    margin-left: 0;
  }
}

@media (max-width: 490px) {
  .search-container input,
  .search-container button,
  .filter-button-container,
  .time-filter-container,
  .time-filter-container select,
  .search-input-wrapper { 
    width: 100%;
    margin-right: 0;
    box-sizing: border-box;
  }

  .search-input-wrapper { 
    flex-grow: 0;
  }

  .search-container input {
    flex-grow: 0;
  }

  .search-container {
    max-width: 90%;
  }

  .clear-search-btn {
    right: 0;
  }
  
  .header-controls {
    flex-direction: column;
    align-items: flex-end;
    right: 15px;
    padding: 5px;
    gap: 5px;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-end;
  }

  .theme-switch {
    font-size: 10px;
    padding: 0;
    gap: 3px;
    margin-left: 0;
  }

  .switch {
    width: 36px;
    height: 20px;
  }

  .slider:before {
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
  }

  input:checked+.slider:before {
    transform: translateX(16px);
  }

  .logo-container {
    margin-top: 10px;
  }

  .responsive-logo {
    max-width: 70px;
  }

  h1 {
    font-size: 1.7rem;
  }

  .description-radar {
    font-size: 0.7rem;
    padding-bottom: 5%;
  }

  .tab-button {
    font-size: 0.9rem
  }

  .date-nav-button {
    margin: 0.2rem;
  }

  .competition-group {
    margin-right: 5%;
    margin-left: 5%;
  }

  .competition-events li {
    font-size: 0.77rem;
  }

  .analysis-btn {
    font-size: 0.77rem;
  }

  .event-header strong {
    width: 40%;
  }
  .star {
    font-size: 15px;
  }

  .view-radar-btn {
    padding: 0.4rem;
    font-size: 0.7rem;
  }

  .odds-display {
    margin-left: 2%;
  }

  .odds-display-inline {
    width: 85%;
    gap: 0.8rem !important;
    margin-left: 0.2rem !important;
  }

  .filter-button-container button {
    margin-bottom: 0.8em;
  }

  .filter-select {
    font-size: 0.8em;
  }

  .filter-input {
    font-size: 0.8em;
  }

  .odds-filter-count {
    font-size: 0.6em;
  }

  .odds-filter-wrapper {
    margin: 0 auto;
  }

  .odds-filter-row {
    gap: 0.5rem;
    font-size: 0.8em;
  }

  .odds-filter-actions {
    justify-content:center;
  }

  .language-switch select {
    font-size: 0.7rem;
    padding: 3px;
    top:2px
  }

  .footer-timestamps {
    margin-left: 5%;
  }

  .game-list-tab > .competition-events > li {
  margin-right: 5%;
  margin-left: 5%;
  }

  .date-navigation-container {
    width: 100%; 
    justify-content: center;
    margin-bottom: 10px; 
    margin-right: 0;
  }

  .date-nav-button {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 320px) {

  h1 {
    font-size: 1rem;
  }

  .description-radar {
    font-size: 0.6rem;
  }

  .header-controls {
    right: 10px;
    padding: 3px;
    gap: 3px;
  }

  .theme-switch {
    font-size: 9px;
    padding: 0;
    gap: 2px;
    margin-left: 0;
  }

  .switch {
    width: 30px;
    height: 18px;
  }

  .slider:before {
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
  }

  input:checked+.slider:before {
    transform: translateX(12px);
  }

  .language-switch select {
    font-size: 0.7rem;
    padding: 3px;
    top:2px
  }
}

/* ==========================================================================
   Odds Update Animation
   ========================================================================== */

[data-theme="dark"] {
  --odds-update-flash-color: rgba(14, 44, 14, 0.3);
}

.odds-section-container.updated-flash {
  border-radius: 4px;
  animation: flash-background 1s ease-out;
}
@keyframes flash-background {
  0% {
    background-color: var(--odds-update-flash-color);
    transform: scale(1.02);
  }
  100% {
    background-color: transparent;
    transform: scale(1);
  }
}

.odds-display-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem; 
  margin-left: 1.5rem;
}

.odds-display .odds-label {
  font-size: 0.8em;
  color: var(--text-secondary);
  grid-row: 1;
  padding-bottom: 0.3em;
}

.odds-display .odds-value {
  font-weight: bold;
  padding: 0.5em;
  grid-row: 2;
}

.odds-display {
    font-size: 0.8em;
    font-weight: 700;
    margin-top: 0.5em;
    color: #444;
    padding: 0.5em 0;
    border-radius: 0.5em;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease-out;
}

.odds-display--2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.odds-display .odds-value s {
  text-decoration: line-through;
  color: #767676;
  font-weight: normal;
}

html[data-theme="dark"] .odds-display .odds-value s {
  color: #a9a9a9;
}

.odds-container {
    width: 100%;
    border-radius: 0.5em;
}

.odds-section-container {
    display: flex;
    align-items: center;
    gap: 0.2em; 
    margin-top: 0.5em;
    background:#f9f9f9;
    border-radius: 0.5em;
    transition: all 0.2s ease-out;
}

.odds-refresh-icon {
  margin-left: 0.5rem;
  font-size: 1.2em;
  color: var(--highlight-color);
  animation: rotate-icon 0.8s ease-out;
}

@keyframes rotate-icon {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scrollbar Styles */
body {
  --sb-track-color: #232e33;
  --sb-thumb-color: #15ab79;
  --sb-size: 15px;
}

body::-webkit-scrollbar {
  width: var(--sb-size)
}

body::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 3px;
}

body::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 3px;
  
}

@supports not selector(::-webkit-scrollbar) {
  body {
    scrollbar-color: var(--sb-thumb-color)
                     var(--sb-track-color);
  }
}

.odds-logic-switch-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.odds-logic-switch-label {
  font-weight: bold;
  font-size: 0.8em;
  color: #555;
}

html[data-theme="dark"] .odds-logic-switch-label {
  color: #f0f0f0;
}

.odds-logic-switch .slider {
  background-color: #ccc;
}

html[data-theme="dark"] .odds-logic-switch .slider {
  background-color: #555;
}

.odds-logic-switch input:checked + .slider {
  background-color: #007bff;
}

html[data-theme="dark"] .odds-logic-switch input:checked + .slider {
  background-color: #007bff;
}

.odds-logic-switch .slider:before {
  background-color: white;
}


.vpn-popup-bottom {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vpn-popup-content {
    max-width: 90%;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
}

.vpn-popup-content h2 {
    color: #FFD700 !important;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.vpn-popup-content p {
    margin-bottom: 10px;
    line-height: 1.4;
    font-size: 0.9em;
}

.vpn-popup-content a {
    color: #0275d8;
    text-decoration: underline;
    font-weight: bold;
}

.vpn-popup-content a:hover {
    color: #025aa5;
}

.toggle-instructions-btn {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: background-color 0.2s ease;
}

.toggle-instructions-btn:hover {
    background-color: #0056b3;
}

.vpn-instructions-hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    opacity: 0;
    visibility: hidden;
}

.vpn-instructions-visible {
    max-height: 500px;
    transition: max-height 0.5s ease-in, opacity 0.5s ease-in;
    opacity: 1;
    visibility: visible;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.vpn-instructions-visible p,
.vpn-instructions-visible div {
    color: #f0f0f0;
}

.close-vpn-button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em !important;
    transition: background-color 0.2s ease;
}

.close-button:hover {
    background-color: #218838;
}

.download-vpn-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}

.download-vpn-btn:hover {
    background-color: #0056b3;
}

.vpn-popup-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .vpn-popup-content {
        padding: 10px;
    }

    .vpn-popup-content h2 {
        font-size: 1.2em;
    }

    .vpn-popup-content p {
        font-size: 0.8em;
    }

    .toggle-instructions-btn,
    .close-button,
    .download-vpn-btn {
        padding: 6px 12px;
        font-size: 0.8em;
        width: 100%;
        box-sizing: border-box;
    }

    .vpn-popup-actions {
        flex-direction: column;
        gap: 8px;
    }
}

.vpn-popup-actions button {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

@keyframes pulse-shadow {
    0% {
        box-shadow: 0 0 0 0 rgba(4, 184, 34, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.event-meta-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: 0.5em;
  flex-wrap: wrap;
}

.view-progress-link {
  color: #007bff;
  text-decoration: none;
  cursor: pointer;
}

.view-progress-link .accordion-icon {
  margin-left: 0.2em;
}

.event-details-container {
  margin: 1em 1em 0 1em;
}

.game-list-tab.loading {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

.game-list-tab.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .analysis-content {
    padding: 1em;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1em;
  }

  html[data-theme="dark"] .analysis-content {
    background-color: #222;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }

  .analysis-content h4 {
    color: #ff8f00;
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.1em;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5em;
  }

  html[data-theme="dark"] .analysis-content h4 {
    color: #ff8f00;
    border-bottom-color: #444;
  }

  .analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
    font-size: 0.9em;
  }

  .analysis-table th,
  .analysis-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
  }

  html[data-theme="dark"] .analysis-table th,
  html[data-theme="dark"] .analysis-table td {
    border-color: #444;
  }

  .analysis-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
  }

  html[data-theme="dark"] .analysis-table th {
    background-color: #333;
    color: #f0f0f0;
  }

  .analysis-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
  }

  html[data-theme="dark"] .analysis-table tbody tr:nth-child(even) {
    background-color: #2a2a2a;
  }

  .cell-highlight-green {
    background-color: #d4edda;
    color: #155724;
    font-weight: bold;
  }

  html[data-theme="dark"] .cell-highlight-green {
    background-color: #1f4f2a;
    color: #a3e6b3;
  }

  .cell-light-green {
    background-color: #e6ffe6;
    color: #155724;
  }

  html[data-theme="dark"] .cell-light-green {
    background-color: #2a3a2a;
    color: #c3f0c3;
  }

  .cell-highlight-red {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: bold;
  }

  html[data-theme="dark"] .cell-highlight-red {
    background-color: #5c2c30;
    color: #f5b7bc;
  }

  .cell-light-red {
    background-color: #fff0f0;
    color: #721c24;
  }

  html[data-theme="dark"] .cell-light-red {
    background-color: #3a2a2a;
    color: #f0c3c3;
  }

  .sequence-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 1em;
    justify-content: center;
  }

  .sequence-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    font-weight: bold;
    color: #333;
    font-size: 0.9em;
  }

  html[data-theme="dark"] .sequence-item {
    color: #f0f0f0;
  }

  .seq-loss {
    background-color: #f8d7da;
  }

  html[data-theme="dark"] .seq-loss {
    background-color: #5c2c30;
  }

  .seq-draw {
    background-color: #fff3cd; 
  }

  html[data-theme="dark"] .seq-draw {
    background-color: #5c522c;
  }

  .seq-win {
    background-color: #d4edda;
  }

  html[data-theme="dark"] .seq-win {
    background-color: #1f4f2a;
  }

  .responsible-gaming-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px 20px 100px;
    background-color: #222831;
    color: #eeeeee;
    margin-top: 20px;
    flex-wrap: wrap;
  }

.copyright-info {
  font-size: 0.9em;
  color: #cccccc;
  text-align: left;
  flex-basis: auto;
  padding-right: 10px;
}

.responsible-gaming-link {
  display: flex;
  align-items: center;
  color: #eeeeee;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s ease;
  flex-basis: auto;
  margin-right: 5%;
}

.responsible-gaming-link a {
  display: flex;
  align-items: center;
  color: #eeeeee;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.responsible-gaming-link a:hover {
  color: #aaaaaa;
}

.responsible-gaming-link img {
  width: 40px;
  height: auto;
  margin-right: 10px;
  vertical-align: middle;
}

html[data-theme="dark"] .responsible-gaming-section {
  background-color: #1a1a1a;
}

html[data-theme="dark"] .responsible-gaming-section .copyright-info {
  color: #b0b0b0;
}

html[data-theme="dark"] .responsible-gaming-section .responsible-gaming-link a {
  color: #cccccc;
}

html[data-theme="dark"] .responsible-gaming-section .responsible-gaming-link a:hover {
  color: #aaaaaa;
}

  html[data-theme="dark"] .responsible-gaming-section .responsible-gaming-link a:hover {
    color: #aaaaaa;
  }

  .social-buttons-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #333;
    transition: background-color 0.3s ease;
  }

  .social-button:hover {
    background-color: #555;
  }

  .social-button img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
  }

  html[data-theme="dark"] .social-button {
    background-color: #444;
  }

  html[data-theme="dark"] .social-button:hover {
    background-color: #666;
  }

@media (max-width: 768px) {
  .responsible-gaming-section {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }
  .social-buttons-container {
    justify-content: center;
  }

  .copyright-info {
    padding-right: 0;
    margin-bottom: 10px;
    text-align:center;
  }
}
