[data-bs-theme="dark"] body {
  background-color: #22242a;
}

[data-bs-theme="dark"] [class^="player-info-"] {
  border-color: #C0C0C0 !important;
}

[data-bs-theme="dark"] .colour-changing {
  background-color: #4682B4 !important; 
}

[data-bs-theme="dark"] .form-control {
  border-color: #4682B4 !important; 
}

[data-bs-theme="dark"] .win-loss-btn {
  background-color: white !important;
  color: black !important;
  min-width: 145px !important;
}

[data-bs-theme="dark"] .alert-success {
  background-color: #228B22 !important;
  border-color: #002B00 !important;
  color: #002B00 !important;
}

[data-bs-theme="dark"] .alert-danger {
  background-color: #E55451 !important;
  border-color: #65000B !important;
  color: #65000B !important;
}

[data-bs-theme="dark"] .win-loss-message {
  color: white !important;
}

.win-loss-message {
  color: black !important;
}

[data-bs-theme="dark"] #win-answer {
  color: white;
}

#win-answer {
  color: black;
}

[data-bs-theme="dark"] #loss-answer {
  color: white;
}

#loss-answer {
  color: black;
}

[data-bs-theme="dark"] .streak-text {
  color: white !important;
}

.streak-text {
  color: black !important;
}

.nav-pills .nav-link.active {
  background-color: #1434A4 !important; 
  color: white !important;
}

.nav-pills .nav-link {
  color: #1434A4;
  margin-left: 8px;
}

.nav-pills .nav-link:hover:not(.active) {
  background-color: #1434A4 !important;
  color: white !important;
  opacity: 0.7;
}

.league-dropdown {
  min-width: 100%;
}

.league-dropdown .dropdown-item.active,
.league-dropdown .dropdown-item:active {
  background-color: #1434A4;
  color: white;
}

video {
  max-width: 90%;
  height: auto;
  margin-top: 36px; 
  margin-bottom: 36px;
}

#video-source {
  margin-top: 8px;
  margin-bottom: 12px;
}

#swap-video-btn {
  margin-bottom: 12px;
}

[data-bs-theme="dark"] .nav-pills .nav-link.active {
  background-color: #4682B4 !important; 
  color: white !important;
}

[data-bs-theme="dark"] .nav-pills .nav-link {
  color: #4682B4 !important;
}

[data-bs-theme="dark"] .nav-pills .nav-link:hover:not(.active) {
  background-color: #4682B4 !important;
  color: white !important;
  opacity: 0.7;
}

[data-bs-theme="dark"] .league-dropdown .dropdown-item.active,
[data-bs-theme="dark"] .league-dropdown .dropdown-item:active {
  background-color: #4682B4;
}

#theme-switch svg {
  fill: currentColor;
}

#theme-switch svg:last-child {
  display: none;
}

[data-bs-theme="dark"] #theme-switch svg:first-child {
  display: none;
}

[data-bs-theme="dark"] #theme-switch svg:last-child {
  display: block;
}

[class^="player-info-"] {
  height: 60px;           
  display: flex !important;
  align-items: center;    
  justify-content: center;
  text-align: center;     
  line-height: 1.15;      
  padding: 4px !important;
  font-size: 0.875rem;    
  word-break: break-word; 
  overflow-wrap: anywhere;
  padding-left: 0.15rem !important;
  padding-right: 0.15rem !important;
  margin-left: 6px;
  margin-right: 6px;
  min-width: 60px;
}

[class^="player-info-"] * {
  margin: 0;
  padding: 0;
}

.column-headers {
  margin-left: 6px;
  margin-right: 6px;
  min-width: 60px;
  min-height: 40px;
}

.player-option {
  cursor: pointer;
}

#player-dropdown .dropdown-item.active {
  background-color: #1434A4;
  color: white;
}

[data-bs-theme="dark"] #player-dropdown .dropdown-item.active {
  background-color: #4682B4;
}

.form-control {
  border-color: #1434A4;
  border-width: 2px;
}

.colour-changing {
  background-color: #1434A4; 
  color: white;
}

.form-control::placeholder {
  font-weight: bold;
  opacity: 1;
}

.share-result-btn {
  width: 35%; 
  min-width: 140px !important;
}

@keyframes flip {
  0% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(0);
  }

  100% {
    transform: scaleY(1);
  }
}

.flip {
  animation: flip 500ms ease forwards;
}

.account-form {
  background-color: #1434A4;
  border-color: #000000 !important;
}

.account-label {
  color: white;
}

.center-account-form {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

html[data-bs-theme="light"] .alert-warning,
html:not([data-bs-theme="dark"]) .alert-warning {
    background-color: #ffe69c;
    border-color: #ffd866;
    color: #664d03;
}