/*
Theme Name: Political Scrapbook 2014
Theme URI: http://politicalscrapbook.net
Author: Laurence Durnan
Author URI: http://twitter.com/psbookeditor;
Description: Theme for Political Scrapbook
Version: 0.01
License: GNU General Public License
License URI: see license.txt
Tags: coffee, nightshift

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

This theme is the most seamless and minimalistic integration of Twitter Bootstrap Framework into
the _s starter theme from Automattic, the guys behind WordPress.

_s (or Underscores) http://underscores.me/, (C) 2012-2013 Automattic, Inc.

Twitter Bootstrap


*/

/* Import the necessary TK Bootstrap WP CSS additions */
@import url( includes/css/bootstrap-wp.css );



/* My Minimal WordPress Styling comes here */

/* This is a small security for too long strings titles */
body {
	word-wrap: break-word;
	color: #2C2C29;
}

/* Alignment */
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}
.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}
.aligncenter {
	clear: both;
	display: block;
	margin: 0 auto;
}


/* Images and wp-captions should always fit and be responsive */
img {
	display: inline-block;
	height: auto;
	max-width: 100%; /* Shrinks to fit */
}
/* Anything which isn't centred gets set to 100% */
img[class*="wp-image-"].size-full.alignnone {
	width: 100%;
}
img[class*="wp-image-"] {
	margin-top: 10px;
	margin-bottom: 10px;
}



.wp-caption {
	border: 1px solid #ccc;
	margin-bottom: 10px;
	max-width: 100%;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 0 10px;
}
.wp-caption.aligncenter {
	margin-bottom: 10px;
}
.wp-caption img[class*="wp-image-"] {
	display: block;
}
.wp-caption .wp-caption-text {
	text-align: center;
	margin-top: 10px;
}

/* WP Gallery */
.gallery {
	margin-bottom: 1.5em;
}
.gallery a img {
	border: none;
	height: auto;
	max-width: 90%;
}
.gallery dd {
	margin: 0;
}


/* Make sure embeds and iframes fit their containers */
embed,
iframe,
object {
	max-width: 100%;
}


/* Text meant only for screen readers */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
}
.screen-reader-text:hover,
.screen-reader-text:active,
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar */
}


/* Content */
.main-content-inner {
	padding-bottom: 1.5em;
}
.hentry {
	margin: 0 0 1.5em;
}

/* Clearing */
.clear {
	clear: both;
}


/* Here some needed widget styles
* Most widgets are adapted in the file bootstrap-wp.js - and REALLY easy to modify! ;) */
.widget { margin-bottom: 2em; }
.widget_nav_menu ul.sub-menu li, .widget_pages ul.children li { padding-left: 15px; }

/* Hiding the search widget's button in widgets. thats just too old-skool. :) but if you want it back, just delete the next line.
* Note: you can change the whole appearance of the search_form() function in our searchform.php */
.widget_search .search-form input[type="submit"] { display: none; }

/* Make sure select elements fit in widgets */
.widget select {
	max-width: 100%;
}

/* Nested comments? They are threaded and nested already, you just need to add your own styling to finalize!
* For example with some margin, like the line below ;) Delete, modify, change classes in HTML if you desire another style */
.comment .children { margin-left: 1.5em; }

/*
 == Quick CSS styling tips ==

 You can start off in a rough direction with some minimal styles.
 See below for some tips. ;)


 == Want to have the whole site wrapped? ==

 Just fill the .container class with some background color to have a the whole site "wrapped".
 This works so easy because every main part is wrapped only once into a container class by bootstrap.
 Try out by decommenting the next line and go from there.

 .container { background: #f9f9f9; border-right: 1px solid #eee; border-left: 1px solid #eee; }


 == Want to wrap just the content and sidebar in Bootstrap style? ==

 That one is a great example to show that some things are much cleaner and easier to do via just adding some HTML classes.
 In this case, we will add just one CSS class "panel", look for example at the beginning in content.php!


 == Infinite Scrolling by Jetpack ==
 You can enable this cool feature by simply decommenting the lines below and make sure you use the same classes on the right place in your html..

/* Globally hidden elements when Infinite Scroll is supported and in use.
* Older / Newer Posts Navigation (the pagination, must always be hidden), Theme Footer only when set to scrolling.. */

/*
.infinite-scroll .page-links,
.infinite-scroll.neverending .site-footer {
	display: none;
}
*/

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before */

/*
.infinity-end.neverending .site-footer {
	display: block;
}
*/

/* Hey, if you don't need my comments anymore, just delete me! :)  */


/* BELOW IS JASNY STUFF */

html, body {
	height: 100%;
}
body {
	padding: 50px 0 0 0;
}

.navmenu {
	padding-top: 50px;
}

.navbar {
	display: block;
	text-align: center;
}

#psbook-app-menu {
/*	color:white;
	background-color: #2c2c29; */
}

.psbook-offcanvas-menu li a { /* fix important, and consistency of name w/ above */
/* color:white !important; */
}

.navbar-brand {
	display: inline-block;
	float: none;
}

header.page-header {
	margin-top:0;
	margin-bottom:0;
	border-style:none
}

.navbar-toggle {
	position: absolute;
	float: left;
	margin-left: 15px;
}

.container { max-width: 992px; }

.sidebar-padder { min-width: 300px !important; } /* Make sure our ads fit */


/* ********************* */
/* **** FOOTER META **** */
/* ********************* */

a.more-link {
	display: block;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 18px;
	margin-bottom: 40px;
}
/* Hide stuff front home front <<< NEEDS TO BE DONE IN PHP */
body.home div div #content article footer.entry-meta { display:none; }

.entry-meta { color:grey; font-size:14px; }
footer.entry-meta { margin-top:10px; }
footer.entry-meta a[rel~="tag"] {
	font-size: 11px;
	display: inline-block;
	text-transform: uppercase;
	color: white;
	background-color: #B4B4B4;
	padding: 2px 3px 2px 2px;
	line-height: 100%;
	border-radius:2px;
}

/* *************** */
/* **** FONTS **** */
/* *************** */

body {
	font-size: 16px;
	line-height: 19px;
}

.ps-quote-smaller {
	font-weight:bold;
	font-size:20px;
	line-height: 22px;
}

.ps-quote-standard {
	font-weight:bold;
	font-size:22px;
	line-height: 25px;
}

.ps-quote-bigger {
	font-weight:bold;
	font-size:24px;
	line-height: 27px;
}


/* http://www.fontspring.com/fonts/typodermic/steelfish?utm_source=fontsquirrel.com&utm_medium=download_link&utm_campaign=steelfish */
/* http://www.fontspring.com/blog/fixing-ie9-font-face-problems */
@font-face {
	font-family: Steelfish;
    src: url('//politicalscrapbook.net/wp-content/themes/psbook-2014/includes/font/steelfish_eb-webfont.eot');
    src: url('//politicalscrapbook.net/wp-content/themes/psbook-2014/includes/font/steelfish_eb-webfont.eot?#iefix') format('embedded-opentype'),
         url('//politicalscrapbook.net/wp-content/themes/psbook-2014/includes/font/steelfish_eb-webfont.woff') format('woff'),
         url('//politicalscrapbook.net/wp-content/themes/psbook-2014/includes/font/steelfish_eb-webfont.ttf') format('truetype'),
         url('//politicalscrapbook.net/wp-content/themes/psbook-2014/includes/font/steelfish_eb-webfont.svg') format('svg');	
}


h1.page-title {
	font-family:Steelfish;
	text-transform:uppercase;
	line-height:103%;
	margin: 0px 0 10px 0;
}

a:hover, a:active, a:focus { text-decoration: none}
h1.page-title a { color: #2C2C29;}
time.entry-date {
	text-transform: uppercase;
	color: grey;
	font-size:16px;
}
header.page-header div.entry-meta { margin-bottom: 10px; }

.entry-content h2 {
	18px Helvetica, Arial, sans;
	margin-top:0;
	font-weight:bold;
}

blockquote p br {
	margin-bottom:100px;
}

body.archive div div div div header h1.page-title { color:red; }

/* ********************** */
/* **** SOCIAL STUFF **** */
/* ********************** */

.psbook-social-bar { width:100%; display:table; margin:0 0 0 0; } /* table wrapper for whole share bar */
.psbook-share { color:white; text-align: center; } /* Generic social share button */
.psbook-social-bar .psbook-share { width: 50%; padding:10px; display:table-cell; border-radius:4px; color:white;}
.psbook-share-spacer { width:5px; }

/* The background color for any social share button */
.psbook-share-tw { background-color: #55acee; }
.psbook-share-fb { background-color: #3d539f; }
.psbook-share-gp { background-color: #dd4b39; }

/* The icons */
.psbook-share-icon { height:23px; display: inline-block; vertical-align: middle; }
.psbook-share-tw .psbook-share-icon { width:28px; background-image: url('http://politicalscrapbook.net/wp-content/themes/psbook-2014/includes/img/psbook-share-tw-23.png'); }
.psbook-share-fb .psbook-share-icon { width:23px; background-image: url('http://politicalscrapbook.net/wp-content/themes/psbook-2014/includes/img/psbook-share-fb-23.png'); }

/* The text */
.psbook-share-text { vertical-align: middle; margin-right: 5px; }

/* ************************* */
/* **** IMAGES & EMBEDS **** */
/* ************************* */

img[width="595"] { 
    width:100%;
}


img[width="600"] { 
    width:100%;
}

img.size-full { margin-top:0; margin-bottom: 0; }


/* ****************** */
/* **** COMMENTS **** */
/* ****************** */



/* ***************************** */
/* **** ADVERT PLACEHOLDERS **** */
/* ***************************** */


/*
	MS Top banner 728 x 90
	MS rectangle 300 x 250
	MS half page 300 x 600
	MS skyscraper 160 x 600
*/

.leaderboard {
	width:728px;
	height: 90px;
	float:right;
}

.rectangle {
	width:300px;
	min-height:250px;
	max-height:600px; /* Can expand to be half page */
	margin:0 auto;
}

.skyscraper {
	width:160px;
	height:600px;
}

.mobile-banner {
	min-width:300px;
	max-width:320px;
	height:50px;
	margin:0 auto 15px auto;
}

.mobile-300 {
	width:300px;
	height:50px;
}

.mobile-320 {
	width:320px;
	height:50px;
}

.leaderboard.ms {
	float:right;
}


/* ************************* */
/* **** BUTTON SPINNERS **** */
/* ************************* */

/* http://jsfiddle.net/AndrewDryga/GY6LC/ */

.glyphicon-spin {
    -webkit-animation: spin 1000ms infinite linear;
    animation: spin 1000ms infinite linear;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}
@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

.spinner {
  display: inline-block;
  opacity: 0;
  max-width: 0;

  -webkit-transition: opacity 0.25s, max-width 0.45s; 
  -moz-transition: opacity 0.25s, max-width 0.45s;
  -o-transition: opacity 0.25s, max-width 0.45s;
  transition: opacity 0.25s, max-width 0.45s; /* Duration fixed since we animate additional hidden width */
}

.has-spinner.active {
  cursor:progress;
}

.has-spinner.active .spinner {
  opacity: 1;
  max-width: 50px; /* More than it will ever come, notice that this affects on animation duration */
}

/* ******************** */
/* **** RESPONSIVE **** */
/* ******************** */

@media (min-width: 1px) {
	.navbar-toggle { display: block !important; }

	/* DISPLAY */
	#masthead { display:none; }
	aside { display:none; }
	.site-navigation-inner .navbar { display:none; }
	#psbook-app-bar { display:block; margin-bottom: 0; }
	.psbook-social-bar .psbook-share-gp { display: none; }

	/* POSITION */
	#psbook-app-bar .navbar-brand { float:right; }
	#psbook-app-bar .navbar-brand img { width:230px; }

	/* STYLING */
	h1.page-title { font-size:60px;}
	#ad-comments-rectangle { display:none; }
	footer.site-footer { font-size:11px; color:gray; }
	h2.comments-title { font-size:20px; }
}

@media (min-width: 500px) {
	#psbook-app-bar .navbar-brand { float:none; }
	#psbook-app-bar .navbar-brand img { width:auto; }
}


/* Overriding setting in bootstrap.css */
@media (min-width: 768px) { .container { width: 100%; } }

/* Desktop */
@media (min-width: 992px) {
	body { padding: 0; background-color: #2C2C29; }
	.main-content { background-color:white; }

	.navmenu { padding-top: 0; display:none; }

	/* DISPLAY */
	#masthead { display:block; }
	.site-navigation-inner .navbar { display:block; }
	#psbook-app-bar { display:none !important; }
	aside { display:block; }

	/* STYLING */
	#masthead { margin:15px auto; padding:0; }
	#psbook-masthead-logo { float:left; margin-top:15px; }
	.site-navigation-inner { padding:0; }
	.site-navigation-inner .navbar { margin-bottom: 0;}
	.site-navigation-inner .navbar div ul a { font-weight: bold;}
	.main-content { border-radius: 4px; padding-top:15px;}
	.mobile-banner { display:none; }
	/* body.archive div div div div header h1.page-title { font-size:50px; } */
	h1.page-title { font-size:65px;}
	footer.site-footer { color: white; margin-top: 5px;}
	h2.comments-title { font-size:24px; }

	/* Home page titles and image widths */
	/* body.home div div #content article header h1 { font-size:50px; line-height:60px;} */
	body.home div div #content article div.entry-content p img { height: auto; max-width: 500px; }

	/* .psbook-social-bar .psbook-share-gp { display: table-cell; } */
}

table.ps-table, table.ps-table tr td, table.ps-table tr th {
	border: 1px solid black;
}
table.ps-table tr td, table.ps-table tr th {
padding: 5px 5px 5px 5px;
font-size:12px;
line-height:100%;
vertical-align: top;
}


p#comment-par { margin-bottom:0px; }
#comment { font-size:16px; }
#comment-chars {
	float:right;
	font-size:13px;
}
.comment-chars-warning {
	font-weight: bold;
	color:red;
}
p.form-allowed-tags {margin-top: 10px;}

.psbook-modal-title { font-size:30px; font-weight: bold; line-height: 100%; margin-bottom:20px; }
#psbook-modal-twitter-button { margin-top:20px; }
.modal-backdrop { opacity:0.9 !important; }

.click-me { font-weight: bold; }