/* Custom styles for Showdown */

:root {
    --pico-font-size: 15px;
    --pico-line-height: 1.4;
    --pico-spacing: 0.5rem;
    --pico-typography-spacing-vertical: 0.5rem;
}

html {
    font-size: 15px;
}

body {
    font-size: 15px;
}

h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
h4, h5, h6 { font-size: 1.05rem; margin-bottom: 0.25rem; }

p, li, td, th, label, small { font-size: 15px; }

main.container {
    padding: 0.75rem;
    max-width: 800px;
}

header nav {
    padding: 0.25rem 0;
}

header nav a {
    font-size: 12px;
}

article {
    padding: 0.75rem;
    margin: 0.5rem 0;
}

article footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.4rem 1rem;
    background: var(--pico-background-color);
    border-top: 1px solid var(--pico-muted-border-color);
    opacity: 0.7;
    font-size: 11px;
}

article footer:hover {
    opacity: 1;
}

article footer nav {
    max-width: 800px;
    margin: 0 auto;
}

article footer small {
    font-size: 11px;
    color: var(--pico-muted-color);
}

article footer a[role="button"] {
    padding: 0.2rem 0.5rem;
    font-size: 10px;
}

textarea {
    min-height: 120px;
    font-size: 14px;
}

button, input, select {
    padding: 0.4rem 0.7rem;
    font-size: 13px;
}

select,
select:focus,
select:active,
select:hover {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
    background-color: #1a1a2e !important;
}

select option {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background-color: #1a1a2e !important;
}

pre, code {
    font-size: 13px;
}

.form-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.form-row label {
    margin-bottom: 0;
}

.form-row select {
    width: auto;
    min-width: 100px;
    margin-bottom: 0;
}

.form-row button {
    margin-left: auto;
    margin-bottom: 0;
    white-space: nowrap;
    padding: 0.3rem 0.8rem;
    width: auto;
}

.delete-btn {
    padding: 0.3rem 0.8rem;
    width: auto !important;
    display: inline-block;
}

.danger-btn {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
    padding: 0.15rem 0.4rem !important;
    font-size: 11px !important;
    margin: 0 !important;
}

.danger-btn:hover,
.danger-btn:focus {
    background-color: #c82333 !important;
    border-color: #c82333 !important;
}

.paste-content {
    padding: 1rem;
    background: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
}

.paste-content pre {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: var(--pico-border-radius);
    overflow-x: auto;
}

.paste-content code {
    font-size: 0.9em;
}

.paste-content img {
    max-width: 100%;
    height: auto;
}

.paste-content table {
    width: 100%;
    margin: 1rem 0;
}

textarea {
    font-family: monospace;
    resize: vertical;
}

header nav ul {
    margin-bottom: 0;
}

article header {
    margin-bottom: 1rem;
}

article header nav ul li small {
    color: var(--pico-muted-color);
}
