/* Master Styles */
body {
    margin: 0px;
  }
  
  html {
    overflow-y: scroll;
  }
  
  table {
    display: table;
    margin: 0 auto;
  }
  
  .container {
    display: grid;
    grid-template-columns: 1fr;
  }
  
  button {
    border: 1px solid #8a8a8a;
    color: #000000;
    background-color: #ffffff;
  }
  
  /*
  button:hover {
      //border: 1px solid #064f2e;
      color: #ffffff;
      background-color: #064f2e;
  }*/
  .mouselogo {
    display: flex;
    margin: 0 auto;
  }
  
  .bartitle text {
    fill: black;
    /* <== Set the fill */
    text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff;
    cursor: move;
  }
  
  #Mainpage {
    /*height: 100%;
    /*margin-bottom: 20%;
    /*padding-bottom: 20%*/
  }
  
  datalist {
    position: absolute;
    background-color: white;
    border: 1px solid blue;
    border-radius: 0 0 5px 5px;
    border-top: none;
    font-family: sans-serif;
    width: 350px;
    padding: 5px;
  
  }
  
  option {
    background-color: white;
    padding: 4px;
    color: blue;
    margin-bottom: 1px;
    font-size: 16px;
    cursor: pointer;
  }
  
  option:hover,
  .active {
    background-color: lightblue;
  }
  
  input {
    width: 12.5em;
    height: 2em;
  }
  
 
  
  ::-webkit-scrollbar {
    width: 20px;
    background-color: transparent;
  }
  
  ::-webkit-scrollbar-thumb {
    background-color: #d6dee1;
    border-radius: 20px;
    border: 6px solid transparent;
    background-clip: content-box;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background-color: #a8bbbf;
  }
  
  .intro {
    display: flex;
  }
  
  .brain-animation svg {
    width: 50em;
    height: auto;
  }
  
  .braininfo {
    width: 95%;
    min-width: 40em;
    height: auto;
    background: rgba(168, 151, 136, 0.05);
    text-align: justify;
    padding: 20px;
    margin-top: 20px;
  }
  
  /* Navbar Styles */
  .nav-wrapper {
    display: flex;
    justify-content: space-between;
    padding: 27px;
  }
  
  .left-side {
    display: flex;
  }
  
  .nav-wrapper>.left-side>div {
    margin-right: 20px;
    font-size: 0.9em;
    /*text-transform: uppercase;*/
  }
  
  .nav-link-wrapper {
    height: 22px;
    border-bottom: 1px solid transparent;
    /*transition: border-bottom 0.5s;*/
  }
  
  .nav-link-wrapper a {
    color: #8a8a8a;
    text-decoration: none;
    transition: color 0.5s;
  }
  
  .nav-link-wrapper0 {
    height: 22px;
    border-bottom: 1px solid black;
    transition: border-bottom 0.5s;
    color: black;
  }
  
  .nav-link-wrapper0 a {
    color: black;
    text-decoration: none;
  }
  
  .nav-link-wrapper:hover {
    border-bottom: 1px solid black;
  }
  
  .nav-link-wrapper a:hover {
    color: black;
  }
  
  .select {
    margin-left: 37px;
  }
  
  .select-wrapper {
    display: flex;
    justify-content: space-between;
  }
  
  .right-side-select {
    margin: auto 0;
  }
  
  .brain {
    min-width: 40em;
    max-width: 40em;
  }
  
  .brain svg {
    width: 100%;
    height: auto;
  }
  
  
  /* Description Styles */
  .content-wrapper-oldtable {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 50em;
    grid-gap: .5em;
    margin: 0 37px;
    width: auto;
    overflow-x: scroll;
  
  }
  
  .content-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 37px;
    margin-right: 3em;
    justify-content: flex-start;
    height: 100%;
    min-width: 0;
  }
  
  .right-side-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0px;
    justify-content: space-between;
    height: 100%;
  }
  
  .right-inside-wrapper {
    display: flex;
  }
  
  .content-wrapper>.left {
    width: 50%;
    flex-basis: min-content;
  }
  
  .content-wrapper>.right {
    width: 50%;
    flex: 1;
    padding: 0 37px;
  }
  
  .content-wrapper-about {
    padding: 0 37px;
  }
  
  .content-wrapper-contact {
    margin: 0 37px;
  }
  
  .content-wrapper>div {
    font-size: 0.9em;
    color: #595959;
  }
  
  td,
  th {
    padding: 5px 10px;
  }
  
  form {
    margin-bottom: 20px;
    margin-top: 20px;
  }
  
  .fifth {
    float: left;
    width: 100%;
    width: 20%;
    padding: 0 8px;
  }
  
  .bottombar {
    border-bottom: 6px solid #ccc !important;
  }
  
  .half {
    float: left;
    width: 100%;
    width: 49.99999%;
    padding: 0 8px;
  }
  
  .container:after,
  .container:before {
    content: "";
    display: table;
    clear: both;
  }
  
  .container {
    padding: 0 0 0 10px;
  }
  
  .padding {
    padding: 8px 16px !important;
  }
  
  .hover-light-grey:hover {
    color: #000 !important;
    background-color: #f1f1f1 !important
  }
  
  .row-table:after,
  .row-table:before {
    content: "";
    display: table;
    clear: both;
  }
  
  .purple {
    color: #fff !important;
    background-color: #673ab7 !important;
  }
  
  .button-tab {
    border: none;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background-color: inherit;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 100%;
    text-align: left;
    padding: 8px 16px;
  }
  
  .button-tab:disabled {
    cursor: not-allowed;
    opacity: 0.3;
  }
  
  svg>.layer1 {
    color: #17ffb7;
  }
  
  .mouse2:hover {
    display: inline;
    fill: #17ffb7;
    fill-opacity: 1;
    fill-rule: nonzero;
    stroke: #000018;
    stroke-width: 0.603603;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    stroke-miterlimit: 10;
    stroke-dasharray: none;
    stroke-opacity: 1
  }
  
  .bar-item {
    padding: 8px 16px;
    float: left;
    width: auto;
    border: none;
    display: block;
    outline: 0;
    width: 100%;
    display: block;
    padding: 8px 16px;
    text-align: left;
    border: none;
    white-space: normal;
    float: none;
    outline: 0;
    text-align: center;
  }
  
  .bar .bar-item {
    padding: 8px 16px;
    float: left;
    width: auto;
    border: none;
    display: block;
    outline: 0;
  }
  
  .bar:before,
  .bar:after {
    content: "";
    display: table;
    clear: both
  }
  
  .light-grey {
    color: #000 !important;
    background-color: #f1f1f1 !important;
  }
  
  .border-purple {
    border-color: #673ab7 !important;
  }
  
  a {
    color: inherit
  }
  
  html,
  body {
    font-family: Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5
  }
  
  html {
    overflow-x: hidden;
  }
  
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 30px;
  }
  
  h3 {
    font-size: 24px;
  }
  
  h4 {
    font-size: 20px;
  }
  
  h5 {
    font-size: 18px;
  }
  
  h6 {
    font-size: 16px;
  }
  
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
  
  
  
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    margin: 10px 0;
  }
  
  html {
    box-sizing: border-box;
  }
  
  *,
  *:before,
  *:after {
    box-sizing: inherit;
  }
  
  .scroll-shadows {
    margin-top: 0px;
    /*max-height: 200px;calc(100vh - 100px) !important;*/
    overflow: auto;
  
    background:
      /* Shadow Cover TOP */
      linear-gradient(white 30%,
        rgba(255, 255, 255, 0)) center top,
  
      /* Shadow Cover BOTTOM */
      linear-gradient(rgba(255, 255, 255, 0),
        white 70%) center bottom,
  
      /* Shadow TOP */
      radial-gradient(farthest-side at 50% 0,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0)) center top,
  
      /* Shadow BOTTOM */
      radial-gradient(farthest-side at 50% 100%,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0)) center bottom;
  
    background-repeat: no-repeat;
    background-size: 100% 40px, 100% 10px, 100% 14px, 100% 14px;
    background-attachment: local, local, scroll, scroll;
  }
  
  
  
  .tabbar {
    display: flex;
    padding-bottom: 1em;
  }
  
  /* Style the tab buttons */
  .tablink {
    background-color: #e8e8e8;
    color: #8a8a8a;
    float: left;
    border: none;
    outline: none;
    cursor: grab;
    padding: 1em;
    font-size: 1em;
    width: 25%; /* 33.33333%; */
    border: 0.1px solid white;
  }
  
  
  /*
  .compartment:hover {
    background-color: #A89788;
  }
  .compare:hover {
    background-color: #796465;
  }
  .protein:hover {
    background-color: #32021F;
  }
  */
  /* Set default styles for tab content */
  .tabcontent {
    color: white;
    display: none;
    padding: 20px;
    text-align: center;
  }
  
  /* Style each tab content individually */
  #select {
    background-color: #434975;
  }
  
  #hover {
    background-color: #B6BFF7;
  }
  
  #Compartment {
    background-color: #A89788;
  }
  
  #Compare {
    background-color: #796465;
  }
  
  #Protein {
    background-color: #32021F;
  }
  
  
  .pagecontent {
    display: none;
  }
  
  
  :root {
    --compartment-color_green: #064f2e;
    --compartment-color: #434975;
    --compare1-color: #434975;
    --compare2-color: #B6BFF7;
    --brain1-color: #796465;
    --brain2-color: #796465;
    --hover: #434975;
    --entirebrain-color: #808080;
    /*#404987;*/
    --select: #434975;
    /*192361;*/
  }
  
  /*Change background color of buttons on hover*/
  .tablink:hover {
    background-color: #434975;
    /*#404987;*/
    opacity: 0.8;
    transition: color 0.5s;
    transition: background-color 0.5s;
    color: white;
  }
  
  path.slice {
    stroke-width: 2px;
  }
  
  polyline {
    opacity: .3;
    stroke: black;
    stroke-width: 2px;
    fill: none;
  }
  
  .piechart {
    width: auto;
  }
  
  .piesvg {
    width: 960px;
    height: 500px;
    position: relative;
  }
  
  .bar2 {
    fill: #B6BFF7;
    fill-opacity: 0.5;
  }
  
  .bar {
    fill: #434975;
    fill-opacity: 0.5;
  }
 
  .barR {
    fill: #81749a;
    fill-opacity: 0.5;
  }

  .bar2old {
    fill: #A89788;
    fill-opacity: 0.5;
  }
  
  .barold {
    fill: #796465;
    fill-opacity: 0.5;
  }
  
  
  .axis text {
  
    font: 10px sans-serif;
  
  }
  
  
  .axis path,
  .axis line {
  
    fill: none;
  
    stroke: #000;
  
    shape-rendering: crispEdges;
  
  }
  
  .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #434975;
    opacity: 0.3;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked+.slider {
    background-color: #434975;
    opacity: 0.5;
  }
  
  input:focus+.slider {
    box-shadow: 0 0 1px #32021F;
  }
  
  input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }
  
  
  
  .twinbar-vert {
    -ms-transform: translateX(90deg);
  }
  
  .topn-class {
    padding: 0 10%;
  }
  
  .topn-wrap {
    width: 80%;
    text-align: justify;
    padding: 20px;
    margin: 20px 10%;
  }
  
  line {
    stroke: black;
    stroke-width: 1px;
    fill: none;
  }
  
  .reglist thead th {
    position: sticky;
    top: 0;
    z-index: 1;
  }
  
  .rectangleG {
    height: 10px;
    width: 200px;
    background-image: linear-gradient(90deg, rgba(77,108,234,1) 0%, rgba(232,94,94,1) 100%);
    z-index: -1;
  }

  .rectangleP {
    height: 10px;
    width: 200px;
    background-image: linear-gradient(90deg, rgba(121,46,255,1) 0%, rgba(255,181,0,1) 100%);
    z-index: -1;
  }
  
  .spinner {
    width: 64px;
    height: 64px;
    border: 8px solid;
    border-color: #3d5af1 transparent #3d5af1 transparent;
    border-radius: 50%;
    animation: spin-anim 1.2s linear infinite;
  }
  
  @keyframes spin-anim {
    0% {
      transform: rotate(0deg);
    }
  
    100% {
      transform: rotate(360deg);
    }
  }
  
  .loader-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    background: #000;
    z-index: 1;
  }
  
#tooltip {
  background-color: white;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
  pointer-events: none; /* Prevents the tooltip from blocking the mouse */
  z-index: 1000;
  font-family: sans-serif;
  font-size: 12px;
}

/* Highlighting style for brain compartments */
.brain-highlight {
    stroke: lightgrey !important; /* Black border */
    stroke-width: 2px !important; /* Thicker line */
    /* optional: stroke-opacity: 1 !important; */
}

  .confirm-button {
    width: 5em;
    height: 2em;
    box-shadow: 2px 2px 12px 1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    outline: none;
    transition: 0.2s all;

  }
  
  .btn {
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    background-color: green;
    color: #fff;
    border-radius: 5px;
    box-shadow: 7px 6px 28px 1px rgba(0, 0, 255, 0.24);
    cursor: pointer;
    outline: none;
    transition: 0.2s all;
}

/* Adding transformation when the button is active */
.confirm-button:active {
    transform: scale(0.98);
    /* Scaling button to 0.98 to its original size */
    box-shadow: 3px 2px 22px 1px rgba(0, 0, 0, 0.24);
    /* Lowering the shadow */
}

table.data-table tr td:first-child {
  max-width: 20px;
}

/* Transparent Loader Overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0); /* Fully transparent */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none; /* Allow clicks through the overlay */
}

/* Spinner */
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(200, 200, 200, 0.5);
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  pointer-events: auto; /* Ensure the spinner itself can be interactive if needed */
}

/* Keyframes */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-message {
  margin-top: 16px;
  font-size: 1.1rem;
  color: #555;
  font-family: sans-serif;
  text-align: center;
}


/* Target your heatmap area specifically (IDs you provided) */
#heatmappage {
  /*  flex: 1 1 100%;         allow it to take full row but also to shrink if needed */
  min-width: 0;            /* critical: permits internal scrolling instead of expanding page */
  max-width: 90vw;
   /*height: 50vh;            /* keep the visual height you want */
  /* box-sizing: border-box; */
  overflow: hidden;        /* don't let the heatmap push the page horizontally */
}

/* Scrolling container inside it — horizontal scroll only */
#heatmap-scroll {
  width: 100%;
  height: 100%;
  overflow-x: auto;        /* horizontal scroll here */
  overflow-y: hidden;
  /* -webkit-overflow-scrolling: touch; */
  position: relative;
}

/* Plot element should not be a flex child that shrinks — inline-block works well here */
#plot {
  display: inline-block;
  height: 100%;
  min-height: 100%;
  max-width: none !important;  /* prevent any global max-width rules from compressing it */
  flex-shrink: 0;
}

/* Sticky axis labels and title */
.fixed-yaxis, .fixed-xaxis-title {
  position: absolute;
  left: 0;
  background: white;
  z-index: 10;
  font-weight: bold;
  font-size: 12px;
}

.fixed-yaxis {
  top: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 4px;
}

.fixed-xaxis-title {
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 2px 0;
}
