/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Liberation Mono', 'DejaVu Sans Mono', monospace;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    font-size: 14px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    font-family: inherit;
}

a {
    color: #000;
    text-decoration: underline;
    cursor: pointer;
}

a:hover {
    background-color: #f0f0f0;
}

/* ASCII Dividers */
.ascii-divider {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #666;
    margin: 30px 0;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

.hero-title {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 15px;
    color: #333;
}

.hero-kicker {
    font-size: 14px;
    margin-bottom: 30px;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    margin: 30px 0;
}

.main-image {
    max-width: 300px;
    height: auto;
    border: 1px solid #ccc;
    display: block;
    margin: 0 auto;
    background-color: #fafafa;
}

.image-caption {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.hero-nav {
    margin-top: 30px;
}

/* Chalkboard Section */
.chalkboard-section {
    margin: 40px 0;
}

/* Interactive Scene */
.interactive-scene {
    margin: 30px 0;
}

.scene-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    height: 400px;
}

.wojak-overlay {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 380px;
    width: auto;
    z-index: 2;
}

.simple-chalkboard {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #8B4513;
    padding: 20px;
    border: 8px solid #654321;
    border-radius: 5px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
    z-index: 1;
}

.chalk-canvas {
    display: block;
    background-color: #2d5016;
    cursor: crosshair;
    border: 2px solid #1a2f0c;
    border-radius: 3px;
}

.chalk-controls {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.save-controls {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#chalkInput {
    font-family: inherit;
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
    min-width: 200px;
}

#chalkInput:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.scene-caption {
    font-size: 12px;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

/* Responsive Design for Interactive Scene */
@media (max-width: 768px) {
    .scene-container {
        height: auto;
        flex-direction: column;
        gap: 20px;
    }
    
    .chalkboard {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        height: 200px;
        order: 1;
    }
    
    .wojak-overlay {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        height: 250px;
        order: 2;
    }
    
    .chalk-canvas {
        position: absolute;
        right: 50%;
        top: 30px;
        transform: translateX(50%);
        width: 240px;
        height: 140px;
        order: 3;
    }
}

.forum-button {
    display: inline-block;
    margin: 0 15px;
    padding: 8px 16px;
    border: 1px solid #000;
    background-color: #f8f8f8;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    color: #000;
    text-transform: none;
}

.forum-button:hover {
    background-color: #e0e0e0;
}

/* Intro Section */
.intro {
    margin: 40px 0;
    border: 1px solid #ccc;
    background-color: #fafafa;
    padding: 20px;
}

.thread-header h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    font-family: inherit;
}

.thread-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.thread-content {
    font-size: 14px;
    line-height: 1.6;
}

/* Section Titles */
.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* History/Timeline Section */
.history {
    margin: 40px 0;
}

.timeline {
    margin-top: 30px;
}

.timeline-post {
    margin-bottom: 30px;
    border-left: 2px solid #ccc;
    padding-left: 20px;
    position: relative;
}

.timeline-post::before {
    content: "●";
    position: absolute;
    left: -6px;
    top: 5px;
    background-color: #fff;
    color: #666;
    font-size: 12px;
}

.post-header {
    margin-bottom: 8px;
}

.post-date {
    font-weight: bold;
    font-size: 12px;
    color: #333;
}

.post-title {
    font-size: 14px;
    color: #000;
}

.post-content {
    font-size: 13px;
    line-height: 1.5;
}

.post-link {
    margin-top: 8px;
    font-size: 12px;
}

.post-links {
    margin-top: 8px;
}

.post-links ul {
    margin-left: 20px;
    font-size: 12px;
}

.post-links li {
    margin-bottom: 4px;
}

.timeline-post.analysis {
    background-color: #f8f8f8;
    padding: 15px;
    border: 1px solid #ddd;
    border-left: 2px solid #666;
}

.timeline-post.analysis::before {
    content: "■";
    color: #333;
}

/* Comparison Section */
.comparison {
    margin: 40px 0;
}

.comparison-content {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
    background-color: #fafafa;
    padding: 20px;
    border: 1px solid #ccc;
}

.comparison-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.comparison-item {
    text-align: center;
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #fafafa;
}

.comparison-image {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #fff;
    display: block;
    margin: 0 auto;
}

.comparison-image:hover {
    border-color: #999;
}

.comparison-caption {
    font-size: 12px;
    margin: 15px 0 0 0;
    font-family: inherit;
    color: #333;
    font-weight: bold;
}

/* Image Dump Section */
.image-dump {
    margin: 40px 0;
}

.image-dump-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.gallery-notice {
    background-color: #f0f0f0;
    padding: 15px;
    border: 1px solid #ccc;
    font-size: 12px;
    margin-bottom: 30px;
    color: #666;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.gallery-item {
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #fafafa;
}

.gallery-thumbnail {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #fff;
    display: block;
    margin: 0 auto;
}

.gallery-thumbnail:hover {
    border-color: #999;
}

.gallery-caption {
    font-size: 11px;
    margin: 10px 0 8px 0;
    font-family: inherit;
    color: #333;
}

.view-original {
    font-size: 10px;
    color: #666;
    text-decoration: underline;
}

/* Sources Section */
.sources {
    margin: 40px 0;
}

.sources-list {
    margin-top: 20px;
}

.sources-list p {
    margin-bottom: 8px;
    font-size: 12px;
    word-break: break-all;
}

/* About Section */
.about {
    margin: 40px 0;
}

.about p {
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.6;
}

.disclaimer {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

/* Footer */
.footer {
    margin-top: 60px;
    text-align: center;
    padding: 20px 0;
}

.footer-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.return-top {
    font-size: 11px;
    color: #666;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    max-width: 90%;
    max-height: 90%;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-close:hover {
    color: #ccc;
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    border: 2px solid #fff;
    background-color: #fff;
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    font-family: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .main-image {
        max-width: 250px;
    }
    
    .forum-button {
        display: block;
        margin: 10px auto;
        max-width: 200px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .timeline-post {
        padding-left: 15px;
    }
    
    .ascii-divider {
        font-size: 10px;
    }
    
    .sources-list p {
        word-break: break-word;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus, .forum-button:focus, .gallery-thumbnail:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}
