/* Universal Page Style Override for Guide, About, Privacy Pages */
/* Fixes white text on white background issue caused by game-style.css */

/* Override body background and text colors */
body {
    background: #1a1a2e !important;
    color: #ddd !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    line-height: 1.6 !important;
}

/* FORCE all white/light backgrounds to dark - CRITICAL FIX */
*[style*="background: white"],
*[style*="background-color: white"],
*[style*="background: #fff"],
*[style*="background-color: #fff"],
*[style*="background: rgba(255, 255, 255"],
*[style*="background-color: rgba(255, 255, 255"],
.container,
.header,
.section,
.content,
.about-container,
.privacy-container {
    background: rgba(40, 40, 60, 0.95) !important;
    color: #ddd !important;
}

/* Main containers - Game Panel Style */
.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 */
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;
}

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

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

h4, h5, h6 {
    color: #87ceeb !important;
}

/* Paragraphs and text */
p {
    color: #ddd !important;
    line-height: 1.6 !important;
}

/* Lists */
ul, ol {
    color: #ddd !important;
}

li {
    color: #ddd !important;
    line-height: 1.5 !important;
}

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

em, i {
    color: #87ceeb !important;
}

/* Links */
a {
    color: #87ceeb !important;
}

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

/* Tip boxes and special sections */
.tip-box, .strategy-card, .progress-tracker {
    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;
}

.tip-box strong, .strategy-card strong {
    color: #ffd700 !important;
}

.tip-box h4, .strategy-card h4 {
    color: #ffd700 !important;
}

/* Level cards and feature cards */
.level-card, .feature-card, .achievement-card {
    background: rgba(40, 40, 60, 0.95) !important;
    border: 3px solid #8b7355 !important;
    border-radius: 0 !important;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5) !important;
    color: #ddd !important;
}

.level-card h4, .feature-card h3 {
    color: #ffd700 !important;
}

/* Keyboard shortcuts */
.keyboard-shortcuts {
    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;
}

.shortcut-item {
    background: rgba(26, 26, 46, 0.8) !important;
    color: #ddd !important;
    border: 1px solid #666 !important;
    border-radius: 0 !important;
}

.key {
    background: #ffd700 !important;
    color: #1a1a2e !important;
    border: 2px solid #ff6b00 !important;
    border-radius: 0 !important;
}

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

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

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

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

/* Buttons */
.btn, .game-button, .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;
}

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

/* Special content sections */
.cta-section, .header {
    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;
}

.cta-section h2, .header h1 {
    color: #ffd700 !important;
}

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

/* Code blocks */
code, pre {
    background: rgba(26, 26, 46, 0.8) !important;
    color: #87ceeb !important;
    border: 1px solid #666 !important;
}

/* Form elements (if any) */
input, textarea, select {
    background: rgba(26, 26, 46, 0.8) !important;
    color: #ddd !important;
    border: 2px solid #666 !important;
}

input:focus, textarea:focus, select:focus {
    border-color: #ffd700 !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 1.3rem !important;
    }

    h2 {
        font-size: 1.1rem !important;
    }

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