body {
    background: #1a1a2e;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: #e4e4e4;
}

.document {
    background: #16213e;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

h1 {
    color: #4da8da;
    border-bottom: 3px solid #4da8da;
    padding-bottom: 10px;
}

h2 {
    color: #4da8da;
}

.textbox-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
    align-items: center;
}

#textInput,
#textOutput,
.comprehension-syntax {
    font-family: 'Consolas', 'Monaco', monospace;
}

#textInput {
    width: 300px;
    height: 100px;
    padding: 10px;
    font-size: 14px;
    border: 2px solid #444;
    border-radius: 4px;
    background: #1f2940;
    color: #e4e4e4;
}

#textInput:focus {
    outline: none;
    border-color: #4da8da;
}

#textOutput {
    padding: 10px;
    min-width: 300px;
    min-height: 100px;
    border: 2px solid #444;
    background: #1f2940;
    white-space: pre;
    border-radius: 4px;
    color: #e4e4e4;
}

.valid-python {
    border-color: #6cc644 !important;
    background: #1a3d1a !important;
}

.invalid-python {
    border-color: #d9534f !important;
    background: #3d1a1a !important;
    color: #d9534f;
    font-weight: bold;
}

.comprehension-syntax {
    font-style: italic;
    margin-left: 20px;
    background: #1f2940;
    padding: 10px;
    border-radius: 4px;
    display: inline-block;
}

.comprehension-syntax .expr { color: #4da8da; }
.comprehension-syntax .item { color: #6cc644; }
.comprehension-syntax .iter { color: #d9534f; }
.comprehension-syntax .cond { color: #f0ad4e; }

.awaiting {
    color: #888 !important;
    font-style: italic;
}

#textOutput.awaiting {
    color: #888 !important;
    font-style: italic;
}

.sidebar-sticky,
.sidebar-scroll,
.sidebar-drawer,
.toc-drawer {
    display: none !important;
}

.main {
    margin-left: 0 !important;
    max-width: 100% !important;
    padding: 40px 80px !important;
}

.content-icon-container {
    display: none !important;
}

@media (max-width: 700px) {
    .main {
        padding: 20px !important;
    }

    #textInput,
    #textOutput {
        width: 100%;
        max-width: 400px;
    }
}
