/*
Theme Name: Peroxide
Theme URI: http://alijamieson.co.uk/themes/twentythirteen
Author: Matthew Cieplak
Author URI: http://matthewcieplak.com/
Description: A custom theme for Zeroes and Ones.
Version: 2.0
License: All rights reserved. 
*/

*{  
    padding: 0px; 
    margin: 0px;
    box-sizing: border-box;
}
    
html {
    -webkit-font-smoothing: antialiased;
}

body{
    background: #eee;
    font-family: 'Lato', sans-serif;        
    color: #000;
}



#site-title{
    color: #fff;
    font-size: 46px;
    font-weight: bold;
}

h1.entry-title{
    font-size: 36px;
    font-weight: bold;
    letter-spacing: -1px;
    line-height: 37px;
    margin-bottom: 10px;
}

h2{
    font-size: 32px;
    line-height: 36px;
    margin: 10px 0 10px;
}

h3{
    /*color: #000;*/
    font-size: 18px;        
    margin-bottom: 5px;
}

h4{
    color: #000;
    font-size: 15px;
    line-height: 20px;
    /*margin-bottom: 15px;*/
}

.nav-previous{
    padding: 10px;
}

p{
    color: #000;
    font-size: 15px;
    line-height: 20px;
    margin-bottom: 15px;
}
    
a:link, a:visited{
    color: rgb(90,  85,  140);
    transition: color 0.1s linear;
    position: relative;
    text-decoration: none;
}

a:hover{
    /*text-decoration: underline;*/
    color: rgb(84, 79, 139);
}



/* link underline effect*/
a:after,
a.post:after{
    content: ' ';
    width: 0%;
    height: 2px;
    position: absolute;
    bottom: -2px;
    left: 50%;
    transition: width 0.3s ease-out, background-color 0.3s linear, left 0.3s ease-out;
    background-color: rgba(0,0,0,0.1);
}

a:hover:after,
a.post:hover:after{
    width: 100%;
    left: 0%;
    background-color: rgba(0.5,0.5,0.5,0.9);
}

/*a.post:hover:after{
    background-color: rgba(90,  85,  140, 1.0);
}
*/

a.header, a.header:visited{
    color: #fff;
    text-decoration: underline;
}   
        
table{
    border-collapse: collapse;
    border-spacing: 0;
    vertical-align: middle;
}

table#t01 {
    border-collapse: separate;
    border-spacing: 3;
}
    
ul, ol{
    list-style-type: none;  
}

article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{
    display: block;
}

ul.disc{
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 10px;
}

ul.disc li{
  margin: 5px 0;
}

code{
    background-color: #585858;
    padding: 1px 6px;
    color: #eee;
    border-radius: 5px;
    font-size: 14px;
}

pre:last-of-type{
    margin-bottom: 10px;
}

pre.code{
    background: #eee;
    padding: 5px 10px;
    color: #3a3a3a;
    overflow: auto;
    margin-bottom: 10px;
    border-left: 3px solid #ccc;
}

.clear{
    clear: both;
}

.sticky{}
.bypostauthor{}
.wp-caption{}
.wp-caption-text{}
.gallery-caption{}
img.alignright {float:right; margin:0 0 1em 1em}
img.alignleft {float:left; margin:0 1em 1em 0}
img.aligncenter {display: block; margin-left: auto; margin-right: auto}
img.size-full{ max-width: 100%; width: auto; height: auto; }
.alignright {float:right; }
.alignleft {float:left; }
.aligncenter {display: block; margin-left: auto; margin-right: auto}
.mejs-container, .wp-audio-shortcode{
    height: 10px;
    margin-bottom: 20px;
}

nav ul{
    
}

nav li {
    display: inline;
}



#branding, #topnav nav, #wrapper #footer{
    margin: 0 auto;
}

#branding{
    position: relative;
    height: 100%;
}

#header, #topnav{
    background: #D4D3CB;
    overflow: hidden;
}

#header{
    padding-top: 10px;
}

#site-title{
    /* size is in grid section */
    color: transparent;
    font-size: 0;
    overflow: hidden;
    background-image: url('images/zeroesandones_logo_1300_transparent.png');
    background-position: top left;
    background-size: 100% auto;
    background-repeat: no-repeat;
    position: absolute;
}

#site-description{
    position: absolute;
    right: 0;
    bottom: 0;
    width: 300px;
    text-align: right;
}
#site-description h2{
    color: #666;
    font-size: 18px;
    line-height: 20px;
}

#site-title a.header{
    color: transparent;
    text-indent: -10000px;
    overflow: hidden;
}

#topnav{
    height: 34px;
    width: 100%;
    /*margin-bottom: 20px;*/
}

#topnav ul{
    width: 100%;
    display: table;
}

#topnav li{
    background: #786ea5;
    display: table-cell;
    min-width: 120px;
}

#topnav a{
    /*background-color: rgb(104, 99, 159);*/
    color: #eee;
    text-align: center;
    text-decoration: none;
    padding: 5px 10px;
    font-size: 20px;
    display: block;
    transition: background-color 0.1s linear;
}

/*#topnav li:nth-of-type(6) a{ background-color: rgb(90,  85,  140); }
#topnav li:nth-of-type(5) a{ background-color: rgb(95,  90,  145); }
#topnav li:nth-of-type(4) a{ background-color: rgb(100, 95,  150); }
#topnav li:nth-of-type(3) a{ background-color: rgb(110, 100, 155); }
#topnav li:nth-of-type(2) a{ background-color: rgb(115, 105, 160); }
#topnav li:nth-of-type(1) a{ background-color: rgb(120, 110, 165); }
#topnav li:nth-of-type(0) a{ background-color: rgb(125, 115, 170); }
*/

#topnav li:nth-of-type(6) a{ background-color: rgba(255,255,255,0.00); }
#topnav li:nth-of-type(5) a{ background-color: rgba(255,255,255,0.05); }
#topnav li:nth-of-type(4) a{ background-color: rgba(255,255,255,0.10); }
#topnav li:nth-of-type(3) a{ background-color: rgba(255,255,255,0.15); }
#topnav li:nth-of-type(2) a{ background-color: rgba(255,255,255,0.20); }
#topnav li:nth-of-type(1) a{ background-color: rgba(255,255,255,0.25); }
#topnav li:nth-of-type(0) a{ background-color: rgba(255,255,255,0.30); }

#topnav a:hover{
    background-color: rgba(255,255,255,1.0) !important;
    color: rgb(104, 99, 159);
}


#topnav li:last-of-type{
    margin-right: 0;
}


        
form{
    float: right;
}

.search { 
    padding: 5px;
    margin: 5px 0;
}

input[type=text]{
    color: #000000;
}

.light input[type=text]{
    /*border: 1px solid #acb1b7;*/
    background-color: #333;
    color: #999;
    border: 0px none;
    width: 200px;
}
    
blockquote{
    float: none;
    background: transparent;
    border: 0;
    vertical-align: baseline;
    background: url(http://alijamieson.co.uk/wp-content/uploads/css/blockquote.png) no-repeat scroll 5px 0px;
    margin: 15px 0 0 0;
    padding: 20px 8px 8px 60px;
}

blockquote p{
    margin: 0.5em 0 0.5em; 
-webkit-margin-before: 0.5em;
-webkit-margin-after: 0.5em;
-webkit-margin-start: 0px;
-webkit-margin-end: 0px;    
    padding: 0.5em;
    font-style: italic; 
}

#wrapper{
    /* size is in grid section */
    height: auto;
    margin: 0 auto;
    padding: 15px;
    background: #fff;
    position: relative;
}

#container{
    background: transparent;
    height: auto;
}

#content{
    /* size is in grid section */
    float: left;
}

#sidebar{
    /* size is in grid section */
    float: right;
    padding: 20px;
    margin: -15px;
    border-left: 1px solid #ddd;
}

article{
    border-bottom: 3px solid #F3F3F3;
}

article, .comment-form, li.comment{
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.boxtitle{
    color: #111;
    height: auto;
    width: auto;
    padding: 5px 0px;
}
.boxtitle a{
    color: #111;
    margin-right: 5px;
}

.post-edit-link, .comments-link{
    float: right;
}

.cat-links a[rel="category tag"]{
    text-transform: uppercase;
    font-style: italic;
}
.cat-links a[rel="category tag"]{
    /*color: #666;*/
    opacity: 0.7;
}

.cat-links .tag-links{
    display: block;
    font-size: 12px;
}



a.post{
    color: rgb(90,  85,  140);
    letter-spacing: -2px;
    font-weight: 300;
}

a.post:hover{
    color: rgb(50,  35,  70);
}

.textbox{
    height: auto;
    width: auto;
    padding: 10px 0px
}

.thumbnail-container{   
    max-height: 350px;
    overflow: hidden;
    width: 100%;
    margin: -5px 0 7px 0;
}

.thumbnail-container img{
    /*max-width: 640px;*/
    width: 100%;
    height: auto;
}

.entry-content iframe,
.entry-content object,
.entry-content embed{
    max-width: 100%;
}

/* SIDEBAR */
.widget-container{
    /*background: #FFF;*/
    /*border: 2px solid #EEE;*/
    /*padding: 10px;*/
    /*color: #666;*/
    margin-bottom: 25px;

}

.widget-title{
    color: #5a5a5a;
    font-weight: 300;
    letter-spacing: 2px;
    margin-top: 10px;
    text-transform: uppercase;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;

}

.widget-container a{
    color: #000;
    /*font-weight: 300;*/
}

.xoxo ul{
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 18px;
}



#footer{
    clear: both;
    text-align: center;
}
    
#footer p{
    font-size: 10px;    
    margin-bottom: 0px; 
}


.comment-form, li.comment{
    padding: 10px 10px 25px;
}

.comment-form{
    float: none;
}

.comment-form input[type="text"],
.comment-form textarea{
    border: 1px solid #ccc;
    background: #fff;
    width: 75%;
    padding: 5px;
    margin-bottom: 8px;
    float: right;
}

.comment-form label{
    display: block;
    float: left;
    clear: both;
    width: 19%;
    text-align: right;
}

.form-allowed-tags{ display: none; }

.form-submit{
    clear: both;
    margin-bottom: 20px;
}

.form-submit input[type="submit"]{
    padding: 10px 40px;
    float: right;
    background: #1E8AA6;
    border: 1px solid #1E8AA6;
    color: #fff;
    text-transform: uppercase;
    border-radius: 10px;
}

.form-submit input[type="submit"]:hover{
    cursor: pointer;
    color: #1E8AA6;
    background: #fff;
}

.comment img.avatar{
    float: left;
    margin-right: 10px;
}

.comment-author{
    line-height: 30px;
    height: 42px;
    border-bottom: 1px solid #CCC;
    margin-bottom: 8px;
}

.comment-meta{
    float: right;
    margin-top: -43px;
    font-size: 12px;
}


cite.fn{
    font-style: normal;
    font-weight: bold;
}


.nav-previous,
.nav-next{
    padding: 0;
}

.nav-previous a,
.nav-next a{
    display: block;
    float: left;
    width: 48%;
    /*background: #ddd;*/
    border: 2px solid #ddd;
    color: #fff;
    text-transform: uppercase;
    /*border-radius: 10px;*/
    padding: 10px 0;
    text-align: center;
}

.nav-next a{
    float: right;
}

.nav-previous a:hover, 
.nav-next a:hover{
    cursor: pointer;
    color: #1E8AA6;
    background: #fff;
    text-decoration: none;
}


/* ARTICLE PAGINATION */
.entry-links{
    text-align: center;
    margin-bottom: 10px;
}

.entry-links a{
    color: #fff;
    display: inline-block;
    background-color: #eee;
    opacity: 0.8;
    margin: 0 3px;
    padding: 15px;
}

.entry-links a:hover{
    opacity: 1.0;
}



/* RELATED POSTS */
.yarpp-thumbnails-horizontal .yarpp-thumbnail > img, 
.yarpp-thumbnails-horizontal .yarpp-thumbnail-default{
    display: block;
    float: left;
    margin: 0 10px 10px 0;
}

.yarpp-thumbnails-horizontal .yarpp-thumbnail-title{
    float: none;
    display: inline;
    margin: 10px 0 !important;
}

.yarpp-thumbnails-horizontal .yarpp-thumbnail{
    clear: both;
    border: 0px none !important;
    width: auto !important;
    height: auto !important;
}

/* don't show related content inserted automatically, use explicit tag in template*/
.entry-content .yarpp-related{
    display: none;
}

/*POPULAR POSTS*/
.wpp-list li{
    margin: 0 0 10px -18px;
    list-style: none;
}

/* Simple Lightbox */
.slb_template_tag_item_title{
    display: none;
}




/*=====================================================*/
/*  Responsive sizes */
/*=====================================================*/
/* wrapper = content + sidebar + gutter */
#wrapper, #branding, #topnav nav, #footer{
          width: 1400px; }
#content{ width: 930px;  }
#sidebar{ width: 415px;  }
#site-title{
    width: 1040px;
    height: 260px;
    margin-bottom: -100px;
}
#header{ 
    height: 180px;
}



@media only screen and (max-width : 1440px) {
    /* wrapper = content + sidebar + gutter */
    #wrapper, #branding, #topnav nav, #footer{
              width: 1200px; }
    #content{ width: 750px;  }
    #sidebar{ width: 415px;  }
    #site-title{
        width: 866px;
        height: 220px;
        margin-bottom: -100px;
    }
    #header{ 
        height: 150px;
    }
}


@media only screen and (max-width : 1230px) {
    /* wrapper = content + sidebar + gutter */
    #wrapper, #branding, #topnav nav, #footer{
              width: 980px; }
    #content{ width: 650px; }
    #sidebar{ width: 300px; }
    #site-title{
        width: 640px;
        height: 180px;
        margin-bottom: -100px;
    }
    #header{ 
        height: 120px;
    }
    .wpp-thumbnail{
      width: 80px;
      height: 80px
    }
}

@media only screen and (max-width : 1025px) {
    /* wrapper = content + sidebar + gutter */
    #wrapper, #branding, #topnav nav, #footer{
              width: 800px; }
    #content{ width: 480px; }
    #sidebar{ width: 300px; }
    #content{ width: 100%; float: none; }
    #sidebar{ width: 100%; float: none; border-left: none;}
    #site-title{
        width: 640px;
        height: 180px;
        margin-bottom: -100px;
    }
    #header{ 
        height: 120px;
    }
}

@media only screen and (max-width : 844px) {
    /* wrapper = content + sidebar + gutter */
    #wrapper, #branding, #topnav nav, #footer{
              width: 100%; } /*no margins on mobile*/
    #content{ width: 100%; float: none; }
    #sidebar{ width: 100%; float: none; }
    #site-title{
        width: 96%;
        margin-bottom: -20px;
        min-width: 420px;
    }
    #header{ 
        height: 100px;
    }

    #site-description{ 
        display: none;
        padding-top: 10px;
        width: 100%;
        text-align: left;
    }

    #search{
        position: absolute;
        bottom: 8px;
        right: 0;
    }
    #topnav li{
        width: 33.333%;
    }

    #topnav nav{
        width: 100%;
    }
    #topnav{
        height: 68px;
    }
}

@media only screen and (max-width : 480px) {
    #topnav li {
        display: inline-block;
    }
    
    .entry-content img{
        max-width: 100%;
        height: auto;
    }
}

@media only screen and (max-width : 320px) {

}