body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #252539;
    zoom: 1.00;
}

header {
    background-color: #26263E;   /* updated */
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
}

.logo {
    height: 100px;
}


nav ul {
    list-style: none;
    margin: 0;
    padding: 3;
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    width: 100%;
    center-align: center;
}

nav ul li {
    flex: 1;
    text-align: center;
}

nav ul li a {
    display: block;
    padding: 15px 30px;
    white-space: nowrap; /* prevents text from wrapping */
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s, transform 0.2s;
    border-radius: 8px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0 8px;
}


/* active state for top nav links */
nav ul li a.active {
    background-color: #2f6df6;
    color: #ffffff;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    text-decoration: none;
}

.content {
    padding: 30px;
    text-align: center;
}

.form-section {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    text-align: left;   /* <-- Change this */
}

h3 {
    margin: 20px 0 10px;
    font-size: 1.2em;
}

label {
    display: block;
    margin-bottom: 5px;
    align-items: center;
}

input, select {
    width: 96%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input,
select,
input[type="file"] {
    width: 96%;
    margin-left: auto;
    margin-right: auto;
    display: block; /* ensures they center inside the container */
    text-align: left; /* ensures the text typed stays left aligned */
}

button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

button:hover {
    background-color: #0056b3;
}

#message {
    margin-top: 20px;
    color: red;
}

.about-section {
    padding: 20px;
    background-color: #ffffff;
    text-align: center;
    display: none;
}

.about-section h2 {
    margin: 20px 0;
}

.about-section h2 a {
    color: #007BFF;
    text-decoration: none;
}

.about-section h2 a:hover {
    text-decoration: underline;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.sponsors-grid img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

input[type="file"] {
    width: 96%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.home-image {
    max-width: 80%;   
    height: auto;      
    display: block;    
    margin: 0 auto;   
}

.content {
    padding: 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.variant-explanation {
    font-size: 20px;
    line-height: 1.6;
}

#graph-container {
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Full-bleed data views */
#analysis-section.content,
#pileup-section.content {
  max-width: none;
  width: 100vw;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Full-page layout for Breseq */
#breseq-section.content {
  max-width: none !important;
  width: 100vw !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: #ffffff !important;   /* white results area */
}

/* also make the two-pane wrapper in the results view white */
#breseq-section .two-pane-wrapper,
#breseq-section .two-pane-right {
    background: #ffffff !important;
}

/* slightly roomier left analysis list like EvolvingStem */
#breseq-section .two-pane-left {
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db;
    border-radius: 12px;
}

/* make iframe area white and taller */
#breseq-frame {
    width: 100% !important;
    height: calc(100vh - 150px) !important;
    border: none;
    display: block;
    background: #ffffff;
}

/* Optional: don’t center the plot column */
#graph-container { align-items: flex-start; }


#referenceToggleContainer {
  display: flex;
  justify-content: left;   /* <-- forces left alignment */
  align-items: left;
  flex-direction: row;
  gap: 0px;
  margin-bottom: 20px;
}

#referenceToggleContainer button {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  color: white;
  cursor: pointer;
  white-space: nowrap;
}

#referenceToggleContainer button:hover {
  background: #1d4ed8;
}


#breseq-image {
    max-width: 600px; /* Set a stricter maximum width */
    width: 100%; /* Allow responsive scaling */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Treat the image as a block element */
    margin: 0 auto; /* Center the image horizontally */
    padding-top: 0px; /* Optional: Add some space above the image if needed */
}


.citation-text {
    font-size: 14px; /* Adjust font size */
    margin-top: 10px;
    text-align: center;
    line-height: 1.5;
}

.citation-text a {
    color: #1e90ff; /* Link color */
    text-decoration: underline;
}


#referenceToggleContainer button {
    padding: 8px 14px;
    margin-right: 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

/* Inactive but visible */
#referenceToggleContainer button:not(.active) {
    background: white;
    border-style: dashed;
    opacity: 0.7;
}

/* Active (selected) */
#referenceToggleContainer button.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    opacity: 1;
    font-weight: 600;
}

/* Optional hover affordance */
#referenceToggleContainer button:not(.active):hover {
    opacity: 0.85;
}

.form-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 22px; /* space between Submit and Clear */
}

#clearFormBtn {
    margin-center: 8px;
    padding: 8px 24px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
}

#clearFormBtn:hover {
    background: #e5e7eb;
}

/* Logout button styled like nav links */
.logout-btn {
    display: block;
    padding: 15px 30px;
    white-space: nowrap;
    font-weight: bold;
    border-radius: 8px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0 8px;

    border: none;
    cursor: pointer;
    background-color: rgba(220, 38, 38, 0.85); /* red, but muted */
    color: #ffffff;

    transition: background-color 0.3s, transform 0.2s;
}

/* Hover effect matches nav links */
.logout-btn:hover {
    background-color: rgba(185, 28, 28, 0.95);
    transform: scale(1.05);
}


.site-footer {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    padding: 18px 12px;
    margin-top: 40px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
}

.site-footer a {
    color: #2563eb;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

textarea {
    width: 100%;
    box-sizing: border-box;
}

footer {
  background-color: rgb(14, 25, 53);
  color: white; /* White text for footer content */
  text-align: left;
  padding: 10px;
  width: 100%;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  margin-top: auto;
}

footer p {
  color: white !important; /* Explicitly white */
  margin: 0;
}

