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

body {
    background: #000000;
    color: #d0d0d0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    margin-left: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid #005cef;
    border-radius: 8px;
}

h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: #005cef;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.subtitle {
    font-size: 1.2em;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.text-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.text-section h2 {
    color: #005cef;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.text-section p {
    margin-bottom: 15px;
    color: #c0c0c0;
    line-height: 1.8;
}

.visualization-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #005cef;
    display: flex;
    justify-content: center;
    align-items: center;
}

#p5-container {
    display: flex;
    justify-content: center;
}

.tutorial-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 8px;
    border-left: 4px solid #005cef;
    margin-top: 60px;
}

.tutorial-section h2 {
    color: #005cef;
    margin-bottom: 20px;
    font-size: 2em;
}

.tutorial-section h3 {
    color: #005cef;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.tutorial-section p {
    margin-bottom: 15px;
    color: #c0c0c0;
    line-height: 1.8;
}

.tutorial-section ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.tutorial-section li {
    margin-bottom: 10px;
    color: #c0c0c0;
    line-height: 1.6;
}

.tutorial-section :not(pre) > code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    color: #005cef;
    font-family: 'Cascadia Code', 'Consolas', 'SFMono-Regular', 'Menlo', 'Monaco', 'Liberation Mono', monospace;
}

.tutorial-section pre {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 14px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.tutorial-section pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: block;
    line-height: 1.6;
    font-family: 'Cascadia Code', 'Consolas', 'SFMono-Regular', 'Menlo', 'Monaco', 'Liberation Mono', monospace;
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    h1 {
        font-size: 2em;
    }

    .text-section {
        padding: 25px;
    }
}
