@font-face {
  font-family: "nuffleregular";
  src: url("/assets/fonts/nuffle-webfont.woff2") format("woff2"),
    url("/assets/fonts/nuffle-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* Apply background-color only when theme class is on navbar */
.navbar.theme { background-color: var(--theme-primary) !important; }

/* Apply theme background color to card headers */
.card-header.theme { background-color: var(--theme-primary) !important; }

.green {
  border: 1px solid green !important;
}

html,
body {
  /*overflow-x: hidden;*/
  font-family: "Roboto Slab", serif;
}

body {
  background: url("/assets/images/bg.png") repeat #f2f2f2;
  background-attachment: fixed;
  background-position: center;
  padding-top: 56px;
  /*--theme-primary: darkred;*/
  --theme-primary-contrast: #ffffff;
  --theme-primary-contrast-soft: rgba(255, 255, 255, 0.85);
}

::selection {
  background: #b4d5fe;
}

a,
a:hover,
p a,
.nav-underline .nav-link:hover,
table.dataTable tbody td a:hover {
  color: #212529;
}

.table td,
.table th {
  border-top: 0;
}
.pointer {
  cursor: pointer;
}

.special-ability-link {
  cursor: pointer;
  color: var(--theme-primary);
  text-decoration: underline;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.special-ability-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/*Theme Colors*/
.txt-light { color: #ffffff !important; }
.txt-dark { color: #000000 !important; }

.txt-theme { color: var(--theme-primary) !important; }
.bg-theme { background-color: var(--theme-primary) !important; }

.btn-outline-theme {
  color: var(--theme-primary) !important;
  background-color: transparent;
  background-image: none;
  border-color: var(--theme-primary) !important;
}

.btn-theme {
  color: #fff;
  background-color: var(--theme-primary) !important;
  border-color: var(--theme-primary) !important;
}
.btn-theme:hover {
  opacity: 0.6;
}

.btn-outline-theme:hover,
.btn-theme:hover {
  color: #fff !important;
  background-color: var(--theme-primary) !important;
}

.dropdown-item:hover,
.dropdown-item.active,
.dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.151);
}
.dropdown-item {
  color: rgba(255, 255, 255, 0.5);
}

/* Light background navbar - dark text */
.navbar.bg-warning,
.navbar.bg-light {
  color: #212529 !important;
}

.navbar.bg-warning .navbar-brand,
.navbar.bg-light .navbar-brand,
.navbar.bg-warning .navbar-brand a,
.navbar.bg-light .navbar-brand a,
.navbar.bg-warning .nav-link,
.navbar.bg-light .nav-link,
.navbar.bg-warning .navbar-toggler-icon,
.navbar.bg-light .navbar-toggler-icon,
.navbar.bg-warning .navbar-contact,
.navbar.bg-light .navbar-contact {
  color: #212529 !important;
}

.navbar.bg-warning #ruleset-selector,
.navbar.bg-light #ruleset-selector {
  background-color: rgba(255, 255, 255, 0.8);
  color: #212529;
  border-color: rgba(0, 0, 0, 0.2);
}

.navbar.bg-warning .navbar-toggler-icon,
.navbar.bg-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 37, 41, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/**/

h1,
h2,
h3 {
  font-family: "Graduate", cursive;
}

h2.sectionTitle {
  padding: 1rem 0;
}

.wrapperDescription {
  border-left: 1px solid lightgrey;
}

.bigNumber {
  color: #343a40;
  font-size: 3.2rem;
  font-family: "nuffleregular", arial;
}

.searchbar {
  top: 56px;
  z-index: 2;
  margin-top: 0;
  background-color: var(--theme-primary);
  color: var(--theme-primary-contrast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.searchbar .form-control {
  background-color: var(--theme-primary-contrast-soft);
  color: #212529;
  border: 1px solid transparent;
}

.searchbar .form-control:focus {
  box-shadow: none;
}

.searchbar .form-control::placeholder {
  color: rgba(33, 37, 41, 0.65);
}

.searchbar #clearSearch {
  transition: color 0.2s ease;
  text-decoration: none !important;
}

.searchbar #clearSearch:hover {
  color: rgba(33, 37, 41, 0.8) !important;
  text-decoration: none !important;
}

.navbar-contact {
  color: rgba(255,255,255,.5);
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}
.navbar-contact:hover {
  color: rgba(255,255,255,1);
}

.nav-scroller {
  position: relative;
  margin-top: 0;
  z-index: 1;
  height: 2.75rem;
  overflow-y: hidden;
}

.searchbar + .nav-scroller {
  margin-top: 56px;
}

.nav-scroller.subnav {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
}

.nav-scroller .nav {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-scroller.subnav .nav {
  padding: 0 0.5rem;
  margin-top: 0;
  color: inherit;
}

.nav-scroller.subnav .nav-item {
  list-style: none;
}

.nav-underline .nav-link {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.nav-scroller.subnav .nav-link {
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #6c757d;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
h5.card-title {
  font-size: 1.1rem;
}
.wrapperTeam h5.card-title:hover,
.nav-underline .nav-link:hover {
  text-decoration: underline;
}

.nav-scroller.subnav .nav-link:hover,
.nav-scroller.subnav .nav-link:focus {
  color: #212529;
  border-bottom-color: rgba(33, 37, 41, 0.25);
  text-decoration: none;
}

.nav-scroller.subnav .nav-link.active {
  color: #212529;
  border-bottom-color: #8b0000;
}

.navbar.bg-legacyblue ~ .nav-scroller.subnav .nav-link.active {
  border-bottom-color: #1c96b2;
}

.navbar.bg-warning ~ .nav-scroller.subnav .nav-link.active {
  border-bottom-color: #ffc107;
}

.badge-ddm {
  font-weight: 100;
  font-size: 8px;
}
.badge-darkred {
  font-weight: 100;
  background-color: #343a40;
  color: white;
}

/* Elite skill gem icon */
.elite-icon {
  color: #b07d0f; /* Gold color */
  font-size: 1.0em;
  margin-right: 0.2;
  /*vertical-align: middle;*/
}

/* Elite Filter Toggle - Inline with Nav */
.nav-item-elite-toggle {
  margin-left: auto !important;
  display: flex;
  align-items: center;
}

.elite-toggle-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
  padding: 0.75rem 0.5rem;
}

.elite-toggle-input {
  display: none;
}

.elite-toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: #ccc;
  border-radius: 24px;
  transition: background-color 0.3s;
  margin-right: 0.5rem;
}

.elite-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.elite-toggle-input:checked + .elite-toggle-slider {
  background-color: #b07d0f;
}

.elite-toggle-input:checked + .elite-toggle-slider::before {
  transform: translateX(20px);
}

.elite-toggle-text {
  font-size: 0.85rem;
  color: #495057;
  font-weight: 500;
  white-space: nowrap;
}

/* Mobile: Add vertical divider before elite toggle */
@media (max-width: 768px) {
  .nav-item-elite-toggle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.15);
  }
  
  .nav-item-elite-toggle {
    position: relative;
    padding-left: 0.75rem;
  }
}

/* Status badges for skills */
.badge-active {
  background-color: #17a2b8;
  color: white;
  font-weight: 100;
  font-size: 100%;
}

.badge-passive {
  background-color: #6c757d;
  color: white;
  font-weight: 100;
  font-size: 100%;
}

/* BB/DB reference text only */
.skill-reference {
  font-size: 1.0rem;
  color: #6c757d;
  line-height: 1.2;
}

.nav-underline .active {
  font-weight: bold;
  color: #212529;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5);
}

.lh-100 {
  line-height: 1;
}

.lh-125 {
  line-height: 1.25;
}

.lh-150 {
  line-height: 1.5;
}

/*GENERAL*/

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.searchWrapper {
  margin-top: 0;
}

/*DATATABLE*/
table.dataTable {
  width: 100% !important;
}
table.dataTable thead th,
table.dataTable tfoot th {
  font-weight: 400;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  font-size: 0.8rem;
}

.dataTables_wrapper .dataTables_filter {
  z-index: 1 !important;
  padding: 0.5rem 1rem;
  margin-top: 56px;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  flex-wrap: wrap !important;
  background-color: var(--theme-primary);
  min-width: 100%;
  color: var(--theme-primary-contrast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.dataTables_wrapper .dataTables_filter label {
  display: block;
  margin: 0;
  color: inherit;
}

.dataTables_wrapper .dataTables_filter label input {
  min-width: 100%;
  margin: 0;
  display: block;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: var(--theme-primary-contrast-soft);
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

body.theme-bg-warning .dataTables_wrapper .dataTables_filter label input {
  border-color: rgba(0, 0, 0, 0.2);
}

.dataTables_wrapper .dataTables_filter label input:focus {
  color: #212529;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.dataTables_wrapper .dataTables_length {
  float: right;
  margin-right: 10px;
}

table.dataTable tbody td a {
  text-decoration: underline !important;
  margin-right: 8px;
}

table.dataTable tbody td a.skill-link {
  margin-right: 0;
}

/*SKILLS n TRAITS*/
.card.WrapperSkills ol ol li {
  list-style-type: lower-alpha;
  padding-left: 0.5rem;
}
.faq {
  color: #ff00ff !important;
}
#toggle-faq {
  background-color: red;
}

/* Structured FAQ Component Styles */
.faq-container {
  margin-top: 1rem;
}

.faq-list {
  margin: 0;
  padding: 0;
}

.faq-item {
  padding-bottom: 1rem;
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
/*TEAM*/
[data-toggle="collapse"] .bi-chevron-up {
  display: inline-block;
}

[data-toggle="collapse"] .bi-chevron-down {
  display: none;
}

[data-toggle="collapse"].collapsed .bi-chevron-up {
  display: none;
}

[data-toggle="collapse"].collapsed .bi-chevron-down {
  display: inline-block;
}

.wrapperTeam .card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tableTeam .cost {
  text-align: center;
}

.tableTeam .lvl {
  text-align: center;
}

.tableTeam .stat {
  text-align: center;
}

li.specialrule a {
  text-decoration: underline !important;
}

/*Colleges*/
.fire {
  background-color: #d85b25 !important;
}
.shadows {
  background-color: #414244 !important;
}
.metal {
  background-color: #828282 !important;
}
.light {
  background-color: #4d77ca !important;
}
.death {
  background-color: #b140c5 !important;
}
.life {
  background-color: #1e865c !important;
}
.beasts {
  background-color: #bc8309 !important;
}
.heavens {
  background-color: #d5d5d5 !important;
}

.linemen {
  background-color: rgba(133, 133, 133, 0.6);
}
.blitzer {
  background-color: rgb(202, 53, 53, 0.6);
}
.runner {
  background-color: rgba(255, 174, 0, 0.6);
}
.blocker {
  background-color: rgb(56, 139, 56, 0.6);
}
.thrower {
  background-color: rgba(255, 255, 255, 0.6);
}
.bigguy {
  background-color: rgb(50, 50, 173, 0.6);
}
.special {
  background-color: rgb(154, 84, 219, 0.6);
}

/*Contact Modal*/
.modal-open {
  padding-right:0 !important;
  padding-left: 0 !important;
  overflow: hidden !important;
}

label {
  color: #333;
}

.btn-send {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.help-block.with-errors {
  font-size: 0.8rem;
  text-align: right;
  color: #ff5050;
  margin-top: 5px;
}

/*404*/
.card.redCard {
  background: url("/assets/images/404-bg.png") no-repeat red;
  background-position: center;
  border-radius: 1rem !important;
  color: white;
  width: 210px;
  height: 300px;
  border: 2px solid darkred;
  -webkit-box-shadow: 0px 10px 18px -4px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 0px 10px 18px -4px rgba(0, 0, 0, 0.75);
  box-shadow: 0px 10px 18px -4px rgba(0, 0, 0, 0.75);
}

.card.redCard h2 {
  margin: 0.25rem;
  font-size: 6rem;
  font-family: "nuffleregular", arial;
}

/*Table styles*/
table.dataTable thead th,
table.dataTable thead td {
  padding: 10px 18px;
  border-bottom: 1px solid #111;
}

table.dataTable thead th:focus,
table.dataTable thead td:focus {
  outline: none;
}

table.dataTable tfoot th,
table.dataTable tfoot td {
  padding: 10px 18px 6px 18px;
  border-top: 1px solid #111;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
  background-repeat: no-repeat;
  background-position: center right;
}

table.dataTable.row-border tbody th,
table.dataTable.row-border tbody td,
table.dataTable.display tbody th,
table.dataTable.display tbody td {
  border-top: 1px solid #ddd;
}
/**/

.topSpacer {
  margin-top: 80px;
}

.responsive-table {
  font-size: 80%;
  font-weight: 400;
  width: 100%;
  margin-bottom: 1.5em;
  border-spacing: 0;
}

.responsive-table thead {
  position: absolute;
  clip: rect(1px 1px 1px 1px);
  /* IE6, IE7 */
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.responsive-table thead th {
  background-color: #343a40;
  font-weight: normal;
  text-align: center;
  color: white;
}

.responsive-table thead th:first-of-type {
  text-align: left;
}

.responsive-table tbody,
.responsive-table tr,
.responsive-table th,
.responsive-table td {
  display: block;
  padding: 0;
  text-align: left;
  white-space: normal;
}

.responsive-table th,
.responsive-table td {
  padding: 0.5em;
  vertical-align: middle;
}

.responsive-table caption {
  margin-bottom: 1em;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
}

.responsive-table tfoot {
  display: none;
}

.responsive-table tbody tr {
  margin-bottom: 1em;
}

.responsive-table tbody tr:last-of-type {
  margin-bottom: 0;
}

.responsive-table tbody tr:nth-of-type(even) {
  background-color: rgba(94, 93, 82, 0.1);
}

.responsive-table tbody th[scope="row"] {
  background-color: #343a40;
  color: white;
}

.responsive-table tbody th[data-title]:before {
  content: attr(data-title);
  float: left;
  font-size: 60%;
  color: rgba(94, 93, 82, 0.75);
}

.responsive-table tbody th[scope="classic"] {
  text-align: right;
  background: lightblue;
}

.responsive-table tbody td {
  text-align: left;
}

.responsive-table tbody td[data-title]:before {
  width: 100%;
  content: attr(data-title);
  float: left;
  font-size: 0.8em;
  color: rgba(94, 93, 82, 0.75);
}

.responsive-table tbody td[data-title]:empty:before {
  content: none;
}

.responsive-table tbody td[scope="inline"] {
  width: 19%;
  text-align: center;
  display: inline-block;
  border: none;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  padding: 0;
}

/*media queries*/
@media (min-width: 992px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
  .topSpacer {
    margin-top: initial;
  }
  .responsive-table thead {
    position: relative;
    clip: auto;
    height: auto;
    width: auto;
    overflow: auto;
  }
  .responsive-table tr {
    display: table-row;
  }
  .responsive-table th,
  .responsive-table td {
    display: table-cell;
    padding: 0.75em 0.5em;
  }
  .responsive-table caption {
    font-size: 1.5em;
  }
  .responsive-table tbody {
    display: table-row-group;
  }
  .responsive-table tbody tr {
    display: table-row;
    border-width: 1px;
  }
  .responsive-table tbody tr:nth-of-type(even) {
    background-color: rgba(94, 93, 82, 0.1);
  }
  .responsive-table tbody th[scope="row"] {
    font-size: 0.9rem;
    background-color: transparent;
    color: #5e5d52;
    text-align: left;
  }
  .responsive-table tbody td {
    text-align: left;
  }
  .responsive-table tbody td[data-title]:before {
    content: none;
  }
  .responsive-table tbody td[scope="inline"] {
    width: auto;
    display: table-cell;
    font-weight: 300;
    padding: 8px 10px;
    font-size: inherit;
    border-top: 1px solid #ddd;
  }
  .responsive-table tfoot {
    font-size: 0.9em;
  }
}

@media (min-width: 480px) {
  .responsive-table th,
  .responsive-table td {
    padding: 0.75em 0.5em;
  }
  .responsive-table tbody td[data-title]:before {
    font-size: 0.9em;
  }
}

@media (max-width: 1199px) {
  .tableTeam td {
    border: none;
  }
  .tableTeam .qty {
    display: inline-block;
    width: 49%;
  }
  .tableTeam .cost {
    display: inline-block;
    width: 49%;
    text-align: right;
  }
  .tableTeam .role {
    font-weight: 700;
    font-size: 1rem;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
  }
  .tableTeam .stat {
    font-size: 1.2rem;
    width: 19%;
    display: inline-block;
  }
  .tableTeam .skills {
    border-bottom: 1px solid #dee2e6;
  }
  .tableTeam .lvl {
    display: inline-block;
    width: 49%;
  }
  .offcanvas-collapse {
    position: fixed;
    top: 66px;
    /* Height of navbar */
    bottom: 0;
    left: 100%;
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    overflow-y: auto;
    visibility: hidden;
    background-color: #343a40;
    transition: visibility 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out,
      -webkit-transform 0.3s ease-in-out;
  }
  .offcanvas-collapse.open {
    visibility: visible;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
}

/* Keywords display styling */
.keywords {
  display: inline-block;
  font-size: 0.85em;
  color: #6c757d; /* Bootstrap text-muted color */
  font-style: italic;
  margin-top: 2px;
  line-height: 1.3;
}

/* Responsive adjustments for keywords */
@media (max-width: 768px) {
  .keywords {
    font-size: 0.8em;
  }
}

/* Homepage Cards Flexbox Layout */
.cards-flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.cards-flex-container > * {
  flex: 0 1 100%;
  max-width: 100%;
  min-width: 0; /* Prevents flex items from overflowing */
  box-sizing: border-box; /* Ensures padding/border included in width */
}

/* 2-column layout above 992px (lg breakpoint) */
@media (min-width: 992px) {
  .cards-flex-container > * {
    flex: 0 1 calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
  }
}
