
* {
  margin:0;
  padding:0;
}

.clearfix:after {
	content: ".";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
	height: 0;
}
 
.clearfix {
	display: inline-block;
}
 
html[xmlns] .clearfix {
	display: block;
}
 
* html .clearfix {
	height: 1%;
}

body {
  background:#313131;
}

h1,h2,h3,h4 {
  font:bold 1.0em Arial;
}

#content ul {
	margin-left:1.5em;
}

.wrap {
  width:1024px;
  margin:auto;
}

/* header stuff */

.header {
  background:#313131;
  height:150px;
  padding:40px 0px;
}


#logo-container {
  float:left;
  display:inline;
  width:30em;
  height:150px;
  color:#fff;
}

#logo-container h1 {
  text-transform:uppercase;
  font:bold 2.0em Arial;
  margin:0.25em;
}

#logo-container h2 {
  font:normal 0.8em Arial;
  margin:0.25em 0.25em 0.25em 0.7em;  
}


.thoughts #logo-container,
.about #logo-container, 
.work #logo-container,
.research #logo-container {
  color:#000;
}

#nav {
  float:left;
  display:inline;
  position:relative;
  width:250px;
  height:150px;
  list-style-type:none; 
  overflow:hidden;
}

#nav li {
  position:absolute;
  list-style-type:none;
}

#nav a {
  display:block;
  width:100%;
  height:100%;
  color:#fff;
  text-transform:uppercase;
  text-decoration:none;
  font:bold 12px Arial;
  text-indent:2px;
}

#nav a:hover {
  color:#000;
}

/* specify locations of nav elements */

#about {
  left:150px;
  width:50px;
  height:50px;
  background:#81e412;
}

#work {
  left:150px;
  width:50px;
  height:50px;
  background:#00dcff; 
}

#research {
  top:-50px;
  left:150px;
  width:100px;
  height:100px;
  background:#ff9e00;
  visibility:hidden;
}

#thoughts {
  left:150px;
  width:150px;
  height:150px;
  background:#ffef09;
  visibility:hidden;
}

/* set font to black when on curent page */

.thoughts #thoughts a {color:#000;}
.research #research a {color:#000;}
.work #work a {color:#000;}
.about #about a {color:#000;}


/* content */

.mid {
  position:relative;
  margin-top:20px;
}

#content, #right-nav {
  padding:10px;
}

#content {
  position:relative;
  width:613px;
  background:#fff;
  font-size:0.8em;
  font-family:Arial;
}

#content a {
  color:#336699;
  text-decoration:none;
}

#content a:hover {
  text-decoration:underline;
}

#content h3 {
  font-size:1.6em;
  margin:1.5em 0em 0.5em 0;
}

#content h3.first {
  margin-top:0.5em;
}

#content p {
  line-height:1.6em;  
  margin:1em 0em;
}

#content cite {
  display:block;
  margin:0.5em 0em;
  font-style:normal;
}

#content cite .title {
  text-decoration:underline; 
}

#content cite .journal-description {
  font-style:italic;  
}

#content .figure {
  float:right;
  margin:5px;
  width:300px;
  text-align:center;  
}

#content .figure p {
  border-top:2px solid #313131;
  font-size:0.9em;
  font-style:italic;
}

/* right nav */

#right-nav {
  position:absolute;
  right:0;
  top:0;
  width:371px;
}

#right-nav h4 {
  padding:0.5em 0em;
	text-align:center;
  margin-top:10px;
}

#right-nav h4.first {
  margin-top:-10px;  
}

.thoughts #right-nav h4 {background:#ffef09;}
.about #right-nav h4 {background:#81e412;}
.work #right-nav h4 {background:#00dcff;}
.research #right-nav h4 {background:#ff9e00;}

#right-nav ul,
#right-nav li {
  list-style-type:none;
}

#right-nav a {
  display:block;
  font:normal 0.8em Arial;
  text-decoration:none;
  padding:0.5em;
}

.thoughts #right-nav a {color:#ffef09;}
.about #right-nav a {color:#81e412;}
.work #right-nav a {color:#00dcff;}
.research #right-nav a {color:#ff9e00;}

#right-nav li:hover {
  background:#666;
}

.equation {
  font-weight:bold;
  font-style:italic;
}

code {
  color:#339933;
  font-family:Arial;
}

pre { 
  padding:0em 2em;
}

pre code {
	font-family:Courier;
}

/* flickr specific stuff */

#flickr-photos {
  height:174px;  
}

#flickr-photos li {
  float:left;
  display:inline;
  width:75px;
  height:75px;
  padding:2px;
  margin:6px;
}

#flickr-photos a {
  display:block;
  width:75px;
  height:75px;
  padding:0;
}

/* twitter specific stuff */

#twitter-feed p {
  color:#fff;
}

#twitter-feed span {
  display:block;  
  color:#ebebeb;
  text-align:right;
  font:0.7em Arial;  
}

.picture-of-me {
  margin:10px 10px 0px 10px;  
}

/* screenshots for the portfolio */

#content ul.screenshots {
	margin:0;
}

.screenshots li {
	list-style-type:none;
	background:#000;
	padding:5px;
	text-align:center;
	margin-bottom:1em;
}

.screenshots li p {
	color:#ccc;
	font-size:12px;
	text-align:left;
}


/* portfolio */

#content ul.portfolio-tile {
	margin:0;
}

#content .portfolio-tile li {
	float:left;
	display:inline;
	width:276px;
	height:280px;
	background:#ebebeb;
	color:#333;
	margin:10px;
	padding:5px;
	list-style-type:none;
}

#content .portfolio-tile li:hover {
	background:#000;
	color:#00DCFF;
	cursor:pointer;
	cursor:hand;
}

#content .portfolio-tile li h4,
#content .portfolio-tile li p {
	margin:0;
	padding:0;
}

#content .portfolio-tile li h4 {
	margin-top:6px;
	font-size:14px;
	text-transform:uppercase;
}

#content .portfolio-tile li p {
	font-style:italic;
}

#content .portfolio-tile li img {
	width:276px;
	height:238px;
}


