body{
    background-color: #2e2e2e;
    color: white;
    width: 99%;
    font-family: Poppins;
}

h1, h4{
    text-align: center;
}


.sport_name {
    font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center; /* Optional: center the whole content horizontally */
  gap: 10px; /* equal space between items */
  height:29px;
}
.sport_name img {
  display: inline-block;
  vertical-align: middle;
  height: 16px; /* logos */
}
.flag {
  height: 25px; /* flags a bit smaller */
}

.center-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.weekend-range-box {
  background: #252525;
  color: #eee;
  font-weight: 500;
  padding: 12px 32px;
  border-radius: 12px;
  min-width: 220px;
  text-align: center;
  border: 2px solid #343434;
  letter-spacing: 1px;
  font-size: 1.1em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.nav-btn {
  background: #252525;
  color: #eee;
  border: 2px solid #343434;
  border-radius: 8px;
  font-size: 1.6em;
  width: 2.2em;
  height: 2.2em;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s, color 0.2s;
  margin: 0 6px;
}
.nav-btn:hover { background: #222; color: #fff; }

.row-greyed-out {
  color: #777;
  opacity: 0.5;
  transition: 0.25s;
}

.row-greyed-out:hover{
  opacity: 0.75;
  transition: 0.25s;
}

.live-indicator {
  display: inline-block;
  margin-left: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: red;
  animation: blink 1.2s infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

.filter-checkbox {
  margin: 0 12px 0 0;
  transform: scale(1.3);
  accent-color: #ff5500;
}

.filter-label {
  margin-right: 18px;
  color: #ddd;
  font-size: 1.0em;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  vertical-align: middle;
}

.center-nav {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-btn {
  background: #252525;
  color: #eee;
  border: 2px solid #343434;
  border-radius: 8px;
  font-size: 1.2em;
  padding: 10px 24px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 1px;
}
.dropdown-content {
  display: none;
  position: absolute;
  transform: translateX(-70%);
  top: 110%;
  min-width: 350px;
  background: #232323;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,.15);
  z-index: 99;
  padding: 14px 26px 14px 26px;
  border-radius: 10px;
  border: 1.7px solid #343434;
  text-align: center;
}
.dropdown:hover .dropdown-content,
.dropdown .dropdown-content:focus-within,
.dropdown-content:hover {
  display: block;
}
.center-control-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}
.multi-btn {
  background: #232323;
  color: white;
  border: none;
  font-weight: 600;
  border-radius: 6px;
  font-size: 1.04em;
  padding: 5px 18px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.multi-btn:active { background: #151515; color: #494949; }

#dropdown-filters { display: flex; flex-direction: column; align-items: center; }

.filter-item-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  margin: 4px 0;
}

.filter-checkbox {
  accent-color: #494949;
  margin-right: 13px;
  margin-left: 0;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.filter-logo {
  display: inline-block;
  min-width: 64px;
  text-align: left;
  margin-right: 12px;
}
.filter-label {
  color: #fff;
  font-weight: 500;
  font-size: 1.08em;
  flex: 1;
  text-align: left;
  font-family: "Poppins",sans-serif;
  cursor: pointer;
}

.navbar-row {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  margin-bottom: 18px;
}

.navbar-row .flex-spacer {
  flex: 1 1 0%;
}

#race-weekend-nav.center-nav {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#filter-dropdown-bar {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 230px;
  margin-left: 30px;
}

.navbar-table{
  border: none;
}

.navbar-table > tbody > tr > td{
  border: none;

}

#date-time {
  position: fixed;
  text-align: center;
  top: 1em;
  right: 1em;
  background: #222;
  color: #fff;
  padding: 1em;
  font-family: Poppins;
  font-size: 1em;
  border-radius: 6px;
  z-index: 9999;
  white-space: nowrap;
  width: 250px;
}

#event-hover-card {
  pointer-events: none;
  z-index: 1000;
  min-width: 500px;
  min-height: 150px;
  padding: 30px;
  border-radius: 18px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.24);
  transform: translate(-42.5%, -110%) scale(1);
  backdrop-filter: blur(20px);
  text-align: center;
  position: absolute;
  overflow: hidden;
}

#event-hover-track {
  height: 150px;
  width: auto;
}
#event-hover-title {
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}


#schedule-table td:nth-child(2) {
  white-space: nowrap;
  position: relative; /* to help with positioning if needed */
}

.event-dropdown {
  position: absolute;
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0,0,0,0.6);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease;
  pointer-events: none;
  z-index: 10;
  width: 220px;
}

.event-dropdown.visible {
  opacity: 1;
  max-height: 200px;
  pointer-events: auto;
}

.event-dropdown-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-toggle-btn {
  background-color: #444;
  border: none;
  color: white;
  cursor: pointer;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  user-select: none;
  flex-shrink: 0;
}

.event-detail-row td {
  padding: 12px 20px;
  color: white;
  border-top: none;
  border-bottom: 1px solid #494949;
  font-size: 0.9em;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  overflow: hidden;
  max-height: 0;
}

.event-detail-row {
  background-color: #444;
  display: none !important;
}

.event-detail-row.expanded {
  background-color: #444;
  display: table-row !important;
  opacity: 1 !important;
  max-height: 150px !important;
  padding: 12px 20px;
  border-top: none;
  border-bottom: 1px solid #494949;
}

.expand-btn {
  background-color: #444;
  border: none;
  color: white;
  cursor: pointer;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 4px;
  user-select: none;
  width: 30px;
  height: 30px;
  font-size: 18px;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dropdown-table{
  border: none;
  background: none;
}

.event-progress-bar {
  position: relative;
  width: 100%;
  height: 32px;
  margin-top: 12px;
}
.event-progress-bar .progress-bg {
  background: #222;
  border-radius: 16px;
  width: 100%;
  height: 16px;
  position: absolute;
  top: 8px;
  left: 0;
  opacity: 0.3;
}
.event-progress-bar .progress-fg {
  background: #ff0000;
  border-radius: 16px;
  height: 16px;
  position: absolute;
  top: 8px;
  left: 0;
}
.event-progress-bar .progress-icon {
  position: absolute;
  top: 0;
  transform: translate(-50%, 0);
}

.event-row{
  transition: 0.25s;
}


.event-row:hover{
  background-color: #2a2a2a;
  transition: 0.25s;
}