body {
    background-color: #1a1a1a;
    color: #f0f0f0;
    font-family: sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-grow: 1;
    padding: 1em;
    gap: 1em;
}

.editor-column {
    display: flex;
    flex-direction: column;
    width: 50%;
    gap: 0.5em;
}

.editor-container {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    /* flex-grow: 1; removed */
}

.textarea-wrapper {
    position: relative;
    /* flex-grow: 1; removed */
}

.icon-button {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    background: #444;
    border: 1px solid #666;
    color: #f0f0f0;
    cursor: pointer;
    border-radius: 4px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-button:hover {
    background: #555;
}


#editor {
    width: 100%;
    /* height: 100%; removed */
    box-sizing: border-box;
    background-color: #2a2a2a;
    color: #f0f0f0;
    border: 1px solid #444;
    border-radius: 4px;
    resize: vertical;
    display: block;
}

.controls {
    display: flex;
    gap: 1em;
}

button {
    padding: 0.8em 1.2em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

button:hover {
    background-color: #0056b3;
}


#output {
    width: 50%;
    background-color: #2a2a2a;
    padding: 1em;
    border: 1px solid #444;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

#output svg {
    width: 100%;
    height: 100%;
}


label, select {
    font-size: 1em;
}

select {
    padding: 0.5em;
    background-color: #2a2a2a;
    color: #f0f0f0;
    border: 1px solid #444;
    border-radius: 4px;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .editor-column, #output {
        width: 100%;
    }

    #output {
        min-height: 300px; /* Provide a minimum height for the output on mobile */
    }
}
