body {
  font-family: Arial;
  margin: 20px;
}
#medianTable {
  display: none;
}
#medianTable.show {
  display: table;
}
#toggleTableButton {
  margin: 15px 0;
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}
#toggleTableButton:hover {
  background-color: #0056b3;
}
#switchToSPButton {
  margin: 0;
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}
#switchToSPButton:hover {
  background-color: #0056b3;
}
canvas {
  max-width: 900px;
  max-height: 530px;
  background: #f7fafa;
}
table {
  border-collapse: collapse;
  margin-top: 25px;
  width: 95%;
  max-width: 1100px;
}
th,
td {
  border: 1px solid #ccc;
  padding: 6px 10px;
  text-align: right;
}
th {
  background: #f0f0f0;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}
td:first-child,
th:first-child {
  text-align: left;
}
.controls {
  margin-bottom: 15px;
}
.controls label {
  margin-right: 15px;
}

.canvas-container {
  display: flex;
  justify-content: center;
}
h2 {
  display: flex;
  justify-content: center;
}
/* Style the navigation bar */
#navbar {
  background-color: #333; /* Dark background color */
  color: white;
  overflow: hidden;
  padding: 8px 8px; /* Some padding for height */
  /* **The key properties for the sticky effect:** */
  /*position: sticky;*/
  top: 0;
  z-index: 1000; /* Ensures the navbar stays on top of other elements */
}

/* Style the links inside the navigation bar */
#navbar a {
  color: white;
  text-decoration: none;
  padding: 8px 6px;
  float: left; /* Aligns links horizontally */
  text-align: center;
}

/* Change color on hover */
#navbar a:hover {
  background-color: #ddd;
  color: black;
}
