@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;
}

/* Safety Hero Section */
.safety-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 - Match model.css layout */
.safety-main-content {
    background-color: #0b1320;
    padding: 4rem 0 4rem 150px;
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -2rem;
}

.content-frame {
    width: 75%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #0b1320;
}

/* Opening paragraph styling */
.opening-paragraph {
    margin-top: 0 !important;
    margin-bottom: 3rem !important;
    padding-top: 1rem;
}

/* Text Classes - Exact match to model.css */
.section-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: bold;
    color: #d7af6b;
    margin: 3rem 0 2rem 0;
    text-align: left;
    line-height: 1.2;
}

.subsection-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    color: #afc1d0;
    margin: 2.5rem 0 1.5rem 0;
    text-align: left;
    line-height: 1.3;
}

.paragraph {
    font-family: 'Nixie One', serif;
    font-size: clamp(1.15rem, 1.45vw, 1.45rem);
    color: white;
    margin: 1.5rem 0;
    text-align: left;
    line-height: 1.6;
}

/* References styling - exact match to model.css */
.references-section {
    text-align: left;
    line-height: 1.8;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    font-family: 'Nixie One', serif !important;
}

.references-section p {
    margin-bottom: 1rem;
    font-family: 'Nixie One', serif !important;
    color: white !important;
    font-size: clamp(1rem, 1.2vw, 1.2rem) !important;
    line-height: 1.8 !important;
}

/* References List Styling */
.references-list {
    font-family: 'Nixie One', serif !important;
    font-size: clamp(1rem, 1.2vw, 1.2rem) !important;
    color: white !important;
    line-height: 1.8 !important;
    margin: 2rem 0 !important;
    padding-left: 2rem !important;
}

.references-list li {
    font-family: 'Nixie One', serif !important;
    font-size: clamp(1rem, 1.2vw, 1.2rem) !important;
    color: white !important;
    line-height: 1.8 !important;
    margin-bottom: 1rem;
}

/* Additional specificity for references */
ol.references-list,
ol.references-list li {
    font-family: 'Nixie One', serif !important;
    color: white !important;
}

/* Reference link colors */
.reference-link {
    color: #afc1d0 !important;
    text-decoration: underline !important;
}

.reference-link:hover {
    color: #d7af6b !important;
    text-decoration: underline !important;
}

/* Center alignment for specific paragraphs */
.center-aligned {
    text-align: center;
}

/* Initial hidden state for hero animation */
.hero-title {
    opacity: 0 !important;
    transform: translateY(50px) !important;
    transition: none !important;
}

/* Hero Container for Safety Icons and Text */
.safety-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    margin-top: -3rem;
}

.hero-safety-icon {
    max-height: 280px;
    height: auto;
    width: auto;
    opacity: 0;
    transform: translateX(-300px);
    transition: none;
}

.hero-safety-icon-left {
    order: 1;
    margin-right: -7.5rem;
}

.hero-safety-icon-right {
    order: 3;
    margin-left: -7.5rem;
}

.hero-safety-text {
    font-family: 'Fraunces', serif;
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: bold;
    color: #d7af6b;
    order: 2;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: none;
}

/* 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: 180px;
    max-width: 250px;
    transition: all 0.3s ease;
    transform: scale(0.75);
    transform-origin: top left;
}

.navigation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.7rem;
    border-bottom: 1px solid rgba(215, 175, 107, 0.2);
    cursor: pointer;
}

.navigation-title {
    font-family: 'Fraunces', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #d7af6b;
    letter-spacing: 0.3px;
}

.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.5rem 0;
    max-height: 350px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.navigation-item {
    display: block;
    padding: 0.35rem 0.7rem;
    color: #afc1d0;
    text-decoration: none;
    font-family: 'Nixie One', serif;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border-left: 2px 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;
}

/* Medium screens - make navigation even smaller */
@media (min-width: 769px) and (max-width: 1140px) {
    .section-navigation {
        min-width: 130px;
        max-width: 160px;
        left: 6px;
        top: 90px;
    }
    
    .navigation-header {
        padding: 0.45rem 0.6rem;
    }
    
    .navigation-title {
        font-size: 0.85rem;
    }
    
    .navigation-item {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .navigation-content {
        padding: 0.35rem 0;
        max-height: 280px;
    }
}

/* 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);
    }
    
    .safety-main-content {
        padding: 4rem 0;
    }
    
    .content-frame {
        width: 90%;
        padding: 1rem;
    }
    
    .safety-hero {
        min-height: 45vh;
    }
    
    .safety-title-container {
        flex-direction: column;
        gap: 1rem;
        margin-top: -2rem;
        align-items: center;
        justify-content: center;
    }
    
    .hero-safety-icon {
        max-height: 80px;
        margin: 0 !important;
    }
    
    .hero-safety-icon-left {
        order: 1;
        margin-right: 0 !important;
    }
    
    .hero-safety-icon-right {
        order: 3;
        margin-left: 0 !important;
    }
    
    .hero-safety-text {
        font-size: 2.8rem;
        letter-spacing: 1px;
        order: 2;
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .content-frame {
        width: 95%;
        padding: 0.5rem;
    }
    
    .safety-hero {
        min-height: 40vh;
    }
    
    .hero-safety-icon {
        max-height: 60px;
        margin: 0 !important;
    }
    
    .hero-safety-icon-left {
        order: 1;
        margin-right: 0 !important;
    }
    
    .hero-safety-icon-right {
        order: 3;
        margin-left: 0 !important;
    }
    
    .hero-safety-text {
        font-size: 2.2rem;
        letter-spacing: 1px;
        margin: 0.5rem 0;
    }
    
    .safety-title-container {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: -1.5rem;
    }
}