body {
  font-family: "Roboto", sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: auto;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
}

.fixture {
  background: #fff;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 10px;
  max-width: 1000px; /* reduce from full container width */
  margin: 0 auto 20px auto; /* center align */
}

.team-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.team {
  display: flex;
  align-items: center;
  width: 40%;
}

.team img.logo {
  height: 80px;
  margin-right: 10px;
}

.team-name {
  font-weight: bold;
  font-size: 25px;
}

.vs {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  width: 20%;
}

.date {
  text-align: center;
  font-size: 14px;
  margin-bottom: 8px;
  color: #666;
}

.bar {
  height: 30px;
  display: flex;
  overflow: hidden;
  border-radius: 10px; /* a bit bigger for more visible rounding */
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.2); /* 👈 Adds a subtle shadow */ 
}

.bar .segment {
  height: 100%;
  text-align: center;
  line-height: 30px;
  font-size: 15px;
  color: white;
  overflow: hidden;
  border-radius: 0;
  background-clip: padding-box;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.6); /* Dark outline improves visibility */
}

.bar .segment.first-segment {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.bar .segment.last-segment {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.navbar {
  height: 50px;
  line-height: 50px;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
  color: black;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

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

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

.nav-title {
  font-size: 26px;
  font-weight: bold;
  vertical-align: middle;
}

/* Smaller flag icon (country) */
.nav-flag-icon {
  height: 40px;
  width: 40px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 7px;
}

/* Larger league logo */
.nav-league-icon {
  height: 60px;
  width: 60px;
  object-fit: contain;
  vertical-align: middle;
  margin-left: 0px;
}

#league-select {
  padding: 6px;
  font-size: 14px;
  border-radius: 4px;
  border: none;
}

.about-button {
  color: black;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 6px;
  border-radius: 4px;
  line-height: 1.5;
  transition: background 0.2s ease;
  display: inline-block;   
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.about-button:hover {
  background-color: lightgray;
}

.dropbtn {
  background: none;
  border: none;
  font-weight: 500;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.dropbtn:hover {
  background:  lightgray;
}

.arrow {
  font-size: 20px;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  z-index: 100;
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dropdown-menu li {
  padding: 6px 10px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* Show menu and rotate arrow on hover */
.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown.open .arrow {
  transform: rotate(180deg); /* Flip down to up */
}

.dropdown-menu li {
  display: flex;
  align-items: center;  
  padding: 10px;
  cursor: pointer;
  color: black;
  font-size: 16px;
}

.dropdown-menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px;
  gap: 8px;
}

.dropdown-menu li.active {
  background-color: #e0e0e0; /* or any highlight color you prefer */
  font-weight: bold;
}

.dropdown-cnt {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.dropdown-lg {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.dropdown-menu li:hover {
  background:  lightgray;
}


.page {
  padding: 20px;
}

#matchweek-bar {
  position: sticky;
  top: 60px; /* adjust depending on your main nav height */
  z-index: 999;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 10px;
  border-bottom: 1px solid #ccc;
  gap: 20px;
  width: fit-content;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional for subtle depth */
}

#matchweek-bar.hidden {
  display: none;
}

#matchweek-bar .arrow-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

#matchweek-bar .arrow-btn img {
  height: 20px;
  width: 20px;
  opacity: 0.8;
}

#matchweek-bar .arrow-btn:disabled img {
  opacity: 0.3;
  cursor: not-allowed;
}

#matchweek-label {
  font-weight: bold;
  font-size: 18px;
}

#matchweek-bar .arrow-btn:hover img {
  opacity: 1;
  transform: scale(1.2);
  transition: transform 0.2s ease;
}

.matchweek-content {
  background: #f0f0f0;
  border-radius: 20px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
}

.card {
  background-color: white;
  border-radius: 16px;
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card h2, .card h3 {
  margin-top: 0;
}

.card ul {
  padding-left: 20px;
}

.update-card {
  height: 50px;
  position: absolute;
  top: 60px; /* adjust based on navbar height */
  left: 20px;
  width: 170px;
  z-index: 10;
}
