body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #EAFEFF, #CAFCFF);
    color: #02344A;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background: linear-gradient(135deg, #0E4F6B, #02344A);
    color: #EAFEFF;
}

header {
    width: 80%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.3);
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border-radius: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;

}

header.dark-mode {
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}
header h1,
header nav ul li a,
header .dark-mode-toggle {
    pointer-events: auto;
}
header h1 {
    font-size: 2.5em;
    margin: 0;
    color: #00BFEA;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    transition: color 0.3s ease;
}

header.dark-mode h1 {
    color: #57EFFF;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    text-decoration: none;
    color: #007EA7;
    font-weight: 600;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #57EFFF;
}

header.dark-mode nav ul li a {
    color: #CAFCFF;
}

header.dark-mode nav ul li a:hover {
    color: #9CF7FF;
}

.dark-mode-toggle {
    cursor: pointer;
    font-size: 1.5em;
    transition: transform 0.2s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

section {
    width: 80%;
    max-width: 1200px;
    padding: 80px 0;
    text-align: center;
    transition: all 0.3s ease;
}

section h2 {
    color: #0CDCFF;
    margin-bottom: 40px;
    font-size: 3.2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease;
}
section.dark-mode h2 {
    color: #9CF7FF;
}

.step {
    margin-bottom: 70px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.8s ease-out forwards;
    animation-delay: calc(0.2s * var(--step-index));
    transition: all 0.3s ease;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    50% {
        opacity: 0.5;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step h3 {
    color: #0096C4;
    margin-bottom: 30px;
    font-size: 2.2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease;
}
.step.dark-mode h3{
    color: #CAFCFF;
}

.step p {
    line-height: 2;
    font-size: 1.4em;
    transition: color 0.3s ease;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
    transition: all 0.3s ease;
}

.image-grid img {
    width: 100%;
    height: auto; /* Allow height to adjust based on aspect ratio */
    max-height: 400px; /* Set a maximum height */
    object-fit: contain; /* Prevents image distortion */
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
}

.image-grid img:hover {
    transform: scale(1.03);
}

.button {
    display: inline-block;
    padding: 20px 40px;
    background: #57EFFF;
    color: #02344A;
    text-decoration: none;
    border-radius: 35px;
    border: none;
    cursor: pointer;
    font-size: 1.3em;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);

    /* Critical fixes for stable hover */
    position: relative; /* Creates stacking context */
    transform: translate3d(0, 0, 0); /* Better than translateY(0) */
    /* NEW: Adjusted transition timing function for potentially smoother behavior */
    transition: all 0.3s ease-out; /* Changed cubic-bezier to ease-out */

    /* Performance optimizations */
    backface-visibility: hidden; /* Helps prevent rendering glitches */
    will-change: transform, box-shadow;
    outline: 1px solid transparent; /* Prevents focus jumps */
    margin-top: 5px; /* Add margin equal to or greater than the hover transform distance */
    margin-bottom: 5px; /* Add margin equal to or greater than the hover transform distance */
    vertical-align: middle; /* Can sometimes help with inline/inline-block elements */
    box-sizing: border-box; /* Ensure box-sizing is consistent */
}

/* Hover State - Attempting a more stable version */
.button:hover {
    transform: translate3d(0, -5px, 0); /* Keep 3D transform */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    /* NEW: Ensure backface-visibility is also applied on hover */
    backface-visibility: hidden;
    margin-top: 5px; /* Ensure margin remains consistent on hover */
    margin-bottom: 5px; /* Ensure margin remains consistent on hover */
}

/* NEW: Optional: Add active state for visual feedback on click */
.button:active {
    transform: translate3d(0, -2px, 0); /* Slight press effect */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition-duration: 0.1s; /* Faster transition for press */
    margin-top: 5px; /* Ensure margin remains consistent on active */
    margin-bottom: 5px; /* Ensure margin remains consistent on active */
}


h1 {
    font-size: 3.5em;
    margin-bottom: 50px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
}

section.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

.warning-box {
    background-color: #ffe6e6; /* Light red background */
    border: 1px solid #ffcccc; /* Light red border */
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px; /* Space between step content and warning box */
    display: flex;
    align-items: center;
    color: #cc0000; /* Darker red text */
    transition: all 0.3s ease;
}

.warning-box i {
    font-size: 2em;
    margin-right: 15px;
}

.warning-box p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
}

.dark-mode .warning-box {
    background-color: #4A1515; /* Darker, slightly muted red */
    border-color: #882222; /* Slightly brighter border */
    color: #FFD2D2; /* Lighter, less intense red text */
}

.information-box {
    background-color: #e6f2ff; /* Light blue background */
    border: 1px solid #cce0ff; /* Light blue border */
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    color: #0066cc; /* Darker blue text */
    transition: all 0.3s ease;
}

.information-box i {
    font-size: 2em;
    margin-right: 15px;
    color: #0066cc; /* Matching icon color */
}

.information-box p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
}

.dark-mode .information-box {
    background-color: #1A2E4A; /* Dark blue background */
    border-color: #2A4A7A; /* Slightly brighter border */
    color: #B3D1FF; /* Lighter blue text */
}

.dark-mode .information-box i {
    color: #4D94FF; /* Brighter icon for dark mode */
}

.success-box {
    background-color: #e6ffe6; /* Light green background */
    border: 1px solid #ccffcc; /* Light green border */
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    color: #00cc00; /* Darker green text */
    /* justify-content: space-between; */
    transition: all 0.3s ease;
}

.success-box i {
    font-size: 2em;
    margin-right: 15px;
}

.success-box p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Dark mode for success box */
.dark-mode .success-box {
    background-color: #154A15; /* Darker, slightly muted green */
    border-color: #228822; /* Slightly brighter green border */
    color: #D2FFD2; /* Lighter, less intense green text */
}

#top-anchor {
    height: 1px; /* Minimal height */
    margin-bottom: 20px; /* Space above content */
}

.back-to-top-link {
    text-decoration: none;
    color: #007bff; /* Link color */
    display: flex;
    align-items: center;
    font-size: 1em;
    transition: color 0.3s ease;
    margin-left: 20px;
}

.back-to-top-link i {
    margin-right: 5px;
    font-size: 1.2em;
}

.back-to-top-link:hover {
    color: #0056b3; /* Darker link color on hover */
}

.video-container {
    width: 300px; /* Adjust as needed */
    max-width: 90%; /* Responsive max width */
    margin: 20px auto; /* Center the video */
    border-radius: 10px;
    overflow: hidden; /* Clip any overflow */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Optional shadow */
    background-color: black; /*ensure that the video container has a black background*/

}

.video-container video {
    width: 100%;
    height: auto;
    display: block; /* Remove any extra space */
}

/* Optional: Style the video controls */
.video-container video::-webkit-media-controls {
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black controls */
    color: white;
}


#introduction {
    width: 90%;
    max-width: 1200px; /* Match other sections */
    padding: 100px 0;
    text-align: center;
    background: transparent;
    color: #02344A;
    transition: all 0.3s ease;
}

#introduction.dark-mode {
    background: transparent;
    color: #EAFEFF;
}

.intro-container {
    max-width: 90%;
    margin: 0 auto;
}
.study-info {
    background: rgba(255, 255, 255, 0.6); /* Slightly less opaque */
    padding: 50px;
    border-radius: 15px; /* Consistent with other elements */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Consistent shadow */
    text-align: left;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.study-info.dark-mode {
    background: rgba(20, 20, 20, 0.9); /* Deeper, near-black background */
    color: #D0E0E8; /* Slightly lighter text for contrast */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Deeper, softer shadow */
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.study-info h2 {
    color: #0CDCFF; /* Consistent heading color */
    margin-bottom: 30px;
    font-size: 2.5em; /* Maintain size */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* Consistent shadow */
    transition: color 0.3s ease;
}

.study-info.dark-mode h2 {
    color: #A0C0D0; /* Muted but still visible heading */
}

.study-info.dark-mode p,
.study-info.dark-mode li {
    color: #D0E0E8; /* Consistent text color for paragraphs and list items */
}

.study-info p {
    font-size: 1.2em; /* Slightly larger paragraph text */
    line-height: 1.7; /* Adjusted line height */
}

.study-info ol {
    margin-top: 20px;
    padding-left: 20px;
}

.study-info li {
    font-size: 1.1em;
    margin-bottom: 10px;
}


.study-link {
    margin-top: 40px; /* Increased margin */
    text-align: center;
}


.demographics-link,
.internal-link {
    color: #007EA7; /* Consistent link color */
    text-decoration: underline; /* Standard underline */
    font-size: 1.1em; /* Consistent font size */
    transition: none;
    /* transition: color 0.3s ease; */
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

.dark-mode .demographics-link,
.dark-mode .internal-link  {
    color: #CAFCFF; /* Dark mode link color */
}



/* Default (Light Mode) Footer */
footer {
    width: 100%;
    padding: 40px 0;
    background: #02344A;
    color: #EAFEFF;
    text-align: center;
    font-size: 1.2em;
    transition: background 0.3s ease, color 0.3s ease;
    margin-top: 40px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

footer a {
    color: #EAFEFF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin: 0 15px;
}

footer a:hover {
    color: #57EFFF;
}

/* Dark Mode Footer (when .dark-mode is applied to body) */
body.dark-mode footer {
    background: #0E4F6B;
    color: #D0E0E8;
}

body.dark-mode footer a {
    color: #D0E0E8;
}

body.dark-mode footer a:hover {
    color: #9CF7FF;
}

body.dark-mode footer p {
    color: #D0E0E8;
}


.current-step-container {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 191, 234, 0.3);
    border-radius: 10px;
    padding: 25px;
    margin: 30px auto;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    transition: all 0.3s ease;
}

.current-step-container h3 {
    color: #007EA7;
    margin: 0 0 15px 0;
    font-size: 1.7em;
    font-weight: 600;
    transition: color 0.3s ease;
}

.current-step-container p {
    font-size: 1.2em;
    color: #02344A;
    line-height: 1.6;
    margin: 15px 0;
    transition: color 0.3s ease;
}

.current-step-container .demographics-link,
.current-step-container .internal-link {
    /* color: #007EA7; */
    font-weight: 600;
    /* text-decoration: underline; */
    /* transition: color 0.3s ease; */
}

.current-step-container .demographics-link:hover,
.current-step-container .internal-link:hover {
    color: #00BFEA;
}

/* Dark Mode - matches existing site pattern */
body.dark-mode .current-step-container {
    background: rgba(14, 79, 107, 0.85);
    border-color: rgba(87, 239, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode .current-step-container h3 {
    color: #CAFCFF;
}

body.dark-mode .current-step-container p {
    color: #EAFEFF;
}

body.dark-mode .current-step-container .demographics-link,
body.dark-mode .current-step-container .internal-link {
    color: #9CF7FF;
}

body.dark-mode .current-step-container .demographics-link:hover,
body.dark-mode .current-step-container .internal-link:hover {
    color: #57EFFF;
}


/* Step header with info icon */
.step-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

/* Info icon styles */
.info-tooltip-trigger {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.info-icon {
    width: 20px;
    height: 20px;
    fill: #007EA7;
    transition: all 0.3s ease;
}

.info-tooltip-trigger:hover .info-icon {
    fill: #00BFEA;
}

/* Tooltip styles */
.info-tooltip {
    position: absolute;
    right: 0;
    top: 100%;
    width: 220px;
    padding: 12px;
    background: white;
    color: #02344A;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 0.9em;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
    z-index: 10;
}

.info-tooltip-trigger:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

/* Dark mode adjustments */
body.dark-mode .info-icon {
    fill: #9CF7FF;
}

body.dark-mode .info-tooltip-trigger:hover .info-icon {
    fill: #57EFFF;
}

body.dark-mode .info-tooltip {
    background: #0E4F6B;
    color: #EAFEFF;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}


/* Substeps Box Styling */
.substeps-box {
    display: flex;
    flex-direction: column;
    background: rgba(0, 126, 167, 0.08);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(0, 126, 167, 0.2);
    text-align: center;
}

.substeps-heading {
    font-size: 1.05em; /* Slightly larger than step text */
    font-weight: 600;
    color: #007EA7;
    margin-bottom: 8px;
}

.substeps-content {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.substep {
    display: inline-flex;
    align-items: center;
    font-size: 0.95em;
    white-space: nowrap;
}

.substep-num {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #007EA7;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 0.8em;
    margin-right: 6px;
}

.substep-divider {
    color: #007EA7;
    margin: 0 8px;
    opacity: 0.6;
}

/* Dark Mode */
body.dark-mode .substeps-box {
    background: rgba(87, 239, 255, 0.08);
    border-color: rgba(87, 239, 255, 0.2);
}

body.dark-mode .substep-num {
    background: #57EFFF;
    color: #02344A;
}

body.dark-mode .substep-divider {
    color: #57EFFF;
}

.step-note {
    margin-top: 12px;
    font-size: 0.9em;
    color: #5a6d7b;
    line-height: 1.5;
    padding: 8px 12px;
    background: rgba(0, 126, 167, 0.05);
    border-left: 3px solid #007EA7;
    border-radius: 0 4px 4px 0;
}

/* Dark mode */
body.dark-mode .step-note {
    color: #c2d4e0;
    background: rgba(87, 239, 255, 0.05);
    border-left-color: #57EFFF;
}

/* Study Notice - Improved Dark Mode */
.study-notice {
    background: rgba(0, 191, 234, 0.08);
    border-left: 4px solid #00BFEA;
    padding: 20px;
    margin: 0 0 25px 0;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.study-notice p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.7;
    color: #02344A;
}

.study-notice strong {
    color: #007EA7;
    font-weight: 600;
}



/* Enhanced Dark Mode */
.dark-mode .study-notice {
    background: rgba(14, 79, 107, 0.3);  /* Darker, more visible background */
    border-left-color: #57EFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.dark-mode .study-notice p {
    color: #EAFEFF;
}

.dark-mode .study-notice strong {
    color: #9CF7FF;
    text-shadow: 0 0 2px rgba(156, 247, 255, 0.3);
}

/* Hover effect for better interactivity */
.study-notice:hover {
    box-shadow: 0 4px 8px rgba(0, 191, 234, 0.1);
}

.dark-mode .study-notice:hover {
    box-shadow: 0 4px 12px rgba(87, 239, 255, 0.15);
}


/* Credentials with Copy Buttons */
.credentials {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap; 
}

.credential-item {
    background: rgba(255, 255, 255, 0.85);
    color: #02344A; 
    border-radius: 10px;
    margin: 10px;
    text-align: center;
    min-width: 220px;
    font-size: 1.2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    position: relative;
    transition: all 0.3s ease;

    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 50px; 
    padding: 25px 30px; 
    position: relative; 
    align-items: center; 
    text-align: center; 
}

.credential-item strong {
    color: #007EA7; 
}
.credential-value {
    margin-top: 8px; 
    word-break: break-all; 
    font-family: 'DejaVu Sans Mono', 'Consolas', 'Menlo', 'Liberation Mono', monospace; 
    /* font-family: 'Liberation Mono', monospace;  */
    font-feature-settings: "zero" on; /* Specifically for a slashed or dotted zero if the font supports it */
    /* font-size: 1.1em; Slightly larger font size can also help */
    /* letter-spacing: 0.05em; Add a little space between characters */
}
.credential-value-password {
    margin-top: 8px; 
    word-break: break-all; 
    font-family: 'DejaVu Sans Mono', 'Consolas', 'Menlo', 'Liberation Mono', monospace; 
    /* font-family: 'Liberation Mono', monospace;  */
    font-feature-settings: "zero" on; /* Specifically for a slashed or dotted zero if the font supports it */
    /* font-size: 1.1em; Slightly larger font size can also help */
    letter-spacing: 0.04em;
}
.credential-item.dark-mode {
    background: rgba(40, 40, 40, 0.9); 
    color: #E0F0F8; 
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1); 
}

.credential-item.dark-mode strong {
    color: #A0D0E8; 
}

.copy-btn {
    position: absolute;
    right: 10px; /* Changed from 15px */
    top: 10px; 
    background: none;
    border: none;
    color: rgba(0, 126, 167, 0);
    cursor: pointer;
    font-size: 1em;
    transition: all 0.2s ease;
    padding: 5px;
    opacity: 0.3;
    z-index: 2;
}

.copy-item:hover .copy-btn {
    opacity: 0.7;
    color: #007EA7;
}

.copy-btn:hover {
    opacity: 1 !important;
    color: #00BFEA !important;
}

.dark-mode .copy-item:hover .copy-btn {
    color: #9CF7FF;
}

.dark-mode .copy-btn:hover {
    color: #57EFFF !important;
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.1);
}

/* Click-to-copy functionality for entire box */
.copy-item {
    cursor: pointer;
    transition: transform 0.2s ease;
    overflow: hidden;
}

.copy-item:hover {
    transform: none; /* Remove translateY(-2px) */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.copy-item:hover::after {
    content: attr(data-hover-text);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 126, 167, 0.9); /* More opaque */
    color: white;
    text-align: center;
    padding: 5px 0; /* Slightly more padding */
    font-size: 0.65em; /* Slightly larger */
    border-radius: 0 0 5px 5px; /* Only round bottom corners */
    transform: translateY(0); /* For slide-up effect */
    transition: all 0.2s ease-out;
}
.dark-mode .copy-item:hover::after {
    background: rgba(156, 247, 255, 0.8);
    color: #02344A;
}
.copy-item::after {
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.2s ease-out;
}

.copy-item:hover::after {
    transform: translateY(0);
    opacity: 1;
}

.dark-mode .copy-item:hover::after {
    background: rgba(156, 247, 255, 0.9); /* More opaque in dark mode */
}
/* Tooltip styling */
.copy-btn::after {
    content: 'Copied!';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #02344A;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    width: max-content;
}

.copy-btn.copied::after {
    opacity: 1;
}

.dark-mode .copy-btn::after {
    background: #9CF7FF;
    color: #02344A;
}

#setup-section {
    /* border: 2px solid red; */
    display: none;
    margin: 0 auto; /* Center the container itself (if parent allows) */
    padding: 0;
    min-width: fit-content; /* Prevents squeezing */
    width: 100%; 
    text-align: center; /* Center inline content (if any) */
}

/* If the included HTML is block-level (e.g., a div), force center alignment */
#setup-section > * {
    margin: 0 auto; /* Center block-level child */
    display: block; /* Ensures margin:auto works */
}

/* Show when active */
#setup-section.active {
    display: block;
}

#enrollment-section {
    /* border: 2px solid red; */
    display: none;
    margin: 0 auto; /* Center the container itself (if parent allows) */
    padding: 0;
    min-width: fit-content; /* Prevents squeezing */
    width: 100%; 
    text-align: center; /* Center inline content (if any) */
}

/* If the included HTML is block-level (e.g., a div), force center alignment */
#enrollment-section > * {
    margin: 0 auto; /* Center block-level child */
    display: block; /* Ensures margin:auto works */
}

/* Show when active */
#enrollment-section.active {
    display: block;
}
#video-section {
    /* border: 2px solid red; */
    display: none;
    margin: 0 auto; /* Center the container itself (if parent allows) */
    padding: 0;
    min-width: fit-content; /* Prevents squeezing */
    width: 100%; 
    text-align: center; /* Center inline content (if any) */
}

/* If the included HTML is block-level (e.g., a div), force center alignment */
#video-section > * {
    margin: 0 auto; /* Center block-level child */
    display: block; /* Ensures margin:auto works */
}

/* Show when active */
#video-section.active {
    display: block;
}

/* Hide initially */
.hidden-stage {
    display: none;
}

/* Show when active */
.hidden-stage.active {
    display: block;
}

.steps-overview {
    color: #0CDCFF;
    margin: 25px 0 15px 0;
    font-size: 1.5em;
    font-weight: 600;
}
.study-info.dark-mode .steps-overview {
    color: #9CF7FF;
}

.side-note {
    font-size: 0.6em;
    color: #666;
    font-style: italic;
    margin-left: 8px;
}
.dark-mode .side-note,
body.dark-mode .side-note {
    color: #aaa; /* Lighter gray for better visibility on dark backgrounds */
}

.info-box {
    background-color: #e6f2ff;
    border: 1px solid #b3d1ff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center; /* This vertically centers all flex children */
    color: #0066cc;
    transition: all 0.3s ease;
    gap: 15px; /* Space between icon and text */
}

.info-box-content {
    display: flex;
    flex-direction: column;
}

.info-box i {
    font-size: 2em;
    color: #0066cc;
    align-self: center; /* Ensures icon stays centered */
    margin: 0; /* Remove any margins that might affect alignment */
}

.info-box p {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Dark mode styles */
.dark-mode .info-box i {
    color: #B3D1FF;
}

