#rankInfo,
#matchInfo,
#allMatchInfo {
  overflow: hidden;
  width: 100%;
}

#content {
  max-height: 90vh;
  width: 100%;
}

th,
td {
  /* align text vertically */
  vertical-align: middle;
}

.scoreRow {
  border-top: 2px solid black !important;
}

[data-bs-color-scheme="light"] .lightModeText {
  color: white;
}

[data-bs-color-scheme="light"] .redScore {
  background-color: #ffdddd;
}

[data-bs-color-scheme="light"] .blueScore {
  background-color: #ddddff;
}

[data-bs-color-scheme="dark"] .redScore {
  background-color: #b71f1f;
}

[data-bs-color-scheme="dark"] .blueScore {
  background-color: #1f1fb7;
}

.matchWinner {
  outline: 3px solid green;
  outline-offset: -5px;
}

.navItem {
  float: right;
  margin-right: 15px;
}

#countdown {
  position: fixed;
  bottom: 15px;
  right: 25px;
}

#eta {
  float: right;
}

.icon {
  text-decoration: none;
}

#countdown #icon {
  float: left;
  margin-right: 5px;
}

/* Dark mode selector */
/* Used from https://codepen.io/Umer_Farooq/pen/eYJgKGN */
.checkbox {
  opacity: 0;
  position: absolute;
}

.checkbox-label {
  background-color: #111;
  width: 50px;
  height: 26px;
  border-radius: 50px;
  position: relative;
  padding: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#dark-mode-selector {
  padding-top: 9px;
  padding-right: 10px;
}

.fa-moon {
  color: #f1c40f;
}

.fa-sun {
  color: #f39c12;
}

.checkbox-label .ball {
  background-color: #fff;
  width: 22px;
  height: 22px;
  position: absolute;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  transition: transform 0.2s linear;
}

.checkbox:checked + .checkbox-label .ball {
  transform: translateX(24px);
}
