@font-face {
  font-family: 'TTLakes-Bold';
  src: url('fonts/TTLakes-Bold.woff') format('woff');
  font-weight: bold;
}

@font-face {
  font-family: 'TTLakes-Regular';
  src: url('fonts/ttlakes-regular-webfont.woff') format('woff');
  font-weight: normal;
}

@font-face {
  font-family: 'Duke-Fill';
  src: url('fonts/duke-fill-webfont.woff') format('woff');
  font-weight: normal;
}

/* ── Branding variables ───────────────────────────────── */
:root {
  --brand-bg: #0b0f17;
  --brand-text: #e8ecf4;
  --brand-accent: #e60012;
}


html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  user-select: none;
  overflow: hidden;
  background: var(--brand-bg);
  color: var(--brand-text);
}

/* Buttons/links can use accent */
a, .link, button.primary {
  color: var(--brand-accent);
  border-color: var(--brand-accent);
}

#container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

#info-panel {
  width: 836px;
  height: 245px;
  background-image: url('../img/info-panel-bg.png');
  background-size: cover;
  max-width: 836px;
  background-position: center;
  position: relative; /* Allow absolutely positioned children */
  padding: 0 20px;
}

/* Remove flex properties from .info-content if no longer needed */
.info-content {
  /* You can remove display: flex; properties here or leave as-is if it doesn't interfere */
}

.info-logo{
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  aspect-ratio: 1;
  margin-top: 0px; /* Adjust as needed */
}

/* Position the logo container absolutely on the left */
.info-logo-container {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  width: 400px;
  /* Remove any flex-specific properties */
}

/* Position the text container absolutely on the right */
.info-text-container {
  position: absolute;
  top: 56%;
  right: 75px;
  transform: translateY(-50%);
  text-align: center;
  color: white;
  /* Remove flex styling if present */
}

.team-tricode {
  font-family: 'TTLakes-Bold', sans-serif;
  font-size: 22px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  height: 100%;
}

.info-title {
  font-size: 25px;
  font-family: 'TTLakes-Regular', sans-serif;
}

.info-subtitle {
  font-size: 25px;
  font-family: 'TTLakes-Bold', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
}

.info-main-text {
  font-family: 'Duke-Fill', sans-serif;
  font-size: 120px;
  font-weight: normal;
  text-transform: uppercase;
}

/* Top Separator */
#top-separator {
  width: 836px;
  height: 5px;
  background-color: #7a7a7a;
  position: absolute;
  top: 245px;
  left: 0;
}

/* Left Container */
#left-container {
  display: flex;
  flex-direction: column;
  width: 836px;
  height: 830px;
  background-color: black;
  position: absolute;
  top: 250px;
  left: 0;
  padding: 0;
}

#table-headers {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  padding: 20px 5px 0 5px;
  font-family: 'TTLakes-Bold', sans-serif;
  font-size: 20px;
  color: white;
  text-transform: uppercase;
}

.header-group {
  display: flex;
  justify-content: space-between;
  width: calc(50% - 5px);
}

.header-rank {
  width: 73px;
  text-align: center;
}

.header-info {
  width: calc(100% - 83px);
  text-align: center;
}

#clock-bkg{
  display:flex;
  justify-content: center;
  width: 120px;
  height: 80px;
  background-color: #CCC6BE ;
  position: absolute;
  top: 1000px;
  left: 840px;
  padding: 0;
  z-index: 10; /* Ensure it's above other elements */
  border: 4px solid #000;
}

#clock-text {
  font-family: 'TTLakes-Bold',sans-serif;
  position: absolute;
  top: 18px;
  font-size: 40px;
  color: #000;
  text-transform: uppercase;
}

/* Vertical separator between headers */
#table-separator {
  position: absolute;
  width: 4px;
  height: 830px;
  background-color: white;
  top: 0;
  left: 416px;
}

#left-teams-container {
  display: flex;
  justify-content: space-between;
  height: calc(100% - 55px);
  padding: 0 5px 5px 5px;
  margin: 0;
}

.team-column {
  width: calc(50% - 8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-row {
  display: flex;
  height: 74px;
  align-items: center;
  padding: 0;
}

.team-rank-panel {
  width: 73px;
  height: 73px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: 'TTLakes-Bold', sans-serif;
  font-size: 20px;
}

.team-info-panel {
  width: calc(100% - 83px);
  height: 100%;
  display: flex;
  align-items: center;
  color: #000000;
  white-space: nowrap;
  gap: 10px;
  font-family: 'TTLakes-Bold', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  background: linear-gradient(to right, #CCC6BE, #FFF7EC);
  padding: 0 10px;
  overflow: hidden; /* Prevent overflow */
}

.team-info-panel2 {
  width: calc(100% - 83px);
  height: 100%;
  display: flex;
  align-items: center;
  color: #000000;
  white-space: nowrap;
  gap: 10px;
  font-family: 'TTLakes-Bold', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  background: linear-gradient(to right, #FFF7EC, #CCC6BE);
  padding: 0 10px;
  overflow: hidden; /* Prevent overflow */
}

.team-logo-container {
  width: 60px;
  height: 60px;
  padding: 5px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  border-radius: 4px;
}

.team-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  aspect-ratio: 1;
}

.team-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-name {
  font-family: 'TTLakes-Bold', sans-serif;
  font-size: clamp(20px, 2vw, 22px);
  font-weight: bold;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-top: 5px;
  margin-bottom: -5px;
}

.team-location {
  font-family: 'Duke-Fill', sans-serif;
  font-size: 30px;
  color: #000000;
}

.team-name, .team-location {
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
  word-wrap: break-word;
}

/* Vertical Separator */
#map-separator {
  width: 4px;
  height: 100%;
  background-color: white;
  position: absolute;
  top: 0;
  left: 836px;
}

/* Right Map Container */
#right-map-container {
  width: 1080px;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
}

.map-container {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.map-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.map-image.top {
  opacity: 1;
  z-index: 2;
}

.map-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #1c6c91;
  z-index: 0;
}

#logo-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.team-logo-item {
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  border: 2px solid white;
  border-radius: 8px;
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 5px;
  transition: opacity 0.5s ease-in-out;
}

/* ── Left branding drawer ─────────────────────────────── */
.branding-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1500;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--brand-text);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.branding-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 90vw);
  height: 100dvh;
  background: rgba(20, 24, 32, 0.92);
  border-right: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  transform: translateX(-100%);
  transition: transform .2s ease-in-out;
  z-index: 1400;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.branding-drawer.open {
  transform: translateX(0);
}

.branding-head {
  padding: 16px 16px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.branding-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--brand-text);
}
.branding-body {
  padding: 12px 16px;
  overflow: auto;
}
.branding-body label {
  font-size: .85rem;
  opacity: .9;
}
.branding-body .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.branding-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  gap: 10px;
}
.branding-footer button {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.04);
  color: var(--brand-text);
  cursor: pointer;
}
.branding-footer button.save {
  border-color: var(--brand-accent);
  color: #fff;
  background: var(--brand-accent);
}

/* Small helper for the preview logo in the panel */
#branding-logo-preview {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.02);
  padding: 8px;
  margin-top: 8px;
}