:root {
    --bg-color: #f7f9fc;
    --text-color: #123;
    --textarea-bg: #f1f2f3;
    --border-color: #ccc;
    --button-bg: #3b7ddd;
}

body.dark {
    --bg-color: #262626;
    --text-color: #ddd;
    --textarea-bg: #1e1e1e;
    --border-color: #444;
    --button-bg: #4f83cc;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

.toolbar {
    display: flex;
    justify-content: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap:wrap;
}

.toolbar button, .toolbar a {
    padding: 6px 16px;
    font-size: 14px;
    cursor: pointer;
    background-color: var(--button-bg);
    border: none;
    color: white;
    border-radius: 4px;
    margin: 3px 5px;
}

.toolbar a {
    text-underline-offset: 5px;
}

.editor-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    padding: 10px;
    overflow: hidden;
}

.editor {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.editor label {
    font-size: 12px;
    margin-bottom: 4px;
}

textarea:focus, select:focus {
    outline: none;
    border-color: var(--border-color);
}

button {
    opacity: 0.9;
}


textarea {
    flex: 1;
    resize: none;
    padding: 10px;
    font-size: 14px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', Consolas, Monaco, 'Courier New', monospace;
    border: 1px solid var(--border-color);
    background-color: var(--textarea-bg);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    white-space: pre;
}

@media (max-width: 768px) {
    .editor-container {
        flex-direction: column;

    }
}