﻿html {
    font-size: 18px;
    font-family: 'Raleway', sans-serif;
    background-image: linear-gradient(to bottom, white 80%, rgba(255,255,255,0)),
        url(media/bluelinespace.png);
    background-size: 100vh 3em, 1px 2em;
	background-position: 0 0, 0 0.555em, 0;
    background-repeat: repeat-x, repeat, repeat-y;
    
    line-height: 2em;
    text-shadow: rgba(0,0,0,0.1) 2px 2px;
}

body {
    margin: 0;
	/* hacky fix for readability issues when the page lines get out of sync */
	background-image: linear-gradient(to bottom,rgba(255,255,255,0),rgba(255,255,255,0.7));
	-webkit-text-size-adjust: none;
}

#wrapper {
	display: flex;
	align-items: stretch;
	flex-direction: row;
	position: relative;
}

#header {
    min-height: 100vh;
    /*border-right: solid 0.5px maroon;*/
    background-image: url(media/textbookmargin.png);
    background-position: right top;
    background-repeat: repeat-y;
	padding-right: 0.8em;
	transition-property: transform, box-shadow;
	transition-timing-function: ease-out;
	transition-duration: .7s;
}

#header h3 {
	transition: opacity .7s ease;
}

#content {
    overflow-y: auto;
    overflow-x: hidden;
}

#content > h1:first-child {
	margin-top: 2.3em;
	margin-bottom: 1.1em;
}

.threem {
    padding: 0 3em;
    border-width: 0.1px;
    border-style: solid;
    border-color: transparent;
	box-sizing: border-box;
}

.threem:before, .threem:after {
    content: '';
    margin-top: 3em;
    display: block;
}

h3 {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0.5em 0 1.8em;
	white-space: nowrap;
}

h1 {
    font-size: 2em;
    font-weight: normal;
}

h1, h2, h3 {
	clear: both;
}

p {
    margin: 2em 0;
}

.noclear > p:after {
	clear: none;
}

P:after {
	clear: both;
	display: block;
	content: '';
}

a {
	text-decoration: none;
	position: relative;
	color: rgb(140, 180, 250);
	font-weight: bold;
	text-shadow: none;
}

 nav a {
	color: #77bbff;
	transition: transform 100ms ease-out;
	border-radius: 5px;
	display: block;
	font-weight: bold;
}

nav a:hover {
	transform: scale(1.1) translateX(0.3em);
}

button {
	background-color: transparent;
	border: none;
	font-size: 1.2em;
	border-radius: 0.3em;
	font-family: 'Oswald', sans-serif;
	color: white;
	background-color: rgb(255, 218, 185);
	transition: property duration timing-function delay;
	line-height: 1em;
	padding-bottom: .2em;
}

button:hover {
	background-color: rgb(255, 180, 170);
}

.headerExpandBtn {
	display: none;
	position: absolute;
	font-weight: bold;
	top: 0.5em;
	left: 0.2em;
	z-index: 6;
}

.headerExpandBtn:before {
	content: '>>';
}

.headerExpandBtn.expanded:before {
	content: '<<';
}

@media screen and (max-width:1000px) {
	html {
		font-size: 4vmin;
	}

	#content {
		padding: 0 1.5em;
	}
	.shrinkImage {
		width: 250px;
	}
}

@media screen and (max-width:1200px) {
	#header {
		position: absolute;
		background-color: white;
		background-image: url(media/textbookmargin.png), linear-gradient(to bottom, white 80%, rgba(255,255,255,0)),
        url(media/bluelinespace.png);
		background-size: auto, 100vh 3em, 1px 2em;
		background-position: right top, 0 0, 0 calc(0.555em - 1px), 0;
		background-repeat: repeat-y, repeat-x, repeat;
		transform: translateX(calc(-100% + 60px));
		
		height: 100%;
	}
	
	#header h3 {
		opacity: 0;
	}
	
	#header.expanded {
		transform: translateX(0);
		box-shadow: rgba(0,0,0,0.3) 2px 2px 8px;
		z-index: 5;
	}
	
	#header.expanded h3 {
		opacity: 1;
	}
	
	#content {
		margin-left: 20px;
	}
	
	.headerExpandBtn {
		display: inline;
	}
	
	
	img.floatingImageLeft, img.floatingImageRight, .floatingImageLeft img, .floatingImageRight img {
		width: 100%;
		max-width: 450px;
		height: auto;
	}

	.hiddenOnMobile {
		display: none !important;
	}
}

.projectItem h3:after {
	display: inline-block;
	border-top: 1px dashed rgba(0,0,0,0.5);
	content: '';
	width: 80%;
	vertical-align: middle;
	margin-left: 1.5em;
}

.floatingImageLeft {
	float: left;
	margin-right: 1em;
}

.floatingImageRight {
	float: right;
	margin-left: 1em;
}

.floatingImageLeft img, .floatingImageRight img {
	display: block;
}

.figCaption {
	display: block;
	color: #666666;
	border: 1px dashed #666666;
	border-top: none;
	background: white;
	font-size: 0.8em;
	text-align: center;
}