:root {
	--main-bg-color: beige;
	--main-font-color: #444444;
	--very-faded-black: rgba(0, 0, 0, 0.2);
	--faded-black: rgba(0, 0, 0, 0.5);
	--faded-white: rgba(255, 255, 255, 0.5);
}

/* setting up the whole page */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
	width: 100%;
	height: 100%;

	font-size: 16px;
	font-family: sans-serif;
	line-height: 2em;
}

/* mobile-first */
/* elements ordered from most exterior to most interior elements */

body {
	width: 100%;
	height: 100%;
	position: relative;
}

/* inner divs / bodies exist for css-only dark mode */
body > #inner-body {
	width: 100%;
	height: 100%;

	overflow-y: scroll;
}

body > #inner-body > #main-container {
	width: 94vw;
	height: 100%;
	margin: auto;
}

footer {
	width: 100%;
	display: block;
	margin-bottom: 1rem;

	position: initial;

	font-size: 0.8rem;
	text-align: center;
}

/* navigation bar(s) */

nav,
#post {
	padding-top: 1rem;
}

nav > p:last-child {
	text-align: right;
}

nav > p > label {
	display: flex;
	width: 100%;
	text-align: right;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

nav > p > label:hover {
	cursor: pointer;
}

nav > p > label > span {
	flex: 1;
}

/* elements that appear in posts */

/* lists */

ul {
	list-style-type: disc;
}

ul,
.list-padding-adjustment {
	padding-left: 2.5em;
}

ul > li {
	padding: initial;
}

.sl-item-list {
	list-style: none;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
	padding-left: 0;
}

.sl-item-list > li {
	padding: 0.2rem 0.5rem;
	border: 2px solid var(--very-faded-black);
}

.sl-item-list > li:not(:last-child) {
	border-bottom: none;
}

.sl-item-list.horizontal {
	display: flex;
}

.sl-item-list.horizontal > li {
	flex: 1;
	text-align: center;
}

.sl-item-list.horizontal > li:not(:last-child) {
	border-bottom: 2px solid var(--very-faded-black);
	border-right: none;
}

/* other */

a {
    text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

#post p:not(.art-date) {
	margin-bottom: 1rem;
}

.post-note {
	padding: 10px;
  	border: 1px solid #aaa;
  	border-radius: 10px;
  	font-size: 0.8rem;
}

.post-note::before {
	content: "Note: ";
}

.img-container > img {
	display: block;
	max-width: 100%;
	margin: 1em auto;
}

details:hover {
	cursor: pointer;
}

/* colouring */

#inner-body {
	background: var(--main-bg-color);
	color: var(--main-font-color);
}

#inner-body a {
	color: rgb(0, 0, 238);
}

#inner-body details {
	background: rgba(0, 0, 0, .1);
}

#inner-body nav > p > label::before {
	content: "\2715";
	color: red;
	flex: 18;
}

#inner-body .art-date {
	color: var(--faded-black);
}

/* 
	all the elements which require a transition;
	I would put this under the * selector but
	at the moment CHROMIUM of all things has a bug that
	screws that up
*/

#inner-body,
#inner-body a,
#inner-body details, 
#inner-body nav > p > label::before,
#inner-body .art-date {
	transition: all .2s;
}

/* desktop */
/* let's see how it works with only this */
@media (min-width: 961px) {
	html {
		line-height: 1.7em;
	}

	body > #inner-body > #main-container {
		width: 900px;
	}

	footer {
		position: absolute;
		bottom: 0;
		left: 0;
	}

	.img-container > img {
		max-width: 50%;
	}
}
