/* About & Privacy Pages - Force Dark Style Override */
/* Ultra-high specificity to override inline styles */

/* CRITICAL: Force dark background on all elements */
html,
html body,
body,
body *,
.container,
div.container,
body .container,
html body .container,
body div,
body section,
body article,
body main,
*[style*="background: white"] {
    background: rgba(40, 40, 60, 0.95) !important;
    background-color: rgba(40, 40, 60, 0.95) !important;
}

/* Force text colors */
html,
body,
body *,
p,
div,
span,
section,
article,
main {
    color: #ddd !important;
}

/* Container specific overrides */
html body div.container {
    background: rgba(40, 40, 60, 0.95) !important;
    border: 4px solid #8b7355 !important;
    border-radius: 0 !important;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.5), inset 0 0 0 2px rgba(255,215,0,0.1) !important;
    color: #ddd !important;
}

/* Headers with ultra-high specificity */
html body h1,
html body div h1,
body .container h1 {
    font-family: 'Press Start 2P', 'Courier New', monospace !important;
    color: #ffd700 !important;
    text-shadow: 3px 3px 0 #ff6b00, 6px 6px 0 rgba(0,0,0,0.5) !important;
    line-height: 1.4 !important;
}

html body h2,
html body div h2,
body .container h2 {
    color: #ffd700 !important;
    font-family: 'Press Start 2P', 'Courier New', monospace !important;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.8) !important;
    border-bottom-color: #8b7355 !important;
    line-height: 1.5 !important;
    font-size: 1.3rem !important;
}

html body h3,
html body div h3,
body .container h3 {
    color: #87ceeb !important;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.8) !important;
    line-height: 1.4 !important;
}

/* Paragraphs with ultra-high specificity */
html body p,
html body div p,
body .container p,
html body div.container p {
    color: #ddd !important;
    line-height: 1.6 !important;
}

/* Mission box and special sections */
html body .mission-box,
body div.mission-box,
html body .feature-card,
body div.feature-card,
html body .team-member,
body div.team-member {
    background: rgba(255, 215, 0, 0.15) !important;
    border: 3px solid #ffd700 !important;
    border-left: 6px solid #ffd700 !important;
    border-radius: 0 !important;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5) !important;
    color: #fff !important;
}

/* Team grid items */
html body .team-member h3,
body .team-member h3 {
    color: #ffd700 !important;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.8) !important;
}

html body .team-member p,
body .team-member p {
    color: #fff !important;
}

/* Contact info and other sections */
html body .contact-info,
body .contact-info,
html body .achievement-card,
body .achievement-card {
    background: rgba(135, 206, 235, 0.15) !important;
    border: 3px solid #87ceeb !important;
    border-radius: 0 !important;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5) !important;
    color: #fff !important;
}

/* Links */
html body a,
body .container a,
html body div a {
    color: #87ceeb !important;
}

html body a:hover,
body .container a:hover {
    color: #ffd700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
}

/* Strong and emphasis */
html body strong,
html body b,
body .container strong,
body .container b {
    color: #ffd700 !important;
}

html body em,
html body i,
body .container em,
body .container i {
    color: #87ceeb !important;
}

/* Lists */
html body ul,
html body ol,
body .container ul,
body .container ol {
    color: #ddd !important;
}

html body li,
body .container li {
    color: #ddd !important;
    line-height: 1.5 !important;
}

/* CTA sections */
html body .cta-section,
body .cta-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95)) !important;
    border: 4px solid #8b7355 !important;
    border-radius: 0 !important;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.5) !important;
    color: #fff !important;
}

html body .cta-section h2,
body .cta-section h2 {
    color: #ffd700 !important;
}

html body .cta-section p,
body .cta-section p {
    color: #fff !important;
}

/* Buttons */
html body .btn,
html body .game-button,
html body .cta-button,
body .btn,
body .game-button,
body .cta-button {
    background: #ffd700 !important;
    color: #1a1a2e !important;
    border: 3px solid #ff6b00 !important;
    border-radius: 0 !important;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5) !important;
    transition: all 0.1s !important;
    text-transform: uppercase;
    font-weight: bold;
}

html body .btn:hover,
html body .game-button:hover,
body .btn:hover,
body .game-button:hover {
    background: #ffed4e !important;
    transform: translate(-2px, -2px) !important;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.5) !important;
}

/* Tables (if any) */
html body table,
body table {
    background: rgba(26, 26, 46, 0.8) !important;
    border: 2px solid #8b7355 !important;
    color: #ddd !important;
}

html body th,
body th {
    background: rgba(255, 215, 0, 0.2) !important;
    color: #ffd700 !important;
    border-color: #8b7355 !important;
}

html body td,
body td {
    border-color: #666 !important;
    color: #ddd !important;
}

html body tr:hover,
body tr:hover {
    background: rgba(255, 215, 0, 0.1) !important;
}

/* Additional force overrides for common class names */
.hero,
.header,
.main-content,
.section,
.content-section,
.info-box,
.feature-box {
    background: rgba(40, 40, 60, 0.95) !important;
    color: #ddd !important;
}

/* Responsive */
@media (max-width: 768px) {
    html body h1,
    body .container h1 {
        font-size: 1.3rem !important;
    }

    html body h2,
    body .container h2 {
        font-size: 1.1rem !important;
    }

    html body .container,
    body .container {
        padding: 1.5rem !important;
        margin: 1rem !important;
    }
}