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

header {
    position: fixed; /* Fix the header at the top */
    top: 0;
    left: 0;
    right: 0;
    height: 175px; /* Adjust based on your header's content */
    overflow-x: auto; /* Allow horizontal scrolling if necessary */
    overflow-y: hidden; /* Prevent vertical scrolling */
    display: flex;
    align-items: center;
    background-color: rgb(14, 25, 53); /* Ensure it matches the design */
    z-index: 1000; /* Keep it above other content */
}

.logo {
    height: 40px;
}


nav ul {
    display: flex; /* Arrange the icons in a horizontal row */
    list-style-type: none;
    padding: 0;
    margin: 0;
    list-style-type: none;
    gap: 10px;
}


nav ul li {
    flex: none; /* Prevent the icons from stretching */
    margin: 0 15px; /* Adjust spacing between icons */
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}


.form-section {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    position: relative; /* Ensure the form is positioned correctly */
    z-index: 1; /* Keep it above background elements */
}

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

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

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

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;
}

.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: 400px; /* Set a stricter maximum width */
    width: 100%; /* Allow responsive scaling */
    height: auto;      
    display: block;    
    margin: 0 auto;
    background: none; /* Ensure no background color */
}

.content {
    display: none;
    margin-top: 200px; /* Adjust this value to match the height of your fixed header */
    padding: 20px;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    flex: 1;
    margin-top: 110px; /* Add margin to clear the fixed header */
    margin-left: auto;
    margin-right: auto;
}

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

.drop-zone {
    width: 100%;
    height: 150px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    text-align: center;
    line-height: 150px;
    color: #aaa;
    cursor: pointer;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.drop-zone.dragover {
    border-color: #333;
    color: #333;
}

#fileList {
    margin-top: 10px;
    list-style-type: none;
    padding: 0;
}

.submit-image-container {
    text-align: center; /* Center the image horizontally */
    margin: 2px auto; /* Add space above and below, and center within its container */
    display: flex;
    justify-content: center; /* Center horizontally */
}

.submit-image {
    max-width: 600px; /* Adjust this value to control the size */
    height: auto; /* Maintain aspect ratio */
}

/* Citation text styling */

.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;
}

#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: 20px; /* Optional: Add some space above the image if needed */
}


#breseq-section {
    padding: 20px;
    text-align: left;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px auto;
}

#midauthorbio-button {
    position: fixed; /* Ensures it stays in the lower-right corner even when scrolling */
    bottom: 20px; /* Distance from the bottom of the screen */
    right: 20px; /* Distance from the right side of the screen */
    z-index: 1000; /* Ensure it appears above other elements */
}

#midauthorbio-button img {
    max-width: 250px; /* Adjust size of the button */
    height: auto; /* Maintain aspect ratio */
    border-radius: 50%; /* Optional: Make it circular */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add hover effect */
}

#midauthorbio-button img:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Add a deeper shadow on hover */
}

.nav-icon {
    width: 125px; /* Set a uniform width */
    height: 125px; /* Set a uniform height */
    padding: 5px; /* Adjust padding for better spacing */
    background-color: white; /* Add white background to icons */
    object-fit: contain; /* Ensure the entire image fits within the box */
    border-radius: 8px; /* Optional: Rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hover effects */
    margin: 0 2px; /* Add spacing between icons */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add hover effect */
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.nav-icon:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add depth on hover */
}

.nav-icon img {
    width: 95%; /* Increase the size relative to the white background */
    height: auto; /* Maintain the aspect ratio */
    display: block; /* Ensure it doesn’t have extra inline spacing */
    margin: auto; /* Center the image within the white background */
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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;
}

.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#thank-you-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f9fa;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Base button style */
.toggle-button {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    cursor: pointer;
    background: #f0f0f0;
    color: #555;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Active button style */
.toggle-button.active {
    background: #7ED321;
    color: #fff;
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.2);
}

/* Hover effect */
.toggle-button:hover {
    background: #e6e6e6;
}

/* Rounded corners for first and last buttons */
.toggle-button:first-child {
    border-radius: 25px 0 0 25px;
}

.toggle-button:last-child {
    border-radius: 0 25px 25px 0;
}

.sequencing-target-title {
    text-align: center;
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 20px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between buttons */
    margin-bottom: 20px;
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

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

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto; /* Center the spinner horizontally */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.form-step {
    display: none;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.active-step {
    display: block;
}

.next-button, .prev-button, .submit-button {
    margin: 10px 5px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
}

.next-button:hover, .prev-button:hover, .submit-button:hover {
    background-color: #2980b9;
}

.argument-container {
    margin-bottom: 10px;
}

#flags-container {
    display: grid;
    grid-template-columns: auto 1fr; /* Two columns: checkbox and label */
    gap: 20px 20px; /* 10px row gap, 20px column gap */
    padding: 5;
    margin: 0;
    align-items: center;
}

.flag-container {
    display: contents; /* Allow grid items to behave as direct children of the grid */
}

.flag-container input[type="checkbox"] {
    justify-self: start; /* Ensure checkbox is aligned to the left */
    margin: 0;
}

.flag-container label {
    justify-self: start; /* Ensure label is aligned to the left */
    margin: 0;
    word-wrap: break-word; /* Allow long text to wrap */
}

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

.toggle-button {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    cursor: pointer;
    background: #f0f0f0;
    color: #555;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.toggle-button.active {
    background: #007BFF;
    color: white;
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.2);
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}


#magiclamp-section {
    padding: 20px;
    text-align: left;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px auto;
}

#magiclamp-section .form-section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: -20px auto;
}

#magiclamp-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: 20px; /* Optional: Add some space above the image if needed */
}

#magiclampGenomesDropZone,
#magiclampHMMsDropZone {
    width: 100%;
    height: 150px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    text-align: center;
    line-height: 150px;
    color: #aaa;
    cursor: pointer;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

#magiclampGenomesDropZone.dragover,
#magiclampHMMsDropZone.dragover {
    border-color: #333;
    color: #333;
}

#magiclampGenomesFileList,
#magiclampHMMsFileList {
    margin-top: 10px;
    list-style: none;
    padding: 0;
}

#magiclampGenomesFileList li,
#magiclampHMMsFileList li {
    margin-bottom: 5px;
    font-size: 14px;
}

.card {
    max-width: 600px;
    margin: 20px auto;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #fff;
}

.card-image {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ccc;
}

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

.card-content h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.card-content p {
    font-size: 1em;
    color: #666;
    line-height: 1.5;
}

#genieNameContainer {
    margin-top: 10px;
    display: none;
}

#genieName {
    width: 96%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input:disabled {
    background-color: #ddd;
    color: #666;
    cursor: not-allowed;
}

.file-format-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px; /* Adds spacing between options */
    margin-bottom: 10px;
}

.format-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rotated-label {
    transform-origin: center;
    font-size: 14px;
    text-align: center;
    width: 120px;
    margin-bottom: 5px;
}

.file-format-container input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}


#youtube-container {
    display: none; /* Initially hidden */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    height: 400px;
    background-color: black;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1000;
}

#open-video {
    display: block; /* Ensure this is visible from the start */
}

#youtube-video {
    width: 100%;
    height: 100%;
    border: none;
}

#close-video {
    position: absolute;
    top: 5px;
    right: 5px;
    background: red;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 50%;
    z-index: 1001;
}

#close-video:hover {
    background: darkred;
}

#youtube-message {
    background-color: #222;
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

#open-video {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50; /* Green button */
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

#open-video:hover {
    background: #388E3C;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between buttons */
    margin-bottom: 20px;
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

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