* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: #4d4d4d;
    color: #cbcbcb;
    overflow-x: hidden;
}

/* Conway's Game of Life Canvas */
#gameOfLife {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #434343;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Page Management */
.page {
    display: none;
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px;
    pointer-events: auto;
}

.page.active {
    display: block;
}

/* Content Wrapper */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 80vh;
    pointer-events: auto;
}

/* Home Page */
#home .content-wrapper {
    align-items: flex-start;
    text-align: left;
}

.hero-text {
    margin-bottom: 120px;
}

.no-spoiler {
    font-size: 6rem;
    font-weight: 700;
    color: #4ade80;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Welcome Page */
.welcome-text {
    margin-bottom: 80px;
    transition: opacity 0.5s ease;
    text-align: left;
}

.welcome-text p {
    transition: opacity 0.3s ease;
}

.large-text {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 30px;
}

.subtext {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-top: 20px;
}

/* Terminal */
.terminal {
    width: 100%;
    max-width: 900px;
    background: rgba(60, 60, 60, 0.8);
    border-radius: 8px;
    padding: 20px 30px;
    margin: 40px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    text-align: left;
    pointer-events: auto;
}

.terminal-content {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #e0e0e0;
    text-align: left;
}

.prompt-user {
    color: #4ade80;
}

.prompt-colon {
    color: #e0e0e0;
}

.prompt-path {
    color: #60a5fa;
}

.prompt-dollar {
    color: #e0e0e0;
}

.cursor-blink {
    animation: blink 1s infinite;
    color: #e0e0e0;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

#home .main-nav {
    justify-content: flex-start;
}

.nav-link {
    color: #b0b0b0;
    text-decoration: underline;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
}

.nav-link:hover {
    color: #4ade80;
}

/* Breadcrumb */
.breadcrumb {
    position: absolute;
    top: 40px;
    left: 40px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: auto;
}

.breadcrumb a {
    color: #2a2a2a;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.breadcrumb a:hover {
    color: #60a5fa;
}

/* Blog Content */
.blog-content {
    padding-top: 80px;
}

.blog-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #d0d0d0;
}

.blog-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 60px;
}

.blog-text p {
    margin-bottom: 24px;
}

.book-reference {
    font-style: italic;
    color: #b0b0b0;
    margin-top: 40px;
}

.book-reference a {
    color: #60a5fa;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.book-reference a:hover {
    color: #4ade80;
    text-decoration: underline;
}

/* Poems */
.poems {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.poem-section {
    margin-bottom: 40px;
}

.poem-line {
    margin-bottom: 8px;
    line-height: 1.8;
}

.poem-attribution {
    font-style: italic;
    color: #b0b0b0;
    margin-top: 20px;
}

.right-align {
    text-align: left;
}

.spacing-top {
    margin-top: 24px;
}

/* Book Lists */
.disclaimer {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 60px;
    color: #b0b0b0;
    font-style: italic;
}

.book-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
    width: 100%;
}

.book-column h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.book-list {
    list-style: none;
    padding-left: 0;
}

.book-list li {
    margin-bottom: 16px;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    gap: 40px;
    margin-top: 80px;
    flex-wrap: wrap;
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .no-spoiler {
        font-size: 3rem;
    }
    
    .large-text {
        font-size: 1.8rem;
    }
    
    .blog-content h2 {
        font-size: 2.5rem;
    }
    
    .main-nav, .bottom-nav {
        flex-direction: column;
        gap: 20px;
        align-items: left;
    }
    
    .book-lists {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .breadcrumb {
        top: 20px;
        left: 20px;
    }
    
    .terminal {
        padding: 15px 20px;
    }
    
    .terminal-content {
        font-size: 0.9rem;
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    .no-spoiler {
        font-size: 2rem;
    }
    
    .large-text {
        font-size: 1.4rem;
    }
    
    .blog-content h2 {
        font-size: 2rem;
    }
}
