* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

header {
    background-color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #ddd;
}

header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.container {
    display: flex;
    height: 500px;
    gap: 0;
    overflow: hidden;
}

.pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: white;
    border: 1px solid #ddd;
}

.pane:first-child {
    border-right: none;
}

h2 {
    background-color: #f8f9fa;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.pane-header h2 {
    border-bottom: none;
    margin: 0;
    flex: 1;
}

.copy-button {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 8px 16px;
    margin-right: 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.copy-button:hover {
    background-color: #0052a3;
}

.copy-button:active {
    background-color: #004080;
}

.copy-button.copied {
    background-color: #28a745;
}

#markdown-input {
    flex: 1;
    padding: 20px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    border: none;
    resize: none;
    outline: none;
}

#html-output {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    line-height: 1.6;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
}

#html-output:empty:before {
    content: attr(placeholder);
    color: #999;
    font-style: italic;
}

#html-output.empty:before {
    content: attr(placeholder);
    color: #999;
    font-style: italic;
}

#html-output h1, #html-output h2, #html-output h3, 
#html-output h4, #html-output h5, #html-output h6 {
    margin-top: 20px;
    margin-bottom: 10px;
}

#html-output h1:first-child, #html-output h2:first-child, 
#html-output h3:first-child, #html-output h4:first-child, 
#html-output h5:first-child, #html-output h6:first-child {
    margin-top: 0;
}

#html-output p {
    margin-bottom: 10px;
}

#html-output ul, #html-output ol {
    margin-bottom: 10px;
    padding-left: 30px;
}

#html-output pre {
    background-color: #f6f8fa;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 10px;
}

#html-output code {
    background-color: #f6f8fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 90%;
}

#html-output pre code {
    background-color: transparent;
    padding: 0;
}

#html-output blockquote {
    border-left: 4px solid #ddd;
    padding-left: 15px;
    color: #666;
    margin-bottom: 10px;
}

#html-output a {
    color: #0066cc;
    text-decoration: none;
}

#html-output a:hover {
    text-decoration: underline;
}

#html-output table {
    border-collapse: collapse;
    margin-bottom: 10px;
}

#html-output table th,
#html-output table td {
    border: 1px solid #ddd;
    padding: 8px;
}

#html-output table th {
    background-color: #f6f8fa;
    font-weight: bold;
}

.faq-section {
    background-color: white;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.faq-content {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-content h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0066cc;
}

.faq-content h3 {
    font-size: 20px;
    color: #0066cc;
    margin-top: 40px;
    margin-bottom: 20px;
}

.faq-content h4 {
    font-size: 16px;
    color: #333;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: 600;
}

.faq-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.faq-content ul, .faq-content ol {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    padding-left: 30px;
}

.faq-content li {
    margin-bottom: 8px;
}

.faq-content code {
    background-color: #f6f8fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 90%;
    color: #e01e5a;
}

.faq-content strong {
    color: #333;
    font-weight: 600;
}