:root {
    --pal_grey: #56667A;
    --pal_grey_op: rgba(86, 102, 122, .10);
    --pal_orange: #FF6542;
    --highlight_orange: #ff6542bb;
    --pal_green: #90BAAD;
    --main-color: var(--pal_grey);
    --light-lines: rgba(0, 0, 0, .1);
    --radius: 10px;
}

body {
    font-family: Helvetica;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 24px;
}

p {
    font-size: 16px;
}

.container-fluid {
    padding: 0;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.4); /* Black with opacity */
    padding-top: 20vh;
}

.modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid var(--main-color);
    border-radius: var(--radius);
    width: 500px;
    max-width: 400px;
    height: 320px;
}

/************************************************************************************************************************/
/******************************************       Navigation      *******************************************************/
/************************************************************************************************************************/

.navbar-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 45px;
}

.navbar-brand {
    padding: 45px;
}

.nav-item {
    margin-left: 12px;
}

.navbar {
    background-color: var(--pal_grey_op)  !important;
    border-radius: 0; /* Remove any border-radius */
    height: 50px;
    width: 100vw;
}

.nav-link {
    color: black !important;
    font-size: 16px;
    font-family: Helvetica, sans-serif;
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 0.1em;
    opacity: 0;
    transition: opacity 300ms, transform 300ms;
    background-color: var(--main-color)
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link:focus::after {
    opacity: 1;
    transform: translate3d(0, 0.2em, 0);
}

.row {
    max-width: 100vw;
    margin: 0 12px;
}

/************************************************************************************************************************/
/******************************************        PRS PAGE       *******************************************************/
/************************************************************************************************************************/

.left-container {
    width: 25vw;
    margin-right: 20px;
}

.prs-info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 10px 0 30px 0;
}

.subheading {
    margin-top: 5px;
    opacity: 0.5;
}

.short-sep-line {
    color: var(--main-color);
    border-width: 3px;
    width: 15vw;
}

.section-heading {
    text-align: center;
    font-weight: normal;
    margin: 20px 0;
}

.dropdown-title {
    margin: 20px 0 5px 0;
}

.dropdown-box .Select-control {
    border-radius: var(--radius);
    border: 1px solid var(--light-lines);
    height: 10px;
}

.graph-container {
    width: 70vw;
}

.button-box {
    margin-top: 20px;
    padding: 10px;
    align-self: center;
    text-align: center;
}

.button {
    background-color: white;
    border: 1px solid var(--main-color);
    border-radius: var(--radius);
    align-items: center;
    padding: 7px 15px 7px 15px;
    transition: background-color 0.3s ease; 
    cursor: pointer;
}

.button:hover {
    background-color: var(--main-color);
    color: white;
}

.tab-container .tab {
    border: 1px solid var(--main-color) !important;
    border-radius: 10px;
    background-color: white !important;
    height: 4vh;
    transition: background-color 0.5s ease, color 0.5s ease;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-grow: 1; /* Make each tab take an equal amount of space */
    flex-basis: 0; /* Flex basis ensures each tab starts equally sized */
    text-align: center !important;
}

.tab-container .tab:nth-child(2) {
    margin-left: -60px;
    z-index: 2;
}

.tab-container .tab:nth-child(3) {
    margin-left: -60px;
    z-index: 3;
}

.tab-container .tab:nth-child(4) {
    margin-left: -60px;
    z-index: 4;
}

.tab-container .tab--selected {
    background-color: var(--main-color) !important; 
    color: white !important;
    border-bottom: none; 
}

.tab-container .tab:hover {
    background-color: var(--main-color) !important;
    color: white;
}

.graph-footer {
    text-align: center;
    opacity: .5;
}

.target-information-box {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.sep-line {
    color: var(--main-color);
    border-width: 3px;
}

.download-button {
    margin-right: 14px;
}

.table-section, .cell-table {
    width: 100vw;
}

/* Custom styles for pagination controls */
.previous-next-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Override Dash DataTable CSS variables */
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table {
    --accent: var(--pal_orange) !important;
    --border: var(--pal_grey_op) !important;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner th.dash-filter input.dash-filter--case--sensitive {
    border-color: var(--pal_orange) !important;
    color: var(--pal_orange) !important;
}

.page-number {
    align-self: center;
}

.first-page, .previous-page, .next-page, .last-page {
    background-color: white;
}

.first-page:hover, .previous-page:hover, .next-page:hover, .last-page:hover {
    color: var(--pal_orange) !important;
}


/************************************************************************************************************************/
/*****************************************       Cohort Page     *******************************************************/
/************************************************************************************************************************/

.cohort-graphs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* Make each tab take an equal amount of space */
    flex-basis: 0; /* Flex basis ensures each tab starts equally sized */
}

.cohort-graph {
    border: 1px solid var(--pal_grey_op);
    border-radius: 15px;
    height: 200px;
}

.cohort-dropdown{
    width: 30vw;
}

.targets-graph {
    border: 1px solid var(--pal_grey_op);
    border-radius: 15px;
    height: 225px;
}

.heading-line {
    display: flex;
    align-items: center;
    justify-content: center;  /* Center the title */
    position: relative;
}

.heading-line::before,
.heading-line::after {
    content: "";
    flex-grow: 1;
    height: 3px; 
    background-color: var(--pal_grey_op);
    margin: 0 10px;
}

.heading-line::before {
    margin-right: 15px;
}

.heading-line::after {
    margin-left: 15px;
}

.right-column-graph-row {
    margin: 0 !important;
}

.cohort-stats-row{
    margin: 0 10px;
}

.cohort-stats-title{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.cohort-stats-graph{
    position: relative;
    height: 25vh;
    width: 25vw;
}


/************************************************************************************************************************/
/*****************************************        GWAS  Page      *******************************************************/
/************************************************************************************************************************/

/* Style for gwas-table-content header */
#gwas-table-content .dash-spreadsheet-container .dash-spreadsheet-inner table th {
    background-color: rgba(86, 102, 122, 0.10);
    color: black;
    font-weight: bold;
    text-align: center;
}

/* Style for gwas-table-content cells */
#gwas-table-content .dash-spreadsheet-container .dash-spreadsheet-inner table td {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0;
    text-align: center;
}

/* Odd rows background for gwas-table-content */
#gwas-table-content .dash-spreadsheet-container .dash-spreadsheet-inner table tr:nth-child(odd) td {
    background-color: rgba(86, 102, 122, 0.05);
}

/* Hover effect for rows except the first two in gwas-table-content */
#gwas-table-content .dash-spreadsheet-container .dash-spreadsheet-inner table tr:nth-child(n+3):hover td {
    background-color: var(--highlight_orange);
    color: white;
    cursor: pointer;
}

/* Selected row for gwas-table-content */
#gwas-table-content .dash-spreadsheet-container .dash-spreadsheet-inner table tr.is-selected td {
    background-color: rgba(255, 101, 66, 0.10);
    border: 1px solid #FF6542;
}

/* Active row for gwas-table-content */
#gwas-table-content .dash-spreadsheet-container .dash-spreadsheet-inner table tr.is-active td {
    background-color: rgba(255, 101, 66, 0.10);
    border: 1px solid #FF6542;
}



/************************************************************************************************************************/
/******************************************       Responsive      *******************************************************/
/************************************************************************************************************************/


/* assets/styles.css */
@media (max-width: 600px) {
    .dash-table td {
      font-size: 12px;  /* Adjust font size for small screens */
    }
}
  
@media (min-width: 601px) and (max-width: 1200px) {
    .dash-table td {
        font-size: 14px;  /* Adjust font size for medium screens */
    }
}
  
@media (min-width: 1201px) {
    .dash-table td {
        font-size: 16px;  /* Adjust font size for large screens */
    }
}

