@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

:root {
	--background-color: #ffffff;
	--text-color: #000000;
	--marquee-time: 20s;
}

[data-theme="dark"] {
  --background-color: #1A111A;
  --text-color: #ffffe9;
}

@font-face {
    font-family: raiaqsuq;
    src: url("https://ampersandia.net/raiaqsuq.otf") format("opentype");
}

@font-face {
    font-family: paysage;
    src: url("https://ampersandia.net/Paysage-Regular.otf") format('opentype');
}

h1, h2, h3 {
	margin-bottom: 5px;
}

body {
	background-color: var(--background-color);
	color: var(--text-color);
	font-family: 'paysage';
	margin: auto;
	width: 50%;
}

#pagetitle {
	margin-top: 0px;
	font-size: 150px;
	height: 15px;
}

a:link {
	color: #fc0277;
}

a:visited {
	color: #fc2105;
}

a:hover {
	color: #db1d04;
}

.marquee {
	overflow: hidden;
	white-space: nowrap;
}

.marquee div {
	padding-left: 100%;
	width: max-content;
	/* Animation lenght */
	animation: marquee var(--marquee-time) linear infinite;
}

.marquee p {
	display: inline;
}

.marquee p.notlast::after {
	content: " -+-+-+-+-+-+-+-+-+-+- ";
}

.marquee div:hover {
	animation-play-state: paused;
}

.post p sup {
	margin-top: -10px;
	display: inline-block;
}

.pagination {
	display: flex;
	flex-direction: row;
	justify-content: center;
	padding: 0;
	list-style-image: none;
}

.pagination li {
	display: inline;
	padding: 6px;
}

img {
	max-width: 100%;
	max-height: 100%;
}

.raiaqsuq {
	font-family: "raiaqsuq";
	line-height: 0.5;
}

@media (max-width:720px) {
	body { width:90%; }
}

@keyframes marquee {
	0% { transform: translate(0, 0); }
	100% {transform: translate(-100%, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.marquee div {
		overflow: scroll;
		padding-left: 0;
		width: auto;
		animation: none;
	}
}

.hlist p {
	display: inline;
	margin-right: 24px;
}

.webring {
	display: flex;
	padding: 0.5em;
	flex-wrap: wrap;
	justify-content: space-evenly;
	align-content: center;
}

.left { text-align: left; }
.mid { text-align: center; }
.right { text-align: right; }

.left, .right {
	flex-grow: 1;
	flex-basis: 0;
}

footer {
	background-color: #fefefa;
	font-family: Merriweather;
}

footer a {
	color: #7030B0;
}

footer .mid a {
	color: #BB3310;
}

:not(pre) > code {
	background-color: #c93857;
	color: #fecde4;
	border-radius: 5px;
	padding: 2px 4px 2px 4px;
	margin-left: -1px;
	margin-right: -1px;
}

.book {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	gap: 10pt;
	background-color: #b85;
	padding: 10pt;
	border-radius: 10pt;
}

.purchases {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10pt;
	a {
		color: #ddb;
		background-color: #d33;
		padding: 5pt;
		border-radius: 5pt;
	}
}

.bookcover {
	width: 30cm;
	height: auto;
	margin-left: auto;
	margin-right: auto;
	border-radius: 5pt;
}

.flex-container {
	display: flex;
	justify-content: space-around;
	gap: 10pt;
}

@media (max-width: 10cm) {
	.flex-container {
		display: block;
	}

	.book {
		width: 100%;
	}

	.bookcover {
		width: 50%;
	}
}

pre {
	background-color: gray;
	padding: 4pt;
	border-radius: 10pt;
	color: #ffd;
	border: 1.5pt solid #443;
	white-space: pre-wrap;
	word-wrap: break-word;
}

#bucketring {
	margin-top: 10pt;
}