body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  margin: 0;
  padding: 0;
}

/* Navbar Styling */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #003f73, #005a9c, #007bff);
  padding: 15px 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo img {
  height: 50px;
  transition: transform 0.3s ease;
}

.navbar .logo img:hover {
  transform: scale(1.1);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
  background-color: #ffcc00;
  color: #003f73;
  transform: translateY(-2px);
}

/* Active Link Styling */
.nav-links a.active {
  background-color: #003f73;
  color: #ffcc00;
  border: 2px solid #ffcc00;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Navbar for Smaller Screens */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
  }
}


.container {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.scoreboard-container {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  width: 100%;
}

.team-section {
  background: linear-gradient(to bottom, #e3f2fd, #bbdefb);
  border: 2px solid #005a9c;
  padding: 20px;
  text-align: center;
  width: 30%;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.team-section h3 {
  color: #005a9c;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.team-section .score {
  font-size: 48px;
  font-weight: bold;
  background: radial-gradient(circle, #005a9c, #007bff);
  color: #fff;
  padding: 20px;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  margin: 15px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: pulse 1.5s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.team-section p {
  font-size: 18px;
  margin: 5px 0;
}

.team-section ul.roster {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.team-section ul.roster li {
  padding: 10px;
  background: #f5f5f5;
  margin: 8px 0;
  border-radius: 5px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.team-section ul.roster li:hover {
  background-color: #005a9c;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-section button.substitute-btn {
  background: linear-gradient(to right, #005a9c, #003f73);
  color: #fff;
  border: none;
  padding: 12px 25px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.team-section button.substitute-btn:hover {
  background-color: #003f73;
  transform: scale(1.05);
}


.clock-controls-section {
  background: linear-gradient(to bottom, #e3f2fd, #bbdefb);
  border: 2px solid #005a9c;
  padding: 30px;
  text-align: center;
  width: 35%;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.clock-section .clock {
  background: #005a9c;
  font-size: 70px;
  color: #fff;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  letter-spacing: 2px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.clock-section .period {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

#time-input {
  width: 60%;
  padding: 10px;
  font-size: 18px;
  border: 2px solid #005a9c;
  border-radius: 5px;
  margin-bottom: 20px;
}

#time-input:focus {
  outline: 2px solid #003f73;
}

.game-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.game-controls .btn {
  background: linear-gradient(to right, #005a9c, #003f73);
  color: #fff;
  border: none;
  padding: 12px 25px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.game-controls .btn:hover {
  background-color: #003f73;
  transform: scale(1.05);
}

.game-controls .btn:active {
  transform: scale(0.98);
  background-color: #002f5a;
}
/* Score Section Styling */
.score-section {
  background: linear-gradient(to bottom, #e3f2fd, #bbdefb);
  border: 2px solid #005a9c;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.score-display {
  background: linear-gradient(135deg, #005a9c, #003f73);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.score-display:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

.score-details p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: bold;
}

.score-details span {
  font-size: 1.25rem;
  color: #333;
}




.modal-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.close-btn {
  background-color: #005a9c;
}

.team-section select {
  background-color: #005a9c;
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 24px;
  width: 100%;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 15px;
}

.team-section select:focus {
  background-color: #005a9c;
  outline: 2px solid #003f73;
}

#time-input {
  margin-bottom: 20px;
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border: 2px solid #005a9c;
  padding: 20px;
  z-index: 1000;
  width: 350px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
  color: #005a9c;
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.modal-content p {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0;
  color: #333;
}



.modal-content select:hover {
  background-color: #005a9c;
  border-color: #003f73;
}

.modal-content button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-content .btn-confirm {
  background-color: #4caf50;
  color: #fff;
}

.modal-content .btn-confirm:hover {
  background-color: #45a049;
}

.modal-content .btn-close {
  background-color: #1422db;
  color: #fff;
}

.modal-content .btn-close:hover {
  background-color: #1624bb;
}

.modal-content select {
  scrollbar-width: thin;
  scrollbar-color: #005a9c #f4f4f4;
}

.modal-content select::-webkit-scrollbar {
  width: 8px;
}

.modal-content select::-webkit-scrollbar-track {
  background: #f4f4f4;
}

.modal-content select::-webkit-scrollbar-thumb {
  background-color: #005a9c;
  border-radius: 4px;
}
.roster li {
  cursor: pointer; /* Change cursor to pointer for better UX */
  transition: all 0.3s ease; /* Add smooth transition */
}

.roster li:hover {
  background-color: #003f73; /* Slightly darker blue on hover */
  color: #fff; /* Ensure text stays white */
}

.roster li.selected {
  background: linear-gradient(90deg, #003f73, #005a9c, #007bff);

  color: #fff;
  font-weight: bold;
  border: 2px solid #003f73;
  border-radius: 5px;
  padding: 10px;
}
 /* Tab Navigation */
 #main-tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
}

.main-tab {
  padding: 10px 20px;
  cursor: pointer;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-weight: bold;
}

.main-tab.active {
  background: #ccc;
}

.main-tab-content {
  display: none;
}

.main-tab-content.active {
  display: block;
}

#chart-container {
  width: 100%;
  height: 400px;
}
#tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-weight: bold;
}

.tab.active {
  background: #ccc;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}



/* Toggle Button Container */
.toggle-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.toggle-btn {
  flex: 1;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  border: 1px solid #cccccc;
  background-color: #eee;
  color: #000;
  outline: none;
  transition: background-color 0.3s, color 0.3s, border-radius 0.3s;
  border-radius: 20px; /* Add roundness to the buttons */
  margin: 0 5px; /* Space between the buttons */
}

.toggle-btn.active {
  background: linear-gradient(90deg, #003f73, #005a9c, #007bff);;
  color: #fff;
  border-radius: 20px; /* Ensure the active button remains rounded */
}

/* Sub Tabs for Stats Sheet */
#tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.tab {
  padding: 8px 15px;
  cursor: pointer;
  border: 1px solid #ccc;
  margin: 0 5px;
  background-color: #eee;
  color: #000;
  border-radius: 15px; /* Rounded sub-tabs */
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s, border-radius 0.3s;
}

.tab.active {
  background-color: #007bff;
  color: #fff;
  border-radius: 15px;
}

/* Toggle Content */
.toggle-content {
  display: none;
}

.toggle-content.active {
  display: block;
}




.toggle-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.toggle-btn {
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  border: none;
  background-color: #f0f0f0;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.toggle-btn.active {
  background-color: #007bff;
  color: white;
}

.toggle-content {
  display: none;
}

.toggle-content.active {
  display: block;
}

/* Additional styling for horizontal tabs */
#tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  border: none;
  background-color: #f0f0f0;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.tab.active {
  background-color: #007bff;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}
/* Player Log Box Styling */
#player-log-container {
  width: 300px;
  height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 20px;
  background: #f9f9f9;
}

#player-log {
  font-size: 14px;
}

.log-entry {
  padding: 5px;
  border-bottom: 1px solid #ddd;
}#rebounds-turnovers-chart {
  width: 100%;
  min-width: 600px; /* or more, depending on your layout */
}
