/*  
Theme Name: Navigation BP
Description: Navigation theme as a basis for Beyond Pesticides site integration
Author: GPS Gazette / Rainbow Tiger Design
*/		

*
{
margin: 0px;
padding: 0px;
}

ul
{
list-style: none;
}

body 
{
font-size: 12px;
margin: 0px;
padding:0px;
}

#footer {
		top:-24px;
}

span.collapsCat {
	line-height:11px;
}

                         /***************************************************
                         *********************** Blogtitle **************
                         *****************************************************/

#blogtitle
{
display: block;
color: #FFFFFF;
float: left;
text-align: left;
margin: 4px 0 0 25px;
padding: 12px 8px 8px 8px;
background: url(img/logo.png) no-repeat;
}

#blogtitle a:link {
color: #FFFFFF;
text-decoration: none;
border: none;
}

#blogtitle a:visited {
color: #FFFFFF;
text-decoration: none;
border: none;
font-weight: bold;
}

#blogtitle a:hover {
color: #FFFFFF;
text-decoration: none;
}


                         /***************************************************
                         *********************** Container **************
                         *****************************************************/




                         /***************************************************
                         *********************** Left Sidebar Container *******
                         *****************************************************/
#leftnav
{
float: left;
width: 190px;
padding-bottom: 12px;
margin: 0px 0 20px 12px;
text-align: left;
}


                         /***************************************************
                         *********************** Right Sidebar Container *******
                         *****************************************************/

#rightnav
{
float: right;
width: 190px;
margin: 0px 12px 20px 0;
padding-bottom: 12px;
text-align: left;
}

                         /***************************************************
                         *********************** Content **************
                         *****************************************************/
#content
{
display: block;
padding: 0;
margin: 0px 225px 20px 225px;
text-align: left;
background: #FFF;
}

#content ul
{
padding-left: 15px;
}

#content ul li{
padding-left: 15px;
background: url(img/star.gif) no-repeat;
}

#content ul ul li{
padding-left: 15px;
background: url(img/child.gif) no-repeat;
}


#content ol{
list-style-position: inside;
padding-left: 15px;
padding-top: 2px;
margin-bottom: 10px;
}

#content p
{
padding-left: 0px;
}
                         /***************************************************
                         *********************** Footer **************
                         *****************************************************/

#footwrap
{
clear: both;
margin: auto;
width: 100%;
background: #F9FCFE;
color: #333;
padding: 12px 0 10px 0;
font-weight: normal;
}

#footwrap a:link {
color: #3F3F3F;
text-decoration: none;
border: none;
font-weight: bold;
}
#footwrap a:hover {
color: #3F3F3F;
text-decoration: underline;
border: none;
}

#footwrap a:visited:hover {
color: #3F3F3F;
text-decoration: underline;
border: none;
}

#footwrap a:visited {
color: #3F3F3F;
text-decoration: none;
border: none;
font-weight: bold;
}

#footwrap img {
padding: 0px 5px 0px 5px;
}


                         /***************************************************
                         *********************** Left Sidebar **************
                         *****************************************************/
#sidebarleft
{
margin-bottom: 10px;
background: none;
padding: 0 8px  0 8px;
position:relative;
top:0px;
}

#sidebarleft ul li
{
display: block;
padding-left: 10px;
font-size:11px;
}
#sidebarleft ul > li {
	background-image:url(/assets/media/images/images/menubullet.gif);
	background-repeat:no-repeat;
	background-position:0 2px;
	margin-bottom:.2em;
}
#sidebarleft ul li ul li{
padding-left: 10px;
background: url(img/child.gif) no-repeat;
}

#sidebarleft ul li li{
padding-left: 10px;
background: url(img/child.gif) no-repeat;
}

#sidebarleft a:link {
color: #0081FF;
text-decoration: none;
border: none;
font-weight: bold;
}

#sidebarleft a:hover {
color: #0081FF;
text-decoration: underline;
border: none;
}

#sidebarleft a:visited:hover {
color: #0081FF;
text-decoration: underline;
border: none;
}

#sidebarleft a:visited {
color: #0081FF;
text-decoration: none;
border: none;
font-weight: bold;
}

#sidebarleft h2 {
color: #000066;
}
.collapsCat.show, .collapsCat.hide {
	padding-right:4px;
}

                         /***************************************************
                         *********************** Right Sidebar **************
                         *****************************************************/

#sidebarright
{
margin-bottom: 10px;
background: none;
padding: 0 8px  0 8px;
}

#sidebarright ul li
{
display: block;
padding-left: 10px;
font-size:11px;
}
#sidebarright ul > li {
          background-image:url(/assets/media/images/images/menubullet.gif);
	background-repeat:no-repeat;
	background-position:0 2px;
	margin-bottom:.2em;
}

#sidebarright ul li ul li{
padding-left: 10px;
background: url(img/child.gif) no-repeat;
}

#sidebarright a:link {
color: #0081FF;
text-decoration: none;
font-weight: bold;
border: none;
}

#sidebarright a:hover {
color: #0081FF;
text-decoration: underline;
border: none;
}

#sidebarright a:visited:hover {
color: #0081FF;
text-decoration: underline;
border: none;
}

#sidebarright a:visited {
color: #0081FF;
font-weight: bold;
text-decoration: none;
border: none;
}

#sidebarright h2 {
color: #000066;
}

#leftnav p, #rightnav p { margin: 0 0 1em 0; }
#content h2 { margin: 0 0 .5em 0; }


                         /***************************************************
                         *********************** Paragraph **************
                         *****************************************************/

p
{
margin-bottom: 12px;
}

                         /***************************************************
                         *********************** Blockquote ********************
                         *****************************************************/

blockquote
{
margin: 0px 0px 0px 30px;
padding: 0px 25px 0px 0px;
font-style: italic;
color: #666666;
border-left: 4px solid #c6c6c6;
}


                         /***************************************************
                         *********************** Post Metadata ****************
                         *****************************************************/

.postmetadata, #content .postmetadata
{
border-bottom: 1px solid #0081FF;
border-left: 1px solid #0081FF;
margin: 10px 5px 24px 0px;
padding-left:10px;
}

.postmetadata a:link
{
border: none;
font-weight: normal;
}

.postmetadata a:hover
{
font-weight: normal;
}

.postmetadata a:visited:hover
{
border: none;
font-weight: normal;
}

.postmetadata a:visited
{
border: none;
font-weight: normal;
}

                         /***************************************************
                         *********************** Links ********************
                         *****************************************************/

a:link
{
font-weight: bold;
}


#feed, #feed img a:link, #feed img a:visited
{
border: none;
}


                         /***************************************************
                         *********************** Comments ********************
                         *****************************************************/

.commentlist
{
padding-left: 40px;
padding-right: 15px;
background: #fff;
}

.commentlist li
{
margin: 8px 10px 8px 15px;
padding-left: 12px;
list-style: none;
background: #e3f1f9;
margin-bottom: 2px;
border: 1px solid #0081ff;
}

li.alt
{
background: #e3f1f9;
}

.commentlist cite
{
background: #fff;
padding: 2px 3px 1px 3px;
border: 1px solid #0081ff;
}

.commentlist p
{
padding: 5px 5px 2px 3px;
margin-bottom: 5px;
}

.commentlist a:link
{
border: none;
text-decoration: underline;
font-weight: normal;
color: #000066;
}

.commentlist a:visited
{
border: none;
text-decoration: underline;
font-weight: normal;
color: #000066;
}

.commentlist a:hover
{
border: none;
text-decoration: underline;
font-weight: normal;
color: #000066;
}

.commentlist a:visited:hover
{
border: none;
text-decoration: underline;
font-weight: bold;
color: #000066;
}

.commentmetadata a:link, .commentmetadata a:hover, .commentmetadata a:visited
{
text-decoration: none;
color: #9F9F9F;
}

.commentnumber {
font: normal normal 20px 'Times New Roman', Times, serif;
margin: 2px 2px 0 4px;
float:right;
color: #005b95;
}



#comment
{
width: 350px;
}
                         /***************************************************
                         *********************** Headings**************
                         *****************************************************/


#sidebarleft h2, #sidebarright h2  {
	font-size: 90%;
font-weight: bold;
line-height: 120%;
display: block;
background-color: rgb(6, 0, 81);
padding: 3px 6px;
margin: 12px 0px 6px;
color: #FFF;
text-transform: uppercase;
position: relative;
top: -1px;
}

h3.posttitle a, h3.posttitle a:link, h3.posttitle a:visited {
	padding:0 30px 30px 0;
}

.posttitle h3
{
font-size: 20px;
font-weight: bold;
padding-left: 5px;
padding-top: 12px;
padding-bottom: 3px;
margin-top: 6px;
margin-bottom: 5px;
border-bottom: .5em solid #f0f8ff;
}

.posttitle a:link
{
font-size: 20px;
color: #0081FF;
font-weight: bold;
}

.posttitle a:visited
{
font-size: 20px;
color: #0081FF;
font-weight: bold;
}

h4
{
margin-top: 15px;
font-size: 13px;
font-weight: bold;
}

h5
{
margin-top: 15px;
font-size: 12px;
font-weight: bold;
}

                          /*Miscellaneous*/
.date
{
float: right;
font-weight: bold;
background: url(img/date.png) 0 11px no-repeat;
padding-bottom: 5px;
margin-right: 10px;
text-align:center;
width: 35px;
color: #FFFFFF;
}

.entry
{
margin: 8px 0 5px 0;
line-height:130%;
}

#searchform {
	padding:0 4px;
}
#searchform #s {
	width:100%;
}

                         /*Contained Floats Fix*/
.post
{
display: block;
overflow:hidden;
width:98%;
}
div.post > h3 {
	margin-top:0;
}
                     /*Code*/
code
{
display: block;
margin: 10px 30px 0 30px;
padding: 2px 10px 5px 10px;
border-top: 4px solid #6DA6D1;
color: #666666;
background: #d3d3d3;
}


#rightnavmobile, #leftnavmobile {
     display:none;
}

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


#rightnav {
     display:none;
}
#rightnavmobile {
     display: block;
}

#content {
     width:560px;
     margin-right:0;
}

}




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

#leftnav {
     display:none;
}
#leftnavmobile {
     display: block;
}
#content {
     width:auto;
     margin:0 10px;
}

}






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



}

// Add External Link to Featured Image with Custom Field

add_filter('post_thumbnail_html','add_external_link_on_page_post_thumbnail',10);
    function add_external_link_on_page_post_thumbnail( $html ) {
    if(is_singular() ) {
            global $post;
            $name = get_post_meta($post->ID, 'ExternalUrl', true);
            if( $name ) {
                    $html = '<a href="' . ( $name ) . '" target="_blank" >' . $html . '</a>';
            }
    }
    return $html;
    }