@font-face {
	font-family: "CloisterBlack";
	src: url("fonts/CloisterBlack.ttf");
}

:root {
	--bg-color: #F5F1E8;
	--fg-color: #000;
	--accent-color: #694b86;
}

html{
    background-color: var(--bg-color);
    color: var(--fg-color);
    font-size: 18px;
    font-family: 'Times New Roman', Times, serif;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background-image: url('img/newspaper3.jpg');
    background-size: cover;
}

html::before {
    content: "";
    position: fixed;
    inset: 0;

    background: radial-gradient(
        ellipse at center,
        rgba(0,0,0,0.05) 80%,
        rgba(0,0,0,0.5) 100%
    );

    pointer-events: none;
    z-index: 0;
}

main {
    padding-top: 35px; /* adjust depending on title height */
    padding-bottom: 75px; /* adjust depending on title height */
}


html::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.newspaper-title, .post-top, .post-nav{
    font-family: "CloisterBlack";
    text-align: center;
}

.post-body {
    column-fill: balance;
    column-gap: 60px;
    column-width: 380px;
    column-rule: 1px solid #ccc; /* line between columns */
    text-align: justify;
    overflow: auto;
    width: 100%;
    margin: 0 auto;
}

.post-body p {
    margin-bottom: 1em;
}

.post-body img {
    display: block;
    width: 100%;
    height: auto;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin: 0.5em 0;
}

.post-body figcaption {
    font-size: 0.85em;
    text-align: center;
    opacity: 0.8;
    margin-bottom: 1em;
}

.post-body p:first-of-type::first-letter {
    font-size: 2em;
    float: left;
    line-height: 1;
    margin-right: 5px;
    font-family: "CloisterBlack";
}

.post-body img {
    filter: grayscale(100%) contrast(250%) brightness(0.85) sepia(20%);
    transition: filter 0.4s ease;
}

.post-body img:hover {
    filter: none;
}

.newspaper-title {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--bg-color);
    background-color: var(--fg-color);
    padding: 10px 0;
    z-index: 1000;
    text-align: center;
    margin-top: 0;
}


.post-nav{
    position: fixed;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);

    width: 35vh;

    background: var(--fg-color);
    text-align: center;
    padding: 10px 0;

    border: 2px solid var(--accent-color);
    box-sizing: border-box;
    overflow: hidden;

    box-shadow:
        0 0 15px var(--accent-color),
        inset 0 0 25px var(--accent-color);
}
.post-nav a {
	color: var(--accent-color);
	text-decoration: none;
	position: relative;
	letter-spacing: 0.05em;
	text-shadow: 
		0 0 2px var(--fg-color),
		0 0 6px var(--accent-color);
	transition: all 0.25s ease;
}

.post-nav a::after {
	content: "";
	margin-left: 6px;
	font-size: 0.8em;
	opacity: 0.7;
}

.post-nav .post-nava:hover {
	color: var(--accent-color);;
	transform: scale(1.05);
	text-shadow: 
		0 0 4px #000,
		0 0 10px var(--accent-color),
		0 0 18px var(--accent-color);;
}

.post-nav a:hover::before {
	content: " ";
	opacity: 0.8;
}

.post-nav a:active {
	color: #fff;
	text-shadow: 0 0 8px var(--accent-color);;
}