@import url('//fonts.googleapis.com/css2?family=Dosis:wght@400');

* {
	box-sizing: border-box;
}

:root {
	--bg: #1d1b27;
	--bg-highlight: #2d2b57;
	--text-highlight: #fb9e00;
	--text-primary: #e3dfff;
	--text-secondary: #ac65ff;
}

body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text-primary);
	font-family: 'Dosis', sans-serif;
}

h1, h2, h3 {
	margin: 0;
	margin-bottom: 1em;
	font-weight: 400;
	line-height: 150%;
}

h1 {
	font-size: 2.5em;
	color: var(--text-highlight);
}

h2 {
	font-size: 1.5em;
	margin-bottom: 0em;
}

h3 {
	font-size: 0.8em;
	font-weight: 400;
	color: var(--text-secondary);
}

p {
	margin: 0;
	margin-bottom: 1em;
}

a {
	color: var(--text-highlight);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

main {
	overflow: hidden;
	max-width: 640px;
	width: 100%;
	margin: 0px auto;
	padding: 2.2em;
	background: var(--bg-highlight);
	box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.3);
}

article {
	margin-bottom: 3em;
}

article img {
	display: block;
	width: 100vw;
	max-width: 640px;
	height: auto;
	margin-left:-2.2em;
	cursor: pointer;
	transition: filter 300ms;
}

article img:hover {
	filter: brightness(1.5);
}

article pre {
	display: none;
}

footer {
	text-align: center;
	font-size: 0.8em;
}

#lightbox {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	padding: 2em;
	background: rgba(0, 0, 0, 0.7);
	z-index: 9001;
	opacity: 0;
	transition: opacity 300ms;
}

#lightbox.visible {
	display: block !important;
}

#lightbox-pre {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 1em;
	font-size: 1.2em;
}

#lightbox-img {
	width: 100%;
	height: 100%;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

#lightbox-close {
	position: absolute;
	bottom: 3em;
	left: 50%;
	transform: translate(-50%);
	background: var(--bg);
	border: none;
	border-radius: 5px;
	padding: 0.5em 1.5em;
	font-size:1em;
	color: inherit;
	cursor: pointer;
}

#lightbox-close:hover {
	filter: brightness(2);
}

@media (max-width: 800px) {
	#lightbox {
		padding: 0;
	}

	#lightbox-pre {
		font-size: 0.6em;
	}

	#lightbox-close {
		bottom: 1em;
	}
}