:root {
  --bg-soft: #fff2f8;
  --bg-hard: #eaa4c8;
  --link-color: #454e9e;
  --coral: #ff7f50;
  --coral-o-cc: #ff7f50cc;
  --reddish: #fa2d36;
}

body {
  margin: 0;
  padding: 0;
}

#searchInput {
  background-image: url("searchIcon32.png");
  background-position: 3px 4px; /* Position the search icon */
  background-repeat: no-repeat; /* Do not repeat the icon image */
  width: 50%;
  font-size: 16px;
  padding: 10px 20px 10px 40px;
  border: 1px solid #ddd;
  margin-bottom: 12px;
}

.container {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  vertical-align: middle;
  /*overflow-x: auto;*/
}

.bracket {
  display: inline-block;
}

.bracket.middle {
  margin-top: 42px;
  margin-left: -140px;
  margin-right: 15px;
}

.bracket.middle .round:first-of-type {
  display: none;
}

.team.highlight {
  color: white !important;
  background-color: #ff7f50cc !important;
}

.connector.highlight {
  border-color: #ff7f50cc !important;
}

.teamContainer > .team:nth-child(2n + 1) {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.teamContainer > .team:nth-child(2n) {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.connector.highlight > .connector.highlight,
.connector.highlightLoser > .connector.highlightLoser,
.connector.highlightWinner > .connector.highlightWinner {
  z-index: 2 !important;
}

.round > .match:nth-child(2n) .connector > .connector {
  display: none;
}

.round > .match:nth-child(2n) .connector > .connector.highlight,
.round > .match:nth-child(2n) .connector > .connector.highlightLoser,
.round > .match:nth-child(2n) .connector > .connector.highlightWinner {
  display: initial;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: white;
  border: 4px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb {
  background: #ff7f50;
  border-radius: 5px;
}

.note {
  position: fixed;
  bottom: 0px;
  right: 5px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
}

.note a {
  color: #454e9e;
  text-decoration: none;
}

.note a:hover {
  text-decoration: underline;
}

.bracket.left .bubble,
.bracket.right .bubble {
  display: none;
}

.connector:not(.highlightLoser):not(.highlightWinner):not(.highlight) {
  border-color: #ccc !important;
}

.connector.highlightLoser:not(.highlight) {
  border-color: #777 !important;
}

.table--first200 tr > td:first-of-type {
  width: 200px;
}

.table--normal td {
  vertical-align: text-top;
  padding: 0px 10px 0px 0px;
}

.table--normal tr > td:last-child {
  padding-right: 0;
}

@media screen and (max-width: 600px) {
  .table--normal tr > td:last-of-type {
    margin-bottom: 10px;
  }

  .table--normal tr:last-of-type > td:last-of-type {
    margin-bottom: 0;
  }

  .table--normal tr > td {
    width: 100%;
  }

  .table--normal tr > td {
    display: inline-block;
  }
}

.table--scroll table {
  border-collapse: collapse;
  overflow: auto;
  margin: 0 auto;
  margin-top: 10px;
  display: block;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.table--scroll tbody > tr:nth-of-type(2n-1) {
  background-color: #50505010;
}

.table--scroll thead > tr {
  background-color: var(--coral);
}

.table--scroll thead th {
  font-weight: bold;
  color: white;
  padding: 5px;
}

.table--scroll tbody > tr:hover > td {
  background-color: var(--coral-o-cc) !important;
  color: white;
}

.table--scroll td {
  padding: 5px;
}

td.round.active {
  background-color: #fada5e;
}

td.round.win {
  background-color: #98fb98;
}

/*tr:nth-of-type(2n-1) > td.round.win {
  background-color: #50c878;
}*/

td.round.lose {
  background-color: #cd5c5c;
}

/*tr:nth-of-type(2n-1) > td.round.lose {
  background-color: #ed2939;
}*/
