:root {
    /* Light mode colors */
    --background-color: white;
    --text-color: #222222;
    --link-color: royalblue;
    --border-color: #aaa;
    --metadata-color: #555;
    --header-separator-color: #c9c9c9;
    --input-background: white;
    --title-color: black;
}
body.dark-mode {
    /* Dark mode colors */
    --background-color: #1E201E;
    --text-color: #ECDFCC;
    --link-color: #6c9e70;
    --border-color: #3C3D37;
    --metadata-color: #aaa;
    --header-separator-color: #aaa;
    --input-background: darkgray;
    --title-color: burlywood;
}
/* This hack is needed because buttons act weird if you introduce a bg color in light mode */
body.dark-mode button {
    background-color: dimgrey;
}
body {
    background-color: var(--background-color);
    color: var(--text-color);
}
#app {
    font-family: "Iowan Old Style", Iowan, "Iowan BT", "Palatino Linotype", "URW Palladio L", P052, serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
h1 {
    font-size: 1.5em;
}
.header {
    border-bottom: 1px solid var(--header-separator-color);
}
textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
}
.feed-item {
    margin-bottom: 20px;
}
.description {
    margin-top: 10px;
    border: 1px solid var(--border-color);
    padding: 10px;
    max-height: 80vh;
    overflow-y: scroll;
    padding-left: 2em;
    padding-right: 2em;
    line-height: 1.6em;
}
.description p {
    line-height: 1.4em;
}
.description img, .description video {
    max-width: 100%;
    /* max-height: 60vh; */
    margin: 0 auto;
    display: block;
    float: none;
    height: unset;
    /* width: unset; More bugs with this than without. */ 
}
.description p:has(img), .description p:has(video) {
    text-align: center;
}
.meta {
    font-size: 0.9em;
    color: var(--text-color);
}
a {
    color: var(--link-color);
}
blockquote {
    border-left: 0.2em solid var(--border-color);
    padding-left: 0.5em;
    margin-left: 1em;
    font-style: italic;
    font-family: auto;
}
.post-title {
    text-decoration: unset;
}
table, th, td {
    border: 1px solid var(--border-color);
    border-collapse: collapse;
    padding: 0.5em;
    width: -webkit-fill-available;
}
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.postTitleBox {
    display: flex;
    justify-content: space-between;
}
#advanced-settings {
    display: none;
    margin-top: 1em;
    margin-bottom:1em;
    padding: 10px;
    border: 1px solid var(--border-color);
}
#advanced-settings table, #advanced-settings td {
    border: none;
}
#before-buttons {
    min-height: 85vh;
} 
.buttonLogo {
    height: 0.9em;
}
.header button {
    height: 1.8em;
}
figure {
    text-align: center;
}
/* For substack's subscribe form! */
.subscription-widget-wrap-editor {
    display: none;
}
.is-read-true {
    opacity: 0.5;
}
.description h1, .description h2, .description h3, .description h4 {
    color: var(--title-color);
}
