/*
 Theme Name:   BinaryTides
 Theme URI:    http://www.binarytides.com
 Description:  BinaryTides Theme
 Author:       Silver Moon
 Author URI:   http://www.binarytides.com
 Template:     shellviz
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  binarytides
*/ 

/*
    No hyphenation PLEASE
    On mobile devices its very annoying
*/
* {
    hyphens:none;
}

body {
	background-color:transparent;
	font-family: 'Noto Sans', 'Roboto', sans-serif;
	color: #000;
}

/*
    Make pages wider
*/
.site-header .wrap, 
nav .wrap, 
.site-footer .wrap, 
.footer-widgets .wrap, 
.site-inner .wrap, 
.header-nav-wrap.one-line .wrap, 
.breadcrumb-wrap .wrap, 
.sidebar-footer-wide .wrap {
    margin: 0 auto;
    max-width: 1200px;
}


.burger-title {
	display:none;
}

/*
    Hide breadcrumb on certain page layouts
    1. Full Width
    2. Narrow Full Width
*/
.full-width .breadcrumb-wrap,
.page-template-full-width-narrow .breadcrumb-wrap {
	display:none;
}

/* Decorate Primary Navigation */
.header-nav-wrap {
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.nav-primary {
    background: #2c526d;
    /*border-top: 1px solid #0b5fdc;*/
}

.nav-primary.responsive-menu {
	border-top:0;
}

.nav-menu .menu > li {
	background:inherit;
}

h1, 
h2, 
h3,
h4 {
	overflow-wrap: normal;
	word-break: normal;
}

/*
.breadcrumbs {
	padding:0 1rem;
}*/

/*
    Make sub headings thick with Lato 900 weight fonts
*/


.entry-content h2, 
.comment-content h2, 
.mu_register h2 {
    font-size: 1.85em;
    font-weight: bold;
    color: #277c96;
    line-height: 1.6;
    text-shadow: 0px 0px 1px rgba(100 100 100, 0.5);
}

/* H3 tags */
.entry-content h3, .comment-content h3 {
    font-family: Lato, sans-serif;
    font-weight:900;
    font-size:1.4em;
    line-height:1.4;
}

.entry-content h3 {
    font-family: Roboto, sans-serif;
    font-weight: bold;
    font-size: 1.6em;
    line-height:1.4;
    margin: 2.0em 0 .75em 0;
    color: #333;
    padding: 0 0 0.25em 0em;
	position:relative;
}

.entry-content h3::before {
	border-top:5px solid #f3f3f3;
	display:block;
	position:absolute;
	content:"";
	top:100%;
	left:0;
	width:3em;
}



.entry-content .section-title {
    background: #e5f4fb;
    display: block;
    padding: .5em 1em;
    margin-top: 2em;
    box-shadow: 0px 3px 2px rgb(59 155 253 / 50%);
    font-family:Lato, sans-serif;
}

.entry-content a.link-post {
	border-bottom: 2px solid;
    text-decoration: none;
}
.entry-content a.link-post:hover {
	text-decoration:none;
	border-bottom:2px solid #eee;
}

.wp-caption .wp-caption-text, 
.gallery-caption, .entry-caption {
    border:none;
    color:#555;
    font-weight:bold;
    line-height: 1em;
	font-size: 0.85em;
}

.entry-content table ,
.comment-content table  {
	border:0;
	border-top: 1px solid #e5e5e5;
	border-left:1px solid #e5e5e5;
	font-size: 0.9em;
}

.entry-content table .header td {
	font-weight:bold;
	color:#333;
	border-bottom: 1px solid #e0e0e0;
	/*background:#aaa;*/
}

.entry-content td,
.comment-content td {
	border:0;
	border-bottom: 1px solid #e5e5e5;
	border-right: 1px solid #e5e5e5;
	padding:0.5em 1em 0.5em 0.5em;
}

.entry-content table tr:nth-child(odd)
{
	background:#f5f5f5;
}

.entry-content .pre_text
{
	background: #f3f3f3;
	color: #5F1111;
	padding: 1em 1.5em;
	clear: both;
	overflow: auto;
	margin: 2em 0;
	border-left: 2px solid #888;
	font-size: 95%;
	tab-size: 4;
	-moz-tab-size: 4;
	-o-tab-size: 4;
	border-radius:0;
}

.entry-content .pre_text {
    background: #f9f9f9;
    border: 2px solid #888;
}

.entry-content a {
    color: #007fd3;
}

/*
	Terminal code output
*/
.entry-content pre.terminal
{
	background: #40688f;
  	padding: 1.5em 1em;
  	font-family: monospace;
  	overflow-x: auto;
  	clear: both;
  	color: #ffffff;
  	margin: 0 0 1em 0;
  	border-radius: 3px;
  	font-weight: bold;
}


.entry-content .wp-post-image {
	margin:0;
}


.entry-meta {
	margin-top: 2em;
	line-height: 1.7;
	color: #757575;
	border-top: 1px solid #f0f0f0;
	padding: 2em 0;
	font-size: 0.85em;
    font-weight: 500;
}

.site-content .excerpt .entry-meta {
	position:relative;
}

.entry-meta .entry-categories {
	display: inline-block;
	max-width: 60%;
	float:left;
	
}
/*
.entry-meta .entry-categories a {
	border: 1px solid;
    padding: 0.25em 1em;
    background: #f1f8ff;
	margin: 0 0.25em 0 0em;
}*/

.entry-meta .entry-tags {
	display: inline-block;
	max-width: 60%;
	line-height:1.5;
	float:left;
	clear:left;
}

.entry-meta .entry-tags a {
	border: 1px solid #080;
	padding: 0.25em 1em;
	display:inline-block;
	margin: 0 0.25em 0 0em;
	font-weight:normal;
	
}

.entry-meta .read-more-link {
	position:absolute;
	right:0;
}


.entry-summary .excerpt-text {
	/*display:none;*/
}


/*
    Previous/Next Article navigation EDITS
*/

.site-content nav, .site-content .nav-pagination {
    overflow:visible;
	margin:2em 0;
	border-bottom: 2px solid #eee;
    padding: 0 0 4em 0;
}

.nav-previous, .nav-next {
    background:none;
    display:inline;
    float:left;
    border:none;
	clear:none;
	margin-top: 2em;
	width:250px;
}

.nav-next {
	float:right;
}

.nav-single .post-thumbnail
{
	width:100%;
	height:140px;
	display:inline-block;
	background:#eee;
	overflow:hidden;
}

.nav-single .post-thumbnail img
{
	margin:0;
	width:100%;
}

.nav-previous a, .nav-next a
{
    background: #fff;
  
    font-weight:bold;
    padding: 0;
    line-height: 1.5em;
	width:100%;
	font-size:0.95em;
	color:#444;
	
    
}

.nav-previous a {
    /*border-left:20px solid #444;*/
	
}

.nav-next a {
    /*border-right:20px solid #444;
	text-align:right;*/
	
	
}

.nav-previous a:before,
.nav-next a:after {
    font-weight: normal;
    font-size: 0.5em;
    color: #ccc;
    border: none;
        width: auto;
    height: auto;
    line-height: 1em;
}

.nav-previous a:before {
    content:"PREVIOUS";
    
    left: 0;
    top: -2em;
}

.nav-next a:after {
    content:"NEXT";
    
    right: 0;
    top: -2em;
}

.site-content {
	border-right:none;
}




.sidebar .widget .title, 
.sidebar .widget .widget-title {
    background:#fff;
    color:#000;
    font-weight:200;
	padding:0;
}
/*
.entry-content code, 
.comment-content code {
    background: #f7f7b3;
    padding: 0 0.5em;
}*/

.entry-content code, 
.comment-content code {
    background: #f6c900;
    padding: 0 0.5em;
    font-weight: bold;
    font-size: 1em;
    margin: 0 0.25em;
	display:inline-block;
	line-height:1.5;
}



.double-column-post-layout {}

.double-column-post-layout article.excerpt {
    
    
    
	
	width: 47%;
    display: flex;
    flex-direction: column;
    float: left;
/*    margin: 0 1em 0 0;*/
	
	height:30em;
}
/*
article:nth-child(odd){
float: left;
}*/

.double-column-post-layout article.excerpt:nth-child(even){
	float: right;
}

.double-column-post-layout article.excerpt .entry-summary {
    order:-1;
}


.double-column-post-layout article.excerpt .entry-summary .excerpt-text {
    display:none;
}

.double-column-post-layout article.excerpt .entry-summary img {
	margin:0 0 1em 0;
}
.double-column-post-layout .excerpt .entry-header .entry-title {
	height:4em;
	margin:0 0 0 0;
}

.double-column-post-layout .excerpt .entry-meta .read-more-link {
	display:none;
}

.double-column-post-layout .excerpt .entry-meta .entry-categories 
{
	display:block;
	float:none;
	max-width:100%;
}

.double-column-post-layout .excerpt .entry-meta .entry-categories a {
	display:inline-block;
}




/*
 * Responsive CSS
 * */

/*
	Wide screen: Monitor
*/
@media screen and (min-width: 801px) 
{
	.site-content {
		width:67%;
		margin:0 0 0 0;
	}
	
	.sidebar-primary {
		float: right;
		padding: 0 1rem 0 0;
		width: 29.95%;
		margin:0 0 0 0;
		min-width:200px;
	}
	
	
	.entry-header .entry-title {
		font-weight:bold;
		font-size:1.85em;
	}
	
	.entry-summary .excerpt-thumb {
		width:auto;
		/*width:380px;*/
/*		margin:0 1em 0 0;
		min-height:182px;*/
	}
}

/*
.entry-content img, 	
.comment-content img {	
    box-shadow: 1px 1px 5px rgba(100,100,100,0.3);	
}
*/

@media screen and (max-width: 640px) {
	
	/* 
        Hide breadcrumbs on mobile 
    */
	.breadcrumb-wrap {
		display:none;
	}
	
	.site-header .title {
		font-size:0.8em;
        padding:0.8em 0;
	}
	
	/*
        Hide site description on mobile
    */
	.site-header .title .site-description {
		display:none;
	}
	
	.excerpt .entry-header .entry-title,
	.entry-header .entry-title {
		font-size:1.2em;
        font-weight:700;
	}
	
	.entry-content h3, .comment-content h3 {
        font-size:1.2em;
        line-height: 1.2;
        font-weight: 700;
    }
	
	.entry-summary .excerpt-thumb {
/*		width:380px;*/
	}
}

/*
	Mobile Devices 
*/
@media screen and (max-width: 420px) {
	
	.oneline-header-mobile .header-nav-wrap .nav-menu .mobile-burger {
		top:0.5em;
		right:0.5em;
	}
	
	/*
        Post Title, no margin bottom, to save vertical space
    */
	.entry-header {
        margin-bottom:1rem;
    }
	
	.adt, .adt-comment {
        float:left;
        margin-right:1em;
    }
	
	.nav-previous, .nav-next {
		width:100%;
		float:none;
	}
	.nav-single .post-thumbnail {
		height:auto;
	}
} 


@media screen and (max-width: 540px) {
	.mobile-wide,
	.float-left.mobile-wide
	{
		width:100%;
		display:block;
		float:none;
	}
	
	/*
		Remove float from double column layout	 
	*/	
	.double-column-post-layout article.excerpt {
		width: 100%;
		display: flex;
		flex-direction: column;
		float:none;
		
		margin: 0 1em 0 0;
		height:auto;
	}
	.double-column-post-layout article.excerpt:nth-child(even){
		float: none;
	}
}


/*
    css for ad units
*/

.display-ad-unit {
	text-align:center;
	background:#f3f3f3;
	margin:1em 0;
	padding:1em 0;
	border-top:1px solid #eee;
	border-bottom:1px solid #eee;
	/* ad units on sidebar tend to stretch page greated than browser width on smaller devices like ipad potrait/vertical */
	overflow:hidden;
}

.display-ad-unit.float-left {
	float: left;
    margin: 0 1em 1em 0;
    white-space: normal;
    background: #eee;
    overflow: hidden;
    border-radius: 0;
    padding: 0;
	border:0;
}

