/* * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
} */

body {
    font: 15px Verdana, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	tab-size: 4;
	-moz-tab-size: 4;

    margin: 0 auto;
    max-width: 900px;
    min-width: 0;
    padding: 0 10px 25px;

    background-color: #b6d5f2;
}

h2 {
  margin-top: 0.25em;
  padding-top: 0.5em;
}
nav a {
  margin-left: 20px;
}

/* This is the surrounding layout, where rest of page elements sit */
.outside
{
    /* min-width: 700px; */
	margin-left: 30px;
	margin-right: 30px;
    margin-top: 20px;
}

/* Really just the 'content' */
.wrapper {
	/* max-width: 1400px; */
    
    padding-top: 10px;
    padding-bottom: 10px;
	padding-left: 40px;
	padding-right: 40px;
    
    background-color: #ffffff; 
}

/* Comments */
.comment {
    background-color: #f0f0f0;
    padding: 20px;
    margin-bottom: 10px;
}

.wrapper td,th {
    padding: 5px;
}

.wrapper th {
    background-color: #f0f0f0;
}
.wrapper td {
    background-color: #e0e0e0;
    text-align: right;
}

/* Special handling for previous posts */

.previous-posts th {
     background-color: white; 
}

.previous-posts td {
    /* background-color: #f0f0f0; */
    background-color: white; 
    text-align: left;
}

.center-image {
    display: block;
    overflow: hidden;
    position: relative;
    text-align: center;
    
    height: 100px; 
}

.center-image img {
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    margin: auto;
    max-height: 100%;
    max-width: 100%;
    position: absolute;
}

/* Top navigation menu bar */
.nav-bar {
    /* max-width: 1400px; */
    
	padding-left: 40px;
	padding-right: 40px;
    padding-top: 10px;
	padding-bottom: 10px;
    margin-top: 0px;
    margin-bottom: 0px;
    
    color: #e0e0e0; 
    background-color: #000000;  
}

ul.nav-bar li {
    display: inline;
    list-style: none;
    list-style-type: none; 
    margin: 10px;
    padding: 2px;
}

/* Using 
https://developer.mozilla.org/en-US/docs/Web/CSS/Descendant_combinator
Decendant combinator */

ul.nav-bar  a {
    color: #ffffff;
	text-decoration: none;   
}

ul.nav-bar  a:hover {
    color: #000000;
	text-decoration: none;   
    background-color: #eee; 
}

blockquote {
    font-style: italic;
}

/* The title toy theory bar */
.title {
    border: 0px;
	padding: 20px; 
    
    margin: 0px;
    
    /* height: 100px; */
    
    color: #ffffff;
    background-color: #85bef2; 
}

/*
.title img {
    display: block;
    height: auto;
	display: block;
	width: 60%;
} */

.align-left {
    display: inline;
    float: left;
    margin-right: 1.625em;
}

.footer{
}

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.float-right {
	float: right;
}

a {
	color: #ec1010;
	text-decoration: none;
}

a:hover {
	color: #800909;
}

header {
	display: flex;
	justify-content: space-between;
	padding: 25px 0;
}

#logo-container {
	flex: 1;
}

#logo {
	height: 40px;
}

header nav {
	text-align: right;
	line-height: 40px;
}

header nav > a {
	display: inline-block;
	padding-left: 12px;
	padding-right: 12px;
	text-decoration: none;
	color: inherit;
}

header nav > a:hover {
	color: #ff3f2c;
}

header nav > a.current {
	font-weight: bold;
}

header nav .new {
	background-color: #ffe300;
	font-size: 75%;
	vertical-align: top;
	padding: 4px 8px;
	border-radius: 1em;
}

header nav .button {
	margin: 0 0 0 10px;
	padding-top: 2px;
	padding-bottom: 2px;
}  

button,
.button {
	border-radius: 2em;
	padding: 10px 20px;
	margin: 15px 0;
	height: auto;
	transition: all .2s;
	text-decoration: none;
	display: inline-block;
	border: 0;
	cursor: pointer;
}

button:hover,
.button:hover {
	transform: scale(1.05);
}

button:active,
.button:active {
	transform: translateY(2px);
}

button.red,
.button.red {
	background-color: #d9552b;
	color: white;
}

button.red:hover,
.button.red:hover {
	background-color: #fd511a;
}

button.blue,
.button.blue {
	background-color: #0082d0;
	color: white;
}

button.blue:hover,
.button.blue:hover {
	background-color: #00aaff;
}

button.gray,
.button.gray {
	background-color: #4c6a79;
	color: white;
}

button.gray:hover,
.button.gray:hover {
	background-color: #4f8098;
}

button.big,
.button.big {
	font-size: 125%;
	text-transform: uppercase;
	font-weight: bold;
	padding: 20px 50px;
	margin-right: 20px;
}

button.disabled,
.button.disabled,
button:disabled,
.button:disabled {
	background-color: #aaa !important;
	color: white !important;
	transform: none !important;
	cursor: not-allowed;
}


p button,
p .button {
	font-size: 18px;
	padding: 12px 30px;
}

article {
  font-size: 16px;
}

h1 {
  font-size: 26px;
}
h2 {
  font-size: 23px;
}

article a:hover {
	text-decoration: underline;
}

/* This is used (for class chroma) for C++ blocks */
pre {
    font-family: 'PT Mono', 'Source Code Pro', monospace;
    padding: 6px 6px; 
    background-color: #f0f0f0; 
    /* font-size: 95%; */
	/*line-height: 1.5em; */
}

/* This is used for single quoted text like `hi` */
code {
	font-family: 'PT Mono', 'Source Code Pro', monospace;
	
	/* font-size: 95%; */
	/*line-height: 1.5em; */
    background-color: #f0f0f0; 
}

footer {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
	padding-bottom: 20px;
	line-height: 125%;
}

footer > div {
	width: 50%;
}

#footer-logo {
	float: left;
	max-width: 175px;
	margin-right: 35px;
	vertical-align: middle;
	margin-top: -4px;
}

.copyright {
	text-align: center;
	font-size: 14px;
	color: #000000;
}

@media {
	header {
		flex-direction: column;
	}

	#logo-container {
		text-align: center;
	}

	header nav {
		text-align: center;
	}

	footer {
		flex-direction: column;
		margin-top: 0;
		padding: 20px 0;
	}

	footer > div {
		width: initial;
		text-align: center;
		margin: 10px 0;
	}

	#footer-logo {
		float: none;
		display: block;
		margin: 0 auto 25px;
	}

	.copyright {
		text-align: center;
	}
}
