/*******
 * ALL *
 *******/
html, body {
	background: rgb(63, 75, 33);
	font-family: 'PT Sans', sans-serif;
	/*font-size: 18pt;*/
	font-size: 1.125em; /* 18 / 16 */
}

#wrapper {
	margin: 0 auto;
	background: rgb(242, 232, 220);
	max-width: 2000px;
	min-height: 200px;
}

.clear {
	clear: both;
}

/**********
 * HEADER *
 **********/
header {
	background: rgb(61, 44, 34);
	background: linear-gradient(0deg, rgb(61, 44, 34) 0%, rgb(45, 32, 25) 100%);
	border-bottom: 5px solid rgb(159, 125, 107);
	color: white;
	padding: 4% 2%;
}

header h1 {
	font-family: 'Playball', cursive;
	font-size: 3.5em;
	font-weight: normal;
	color: white;
	text-shadow: 7px 7px 5px black;
	margin: 0;
	position: relative;
	left: 2%;
}

header h1 a {
	color: white;
	text-decoration: none;
}

header h2 {
	font-size: 1.33333333333em; /* 24 / 18 */
	font-weight: normal;
	margin: 2% 0 0 0;
	width: 50%;
	position: relative;
	left: 8%;
}

header nav {
	font-size: 1.11111111111em; /* 20 / 18 */
	display: table;
	float: right;
	position: relative;
	top: -1.5em;
}

header nav ul {
	display: table-row;
}

header nav li {
	display: table-cell;
	padding: 10px;
}

header nav a {
	text-decoration: none;
	color: white;
	padding: 15px;
	border-bottom: 5px solid white;
	position: relative;
	top: 0;

	transition-property: background-color, color, top;
	transition-duration: 0.5s, 0.5s, 0.5s;
}

header nav a:hover {
	background: rgb(159, 125, 107);
	color: rgb(61, 44, 34);
	border: none;
	top: -5px;
}

/****************
 * MAIN CONTENT *
 ****************/

.content {
	padding: 2% 5%;
}

.content h1 {
	font-size: 2em;  /* 36 / 18 */
	margin: 0;
	padding: 0;
	color: rgb(61, 44, 34);;
	font-weight: bold;
}

.content h1 a {
	text-decoration: none;
	color: rgb(61, 44, 34);;
}

.content h1 a:hover {
	color: rgb(159, 125, 107);
}}

.content h2 {
	font-size: 1.33333333333em; /* 24 / 18 */
	font-weight: bold;
	margin-bottom: 2% 0;
	padding: 0;
	color: rgb(61, 44, 34);;
}

.content h3 {
	font-size: 1em;
	font-weight: normal;
	margin: 0;
	margin-left: 10%;
	padding: 0;
	color: rgb(61, 44, 34);;
}

/**********
 * FOOTER *
 **********/
footer {
	font-size: 0.77777777777em;  /* 14 / 18 */
	clear: both;
	background: rgb(136, 157, 89);
	border-top: 5px solid rgb(63, 75, 33);
	color: rgb(61, 44, 34);;
}

footer > div {
	padding: 2% 0 0 0;
}

footer a {
	color: rgb(61, 44, 34);
	text-decoration: none;
}

footer a:hover {
	color: rgb(36, 25, 19);
}

footer ul {
	margin: 0;
	padding: 0;
}

footer li {
	list-style-type: none;
	padding: 0 0 1% 0;
}

.logo {
	float: left;
	width: 170px;
}

.links {
	width: 45%;
	float: left;
	padding-left: 5%;
}

.quote {
	width: 45%;
	float: left;
	padding-right: 5%;
}

/**************
 * ABOUT PAGE *
 **************/

.coursework ul {
	background: rgb(245, 238, 231);
	border: 1px solid rgb(61, 44, 34);
	border-radius: 10px;
	padding: 20px;
}

.coursework li {
	padding: 5px;
	list-style-type: none;
}

.coursework li:before {
	content: '\2713\a0'; /* Checkmark and space */
}

.coursework li.in-progress:before {
	content: '\2014\a0'; /* Dash and space */
}


.coursework > div {
	width: 47%;
}

.comp-sci {
	float: left;
}

.eco {
	float: right;
}

/****************
 * CONTACT PAGE *
 ****************/
.contact-form table {
	width: 100%;
}

.contact-form td {
	padding: 1%;
}

.contact-form td:first-child {
	width: 10%;
}

.contact-form input, .contact-form textarea {
	border: none;
	box-shadow: 5px 5px 5px gray;
	width: 100%;
	padding: 1%;
}

.contact-form button {
	padding: 10px;
	float: right;
	margin: 2%;
}

.required-indicator {
	color: red;
}

/*****************
 * PROJECTS PAGE *
 *****************/
.function-button-group {
	font-size: 1em;
	float: right;
	position: relative;
	width: 40%;
	margin-bottom: -2em;
	top: -2em;
}

.function-button {
	text-align: center;
	color: rgb(61, 44, 34);
	background: rgb(102, 117, 66);
	border: 3px solid rgb(61, 44, 34);
	border-radius: 10px;
	width: 46%;
	height: 2em;
	margin: 2%;
	float: left;
	transition: background-color 0.5s;
}

.function-button:hover, .function-button.selected {
	background: rgb(162, 186, 107);
}

.project-button {
	color: white;
	background: rgb(25, 33, 56);
	border: 5px solid rgb(86, 101, 147);
	box-shadow: 7px 7px 12px black;
	font-size: 1.33333333333em;
	padding: 3%;
	margin: 2%;
	float: left;
	position: relative;
	top: 0;
	transition-properties: box-shadow, top;
	transition-duration: 0.5s, 0.5s;
}

.project-button:hover {
	top: -5px;
	box-shadow: 12px 12px 12px black;
}

fieldset {
	border-radius: 10px;
	clear: both;
	margin: 2% 0;
	position: relative;
}

legend a {
	color: rgb(61, 44, 34);
	font-size: 1.66666666667em;
	text-decoration: none;
	transition: text-shadow 0.2s;
}

legend a:hover {
	text-shadow: 2px 2px 2px gray;
}


/****************
 * PROJECT PAGE *
 ****************/

.project {
	clear: both;
	margin: 2% 0;
}

.project-description {
	float: right;
	width: 50%;
	margin-left: 5%;
}

.project-description p {
	margin: 0 0 5% 0;
}

.preview {
	float: left;
	width: 45%;
}

.preview > div {
	width: 100%;
	padding-bottom: 75%;
	background: white;
	box-shadow: 5px 5px 5px gray;
	background-size: cover;
	transition: background 0.5s;
}

.preview ul {
	padding: 0;
}

.preview li {
	width: 31.22222222222%;
	padding-bottom: 23.4166666667%; /* 0.75 * 31.22222222222 */
	margin: 0 0 0 2%;
	background: white;
	border: 1px solid rgb(61, 44, 34);
	display: block;
	float: left;
	cursor: pointer;
	background-size: cover;
}


.preview li:first-child {
	margin: 0;
}



/*****************
 * BLACKBUG DEMO *
 *****************/

#sbb-canvas {
    background-color: white;
    border: 1px solid rgb(61, 44, 34);
    width: 100%;
}

#sbb-contents-container {
    width: 45%;
    margin: 10px;
    padding: 10px;
    float: right;
}

#sbb-canvas-container {
    width: 45%;
    margin: 10px;
    float: left;
}

.sbb-form-title {
    background-color: rgb(61, 44, 34);
    color: white;
    padding: 5px;
    cursor: pointer;
    border-bottom: 1px solid white;
}

.sbb-form-contents {
    background-color: rgb(159, 125, 107);
    padding: 10px;
    overflow: hidden;
}

.sbb-color-comp {
    width: 50px;
}

.sbb-color-space {
    width: 50px;
    height: 20px;
    background-color: white;
    border: 1px solid rgb(22, 46, 56);
    display: inline-block;
    vertical-align: middle;
}

#canvas-options {
    border-top: 1px solid rgb(22, 46, 56);
    padding-top: 5px;
    margin: 10px;
}

#preset-buttons {
    margin: 10px;
}

.sbb-button {
    border-radius: 20px;
    background-color: rgb(61, 44, 34);
    color: white;
    font-size: 12pt;
    padding: 10px;
}

#sbb-particle-form td {
	padding: 0 5px;
}

#sbb-particle-form input[type="number"] {
	width: 70%;
}

#pf {
    -webkit-transition: 1s height;
    -moz-transition: 1s height;
    -o-transition: 1s height;
    display: none;
    height: 0;
}
#hf {
    -webkit-transition: 1s height;
    -moz-transition: 1s height;
    -o-transition: 1s height;
    display: none;
    height: 0;
}




/**********************
 * OTHER SCREEN SIZES *
 **********************/
@media (max-width: 1000px) {
	header {
		padding: 0;
		border: none;
	}

	header h1 {
		font-size: 3em;
		text-align: center;
		position: static;
	}

	header h2 {
		font-size: 1.2em;
		text-align: center;
		position: static;
		width: 100%;
	}

	header nav {
		float: none;
		position: static;
		width: 100%;
	}

	header nav ul {
		width: 100%;
	}

	header nav li {
		padding: 0;
	}

	header nav a {
		border: 3px solid rgb(242, 232, 220);
		border-left: none;
		position: static;
		display: block;
		text-align: center;
	}

	header nav li:last-child a {
		border-right: none;
	}

	header nav a:hover {
		border: 3px solid rgb(242, 232, 220);
		border-left: none;
	}

	header nav li:last-child a {
		border-right: none;
	}

	.portfolio-title {
		padding: 4% 2%;
	}

	.coursework > div {
		float: none;
		width: 100%;
	}

	.logo {
		width: 119px;
	}

	.function-button-group {
		width: 40%
	}

	.function-button {
		width: 100%;
	}
}

@media (max-width: 850px) {
	#sbb-contents-container {
	    width: 95%;
	    margin: 10px;
	    padding: 10px;
	    float: none;
	}

	#sbb-canvas-container {
	    width: 95%;
	    margin: 10px;
	    float: none;
	}

}

@media (max-width: 750px) {
	.project-description {
		width: 100%;
		float: none;
	}

	.preview {
		width: 100%;
		float: none;
	}
}

@media (max-width: 550px) {
	.links {
		float: none;
		width: 95%;
	}

	.quote {
		float: none;
		width: 95%;
		padding: 5% 0 0 5%;
	}
}

@media (max-width: 490px) {
	html, body {
		font-size: 0.95em;
	}

	header nav {
		font-size: 1em;
	}

	.logo {
		width: 90px;
	}
}

@media (max-width: 350px) {
	header h1 {
		font-size: 2.5em;
	}

	header h2 {
		font-size: 1.066666664em;
	}

	.logo {
		width: 80px;
	}

	.function-button-group {
		font-size: 0.8em;
	}
}
