/* -------------------- Navbar -------------------- */
.navbar-brand {
  padding: 0 60px;
}

.navbar-expand-lg .navbar-nav {
  flex-direction: row;
}

.dashboard-main-wrapper .dashboard-header .navbar-expand-lg {
  justify-content: space-between;
}

/* -------------------- Sidebar & Layout -------------------- */
.nav-left-sidebar {
  width: 314px;
}

.dashboard-wrapper {
  margin-left: 314px;
}

.footer {
  position: absolute;
  bottom: 0;
}

/* -------------------- SVG Styles -------------------- */
.cls-1 {
  fill: #fff;
  height: 100%;
  width: 100%;
  stroke: #000;
  stroke-miterlimit: 10;
}

.cls-2 {
  fill: none;
  stroke: #000;
  stroke-miterlimit: 10;
}

.pref-cls {
  cursor: pointer;
}

.hover-highlight:hover {
  fill: gray;
  stroke: red;
  stroke-width: 3px;
  transition: fill 0.4s;
  cursor: pointer;
}

/* -------------------- Color Picker Overlay -------------------- */
.colorPickWrapper {
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

/* -------------------- Table Styles -------------------- */
td {
  padding: 0 10px;
  text-align: left;
}

#resultsTable table td {
  padding: 5px;
  border: 1px solid #999;
  text-align: center;
  font-weight: 700;
}

#resultsTable table {
  border-collapse: separate;
  border-spacing: 5px 0;
  width: 100%;
}

#resultsTable .content {
  display: none;
}

/* -------------------- Color Selection -------------------- */
.tp-color-select {
  text-align: center;
}

.tp-color-select label svg {
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 auto;
}

/* -------------------- Modal Styles -------------------- */
#settingsModal{
  background-color: rgba(0, 0, 0, .7);
  backdrop-filter: blur(8px);
  text-align: center;
}
#settingsModal #team-chooser-wrapper > div{
  padding:10px 0px;
}
#settingsModal #team-chooser-wrapper > div:not(:first-child){
  padding-left:10px;
  padding-right:10px;
}
#settingsModal #team-chooser-wrapper h4{
  margin-bottom:0px;
}
#preNameModal {
  position: relative;
  display: inline-block;
  z-index: 0;
  height: auto;
}

.bg-light {
  background-color: #fff !important;
}

#preNameModal .modal-dialog {
  margin-top: 0;
  margin-bottom: 0;
}

#preNameModal .modal-header,
#preNameModal .modal-content,
#preNameModal .modal-footer {
  border-radius: 0;
  border: 0;
  background-color: #ddd !important;
}

#preNameModal .modal-body {
  min-height: 350px;
  background-color: #ddd !important;
  text-align: left;
  padding: 80px 0 100px 20px;
}

#preNameModal .modal-header {
  position: fixed;
  top: 60px;
  z-index: 3000;
  width: 300px;
}

#preNameModal .modal-footer {
  position: fixed;
  bottom: 0;
  width: 300px;
  z-index: 3000;
  justify-content: space-around;
}

#preNameModal .modal-body .btn {
  color: #777;
  font-weight: normal;
  border: 0;
}

#preNameModal .modal-body .btn:active,
#preNameModal .modal-body .btn:hover {
  text-decoration: underline;
  border: 0;
}

#preNameModal .modal-body .btn.active-sort {
  color: #1abc9c;
  font-weight: bold;
}

/* -------------------- Score Cards -------------------- */
#scoreNav {
  overflow: visible;
  height: 106px;
  background-color: white;
}

.score-outer {
  overflow-x: auto;
  height: 170px;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
}

.score-container {
  overflow-y: visible;
  position: absolute;
  bottom: 0;
}

.scoreCards {
  display: grid;
  max-width: 1500px;
  margin-top: -40px;
  padding: 0 20px;
  grid-template-columns: var(--page-margin) [center-start] 1fr [center-end] var(--page-margin);
}

.scoreCards > * {
  grid-column: center;
}

.scoreCards .cards-wrapper {
  grid-column: center-start / -1;
  display: grid;
  grid-auto-flow: column;
  gap: 1rem;
  overflow-y: visible;
  padding-bottom: 1rem;
  padding-right: var(--page-margin);
}

.scoreCards .card {
  display: grid;
  place-content: center;
  background-color: #d0f0ee;
  color: #1a252f;
  font-size: 16px;
  height: 100px;
  min-width: 80px;
  border: 0;
  box-shadow: 4px 2px 9px rgba(0, 0, 0, 0.43);
  position: relative;
}

.scoreCards .card img {
  position: absolute;
  width: 60px;
  top: -30px;
  left: 8px;
  z-index: 5;
}

/* -------------------- Card Container -------------------- */
.card-container {
  margin-top: 30px;
  text-align: center;
}

.card-container .pos {
  font-size: 12px;
  margin-right: 5px;
}

.card-container .bonus-region {
  font-size: 10px;
  margin-bottom: 0;
}

.card-container .pref-count {
  font-size: 24px;
  font-weight: bold;
}

#card_free p {
  margin-bottom: 0;
}

/* Color-specific card headers */
#card_green { border-top: 8px solid #00ab08; }
#card_blue { border-top: 8px solid #003396; }
#card_purple { border-top: 8px solid #8e44ad; }
#card_yellow { border-top: 8px solid #f1c40f; }
#card_orange { border-top: 8px solid #ff7f0e; }
#card_red { border-top: 8px solid #ff0033; }
#card_pink { border-top: 8px solid #ff66cc; }
#card_brown { border-top: 8px solid #77360b; }
#card_grey { border-top: 8px solid #999999; }
#card_black { border-top: 8px solid #141414; }
#card_l-green { border-top: 8px solid #95f985; }
#card_l-blue { border-top: 8px solid #86cefa; }

/* -------------------- Utility Buttons -------------------- */
.mobile-icon {
  font-size: 25px;
}

.clearbtn {
  margin: 0;
  position: absolute;
  top: 15px;
  right: 0;
  color: #999;
  padding: 10px;
  background-color: #fff;
  display: none;
}

.pre-sort-btn {
  background: none;
}

/* -------------------- Miscellaneous -------------------- */
.toast-container{
  z-index:5000;
}
.toast-header svg{
  padding:5px;
}
#settingsError {
  background-color: red;
}

#resetAll,
#settingsError,
#byRegion {
  display: none;
}

#preListContainer {
  padding: 20px 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-top: 20px;
}

#preListContainer table {
  width: 100%;
}

.list tr td {
  padding: 5px 0;
}

.regionName {
  text-align: center;
  font-weight: bold;
}

.modalColorSelections {
  display: inline-flex;
  flex-wrap: wrap;
}

/* -------------------- Responsive -------------------- */
@media only screen and (max-width: 768px) {
  .nav-left-sidebar {
    width: 100%;
  }

  .dashboard-wrapper {
    margin-left: 0;
  }

  #preNameModal .modal-header,
  #preNameModal .modal-footer {
    position: initial;
    width: 100%;
  }

  #preNameModal .modal-dialog {
    margin: 0 auto;
  }

  #preNameModal .modal-body {
    padding: 5px;
  }
}
@media only screen and (max-width: 485px) {
 .dashboard-header .navbar-brand{
    width:100%;
    text-align: center ;
    padding:8px;
  }
  .dashboard-header .navbar-collapsed{
    margin: 0 auto;
  }
   .dashboard-header{
    height:70px;
   }
}
/* --------------------- game timer --------------------- */
#gameTimer{
  font-size: 28px;
    color: #fff;
    text-align: center;
    padding: 8px 0px;
    border-bottom: 1px solid #e3e3e3;
    background-color: #2c3e50;
}
.gameTimerControls .btn{
  margin:0px 5px;
}
 .timer-dropdown-menu{
      min-width: 12rem;
      padding: 1rem;
    }
    .time-stepper {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
    }
    .time-group {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .time-controls button {
      width: 2rem;
      padding: 0.25rem;
    }
    .time-value {
      width: 3rem;
      text-align: center;
      font-size: 1.20rem;
      margin: 0.5rem 0;
    }

.gameTimerControls{ padding: 6px 6px 0px;}
.animate__fadeOutDown{bottom: -500px;}