@import url(reset.css);

* {
	--theme-background: #222;
	--theme-text-color: white;
	--theme-background-accent: #0047AB url("../img/background.png");
	--theme-background-accent-color: #0047AB;
	--theme-font-family: Consolas, monospace;
	--theme-font-size: .8em;

	--page-max-width: 1400px;
	--page-preview-max-width: 800px;
}

html {
	background: var(--theme-background);
	color: var(--theme-text-color);
	font-family: var(--theme-font-family);
	font-size: var(--theme-font-size);

	scrollbar-color: var(--theme-background-accent-color) var(--theme-background);
}

::-webkit-scrollbar {
    background: var(--theme-background);
}

::-webkit-scrollbar-thumb {
    background: var(--theme-background-accent);
}

/*
** Header
*/

header.pageHeader {
	position: fixed;
	width: 100%;
	top: 0;
	padding: 0 .5em;
	height: 2em;
	background: var(--theme-background-accent);
	z-index: 100;
	transition: transform 0.3s;
	overflow-y: scroll;
}

header.pageHeaderHidden {
	transition: transform 0.3s;
	transform: translateX(calc(100% - 3.5em));
	height: 2em;
	overflow: hidden;
}

header.pageHeader + main {
	transition: padding-top 0.3s;
	padding-top: 2em;
}

header.pageHeaderHidden + main {
	padding-top: 0;
}

header.pageHeader::-webkit-scrollbar {
	display: none;
}

header.pageHeader > nav {
	display: inline;
}

header.pageHeader > nav > a {
	display: inline-block;
	height: 2em;
	line-height: 2em;
	padding: 0 .8em;
	color: var(--theme-text-color);
	text-align: center;
}

header.pageHeader > nav > a:not(:any-link), header.pageHeader > nav > a:any-link:hover {
	transition: background-color 0.15s;
	background-color: rgba(255,255,255,.2);
}

header.pageHeader > nav > a:hover, header.pageHeader > nav > a:visited {
	text-decoration: none;
}

header.pageHeader > img {
	height: 2em;
}

#signature {
	cursor: pointer;
}

/*
** Main page content
*/

h1, h2, h3, h4, h5, h6 {
	font-weight: bold;
}

h1 {font-size: 2em; line-height: 2em;}
h2 {font-size: 1.5em; line-height: 1.5em;}
h3 {font-size: 1.17em; line-height: 1.17em;}

i {font-style: italic;}
b {font-weight: bold;}

.pageDescription {
	padding: 0 1em 1em 1em;
}

.pageParallax {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
}

@media(min-width: 750px) {
	.pageParallax { min-height: 40vh; }
}
@media(max-width: 750px) {
	.pageParallax { min-height: 100vh; }
}

.pageParallax > img {
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

.pageParallax, .pageWrapper {
	background: url("../img/test.png");
	background-attachment: fixed;
	background-position: center;
	background-repeat: repeat;
}

.pageWrapper {
	width: calc(100% - 2em);
	max-width: var(--page-max-width);
	margin: 0 auto 4em auto;
	background: var(--theme-background)
}

.pageSection {
	position: relative;
	padding-bottom: 1em;
}

.pageSection p + p {
	padding-top: .5em;
}

:any-link {
	color: var(--theme-text-color);
}


