* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

body {
    height: 100vh;
    overflow: hidden;
    background-color: #f5f5f5;
}

.pell {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.pell-content {
    flex: 1;
    padding: 20px;
    padding-bottom: 70px;
    overflow-y: auto;
    width: 750px;
    margin: 0 auto;
    text-align: left;
    line-height: 1.5;
}

.pell-content p {
    margin-bottom: 0px;
}

.pell-actionbar {
    display: none;
}

.pell-button {
    padding: 6px 12px;
    cursor: pointer;
    margin-right: 4px;
}

.container {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    border-radius: 0;
    box-shadow: none;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.output-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.output-container h3 {
    margin-bottom: 10px;
    color: #555;
}

#html-output {
    padding: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-wrap;
}

/* Dark mode styles */
html.dark-mode {
    background-color: #1a1a1a;
}

html.dark-mode body {
    background-color: #1a1a1a;
}

.dark-mode .container {
    background-color: #1a1a1a;
}

.dark-mode .pell-content {
    color: #ffffff;
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 1px;
    border: none;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #333;
    transition: all 0.3s ease;
}

.dark-mode .theme-toggle {
    background-color: #333;
    color: #fff;
}

/* Wiki link styles */
.wiki-link {
    color: #0366d6;
    text-decoration: none;
    border-bottom: 1px dashed #0366d6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wiki-link:hover {
    color: #0246a2;
    border-bottom: 1px solid #0246a2;
    background-color: rgba(3, 102, 214, 0.1);
}

.dark-mode .wiki-link {
    color: #58a6ff;
    border-bottom: 1px dashed #58a6ff;
    cursor: pointer;
}

.dark-mode .wiki-link:hover {
    color: #79b8ff;
    border-bottom: 1px solid #79b8ff;
    background-color: rgba(88, 166, 255, 0.1);
}

.new-page-link {
    color: #d73a49;
    text-decoration: none;
    border-bottom: 1px dashed #d73a49;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-page-link:hover {
    color: #b92d3a;
    border-bottom: 1px solid #b92d3a;
    background-color: rgba(215, 58, 73, 0.1);
}

.dark-mode .new-page-link {
    color: #ff7b72;
    border-bottom: 1px dashed #ff7b72;
    cursor: pointer;
}

.dark-mode .new-page-link:hover {
    color: #ff958d;
    border-bottom: 1px solid #ff958d;
    background-color: rgba(255, 123, 114, 0.1);
}

.pell-content[data-placeholder]:empty:before {
    content: attr(data-placeholder);
    color: #999;
    font-style: italic;
    position: absolute;
    margin-top: -0.03em;
    margin-left: 0.1em;
    pointer-events: none;
}

.pell-content:focus p:first-child:last-child:empty {
    display: none;
}

.dark-mode .pell-content[data-placeholder]:not(:focus):before {
    color: #666;
}