html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Align user name and Sign out on the same baseline in the navbar */
.navbar-nav .nav-item form .btn-link.nav-link {
  line-height: inherit;
  font-size: inherit;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Bracket board (home page) – BracketChart layout */
.bb-wrap { overflow-x: auto; }

.tournament-container {
  /* container for headers + brackets */
}

.tournament-headers {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  border-bottom: 1px solid #ccc;
}

.tournament-headers h3 {
  width: 25%;
  text-align: center;
  font-weight: 400;
  border-right: 1px dashed #ccc;
  margin: 0;
  padding: 1rem;
}

.tournament-headers h3:last-child {
  border-right: none;
}

.tournament-brackets {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  background: #fdfdfd;
  margin-bottom: 50px;
}

.tournament-brackets .bracket {
  padding-left: 0;
  display: flex;
  margin: 0;
  padding: 30px 0;
  flex-grow: 1;
  flex-direction: column;
  justify-content: space-around;
  list-style-type: none;
  border-right: 1px dashed #ccc;
  flex: 1;
}

.tournament-brackets .bracket:last-child {
  border-right: none;
}

.bb-coin-icon {
  height: 6rem;
  width: auto;
  display: block;
}

.board-list-coin-icon {
  height: 5rem;
  width: auto;
  display: block;
  margin: 0 auto;
}

.team-item {
    /* Match tile background image aspect ratio (1000 × 480 px) */
    aspect-ratio: 1000 / 480;
    background-color: #f4f4f4;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0.5rem;
    display: block;
    margin: 0.5rem 10px;
    position: relative;
    vertical-align: middle;
    line-height: 2;
    text-align: center;
    border: 1px solid #999;
    border-radius: 5px;
    white-space: nowrap;
    overflow: visible; /* required so :before/:after connector lines are not clipped */
    text-overflow: ellipsis;
    font-size: 1.5rem;
    font-weight: bold;
    color: white; /* Text fill color is white */
    -webkit-text-stroke-width: 1px; /* Black outline width */
    -webkit-text-stroke-color: black; /* Black outline color */
    /* Standard property for future compatibility (Firefox supports it with the prefix) */
    text-stroke-width: 1px;
    text-stroke-color: black;
}

.team-item.taken {
  border-color: navy;
}

.team-item:after {
  content: "";
  border-color: #4f7a38;
  border-width: 2px;
  position: absolute;
  display: block;
  width: 10px;
  right: -11px;
}

.team-item:nth-of-type(odd):after {
  border-right-style: solid;
  border-top-style: solid;
  height: 100%;
  top: 50%;
}

.team-item:nth-of-type(even):after {
  border-right-style: solid;
  border-bottom-style: solid;
  height: 100%;
  top: -50%;
}

.team-item:before {
  content: "";
  border-top: 2px solid #4f7a38;
  position: absolute;
  height: 2px;
  width: 10px;
  left: -10px;
  top: 50%;
}

.bracket-2 .team-item:nth-of-type(odd):after {
  height: 200%;
  top: 50%;
}

.bracket-2 .team-item:nth-of-type(even):after {
  height: 200%;
  top: -150%;
}

.bracket-3 .team-item:nth-of-type(odd):after {
  height: 350%;
  top: 50%;
}

.bracket-3 .team-item:nth-of-type(even):after {
  height: 350%;
  top: -300%;
}

.bracket-4 .team-item:nth-of-type(odd):after {
  height: 700%;
  top: 50%;
}

.bracket-4 .team-item:nth-of-type(even):after {
  height: 700%;
  top: -650%;
}

.bracket:first-of-type .team-item:before {
  display: none;
}

.bracket-4 .team-item:after {
  display: none;
}

/* Hide only outgoing (:after) on last column; keep incoming (:before) for Seed 1 connector */
.bracket:last-of-type .team-item:after {
  display: none;
}

.team-item time {
  display: inline-block;
  background-color: #dbdbdb;
  font-size: 0.8rem;
  padding: 0 0.6rem;
}
.form-control, .form-select {
    border-color: #333;
}