@font-face {
    font-family: 'Blinker';
    src: url('https://static.igem.wiki/teams/5836/fonts/blinker/blinker-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('https://static.igem.wiki/teams/5836/fonts/raleway/raleway-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nixie One';
    src: url('') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fraunces';
    src: url('https://static.igem.wiki/teams/5836/fonts/fraunces/fraunces-72pt-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Dark blue background for the entire page */
body {
    background-color: #0b1320 !important;
}

/* Alternative: If the above doesn't work, target the page content wrapper */
#page_content {
    background-color: #0b1320 !important;
}

/* Also ensure the main container has the dark blue background */
.main-content,
.container-fluid,
main {
    background-color: #0b1320 !important;
}

/* Section Navigation */
.section-navigation {
    position: fixed;
    top: 100px;
    left: 20px;
    background: rgba(11, 19, 32, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(215, 175, 107, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 220px;
    max-width: 300px;
    transition: all 0.3s ease;
    transform: scale(1);
    transform-origin: top left;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(1);
}

.navigation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(215, 175, 107, 0.2);
    cursor: pointer;
}

.navigation-title {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #d7af6b;
    letter-spacing: 0.5px;
}

.navigation-toggle {
    background: none;
    border: none;
    color: #d7af6b;
    cursor: pointer;
    padding: 0;
    display: none;
    transition: transform 0.3s ease;
}

.navigation-toggle:hover {
    background-color: rgba(215, 175, 107, 0.2);
}

.navigation-content {
    padding: 0.75rem 0;
    max-height: 400px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.navigation-item {
    display: block;
    padding: 0.6rem 1.25rem;
    color: #afc1d0;
    text-decoration: none;
    font-family: 'Nixie One', serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.navigation-item:hover {
    color: #d7af6b;
    background: rgba(215, 175, 107, 0.1);
    border-left-color: #d7af6b;
    text-decoration: none;
}

.navigation-item.active {
    color: #d7af6b;
    background: rgba(215, 175, 107, 0.15);
    border-left-color: #d7af6b;
    font-weight: 500;
}

/* Experiments Hero Section */
.experiments-hero {
    background-color: #0b1320;
    min-height: 10vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    margin-top: -20px; /* Remove gap below navbar */
    padding-top: 20px; /* Add padding to maintain spacing */
    padding-bottom: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero-content {
    z-index: 2;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 8rem);
    font-weight: bold;
    color: #d7af6b;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.05em;
    font-family: 'Fraunces', serif;
    line-height: 1.1;
    text-align: center;
    display: block;
}

/* Main Content */
.experiments-main-content {
    background-color: #0b1320;
    padding: 0 0 4rem 150px;
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -8rem;
}

.content-frame {
    width: 75%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem 2rem;
    background-color: #0b1320;
}

/* Text Classes - Same as description.css */
.section-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: bold;
    color: #d7af6b;
    margin: 3rem 0 2rem 0;
    text-align: left;
    line-height: 1.2;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #d7af6b;
    margin-top: 1rem;
}

.category-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    color: #d7af6b;
    margin: 2.5rem 0 1.5rem 0;
    text-align: left;
    line-height: 1.3;
}

/* Protocol Category Container */
.protocol-category {
    margin-bottom: 3rem;
}

/* Protocol Item Styling */
.protocol-item {
    border: 1px solid rgba(175, 193, 208, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: rgba(11, 19, 32, 0.8);
    transition: all 0.3s ease;
}

.protocol-item:hover {
    border-color: rgba(215, 175, 107, 0.4);
    background-color: rgba(11, 19, 32, 0.9);
}

.protocol-item[open] {
    border-color: rgba(215, 175, 107, 0.6);
    background-color: rgba(11, 19, 32, 1);
}

/* Protocol Summary (Clickable Header) */
.protocol-summary {
    font-family: 'Nixie One', serif;
    font-size: clamp(1.1rem, 1.4vw, 1.4rem);
    color: #afc1d0;
    padding: 1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.protocol-summary:hover {
    color: #d7af6b;
    background-color: rgba(215, 175, 107, 0.1);
}

.protocol-item[open] .protocol-summary {
    color: #d7af6b;
    background-color: rgba(215, 175, 107, 0.15);
    border-bottom: 1px solid rgba(215, 175, 107, 0.3);
}

/* Custom toggle indicator */
.protocol-summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: bold;
    color: #afc1d0;
    transition: all 0.3s ease;
}

.protocol-item[open] .protocol-summary::after {
    content: "-";
    color: #d7af6b;
}

.protocol-summary:hover::after {
    color: #d7af6b;
}

/* Hide default marker */
.protocol-summary::-webkit-details-marker {
    display: none;
}

.protocol-summary::marker {
    display: none;
}

/* Protocol Content (Expandable Content) */
.protocol-content {
    padding: 1.5rem;
    border-top: 1px solid rgba(215, 175, 107, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.protocol-content h3 {
    font-family: 'Nixie One', serif;
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    color: #afc1d0;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.protocol-content p {
    font-family: 'Nixie One', serif;
    font-size: clamp(1.1rem, 1.3vw, 1.3rem);
    color: white;
    margin: 0;
    line-height: 1.6;
}

.protocol-content ul {
    font-family: 'Nixie One', serif;
    font-size: clamp(1.1rem, 1.3vw, 1.3rem);
    color: white;
    margin: 0;
    padding-left: 2.5rem;
    line-height: 1.6;
}

.protocol-content li {
    color: white;
    margin-bottom: 0.5rem;
    list-style: none;
    list-style-position: inside;
    padding-left: 0.8rem;
    position: relative;
}

.protocol-content li::before {
    content: "";
    background-image: url('https://static.igem.wiki/teams/5836/misc/homepage/aechmi-2.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 70px;
    height: 70px;
    position: absolute;
    left: -40px;
    top: -1.02rem;
    display: inline-block;
}

/* Link Styling */
.protocol-content a {
    color: #afc1d0;
    text-decoration: underline;
}

.protocol-content a:hover {
    color: #d7af6b;
    text-decoration: underline;
}

/* Table Styling */
.protocol-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-family: 'Nixie One', serif;
    background-color: rgba(11, 19, 32, 0.8);
    border: 1px solid rgba(215, 175, 107, 0.3);
}

.protocol-content table th {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(215, 175, 107, 0.2);
    background-color: rgba(215, 175, 107, 0.2);
    color: #d7af6b;
    font-weight: bold;
    font-size: 1.1rem;
    font-family: 'Nixie One', serif;
}

.protocol-content table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(215, 175, 107, 0.2);
    color: white;
    font-size: 1rem;
    font-family: 'Nixie One', serif;
}

.protocol-content table tr:hover {
    background-color: rgba(215, 175, 107, 0.1);
}

.protocol-content table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Fade in animation for content */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Initial hidden state for hero animation */
.hero-title {
    opacity: 0 !important;
    transform: translateX(-300px) !important;
    transition: none !important;
}

/* Hero Container for Bottles and Text */
.experiments-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    margin-top: -3rem;
}

.hero-bottle {
    max-height: 200px;
    height: auto;
    width: auto;
    opacity: 0;
    transform: translateX(-300px);
    transition: none;
}

.hero-bottle-left {
    order: 1;
    margin-right: -7.5rem;
}

.hero-bottle-right {
    order: 3;
    margin-left: -7.5rem;
}

.hero-experiments-text {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: bold;
    color: #d7af6b;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-align: center;
    order: 2;
    opacity: 0;
    transform: translateX(-300px);
    transition: none;
}

/* Notebook Section */
.notebook-section {
    margin: 2rem 0 3rem 0;
    padding: 2rem;
    background-color: rgba(11, 19, 32, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(175, 193, 208, 0.2);
}

.notebook-text {
    font-family: 'Nixie One', serif;
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    color: #ffffff;
    margin: 0;
    text-align: left;
    line-height: 1.6;
}

.notebook-link {
    color: #afc1d0;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid #afc1d0;
    padding-bottom: 2px;
}

.notebook-link:hover {
    color: #d7af6b;
    border-bottom-color: #d7af6b;
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-spacing-breaks {
        display: none; /* Hide the 18 br tags on mobile */
    }
    
    .section-navigation {
        top: 85px;
        left: 0;
        right: 0;
        width: 100%;
        min-width: auto;
        max-width: none;
        border-radius: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        background-color: #0b1320;
        backdrop-filter: none;
        z-index: 49;
        transform: none;
    }
    
    .navigation-toggle {
        display: block;
    }
    
    .navigation-content {
        display: none;
    }
    
    .navigation-content.active {
        display: block;
    }
    
    .navigation-toggle.active {
        transform: rotate(180deg);
    }
    
    .experiments-main-content {
        padding: 4rem 0;
    }
    
    .content-frame {
        width: 90%;
        padding: 1rem;
    }
    
    .experiments-hero {
        min-height: 45vh;
    }
    
    .experiments-title-container {
        flex-direction: row;
        gap: 0;
        margin-top: -2rem;
        align-items: center;
        justify-content: center;
    }
    
    .hero-bottle {
        max-height: 80px;
    }
    
    .hero-bottle-left {
        order: 1;
        margin-right: -2rem;
    }
    
    .hero-bottle-right {
        order: 3;
        margin-left: -2rem;
    }
    
    .hero-experiments-text {
        font-size: 2.0rem;
        letter-spacing: 1px;
        order: 2;
    }
    
    .protocol-summary {
        padding: 0.8rem 1rem;
        font-size: 1.1rem;
    }
    
    .protocol-content {
        padding: 1rem;
    }
    
    .protocol-content h3 {
        font-size: 1.2rem;
    }
    
    .protocol-content p {
        font-size: 1.1rem;
    }
    
    .protocol-content ul {
        font-size: 1.1rem;
    }
    
    .protocol-content li {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .content-frame {
        width: 95%;
        padding: 0.5rem;
    }
    
    .experiments-hero {
        min-height: 40vh;
    }
    
    .hero-bottle {
        max-height: 60px;
    }
    
    .hero-bottle-left {
        order: 1;
        margin-right: -1.5rem;
    }
    
    .hero-bottle-right {
        order: 3;
        margin-left: -1.5rem;
    }
    
    .hero-experiments-text {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .protocol-summary {
        padding: 0.6rem 0.8rem;
        font-size: 1rem;
    }
    
    .protocol-content {
        padding: 0.8rem;
    }
    
    .protocol-content h3 {
        font-size: 1.1rem;
    }
    
    .protocol-content p {
        font-size: 1rem;
    }
    
    .protocol-content ul {
        font-size: 1rem;
    }
    
    .protocol-content li {
        font-size: 1rem;
    }
}
