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

body {
	background-color: #DBE6EC;
	font-family: "Open Sans", sans-serif;
}

h1,h2,h3 {
	font-family: "Roboto", sans-serif;
}

table,th,tr,td {
	border: 1px solid #a9a9a9;
	border-collapse: collapse;
}

th {
	background-color: #cfcfcf;
}

ul {
	list-style-type: square;
	list-style-position: outside;
	margin-left: 1em;
	padding-bottom:1em;
}

ul ul {
	list-style-type: circle;
	padding-bottom: 0;
}

ol {
	list-style-position: outside;
	margin-left: 1em;
	padding-bottom:1em;
}

blockquote {
	border-top: 1px solid #a9a9a9;
	border-bottom: 1px solid #a9a9a9;
	padding: 5px;
	margin: 0 auto 1em auto;
	width: 100%;
	max-width: 700px;
}

blockquote p {
	padding-bottom: 0 !important;
}

.post_tag {
	display: inline-block;
	padding: 4px 8px;
	font-size: 12px;

	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;

	color: #35b0f8;
	background-color: #c4e8fd;
}

.post_tag:hover {
	text-decoration: underline;
}

#footer {
	position: relative;
	top: 5px;
	font-size: 0.6em;
	text-align: center;
}

.content a {
	text-decoration: none;
}

.content a > h2 {
	color: black;
}

#markdown-toc ul {
	margin-left: 3em;
	font-size: 0.9em;
}

ul#markdown-toc {
	margin-left: 3em;
	font-size: 1em;
}

a:link, a:visited, a:hover {
	color: #2A94D6;
}

a:active {
	color: #4CB6F8;
}

.header {
	display: block;
	text-align: center;
	color: #FFFFFF;
	background-color: #2A94D6;
	border-bottom: 2px solid #888888;

	text-shadow: 2px 2px 2px #444444;

	padding-bottom: 5px;

	background: #2A94D6; /* Old browsers */
	background: -moz-radial-gradient(bottom center, ellipse cover,  #5CC0F9 0%, #2a94d6 100%); /* FF3.6+ */
	background: -webkit-gradient(radial, bottom center, 0px, center center, 100%, color-stop(0%,#5CC0F9), color-stop(100%,#2a94d6)); /* Chrome,Safari4+ */
	background: -webkit-radial-gradient(bottom center, ellipse cover,  #5CC0F9 0%,#2a94d6 100%); /* Chrome10+,Safari5.1+ */
	background: -o-radial-gradient(bottom center, ellipse cover,  #5CC0F9 0%,#2a94d6 100%); /* Opera 12+ */
	background: -ms-radial-gradient(bottom center, ellipse cover,  #5CC0F9 0%,#2a94d6 100%); /* IE10+ */
	background: radial-gradient(ellipse at bottom center,  #5CC0F9 0%,#2a94d6 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5CC0F9', endColorstr='#2a94d6',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */

}

.nav {
	display: block;
	height: 30px;
	line-height: 30px;
}

.article {
	display: block;
	border-bottom: 2px solid #AAAAAA;
	margin: 0 0 5px 0;
	padding: 0 10px;
}

.article p {
	padding-bottom:1em;
}

.postinfo {
	margin-top: 2px;
	font-size: 60%;
	color: #A6A6A6;
}

.math {
	font-family: "Times New Roman", serif;
}

#pagination {
	text-align: center;
}

/*******RECOMMENDED POSTS*********/

.content > h1, .content > p {
	margin-left: 10px;
}

.recommended {
	display: block;
	border-bottom: 2px solid #AAAAAA;
	margin: 0 0 5px 0;
	padding: 0 10px 0 10px;
	height: 310px;
	overflow-y: hidden;
	overflow-x: scroll;
	white-space: nowrap;

	-webkit-overflow-scrolling: touch;
}

.recommendation {
	display: inline-block;
	width: 280px;
	height: 290px;
	white-space: normal;
	vertical-align: top;
	border: 1px solid #AAA;
	border-radius: 10px;
	padding: 5px;
}

.recommendation h3 {
	color: black;
}

.recommendation:hover h3 {
	color: #666;
}

.recommendation img {
	height: 200px;
	max-width: 100%;
	object-fit: contain;
	margin: 0 auto;
}

.recommendation .under {
	padding-top: 10px;
	border-top: 1px solid #AAA;
}



/*******GFYCAT RESPONSIVE DESIGN FIX*********/
.media-flex {
    position: relative;
    height: 0px;
}

.media-flex .gfyitem > div,
.media-flex .gfyitem .gfyPreLoadCanvas,
.media-flex .gfyitem .gfyVid,
.media-flex .gfyitem  .gfyGif {
    position: absolute !important;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
}

/*******YOUTUBE RESPONSIVE DESIGN FIX*********/
.video-center {
	max-width: 560px;
	margin: 0 auto;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px; height: 0; overflow: hidden;
}
 
.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*******BEGIN MOBILE CONTENT*******/

.nav#mobile {
	display: block;
	cursor: pointer;
}

.nav#desktop {
	display: none;
}

.content {
	display: block;
	margin: 0 auto;
	width: 100%;

	background-color: #F0F1F2;
	border-left: 0;
	border-right: 0;
	border-bottom: 1px solid #AAAAAA;
	box-shadow: 0 0 80px rgba(170, 170, 170, 1); 
}

#navlinks {
	display: none;
	background-color: #1983C5;
}

.navlink {
	cursor: pointer;
	height: 25px;
	line-height: 25px;
}

.navlink:hover {
	color: #CACACA;
}

.nava:link, .nava:visited, .nava:hover {
	color: #ffffff;
	text-decoration: none;
}

.nava:active {}

/*******BEGIN DESKTOP CONTENT*******/
@media all and (min-width: 400px) {
	.nav#mobile {
		display: none;
	}

	.navlink {
		display: inline-block;
		width:30%;
		height:100%;
	}

	.nav#desktop {
		display: block;
	}
}
@media all and (min-width: 925px) {
	.content {
		width: 925px;
		border-left: 1px solid #AAAAAA;
		border-right: 1px solid #AAAAAA;
	}
}