
:root {
	--width: 50rem;
	--font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-secondary: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-scale: 1.2em;
	--background-color: #2c2d32;
	--heading-color: white;
	--text-color: white;
	--link-color: white;
	--visited-color: #dfcc9e;
	--code-background-color: #000;
	--code-color: #c9d1d9;
	--blockquote-color: #c9d1d9;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--font-scale);
    margin: 50px auto;
    padding: 20px;
    max-width: var(--width);
    text-align: left;
    background-color: var(--background-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
  	font-family: var(--font-main);
    color: var(--heading-color);
}

h1 {
	text-align: center;
}

strong, b {
  	color: var(--heading-color);
}

a {
    color: var(--link-color);
    cursor: pointer;
    text-decoration: none;
}

a:hover {
     text-decoration: underline; 
     font-weight: bold;
}

nav {
  	position: fixed;
	top: 0;
	left: 0;
	background: rgba(0,0,0,.5);
	display: flex;
	align-items: center;
	width: 100%;
  	height: 80px;
	z-index: 999;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	background-image: url(images/4e154b5e2ea57f31.png);
	background-size: contain;
}

nav p {
 	width: fit-content;
	padding: 0 20px;
	margin: 0 auto;
	text-align: center;
	background-color: rgba(0, 0, 0, .9)
}

nav a {
    margin-right: 15px;
  	font-size: 0.9em;
  	color: white;
}

button {
    margin: 0;
}

main {
    line-height: 1.6;
}

table {
    width: 100%;
}

hr {
    border: 0;
    border-top: 1px dashed;
}

img {
    max-width: 100%;
}

code {
    font-family: monospace;
    padding: 2px;
    background-color: var(--code-background-color);
    color: var(--code-color);
    border-radius: 3px;
}

blockquote {
    border-left: 1px solid #999;
    color: var(--code-color);
    padding-left: 20px;
    font-style: italic;
}

footer {
    padding: 25px 0;
    text-align: center;
}

button {
	border: 0;
  	background-color: inherit;
  	text-decoration: underline;
  	color: var(--heading-color);
}

.title {
    text-decoration: none;
}

.title h1 {
    color: var(--link-color);
}

.inline {
    width: auto !important;
}

.highlight,
.code {
    padding: 1px 15px;
    background-color: var(--code-background-color);
    color: var(--code-color);
    border-radius: 3px;
    margin-block-start: 1em;
    margin-block-end: 1em;
    overflow-x: auto;
}

li.blog-preview {
  display: grid;
  grid-template-columns: 25% 75%;  
  grid-template-rows: fit-content(8em);
  gap: 2px;
}

.txt-preview {
    padding: 10px;
    border: gray 5px ridge;
    overflow: hidden;
}

.img-preview {
    padding: 10px;
    border: gray 5px ridge;
}

.txt-preview > h3 {
    position: relative;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}

.categories {
    border: 2px ridge gray;
    padding: 3px;
}

main > div {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 5px;
}
