/*
 * Reporter CSS
 */


/* ---
 * Site-wide styles 
 * ---
 */
body {
    background-color: #DDD;    
    padding: 5px;
    margin: 0;
    border-top: 5px solid #4e6d8d;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.site {
    background-color: #FFF;    
    border: 1px solid #DDD;
	font-size: 14px;
	width: 90%;
	max-width: 640px;
    padding: 0.5em 1.5em;
	margin: 0 auto;
	line-height: 1.4em;
}

.footer {
    font-size: 0.75em;
    margin: 0.5em 0;
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Gill Sans", "Gill Sans MT", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.3;
    padding: 0.25em 0;
    margin: 0;
}

h1 {
    font-size: 1.75em;    
}

h2 {
    font-size: 1.5em;
    border-top: 1px solid #DDD;
    margin: 1em 0 0;
}

a {
    color: #4e6d8d;
}

a:hover {
    color: #34495e;
}


/* ---
 * Notebook/reporter-specific styles
 * ---
 */
#notebook p {
	margin: 0.75em auto;
}

#notebook ul,
#notebook ol {
	margin-left: 1.35em;
}

#notebook code {
	border: 1px solid #ddd;
	background-color: #eee;
	font-size: 85%;
	padding: 0 0.2em;
}

#notebook pre code {
	border: none;
}

#notebook pre {
	padding: 0.5em;
	max-width: 100%;
	margin: 0.5em 0;
	font-size: 85%;
	line-height: 1.25em;
	overflow-x: auto;
	word-wrap: normal;
	white-space: pre;
}

.reporter-input pre {
	border: 1px solid #ddd;
}

.reporter-output pre {
	border: 1px solid #ddd;
	background-color: #eee;
    display: inline-block;
}

.reporter-cell *::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

.reporter-cell *::-webkit-scrollbar-track {
	background-color: #EEE;
}

.reporter-cell *::-webkit-scrollbar-thumb {
	background-color: #AAA;
}

.reporter-output img {
	display: block;
	max-width: 100%;
	margin: 1em auto;
    padding: 0.25em 0.5em;
    box-shadow: 1px 1px 5px 2px #EEE;
}

.reporter-output table {
	border-collapse: collapse;	
	font-size: 0.85em;
	max-width: 100%;
	min-width: 70%;
	table-layout: fixed;
	text-align: right;
	margin: 1em auto;
}

.reporter-output table,
.reporter-output th,
.reporter-output td {
	border: 1px solid #999;
}

.reporter-output th,
.reporter-output td {
	padding: 0.25em 0.5em;
}

.reporter-output tr:nth-child(even) {
	background-color: #EEE;	
}

.reporter-stderr pre {
	background-color: rgba(255,215,0, 0.5);	
}

.reporter-input,
.reporter-stderr,
.with-code {
    display: none;
}

body.code-toggle-on .reporter-input, 
body.code-toggle-on .reporter-stderr,
body.code-toggle-on .with-code {
	display: block;	
}

body.code-toggle-on .without-code {
	display: none;	
}

/* ---
 * Buttons!
 * Partly derived from Flat UI
 * http://designmodo.github.io/Flat-UI/
 * ---
 */
.btn {
    font-family: "Gill Sans", "Gill Sans MT", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: white;
    background: #34495e;
    display: inline-block;
    border: none;
    padding: 0.5em 0.75em;
    font-size: 1.1em;
    text-decoration: none;
}

.btn:hover, .btn:focus {
    background-color: #4e6d8d;
    color: white;
}

.btn:active, .btn.active {
    background-color: #2c3e50;
    color: rgba(255, 255, 255, 0.75);
}

.btn.disabled, .btn[disabled] {
	background-color: #95a5a6;
	color: white;
}

body.code-toggle-on .btn.code-toggle {
    background-color: #e74c3c;
}

body.code-toggle-on .btn.code-toggle:hover {
    background-color: #ec7063;
}

/* ---
 * Element-specific styles
 * ---
 */

.site-title {
	color: #999;	
}

.site-title a, 
.post-link a {
    text-decoration: none;
}

a.csv-download {
	float: right;
	cursor: pointer;
}

.notebook-date-small {
    color: #999; 
    font-size: 0.8em;
    margin-left: 0.25em;
}

.notebook-date {
    color: "#666";
    font-size: 0.9;
    font-weight: bold;
}

.notebook-last-updated {
    color: #999;
    font-size: 0.8em;
    font-style: italic;
}

.code-toggle {
	cursor: pointer;
    width: 50%;
    text-align: center;
    margin: 0 auto;
    display: block;
}

.intro {
    font-size: 0.9em;
    padding: 0.5em 0;
    margin: 0.5em 0;
    border-bottom: 1px solid #EEE;
}

ul.posts, ul.posts li {
    margin: 0;
    padding: 0;
    list-style: none;
    list-style-position: inside;
}

ul.posts .post-link {
    font-size: 1.25em;
    font-weight: bold;
}

ul.posts .post-marker,
ul.posts .post-date {
    color: #AAA;
    font-size: 0.75em;
    font-weight: normal;
}
ul.posts .post-marker {
    position: relative;
    top: -0.25em;
}

/* ---
 * Media queries
 * ---
 */
@media print {
	tfoot {
		display: none;	
	}
	.code-controls {
		display: none;	
	}	
}
