body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #1e1e1e;
    color: #dcdcdc;
    padding: 20px;
    margin: 0;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    gap: 20px;
    flex-direction: column;
}

#editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    height: calc(100vh - 40px);
}

code[contenteditable="true"] {
    outline: none;
    display: block;
    white-space: pre;
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto;
    background: #2d2d2d;
    color: #ccc;
    padding: 8px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.3;
    border-radius: 4px;
    border: 1px solid #444;
}

button {
    background-color: #007acc;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: fit-content;
    font-weight: bold;
    font-size: 14px;
}

button:hover {
    background-color: #005fa3;
}

#iframe-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: calc(100vh - 40px);
}

iframe#htmliframe {
    width: 100%;
    flex-grow: 1;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: white;
}

h1, h3 {
    margin: 0 0 8px 0;
}

.code-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-header h3 {
    margin: 0;
    margin-right: 10px;
}

.preview-header button {
    margin: 0;
}

#editor-list {
    flex: 1;
    padding: 20px;
}

footer {
    text-align: center;
    font-size: 14px;
    color: #555;
    padding: 10px 0;
}