/* Document */ 

html {
	font-size: 16px;
}

body {
	margin: 0 auto auto auto;
	max-width: 54rem;
	border-top: 0.4em solid #153B2E;
	font-family: "Inter", "Helvetica", "Arial", "Arimo", "Liberation Sans", "Nimbus Sans", sans-serif;
	line-height: 1.65;
}

/* Type */

p {
	font-size: 1em;
}

h1, h2, h3, h4, h5 {
	line-height: 1.15;
}

h1 {
	font-weight: 700;
	margin-top: 0;
	font-size: 1.38em;
}

h2 {
	font-size: 1.3em;
}

h3 {
	font-size: 1.21em;
}

h4 {
	font-size: 1.14em;
}

h5 {
	font-size: 1.07em;
}

small {
	font-size: 0.88em;
}

/* Layout, Colours */

a {
	color: #153B2E;
}

a:visited {
	color: #424242;
}

.active {
	color: #153B2E;
}

footer {
	background: repeat-x url(/static/images/trim.png);
	background-size: 5px;
	border-top: solid 1px #bbbbbb;
	image-rendering: pixelated;
	padding: 1rem;
}

footer a {
	color: #424242;
}

footer small {
	background-color: #fff;
}

header {
	align-items: center;
	display: flex;
	padding: 1rem;
	border-bottom: solid 1px #bbbbbb;
}

header h1 {
	color: #153B2E;
	display: inline-block;
	margin: 0;
}

header h1 a {
	color: #153B2E;
	text-decoration: none;
}

header h1 a:visited {
	color: #153B2E;
}

header img {
	width: 48px;
	height: 48px;
	margin-right: 1rem;
}

img {
    display: block;
    max-width: 100%;
}

main {
	padding: 0rem 1rem 1rem 1rem;
}

main .filter-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

main .filter-bar select {
	height: fit-content;
}

#nav-main {
	border-bottom: solid 1px #bbbbbb;
	padding: 0 0 0 1rem;
}

#nav-main a {
	text-decoration: none;
}

#nav-main ul {
	list-style-type: none;
	padding-left: 0;
}

#nav-main li {
	display: inline-block;
	margin-right: 1rem;
}

#nav-mobile {
	display: none;
	border-bottom: 1px solid #bbbbbb;
	padding: 0 1rem 0 1rem;
}

#nav-mobile ul {
	padding-left: 0;
}

#nav-mobile li {
	display: block;
	margin: 1rem 0 1rem 0;
	text-decoration: none;
}

table {
	width: 100%;
	border-collapse: collapse;
}

td, th {
  border: 1px solid #bbbbbb;
  text-align: left;
  padding: 0.6rem;
}

tr:nth-child(even) {
  background-color: #dddddd;
}

#tags {
	display: flex;
	align-items: center;
	margin: auto;
}

#tags ul {
	list-style-type: none;
	padding-left: 0.2rem;
}

#tags li {
	display: inline-flex;
}

#btn-mobile {
	display: none;
	height: 100%;
	cursor: pointer;
}

iframe {
	border: none;
	width: 100%;
	height: 100vh;
}

small {
	color: #424242;
}

.pagination {
	display: flex;
	justify-content: space-between;
	margin: 0.4rem 0 0.6rem 0;
}

.posts {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: space-between;
}

.post-index h3 {
	margin-top: 0;
}

.post-index p {
	margin-top: 0;
}

.post-title  {
	margin-bottom: 0;
}

.songs {
	display: flex;
	flex-wrap: wrap;
}

.songs article {
	width: 50%;
}

.songs article audio {
	display: block;
	width: 100%;
	background: none;
}
.reviews {
	display: flex;
	flex-wrap: wrap;
}
.reviews article {
	width: 50%;
}
.reviews article img {
	max-height: 180px;
	max-width: 120px;
	float: left;
	border: 1px solid #000000;
	margin-right: 0.8rem;
}
.video {
	display: flex;
	align-items: start;
}
.video-cover {
	max-width: 8rem;
	border: 1px solid #000;
	margin: auto 1rem auto 0;
}

.float-right {
	float: right;
}

.gifs {
	display: flex;
	align-items: center;
}

.gifs img {
	height: 100%;
}

/* Mobile */

@media screen and (max-width: 1000px) {
	body {
		max-width: 100%;
		margin: 0;
		padding: 0;
	}

	header {
		display: flex;
		justify-content: space-between;
	}

	#nav-main {
		display: none;
	}

	#btn-mobile {
		display: block;
	}

	.posts article {
		width: 100%;
	}

	.reviews article {
		width: 100%;
	}
}

/* Dark Mode */

@media (prefers-color-scheme: dark) {
	body {
		background-color: #000000;
		border-top: 0.4em solid #88BEC3;
	}
	a {
		color: #88BEC3;
	}
	a:visited {
		color: #969696;
	}
	.active {
		color: #88BEC3;
	}
	footer {
		background: repeat-x url(/static/images/trim_dark.png);
		background-size: 5px;
		border-top: solid 1px #444444;
	}
	footer a {
		color: #969696;
	}
	footer small {
		background-color: #000;
	}
	h2 {
		color: #fff;
	}
	h3 {
		color: #fff;
	}
	h4 {
		color: #fff;
	}
	h5 {
		color: #fff;
	}
	header {
			border-bottom: solid 1px #444444;
	}
	header h1 {
		color: #88BEC3;
	}
	header h1 a {
		color: #88BEC3;
	}
	header h1 a:visited {
		color: #88BEC3;
	}
	li {
		color: #fff;
	}
	#nav-main {
		border-bottom: solid 1px #444444;
	}
	#nav-mobile {
		border-bottom: 1px solid #444444;
	}
	p {
		color: #fff;
	}
	small {
		color: #969696;
	}
	span {
		color: #fff;
	}
	td {
		color: #fff;
	}
	td, th {
	border: 1px solid #444444;
	}
	th {
		color: #fff;
	}
	tr:nth-child(even) {
  	background-color: #222222;
	}
}