* {
	margin: 0px;
	padding: 0px;
}

html {
	font-family: 'ArialNarrow', 'Arial 	Narrow', 'Arial', 'Helvetica', sans-serif;
	font-weight: 100;
/*	font-size: 28px;
	line-height: 32px;*/
}

body {
	/*background-color: #bfffff;*/
	/*background-color: black;*/
	/*background: white;*/
	overflow: auto;
	position: relative;
	min-width: 100vw;
	min-height: 100vh;

	font-size: 24px;
	line-height: 30px;	
}

/*body.red {
	background: rgb(255,0,0);
}

body.blue {
	background: rgb(0,0,255);
}

body.green {
	background: rgb(0,255,0);
}

body.yellow {
	background: rgb(255,255,0);
}*/



a {
	/*font-family: 'Bodoni 72', 'Helvetica', sans-serif;
	font-family: 'Arial', 'Helvetica', sans-serif;	*/
	/*font-size: 31px;*/
	color: red;
	text-decoration: none;

}

a:hover {
	/*font-family: 'Arial', 'Helvetica', sans-serif;	*/
	color: black;
}

h1 {
	font-size: 2.5em;
	line-height: 1.1em;
	margin-bottom: 20px;


/*	font-size: 70px;
	line-height: 80px;*/
    color: black;
/*    -webkit-text-fill-color: white;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: black;*/

    font-weight: normal;

    width: 80%;
    max-width: 800px; 

	/*	
	font-family: 'Arial', 'Helvetica', sans-serif;
	*/
}

h2 {
	font-size: 1em;
	line-height: 1em;
	text-decoration: underline;
	font-weight: bold;
	margin-bottom: 20px;
}

h3 {	
	font-size: 1em;
	line-height: 1em;
	font-weight: bold;
	margin-bottom: 20px;
}

p {
	margin-bottom: 20px;
	position: relative;
}


/* nav */

nav {
	font-size: .75em;
	position: fixed;
	top: 30px;
	right: 30px;
	z-index: 1000000;
	border: 2px solid black;
	box-sizing: border-box;
	background: white;
}

nav ul, nav li{
	list-style-type: none;
	margin: 0px;
}

nav a {
	display: block;
	padding: 0px 20px 0px;	
	text-decoration: none;
}

nav li:first-child a{
	padding-top: 20px;
}

nav li:last-child a{
	padding-bottom: 20px;
}

nav a::before {
	font-size: 1.25em;
	padding-right: 10px;	
}

nav.home a::before {
	content: '→';
}

nav.sub a::before {
	content: '↩';
}


/* pages */

.page {
	width: 80vw;
	padding: 20px 20px 40px;
	background-color: white;
	position: absolute;
	left: 100px;
	top: 100px;
	box-sizing: border-box;
	border: 2px solid black;
	cursor: pointer;
	z-index: 5;
	transition: background 1000ms ease;
	margin-bottom: 200px;
}

.page:nth-child(2) {
	top: 80px;
	left: 80px;

	z-index: 4;
}

.page:nth-child(3) {
	top: 60px;
	left: 60px;

	z-index: 3;
}

.page:nth-child(4) {
	top: 40px;
	left: 40px;

	z-index: 2;
}

.page:nth-child(5) {
	top: 20px;
	left: 20px;

	z-index: 1;
}

.page:hover {
	background: rgb(0,0,0);
	color: white;
}

.red .page:hover {
	background: rgb(255,0,0);
}

.blue .page:hover {
	background: rgb(0,0,255);
}

.green .page:hover {
	background: rgb(0,255,0);
}

.yellow .page:hover {
	background: rgb(255,255,0);
}


.page.active, .page.active:hover {
	background: white;
	z-index: 100;
}

.page.active, .page.active:hover {
	cursor: default;
	color: black;
}

.content {
	width: 80%;
	max-width: 800px;
}

.content img {
	width: 100%;
	max-width: 800px;
	height: auto;
	/*filter: grayscale(1);*/
	mix-blend-mode: screen;
	margin-bottom: -7px;
	transition: 1000ms all ease;
}

.content img:hover {
	mix-blend-mode: normal;
}

.image {
	position: relative;
	background-color: rgb(0,255,255);
	background-color: red;
	margin-bottom: 20px; 
}

.image img.small {
	transform: scale(.5);
	transform-origin: center;
}

/* lists */

ol, ul {
	margin-left: 30px;
	margin-bottom: 20px;
}

ol ol {
	list-style-type: lower-alpha;
}

ul {
	list-style-type: circle;
}

/* hide and show sections */

.shader {
	position: relative;
	margin-bottom: 20px; 
}

hr {
	margin: 20px 0px;
}


.highlight {
	background: yellow;
}

li.highlight {
	display: list-item;
	list-style-type: circle;
}

a.section-link::before, a.arrow::before {
	font-size: 1.25em;
	padding-right: 10px;	
	content: '→';
	text-decoration-color: white;
}


/* two col */

.two-col {
	columns: 2;
}

.col {
	break-inside: avoid-column;	
}

/* three col */

.three-col {
	columns: 3;
}

/* sidebar */

.caption  {
	font-family: Menlo;
	position: absolute;
	width: 25%;
	box-sizing: border-box;
	padding: 0px 20px;
	top: 0;
	right: -25%;

	font-size: .5em;
	line-height: 1.3em;
}

.caption a {
	color: red;
}

/* cursor */

#cursor{
	width: 600px;
	height: 600px;
	position: absolute;
	z-index: 10000;

	mix-blend-mode: screen;
	/*mix-blend-mode: difference;*/
	pointer-events: none;

	background: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%,rgba(0,0,0,0) 50%);	

	transition: opacity 2000ms ease;
}

.red #cursor{
	background: radial-gradient(ellipse at center, rgba(255,0,0,1) 0%,rgba(255,0,0,0) 50%);	
}

.blue #cursor{
	background: radial-gradient(ellipse at center, rgba(0,0,255,1) 0%,rgba(0,0,255,0) 50%);	
}

.green #cursor{
	background: radial-gradient(ellipse at center, rgba(0,255,0,1) 0%,rgba(0,255,0,0) 50%);	
}

.yellow #cursor{
	background: radial-gradient(ellipse at center, rgba(255,255,0,1) 0%,rgba(255,255,0,0) 50%);	
}

/* media queries */

@media (max-width: 1000px) {

	body {
		font-size: 20px;
		line-height: 26px;
	}

	h1 {
		font-size: 2em;
		line-height: 1.1em;
		-webkit-text-stroke-width: 1.5px;
	}

	.page {
		top: 70px;
		left: 70px;
	}

	.page:nth-child(2) {
		top: 50px;
		left: 50px;

		z-index: 4;
	}

	.page:nth-child(3) {
		top: 40px;
		left: 40px;

		z-index: 3;
	}

	.page:nth-child(4) {
		top: 30px;
		left: 30px;

		z-index: 2;
	}

	.page:nth-child(5) {
		top: 20px;
		left: 20px;

		z-index: 1;
	}

	.content {
		width: 70%;
	}

	.caption {
		width: 40%;
		right: -40%;
		font-size: .55em;
		line-height: 1.4em;
		top: 5px;
	}

	nav {
		top: 20px;
		right: 20px;
	}

	
}


@media (max-width: 800px) {
	.page, .page:nth-child(2), .page:nth-child(3), .page:nth-child(4), .page:nth-child(5), .page:nth-child(6) {
		position: relative;
		top: 0px;
		left: 0px;

		margin: 10px;
		width: calc(100% - 20px);
	}

	.content {
		width: 100%;
		display: none;
	}

	.caption {
		position: relative;
		top: 0px;
		left: 0px;
		width: 100%;
		padding: 0px;

		font-size: .75em;
		line-height: 1.5em;
    	margin-bottom: 20px;
    	display: block;
	}

	.page {
		padding-bottom: 0px;
		border-width: 1px;
	}

	h1 {
		font-size: 2em;
		-webkit-text-stroke-width: 1.25px;		
		letter-spacing: .01em;
	}

	.image {
		background-color: transparent;
	}

	.content img {
		mix-blend-mode: normal;
		margin-bottom: 10px;
	}	

	nav {
		top: auto;
		bottom: 20px;
		right: 20px;
		border-width: 1px;
	}

	#cursor{
		width: 100px;
		height: 100px;

	}

	/* active */

	.page.active {
		padding-bottom: 20px;
	}

	.page.active .content {
		display: block;
	}

}