/* display background color black on navbar scroll */
.navbarScroll.navbarDark {
    background-color: black;
}

/* Brief flash to draw attention to the selection-limit message */
@keyframes flashAttention {
    0%   { transform: scale(1); opacity: 1; }
    30%  { transform: scale(1.12); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.flash-attention {
    display: inline-block;
    animation: flashAttention 0.45s ease;
}

/* Checkbox-list filters (replaces Ctrl/Cmd multi-selects: discoverable, touch-friendly) */
.filter-check-list {
    max-height: 148px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 4px;
    background: #fff;
}
.filter-check-list .filter-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 3px 6px;
    font-size: 0.8rem;
    line-height: 1.2;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}
.filter-check-list .filter-chip:hover {
    background: #f1f3f5;
}
.filter-check-list .filter-chip input {
    cursor: pointer;
    margin: 0;
    flex: 0 0 auto;
}
/* Highlight the row when its checkbox is checked, so active selections are obvious */
.filter-check-list .filter-chip:has(input:checked) {
    background: #e7f1ff;
    font-weight: 600;
}
.filter-check-list .filter-chip-label {
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.filter-check-list .filter-chip-count {
    flex: 0 0 auto;
    color: #868e96;
    font-size: 0.72rem;
    font-weight: 400;
}

/* Sticky table header for long lists: header stays visible while scrolling.
   Bound the wrapper height so the table body scrolls under a pinned header. */
.table-responsive.sticky-scroll {
    max-height: 60vh;
    overflow: auto;
}
.table-responsive.sticky-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 3;
}

/* Active-filter chips (removable) shown in the filter bar */
.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    font-size: 0.78rem;
    line-height: 1.4;
    background: #e7f1ff;
    border: 1px solid #b6d4fe;
    border-radius: 999px;
    color: #084298;
}
.active-filter-chip .chip-remove {
    cursor: pointer;
    border: none;
    background: transparent;
    color: #084298;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
}
.active-filter-chip .chip-remove:hover {
    color: #d6336c;
}

/* Wider popover so the 23andMe v3/v4/v5 comparison table fits comfortably */
.chip-info-popover {
    max-width: 420px;
}
.chip-info-popover .popover-body {
    font-size: 0.8rem;
}

/* Expandable multi-file participant rows */
.file-expander {
    color: #495057;
    font-size: 1.9rem;
    line-height: 1;
}
.file-expander:hover {
    color: #0d6efd;
}
/* Expand/collapse-all caret in the (dark) table header */
.file-expander-all,
.table-dark .file-expander-all {
    color: #fff !important;
    font-size: 1.25rem;
    line-height: 1;
    border: none;
    background: transparent;
}
.file-expander-all:hover,
.table-dark .file-expander-all:hover {
    color: #9ec5fe !important;
}
/* Multi-file group: parent identity row + its file child-rows share a tinted
   background and a blue left accent so the group reads as one unit distinct
   from the striped single-file rows. */
tr.file-parent-row > td {
    background-color: #dce9fb;
    font-weight: 500;
}
tr.file-parent-row > td:first-child {
    border-left: 4px solid #0d6efd;
}
tr.file-child-row > td {
    background-color: #f1f7ff;
    border-top: 1px dashed #cfe0f5;
}
tr.file-child-row > td:first-child {
    border-left: 4px solid #9ec5fe;
}
tr.file-child-row:hover > td {
    background-color: #e5f0ff;
}
/* A file that doesn't match the active filters: grayed out and not selectable. */
tr.file-row-filtered > td {
    opacity: 0.5;
    background-color: #f3f4f6;
    font-style: italic;
}
tr.file-row-filtered input[type="checkbox"] {
    cursor: not-allowed;
}
/* Multi-file parent whose files all fail the active filters. */
tr.file-parent-nomatch > td {
    opacity: 0.6;
}

/* White text for navbar */
.navbar-dark .nav-link,
.navbar-dark .navbar-brand {
    color: white !important;
}

.navbar-dark .nav-link:hover {
    color: #ccc !important;
}

/* hero background image */
.bgimage {
  min-height: 14vh;
    background: url('../../dna2.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}
/* text css above hero image*/
.hero_title {
    font-size:2.5rem;
        color: rgb(225, 222, 222);

}
.hero_desc {
    font-size: 1rem;
}
.hero-text {
    text-align: left;
    color: rgb(150, 145, 145);
    padding: 1rem 0;
}

/* PRS section step headers */
.prs-step-header {
    color: #0d6efd;
    font-weight: 600;
}

/* spacing on all sections */
#notices, #calculator, #portfolio, #contact {
    margin-top: 1rem;
    padding-top: 1rem;
}
#calculator {
    padding-bottom: 73rem;
}
/* about section image css 
.imageAboutPage {
    width: 100%;
}
*/


/* social media icons styling */
.social-icons {
    font-size: 2px;
    cursor: pointer;
}
.fa-facebook:hover,.fa-instagram:hover,.fa-twitter:hover,.fa-linkedin:hover, .fa-twitch:hover {
    color: #008000;
}
.fab {
    color: #000000;
}
/* footer styling */
#footer {
    background-color: #808080;
    text-align: center;
}

/* side panel  */

.sidepanel  {
    width: 0;
    position: fixed;
    z-index: 1;
    height: 250px;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
  }
  
  .sidepanel a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
  }
  
  .sidepanel a:hover {
    color: #f1f1f1;
  }
  
  .sidepanel .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 25px;
  }
  
  .openbtn {
    font-size: 25px;
    cursor: pointer;
    background-color: #111;
    color: white;
    padding: 10px 15px;
    border: none;
  }
  
  .openbtn:hover {
    background-color:#444;
  }

  /* nav bar*/
  /* @media (min-width: 768px) {
    .navbar-nav.navbar-center {
      position: absolute;
      left: 50%;
      transform: translatex(-50%);
    }
  } */
  nav {
    background: black;
    color: rgb(25, 20, 20);
    font-size: 0.7em !important;
  }

  nav.navbar {
    min-height: 40px;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
  }

  nav.navbar .nav-link {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
  

body {
  position: relative;
  height: auto;
  min-height: 100% !important;
}

/*input*/
* {
  box-sizing: border-box;
}

body {
  font: 16px Arial;  
}

/*the container must be positioned relative:*/
.autocomplete {
  position: relative;
  display: inline-block;
}

input {
  border: 1px solid transparent;
  background-color: #f1f1f1;
  padding: 10px;
  font-size: 16px;
}

input[type=text] {
  background-color: #f1f1f1;
  width: 100%;
}

input[type=submit] {
  background-color: DodgerBlue;
  color: #fff;
  cursor: pointer;
}

.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff; 
  border-bottom: 1px solid #d4d4d4; 
}

/*when hovering an item:*/
.autocomplete-items div:hover {
  background-color: #e9e9e9; 
}

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
  background-color: DodgerBlue !important; 
  color: #ffffff; 
}

/*DROPDOWN*/

.dropbtn {
  background-color: #3498DB;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.dropbtn:hover, .dropbtn:focus {
  background-color: #2980B9;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  overflow: auto;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown a:hover {background-color: #ddd;}

.show {display: block;}

.graph-container {
  display: flex;
}
.wrap {
  display: flex;
  background: #ccc;
  justify-content: space-between;
}

/* #topBarCategories {
  flex: 1;
  width: 50px;
  height: 50px;
  background-color: #FF0000;
}

#topBarTraits {
  flex: 1;
  width: 50px;
  height: 50px;
  background-color: #0000FF;
} */

.glow-on-hover {
  width: 170px;
  height: 32px;
  border: none;
  outline: none;
  color: #fff;
  background: #fcfbfb;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
}

.glow-on-hover:before {
  content: '';
  background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  position: absolute;
  top: -2px;
  left:-2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing 20s linear infinite;
  opacity: 0;
  transition: opacity .3s ease-in-out;
  border-radius: 10px;
}

.glow-on-hover:active {
  color: #000
}

.glow-on-hover:active:after {
  background: transparent;
}

.glow-on-hover:hover:before {
  opacity: 1;
}

.glow-on-hover:after {
  z-index: -1;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #d40f0f;
  left: 0;
  top: 0;
  border-radius: 10px;

}

@keyframes glowing {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

.link-unstyled, .link-unstyled:link, .link-unstyled:hover {
  color: inherit;
  text-decoration: inherit;
}
.bg-menu:hover {
  background-color: #0079C1;
  color: #FFFFFF;
}
.clickable {
  cursor: pointer;
}

/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  color: #333;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

/* ===== Dual-handle Variant Slider Styles ===== */

/* Price input container */
.variant-filter .price-input {
  width: 100%;
  font-size: 19px;
  color: #555;
}

.variant-filter .price-input .price-field {
  display: flex;
  margin-bottom: 22px;
}

.variant-filter .price-field span {
  margin-right: 10px;
  margin-top: 6px;
  font-size: 17px;
}

.variant-filter .price-field input {
  flex: 1;
  height: 35px;
  font-size: 15px;
  border-radius: 9px;
  text-align: center;
  border: 0px;
  background: #e4e4e4;
}

/* Remove Arrows/Spinners from number inputs */
.variant-filter input::-webkit-outer-spin-button,
.variant-filter input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Slider track */
.variant-filter .slider {
  height: 6px;
  position: relative;
  background: #e4e4e4;
  border-radius: 5px;
}

/* Progress bar between handles */
.variant-filter .slider .price-slider {
  height: 100%;
  left: 0%;
  right: 0%;
  position: absolute;
  border-radius: 5px;
  background: #0d6efd;
}

/* Range input container */
.variant-filter .range-input {
  position: relative;
}

.variant-filter .range-input input {
  position: absolute;
  width: 100%;
  height: 5px;
  background: none;
  top: -5px;
  pointer-events: none;
  cursor: pointer;
  -webkit-appearance: none;
}

/* Range thumb - WebKit */
.variant-filter .range-input input[type="range"]::-webkit-slider-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #0d6efd;
  pointer-events: auto;
  -webkit-appearance: none;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Range thumb - Firefox */
.variant-filter .range-input input[type="range"]::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #0d6efd;
  pointer-events: auto;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ===== Load-option tabs (Tab 1 Genomic Data & Tab 2 PGS Catalog) ===== */
/* More breathing room between Upload / Browse / Examples / Load by ID tabs */
#genomicLoadTabs .nav-item,
#pgsSelectTabs .nav-item {
  margin-right: 1.25rem;
}
#genomicLoadTabs .nav-item:last-child,
#pgsSelectTabs .nav-item:last-child {
  margin-right: 0;
}
/* Underline the tab label on hover */
#genomicLoadTabs .nav-link:hover,
#pgsSelectTabs .nav-link:hover {
  text-decoration: underline;
}
/* Light-gray backdrop for the tab content panels */
#genomicLoadTabsContent,
#pgsSelectTabsContent {
  background-color: #f1f3f5 !important;
}
/* Calculate PRS tab: three steps with distinct tinted backgrounds */
.prs-section {
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.prs-section-gray  { background-color: #f1f3f5; }
.prs-section-blue  { background-color: #e7f1ff; }
.prs-section-green { background-color: #e6f4ea; }
