body {
  background-color: #171717;
}

section {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
}

navigation {
  background-color: rgb(0, 0, 0);
  display: flex;
  flex-direction: column;
  padding: 20px;
  width: 50px;
}

stream {
  flex-grow: 1;
}

div.rankbox,
div.pastmatches,
div.twitchstream,
div.upcomingmatches {
  background-color: #24252a;
  padding: 5px;
  margin: 10px;
  text-align: left;
  color: #ffffff;
  border-radius: 10px;
  border: 2px solid white; /* Adjust thickness as needed */
  font-family: "Source Code Pro", monospace;
  font-optical-sizing: auto;
  font-weight: 400; /* Replace with the desired font weight */
  font-style: normal;
}

div.pastmatches {
  overflow: auto;
}

div.rankbox {
  text-align: center;
}

div.rankbox span {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

li.match {
  border: none;
  background-color: #1a1a1a;
}

#current_rank {
  font-size: 30px;
  font-weight: bold;
  text-align: center;
}

div.twitchstream iframe {
  border-radius: 10px;
  width: 100%;
  height: 90vh;
  align-self: center;
}

.button {
  background-color: rgb(255, 255, 255);
  border: none;
  color: white;
  padding: 2px 0px;
  margin: 10px 0px;
}

.button:hover {
  background-color: rgb(198, 104, 16); /* Change the color when hovered over */
  cursor: pointer; /* Change cursor to select when hovered over */
}

.checklist {
  background-color: #24252a;
  padding: 20px;
  margin: 10px;
  text-align: left;
  color: #ffffff;
  border-radius: 10px;
  font-family: "Source Code Pro", monospace;
  border: 2px solid white; /* Adjust thickness as needed */
  width: calc(35vw / 2);
  height: 85vh;
  float: left;
  margin-left: 100px;
}

.Mech label {
  display: inline-block;
}

/* Underline 3061 in past matches */
.pastmatches u {
  text-decoration: underline;
}

.data {
  padding: 0px;
  margin: 10px;
  text-align: left;
  color: #ffffff;
  border-radius: 0px;
  font-family: "Source Code Pro", monospace;
  width: calc(80vw / 2);
  float: left;
}

.temp {
  background-color: #24252a;
  margin: 10px;
  text-align: left;
  color: #ffffff;
  border-radius: 10px;
  font-family: "Source Code Pro", monospace;
  border: 2px solid white; /* Adjust thickness as needed */
  width: calc(75vw / 2);
  float: left;
}

.temp1,
.temp2,
.temp3 {
  margin: 10px;
  text-align: left;
  color: #ffffff;
  font-family: "Source Code Pro", monospace;
  width: calc(22vw / 2);
  float: left;
}

.bar {
  background-color: #24252a;
  margin: 10px;
  text-align: left;
  color: #ffffff;
  border-radius: 10px;
  font-family: "Source Code Pro", monospace;
  border: 2px solid white; /* Adjust thickness as needed */
  width: calc(75vw / 2);
  height: 20vh;
  float: left;
}

.runtime {
  background-color: #24252a;
  margin: 10px;
  text-align: left;
  color: #ffffff;
  border-radius: 10px;
  font-family: "Source Code Pro", monospace;
  border: 2px solid white; /* Adjust thickness as needed */
  width: calc(35vw / 2);
  height: 20vh;
  float: left;
}

.voltage {
  background-color: #24252a;
  margin: 10px;
  text-align: left;
  color: #ffffff;
  border-radius: 10px;
  font-family: "Source Code Pro", monospace;
  border: 2px solid white; /* Adjust thickness as needed */
  width: calc(35vw / 2);
  height: 20vh;
  float: left;
}

.can {
  background-color: #24252a;
  margin: 10px;
  text-align: left;
  color: #ffffff;
  border-radius: 10px;
  font-family: "Source Code Pro", monospace;
  border: 2px solid white; /* Adjust thickness as needed */
  width: calc(75vw / 2);
  height: 20vh;
  float: left;
}

.button:hover {
  background-color: rgb(198, 104, 16); /* Change the color when hovered over */
  cursor: pointer; /* Change cursor to select when hovered over */
}

/* PDH Styles */
.pdh-container {
  background-color: #24252a;
  margin: 0;
  padding: 8px;
  text-align: center;
  color: #ffffff;
  font-family: "Source Code Pro", monospace;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.pdh-header {
  font-size: 1em;
  margin-bottom: 5px;
  color: #ffffff;
  text-align: center;
}

.pdh-high-current-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
  background-color: #2a2b30;
  padding: 4px;
  border-radius: 4px;
}

.pdh-row {
  display: flex;
  justify-content: space-between;
  gap: 2px;
}

.pdh-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px;
  border-radius: 3px;
  background-color: #24252a;
  min-width: 35px;
}

.pdh-channel.high-current {
  border: 1px solid #ff6b00;
}

.pdh-channel.low-current {
  border: 1px solid #4a90e2;
}

.channel-number {
  font-size: 0.7em;
  color: #888;
  margin-bottom: 1px;
}

.current-value {
  font-size: 0.8em;
  font-weight: bold;
}

.pdh-low-current-section {
  display: flex;
  justify-content: center;
  gap: 4px;
  background-color: #2a2b30;
  padding: 4px;
  border-radius: 4px;
}

.power-stat-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.power-stat-label {
  font-size: 1.2em;
  color: #ffffff;
  margin-bottom: 10px;
  text-align: center;
}

.power-stat-value {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
}

/* Checklist Overrides */
.checklist p {
  font-size: 20px;
}

.checklist summary {
  font-size: 18px;
  font-family: "Source Code Pro", monospace;
}

.checklist {
  font-family: "Source Code Pro", monospace;
  font-size: 15px;
}

/* Connection status indicators */
.status-connected {
  color: #4caf50;
  font-weight: bold;
}

.status-disconnected {
  color: #f44336;
  font-weight: bold;
}

.status-error {
  color: #ff9800;
  font-weight: bold;
}

.btn-success {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
}

.btn-danger {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-success:hover {
  background-color: #3e8e41;
}

.btn-danger:hover {
  background-color: #d32f2f;
}

/* Popup styles */
.popup {
  width: 400px;
  height: 200px;
  background: #fff;
  border-radius: 6px;
  position: absolute;
  top: -50%;
  left: 50%;
  font: "Source Code Pro", monospace;
  font-size: 20px;
  transform: translate(-50%, -50%);
  scale: 0.1;
  text-align: center;
  padding: 20px;
  visibility: hidden;
  transition: transform 0.4s, top 0.4s;
}

.open-popup {
  visibility: visible;
  top: 50%;
  transform: translate(-50%, -50%);
  scale: 1;
  font-size: 20px;
}

.popup button {
  text-align: center;
  background-color: #34384b;
  color: white;
  font-family: "Source Code Pro", monospace;
  border: none;
  padding: 10px 20px;
  margin: 10px;
  border-radius: 10px;
}

.red-popup {
  background-color: #e24d4df5;
}

.blue-popup {
  background-color: #4a90e2f5;
}
