{% extends 'base.html' %}

{% block content %}
<div class="document-container">
    {% if error %}
        <p style="color: red;">{{ error }}</p>
    {% endif %}

    <div>
        {{ rendered_html|safe }}
    </div>
<style>
    .document-container {
        max-width: 800px;
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .document-header {
        margin-bottom: 2rem;
    }

    .document-meta {
        color: #666;
        font-size: 0.9rem;
    }

    .document-content {
        line-height: 1.6;
    }

    .document-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .document-subtitle {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }

    .document-h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .document-h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .document-h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .document-quote {
        border-left: 4px solid #ccc;
        margin: 1.5rem 0;
        padding-left: 1rem;
        font-style: italic;
    }

    .document-body {
        margin-bottom: 1rem;
    }
</style>
{% endblock %}