/* THEMING */ 
p:last-child{margin-bottom:0;}

body {
	background-color: #f2f5fc; /*#000f23*/
	min-width:320px;
}

.btn-anim {
	border-radius: 5px; 
	-webkit-transition: all 0.5s ease;
	transition: all 0.5s ease;
	height: 30px;
	line-height: 30px;
	min-width: 30px;
	font-size: 16px;
	border-width: 0;
	background-color: transparent;
	color: black;
	padding: 1px 0 0; /* Nudge vertical centering... WHY? */
}
.btn-anim:hover, .btn-anim:active {
	border-radius: 15px;
	background-color: black;
	color: white;
}

.btn-facebook { color: rgb(65, 105, 255); background-color: transparent; }
.btn-facebook:hover, .btn-facebook:active  { color: #fff; background-color: rgb(65, 105, 255); }
.btn-reddit { color: rgb(255, 69, 1); background-color: transparent; }
.btn-reddit:hover, .btn-reddit:active  { color: #fff; background-color: rgb(255, 69, 1); }
.btn-twitter { color: rgb(0, 191, 255); background-color: transparent; }
.btn-twitter:hover, .btn-twitter:active { color: #fff; background-color: rgb(0, 191, 255); }
.btn-google-plus { color: rgb(255, 99, 71); background-color: transparent; }
.btn-google-plus:hover, .btn-google-plus:active { color: #fff; background-color: rgb(255, 99, 71); }
.btn-stumble-upon { color: rgb(234, 72, 35); background-color: transparent; }
.btn-stumble-upon:hover, .btn-google-plus:active { color: #fff; background-color: rgb(234, 72, 35); }

/* LAYOUT */
body {
	font-family: 'Helvetica Neue', Arial, sans-serif;
}

.primaryColumn {
	float: left;
	padding-left: 15px;
	padding-right: 15px;
	position: relative;
	min-height:1px;
	margin-bottom:20px;
}

.secondaryColumn {
	float: left;
	padding-left: 15px;
	padding-right: 15px;
	position: relative;
	width: 330px;
	min-height:1px;
	margin-bottom:20px;
}

@media (max-width: 767px) {
	.primaryColumn,.secondaryColumn {
		float:none;
		width:auto;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.primaryColumn {
		width: 420px;
	}
	
	.primaryColumn.columnSwap {
		left:-330px;
	}
	
	.secondaryColumn.columnSwap {
		right: -420px;
	}
}

@media (min-width: 992px) and (max-width: 1199px) {
	.primaryColumn {
		width: 640px;
	}
	
	.primaryColumn.columnSwap {
		left:-330px;
	}
	
	.secondaryColumn.columnSwap {
		right: -640px;
	}
}

@media (min-width: 1200px) {
	.primaryColumn {
		width: 740px;
		margin-right: 100px;
	}
	
	.primaryColumn.columnSwap {
		left:-330px;
	}
	
	.secondaryColumn.columnSwap {
		right: -840px;
	}
}

#header {
	background-color: #3060bf;
	background: -moz-linear-gradient(top,  rgba(117,152,220,1) 1%, rgba(48,96,191,1) 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(1%,rgba(117,152,220,1)), color-stop(100%,rgba(48,96,191,1)));
	background: -webkit-linear-gradient(top,  rgba(117,152,220,1) 1%,rgba(48,96,191,1) 100%);
	background: -o-linear-gradient(top,  rgba(117,152,220,1) 1%,rgba(48,96,191,1) 100%);
	background: -ms-linear-gradient(top,  rgba(117,152,220,1) 1%,rgba(48,96,191,1) 100%);
	background: linear-gradient(to bottom,  rgba(117,152,220,1) 1%,rgba(48,96,191,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7598dc', endColorstr='#3060bf',GradientType=0 );
	color:white;
	padding: 14px 0 0 0;
}

#header a {
	color:inherit;
}

#header .nav-pills > .active > a,
#header .nav-pills > .active > a:hover,
#header .nav-pills > li:not(.disabled) > a:hover {
	padding-bottom:2px;
	border-bottom-width: 3px;
	border-bottom-style: solid;
	border-bottom-color: white;
	background-color: transparent !important;
}

#header .nav-pills > li > a{
    border-radius:0px;
    padding: 4px 3px 5px;
    margin-bottom:5px;
    margin-top: 6px;
	font-size: 16px;
}

#header .nav-pills > li.disabled a {
	color: #ccc;
}

#header .nav-pills > li+li {
	margin-left:16px;
}

#pager {
	text-align:center;
	font-size:0;
}

#pager .nav {
	display:inline-block;
}

#pager .nav-pills > li {
	width: 90px;
}

#pager .nav-pills > li+li {
	margin-left: 0;
}

#pager .nav-pills > li > a {
	display:inline-block;
}

#followButtons {
	height:20px;
	margin-bottom:6px;
	text-align:right;
}

#followButtons>*+* {
	margin-left: 4px;
}

.rssButton {
	display:inline-block;
	height:20px;
	line-height:20px;
	vertical-align:top;
	color:white;
	border-radius: 3px;
	font-family: 'Helvetica Neue', Arial, sans-serif;
	font-size: 11px;
	font-style: normal;
	font-variant: normal;
	font-weight: bold;
	padding: 0 6px;
	background: rgb(255,174,22);
	background: -moz-linear-gradient(top, rgba(255,174,22,1) 0%, rgba(255,93,16,1) 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,174,22,1)), color-stop(100%,rgba(255,93,16,1)));
	background: -webkit-linear-gradient(top, rgba(255,174,22,1) 0%,rgba(255,93,16,1) 100%);
	background: -o-linear-gradient(top, rgba(255,174,22,1) 0%,rgba(255,93,16,1) 100%);
	background: -ms-linear-gradient(top, rgba(255,174,22,1) 0%,rgba(255,93,16,1) 100%);
	background: linear-gradient(to bottom, rgba(255,174,22,1) 0%,rgba(255,93,16,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffae16', endColorstr='#ff5d10',GradientType=0 );
}

.rssButton:hover {
	text-decoration:none;
}

#tagline {
	font-family: 'Helvetica Neue', Arial, sans-serif;
	font-size: 18px;
	text-align:center;
	height:26px;
}

#logo {
	font-family: 'Nova Mono', sans-serif;
	display:block;
	text-decoration:none;
	text-align:center;
}

#logo span {
	display:block;
	margin:0;
	text-align:left;
}

#logo span:nth-child(1) {
	font-size:24px;
	line-height: 20px;
	text-transform:lowercase;
}

#logo span:nth-child(2) {
	font-size:44px;
	line-height: 34px;
	text-transform:uppercase;
}

#whiteboardContainer {
	margin: 0;
	background-color: white;
	padding: 15px 0;
}

a.jumpLink {
	text-decoration: none;
	color: inherit;
}

#title {
	margin-bottom:8px;
}

#title h1 {
	margin: 0;
	font-size: 28px;
	line-height: 30px;
	margin-bottom: 3px;
}

#title .socialButtons {
	margin: 0 0 0 8px;
	padding: 0 0 0 6px;
}

#whiteboard {
	width:100%;
	border-style:none;
	border:0;
	display:block;
	overflow:hidden;
}

#bottomContainer {
	margin-top:20px;
}

#caption {
	font-size: 18px;
}

#commentary {
	font-size: 16px;
}

#sourceContainer {
	margin-bottom:20px;
}

#sourceContainer h3 {
	margin:0 0 8px;
}

#sources {
	counter-reset:item;
	padding-left: 2em;
	text-indent: -1em;
	margin-bottom:0;
}

#sources>li {
	counter-increment:item;
	list-style:none outside;
}

#sources>li:before {
	content:"[" counter(item) "]";
	display:inline-block;
	width: 1em;
}

#tableOfFigures {
	display:block;
	padding:20px 0;
	margin:0;
	list-style-type: none;
}

#tableOfFigures>li {
	width:208px;
	height:156px;
	display:block;
	float:left;
	position:relative;
	overflow:hidden;
}

#tableOfFigures>li>a {
	display:block;
	width:100%;
	margin:0;
	padding:0;
	color:white;
}

#tableOfFigures>li img {
	margin:auto;
	position:absolute;
	top:0;
	left:0;
	right:0;
	bottom:0;
	display:block;
	width:100%;
}

#tableOfFigures>li .figureTitle, #tableOfFigures>li .figureTopBar {
	position: absolute;
	right:0;
	left:0;
	background-color: rgba(48, 48, 48, 0.6);
}

#tableOfFigures>li .figureTopBar {
	padding: 4px 12px;
	top:-28px;
	-webkit-transition: all 0.15s ease;
	transition: all 0.15s ease;
}

#tableOfFigures>li>a:hover .figureTopBar {
	top:0px;
}

#tableOfFigures>li .figureTitle {
	bottom:0;
	padding: 8px 12px;
	font-size:16px;
}

#tableOfFigures>li .figureLabel, #tableOfFigures>li .figureDate {
	font-size:14px;
}

@media (max-width: 767px) {
	#tableOfFigures {
		padding: 10px 0;
	}
	
	#tableOfFigures>li {
		float:none;
		margin: 10px auto;
		width: 100%;
		height: auto;
	}
	
	#tableOfFigures>li img {
		display:none;
	}
	
	#tableOfFigures>li .figureTopBar, #tableOfFigures>li .figureTitle {
		position: static;
		background-color:white;
		color:black;
	}
	
	#tableOfFigures>li .figureTopBar {
		padding: 8px 12px 2px;
		-webkit-transition: none;
		transition: none;
	}
	
	#tableOfFigures>li .figureTitle {
		padding: 2px 12px 8px;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	#tableOfFigures {
		margin:-48px 0 0 -48px;
	}
	
	#tableOfFigures>li {
		margin:48px 0 0 48px;
	}
}

@media (min-width: 992px) and (max-width: 1199px) {
	#tableOfFigures {
		 margin:-36px 0 0 -36px;
	}
	
	#tableOfFigures>li {
		margin: 36px 0 0 36px;
	}
}

@media (min-width: 1200px) {
	#tableOfFigures {
		margin:-25px 0 0 -25px;
	}
	
	#tableOfFigures>li {
		margin: 25px 0 0 25px;
	}
}

#footerRule {
	margin: 0 0 15px;
}

#footer {
	margin-bottom:15px;
}

#serverError .jumbotron {
	background-color: #3060bf;
	color: white;
	margin-top:30px;
}

/* Ads */
.adInner {
	background-color:rgba(48,96,191,1);
	margin:0 auto;
	text-align: center;
	font-size:0;
}

.rightAdBox .adInner {
	width:300px;
	min-height:250px;
}

#commentaryContainer .rightAdBox {
	margin-bottom:20px;
}

#about .rightAdBox {
	margin-top:20px;
}

@media (max-width: 767px) {
	.rightAdBox {
		margin-left: -15px;
		margin-right: -15px;
	}
	
	#commentaryContainer .rightAdBox {
		margin-top:20px;
	}
}

/* Changes for xs displays */
@media screen and (max-width: 767px){
	#logo span {
		text-align:center;
	}
	#pager {
		text-align:left;
	}
	#pager .nav-pills > li {
		width: auto;
	}
	#pager .nav-pills > li+li {
		margin-left: 16px;
	}
	#title h1 {
		font-size: 22px;
		line-height: 30px;
	}
	#title .socialButtons {
		margin: 0 0 0 2px;
	}
	#title .figureLabel:after {
		content:"\a";
		white-space: pre;
	}
	#followButtons {
		margin-top: 6px;
		text-align:center;
	}
	#commentary, #caption, #sources {
		font-size: 14px;
	}
}
