/*styles for the NEW improved PagetoScreen*/

/*make all the HTML5 elements blocks*/

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section,time { 
display:block;    /*must have for all browsers*/
}

  body {
    font-family: "Cantarell",Geneva,Tahoma,"Trebuchet MS",sans-serif;
    line-height: 1.5em;
    margin: 0;
    padding: 0;
    background-color:#fdfcec;
    color: gray;
overflow-x: hidden; 
  }
  
  h1,h2,h3,h4 {
    font-family: "Cantarell",Geneva,Tahoma,"Trebuchet MS",sans-serif;
    padding-bottom:0;
    margin-bottom:0;
  }

img {
	display:block;
	border: 0 !important;
	margin:0;
	padding:0;
}


  #wrapper {
      margin: 0 auto;
      z-index:1;
      padding:0;
    }
  
  header {
    height:200px;
    position: relative;
    top: 0;
    width: 100%;
    -webkit-box-shadow: 0px 0px 22px #4e6b57;
    -moz-box-shadow: 0 0px 22px #4e6b57;
    box-shadow: 0 0px 22px #4e6b57;
   	z-index:2;
/*    	 behavior: url(http://www.pagetoscreen.net/scripts/pie/PIE.htc); */
  }
  
  header #banner {
    position:absolute;
    top:50px;
    z-index: -1;
    width: 100%;
    background-color: #c7d9cd;
    text-align:left;
    padding: 0;
    margin:0;
  }
  
   header #banner #head {
width: 980px;
margin: 0 auto;
position: relative;
   }

  header #banner img {
    display: block;
    float:left; /* gotta have it for ie */
  }

#searchpop {
	float:right;
	width: 100px;
	position: absolute;
	top: 60px;
	right: 24px;
	border: 0px solid gray;
	border-radius: 12px 12px 12px 12px;
-webkit-border-radius:12px;
  -moz-border-radius:12px;
    -o-border-radius:12px;
  box-shadow: 0px 2px 12px #696D69;
    -o-box-shadow: 0px 2px 12px #696D69;
    -webkit-box-shadow: 0px 2px 12px #696D69;
    -moz-box-shadow: 0px 2px 12px #696D69;
behavior: url(http://www.pagetoscreen.net/scripts/pie/PIE.htc);
text-align: center;
font-size:.8em;
background: #F0F3EE;
-webkit-transition-property:all;
-webkit-transition-duration:.5s;
-webkit-transition-timing-function:ease;
-moz-transition-property:all;
-moz-transition-duration:.5s;
-moz-transition-timing-function:ease;
-o-transition-property:all;
-o-transition-duration:.5s;
-o-transition-timing-function:ease;
transition-property:all;
transition-duration:.5s;
transition-timing-function:ease;
}
  
#searchpop:hover {
	background: #275937;
	color:white;
}

  aside header {
    border: none;
    height: auto;
  }
  
  /*  links*/

    a:link,a  {
      text-decoration: none;
      border-bottom:1px dotted #D6D9C6;
      color: #4F6F59;
    }  
    a:visited {
      text-decoration: none;
    }
    a:hover {
      text-decoration: none;
      color: #29a004;
    }
    a:active {
      text-decoration: none;
    }
    
/*     lists */
    
    article ul {
    list-style: square;
    padding: 0 4px;
    margin:0 4px 4px 20px;
    font-size: .9em;
    }
    
    article ul ul {
    list-style: circle;
    padding: 0 2px;
    margin:0 4px 7px 20px;
    font-size: 1em;
    }
    


    /*nav stuff*/
    header nav {
    font-family: Arial, "MS Trebuchet", sans-serif;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    font-size:.8em;
    text-transform: uppercase;
    display:block;
    width: 980px;
/*    border: 1px solid green;*/
    position:relative;
    
    }

    header nav ul {
    font-family: Arial, "MS Trebuchet", sans-serif;
    background: transparent;
    margin: 0 auto;
    padding: 0px 0px 0px 0px;
    list-style:none;
    line-height: 40px;
    position: absolute;
    top: 0;
    left: 0px;
    width: 980px;
/*border: 1px dotted green;*/
    }

    header nav li {
      display:inline;
      margin: 0;
      padding: 0px;
      }

    header nav li a {
    width: 12%;
    float: left;
    margin: 0px 4px 0 0;
    padding-top: 10px;
    text-align: center;
    color: #71982d;
    background-color: transparent;
    background-image: url('../images/tab_back_hov.png');
    background-repeat: no-repeat;
    background-position: center -110px;
    text-decoration:none;
    border:none;
    -webkit-transition-property:all;
  	-webkit-transition-duration:.5s;
    -webkit-transition-timing-function:ease;
  	-moz-transition-duration:.5s;
    -moz-transition-timing-function:ease;
    -o-transition-property:background-position;
  	-o-transition-duration:.5s;
    -o-transition-timing-function:ease;
  	transition-duration:.5s;
  	transition-timing-function:ease;
 behavior: url(http://www.pagetoscreen.net/scripts/pie/PIE.htc);
    }


    header nav li a:hover {
      color:black;
/*      background-color: transparent;
      background-image: url('../images/tab_back_hov.png');
      background-repeat: no-repeat;*/
      background-position: center 0px;
    }
    
    header nav a:link, nav a:visited, nav a:hover, nav a:active {
      border: none;
    }

   body#home header nav li.home a, body#photos header nav li.pictures a, body#books header nav li.books a, body#ebooks header nav li.ebooks a, body#teaching header nav li.teaching a, body#screencasts header nav li.screencasts a, body#screens header nav li.screens a, body#contact header nav li.contact a {
    background-position: center 0px;
    color:black;
    }
    
    
    #page {
max-width: 980px;
min-width: 800px;
      background-image: url('../images/pageback.png');
      background-color: white;
      background-repeat: repeat-y;
      background-position:top left;
      margin: 0 auto;
      padding: 15px 0;
      border-bottom: 1px solid #c8cbc5;
      border-left: 1px solid #c8cbc5;
      border-right: 1px solid #c8cbc5;
      border-radius: 0 0 12px 12px;
      -moz-border-radius: 0 0 12px 12px;
       -webkit-border-radius: 0 0 12px 12px;
        -o-border-radius: 0 0 12px 12px;
      box-shadow: 0 2px 12px #cbcec8;
        -o-box-shadow: 0 2px 12px #cbcec8;
        -webkit-box-shadow: 0 2px 12px #cbcec8;
        -moz-box-shadow: 0 2px 12px #cbcec8;
         behavior: url(http://www.pagetoscreen.net/scripts/pie/PIE.htc);
    }
    
    #content {
      margin: 0 0 0 260px;
      padding: 0px;
    }
    
    #content p {
      margin:0 12px 12px 0;
      padding-top:2px;
    }
    
    #content aside {
      font-size:1.1em;
      line-height: 1.5em;
      border-bottom: 1px solid #006E2D;
      color: #3d3232;
      margin-bottom: 4px;
padding-bottom: 0;
    }
    
    aside.sub {
      font-size:.95em;
      width: 225px;
      float:left;
      padding: 0px;
      margin: 0 14px;
      
    }
     aside.sub h1 {
       font-size: 1.2em;
       font-family: "Cantarell",Geneva,Tahoma,"Trebuchet MS",sans-serif;
       font-weight: normal;
       color:#789181;
       padding-bottom: 4px;
       margin: 6px 0 6px 0;
       border-bottom: 1px solid #eeeed6;
     }
     
     aside.sub h2 {
       font-family: "Cantarell",Geneva,Tahoma,"Trebuchet MS",sans-serif;
       font-size: 1.1em;
       color:gray;
       margin: 4px 0 0 0;
       padding:0;
     }
     
     aside.sub p {
       font-size: .8em;
       line-height: 1.4;
       padding-top:0;
       margin-top:0;
       overflow:hidden;
     }
    
    aside.sub ul {
    list-style:none;
    margin: 0 16px 4px 0px;
    padding: 0;
    font-size: .8em;
    }

 aside.sub li {
	line-height: 1.6em;
	margin-bottom: 4px;
}
     
    aside.sub p.date {
       font-size:.7em;
       padding:0;
       margin:0;
     }
     
     time {
        font-size:.65em;
        padding:0;
        margin:0;
        line-height:2em;
     }
     
     aside section {
      display:block;
      background: white;
      padding: 0 12px 12px 12px;
      margin: 6px 0 18px 0;
      border: 1px solid #eaeace;
      border-radius: 8px;
      -moz-border-radius: 8px;
      -webkit-border-radius: 8px;
      -o-border-radius: 8px;
      box-shadow: 0 2px 12px #cfd1ce;
        -o-box-shadow: 0 2px 12px #cfd1ce;
        -webkit-box-shadow: 0 2px 12px #cfd1ce;
        -moz-box-shadow: 0 2px 12px #cfd1ce;
         behavior: url(http://www.pagetoscreen.net/scripts/pie/PIE.htc);
     }
     
     aside section.facebook {
     padding: 6px 3px 0 2px;
     border: 0px solid #efefe4;
     border-radius: 0px;
      -moz-border-radius: 0px;
      box-shadow: 0 0px 0px #e8e9e7;
      -o-box-shadow: 0 0px 0px #e8e9e7;
        -webkit-box-shadow: 0 0px 0px #e8e9e7;
        -moz-box-shadow: 0 0px 0px #e8e9e7;
     }
     
     article {
         padding: 4px 8px 8px 14px;
         border-bottom: 1px dotted #CFDDD7;
     }
     
     article.comment {
         background: #fefdf3;
         padding-left: 60px;
         padding-right: 60px;
         font-size:.9em;
         line-height: 1.3;
     }
     
     article h1, .entry h1 {
         font-size: 1.4em !important;
         margin: 5px 0 0 0;
         width: 80%;
         line-height: 1.3em;
         color: #2E543B;
     }
     
     article h1 a {
     border-bottom: 1px dotted #FEF6C7;
     }
     
        article h2 {
         font-size: 1.25em;
         margin: 8px 0 0 0;
         line-height: 1.3em;
         color: #A7BF9B;
     }
     
         article h3 {
         font-size: 1.1em;
         margin: 8px 0 0 0;
         line-height: 1.3em;
         color: gray;
     }

	  article:after {
	    content: ".";
	    display: block;
	    height: 0;
	    clear: right;
	    visibility: hidden;
	    }
    
    footer {
       margin: 0 auto;
      font-size: .9em;
      background: transparent;
      clear: both;
      padding: 6px 24px 12px 0;
      max-width: 940px;
	min-width: 800px;
    }
    
    #page footer p, #page footer time {
	float:right;
	text-align:right;
	font-size: .8em;
	padding: 0px 10px 0 0;
	margin:0;
	width: 40%;
    }
    
/*
    #page footer p {
      margin:0;
      padding:0;
      text-align:right;
    }
*/
    
/*    images*/
  .images {
  width: 100%;
  float: none;
  padding-bottom: 0px;
  
  }
  
body.set .images, body.gallery .images {
  width: 100%;
  float: left;
  padding-bottom: 24px;
  }

.paginate {
	font-size: .7em;
	padding-left: 10px;
}

.widepicture {
  text-align: center;
  padding: 5px 20px 15px 10px;
margin: 0;
display:block;
}

.picture {
background: white;
float:right;
padding: 8px 8px 10px 10px;
margin: 12px 25px 10px 24px;
/*border: 1px solid green;*/
display:block;
border: 1px solid #E0DED8;
box-shadow: 2px 3px 16px #dbcdc7;
  -webkit-box-shadow: 2px 3px 16px #dbcdc7;
  -moz-box-shadow: 2px 3px 16px #dbcdc7;
  -o-box-shadow: 2px 3px 16px #dbcdc7;
  behavior: url(http://www.pagetoscreen.net/scripts/pie/PIE.htc);
  -pie-lazy-init:true;
}

body.item .picture {min-height:140px;}

#ebooks .picture {
clear: right;
}

body.set .picture, body.gallery .picture {
padding: 8px 8px 2px 10px;
margin: 22px 28px 3px 4px;
float:left;
}

.picture img {
/*     position:relative;
     z-index: 4;*/
margin:1px auto 6px auto;
   padding: 0px;
   background: white;
   border: 1px solid #E0DED8;
   float:right; /* for ie */
 }

    .widepicture img {
        position:relative;
        z-index: 4;
      padding: 3px;
      width: 95%;
      background: white;
      border: 1px solid silver;
      box-shadow: 2px 3px 16px #dbcdc7;
        -webkit-box-shadow: 2px 3px 16px #dbcdc7;
        -moz-box-shadow: 2px 3px 16px #dbcdc7;
        -o-box-shadow: 2px 3px 16px #dbcdc7;
behavior: url(http://www.pagetoscreen.net/scripts/pie/PIE.htc);
    }

.picture p, .widepicture p {
	font-size:.7em;
	padding: 0;
	margin: 0;
	line-height: 1.6em;
}

img.centerpic {
background: white;
float:none;
padding: 10px;
margin: 12px auto;
display:block;
border: 1px solid #E0DED8;
box-shadow: 2px 3px 16px #dbcdc7;
  -webkit-box-shadow: 2px 3px 16px #dbcdc7;
  -moz-box-shadow: 2px 3px 16px #dbcdc7;
  -o-box-shadow: 2px 3px 16px #dbcdc7;
  behavior: url(http://www.pagetoscreen.net/scripts/pie/PIE.htc);
  -pie-lazy-init:true;
}

img.rightpic {
background: white;
float:right;
clear:right;
padding: 8px 8px 10px 10px;
margin: 12px;
display:block;
border: 1px solid #E0DED8;
box-shadow: 2px 3px 16px #dbcdc7;
  -webkit-box-shadow: 2px 3px 16px #dbcdc7;
  -moz-box-shadow: 2px 3px 16px #dbcdc7;
  -o-box-shadow: 2px 3px 16px #dbcdc7;
  behavior: url(http://www.pagetoscreen.net/scripts/pie/PIE.htc);
  -pie-lazy-init:true;
}


p.caption {
font-size:.7em;
line-height:1.1em;
margin:0 0 0 180px;
padding:0 190px 20px 190px;
color: #A3A3A3;
}

.details {
font-size: .5em !important;
}

#content p.postdetails {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:   .7em;
color:gray;
font-weight: normal;
margin : 2px 0 4px 0 !important;
padding: 0;
}

div#content .note {
font-size: .7em;
color:gray;
font-weight: normal;
margin : 8px 0 12px 0;
}

/*
div#content .postdetails  p {
font-family: Verdana, Arial, Helvetica, sans-serif;
color:gray;
font-weight: normal;
}
*/


form {
padding: 0;
margin: 0;
}

div#searchbox h2  {
	color: green;
	padding: 0 0 12px 0;
	margin: 0;
}

div#searchbox p { 
font-size: .9em;
text-align: left;
padding: 6px 0 0 0;
margin: 0;
}

div#searchbox .input { 
margin:  0 6px 8px 0;
padding: 2px 0;
font-size: .9em;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
border: 1px solid silver;
width: 70%;
}

#searchbox .submit { 
font-size: .7em;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
padding: 0;
margin: 0;
border: 1px solid gray;
}

.button { 
font-size: .8em;
line-height: 1em;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
background-color: #709588;
color:white;
padding: 4px;
margin: 0;
border: 1px solid gray;
cursor:pointer;
-webkit-border-radius: 6px;
border-radius: 6px;
-moz-border-radius: 6px;
}

#searchbox fieldset {
border: none;
margin: 0;
padding: 0;
}

#content fieldset {
border: 1px solid #C3E1C0;
margin: 0px 6px 0 0;
padding: 4px 8px 4px 8px;
clear: right;
}

legend {
font-size: 0.9em;
color: #b7d0b8;
}

div#content fieldset p {
font-size: .8em;
}


div#content .input {
width: 60%;
margin: 0px 10px 3px 0px;
padding: 3px;
font-size: .9em;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
background: white;
border: 1px solid gray;
}

body#login div#content .input, body#reg div#content .input {
width: 60%;
margin: 6px 10px 3px 0px;
padding: 4px 3px;
font-size: 1.5em;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
background: white;
border: 1px solid gray;
color:gray;
border-radius: 6px;
}

body#login div#content label {
font-size:1.4em;
color:black;
}

div#content .textarea {
width: 99%;
margin: 0px 8px 3px 0px;
padding: 4px;
font-size: 1em;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
background: white;
border: 1px solid gray;
}

div#content .input:focus, div#content .textarea:focus, #searchbox .input:focus, div#searchbox .textarea:focus { 
background: #EEF9F4;
border: 1px solid black;
}

body#login div#content .input:focus, body#login div#content .textarea:focus, #searchbox .input:focus, div#searchbox .textarea:focus { 
background: #EEF9F4;
border: 1px solid black;
}

#content .submit { 
font-size: .8em;
margin: 0;
line-height: 1.5em;
padding: 4px 8px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
background: #D4EADF;
border: 1px solid gray;
}

#content .submit:focus {
border: 1px solid black;
}


/*------------------POPUPS------------------------*/

.popup_block {
	background: #fff;
	width: 500px;
	height: 100px;
	margin: 10px; 
	padding: 20px;
	border: 10px solid #CBD9D1;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
}

.popup_block p {
	padding: 5px 10px;
	margin: 5px 0;
}

a {
	outline: none;
}

a img {
	border: 1px solid #BBB;
	padding: 2px;
	margin: 10px 20px 10px 0;
	vertical-align: top;
}

a img.last {
	margin-right: 0;	
}


span.account { 
	float:right;
	font-size: .8em;
}

.datestamp {
  color: gray;
  font-size:.8em;
  
}

code {
font-family: Arial, Helvetica, sans-serif;
font-size: .9em;
line-height: 1.8em;
color: #429ec4;
background: #F6FAF9;
margin: 10px 10px 10px 4px;
padding: 12px;
text-align: left;
border: 1px solid #E0EFEB;
border-radius: 12px;
-webkit-border-radius: 12px;
-moz-border-radius: 12px;
display: block;
}

p.smallprint {
clear:right;
font-family: verdana, Helvetica, sans-serif;
font-size: .6em;
line-height: 1.6em;
color: gray;
background: #F6FAF9;
margin: 10px 26px 10px 10px !important;
padding: 8px;
text-align: left;
border: 1px solid silver;
display: block;
width: 200px;
float:right;
}

body.item p.smallprint {
width: 164px;
}



div#content p.editor {
font-size: .5em;
margin: 0px 26px 0px 0;
padding: 0 1px;
/* border: 1px solid green; */
width: 170px;
float: right;
text-align: center;
color:green;
background: #EEF1EB;
border-radius: 16px;
}

div#content p.editor a {
border: none;
}

div#content p.editor:hover {
color:white;
background: #9EB28F;
}

div#content .entry blockquote, div#content .offsite_entry blockquote { 
background: transparent url("http://www.pagetoscreen.net/images/rightquote.gif") bottom right no-repeat;
width: 95%;
font-size: .9em;
margin: 10px 10px;
padding: 0px;
border: 1px solid #DFE6E1;
border-radius: 8px;
/* clear: right; */
line-height: 1.2em;
}

div#content .entry blockquote p { 
background: transparent url("http://www.pagetoscreen.net/images/leftquote.gif") -4px -4px no-repeat;
margin: 0px;
padding: 10px; 
}

article.offsite_entry {
background: transparent url(http://www.pagetoscreen.net/images/offsite.gif) repeat;
margin: 12px 12px 4px 8px;
padding: 4px 8px;
border: 1px solid #F4F1C3;
}

#content .category {

text-align: right;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:   .7em;
margin-right: 5px;
padding-bottom: 0px;
margin-bottom: 0px;
color:black;
font-weight: normal;

display: block;
}

#content .category em {
font-weight: bold;
}

#content .sectionhead a {
border: 0;
}


#content .sectionhead h1 {
/* font-family: Verdana, Arial, Helvetica, sans-serif; */
font-size:   1.7em;
line-height: 1.2em;
padding: 0px 10px;
margin: 0 0px 3px 0px;
color:#006E2D;
/* background: #ADBFB0; */
border-bottom: 1px dotted #CFDDD7;;
font-weight: bold;
}


#content .sectionhead strong {
font-weight: bold;
}

#content p.sectionintro {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:   .8em;
line-height: 1.6em;
padding: 2px 8px;
margin: 10px;
color:black;
background: #F1F4F2;
font-weight: normal;
}

#content .entry p.sectionintro {
clear:both;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:   .8em;
line-height: 1.6em;
padding: 4px;
margin: 0px 3px 3px 3px;
color:black;
background: #F1F4F2;
font-weight: normal;
}

#content .sectionhead strong {
font-weight: bold;
}

mark {
background: #FCE452 !important;
}

/* video screencasts and all */

video {
margin: 16px 3px 4px 3px;
border: 1px solid silver;
 -webkit-box-shadow: 0px 0px 22px #4e6b57;
    -moz-box-shadow: 0 0px 22px #4e6b57;
     -o-box-shadow: 0 0px 22px #4e6b57;
    box-shadow: 0 0px 22px #4e6b57;
 behavior: url(http://www.pagetoscreen.net/scripts/pie/PIE.htc);
 overflow-y: hidden;
 background-color: #4060af;
}


/* gallery categories */

.gallerycategories {

}

.gallerycategories img {
padding: 0;
margin: 0 0 2px 3px;
float:left;
}

.gallerycategories p {
padding: 0;
margin: 3px 0 4px 0;
}


/* wiki */

body#wiki #content .sectionhead h1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size:   .9em;
line-height: 1.6em;
padding: 2px 10px;
margin: 0 0px 6px 0px;
color: gray;
background: transparent;
border-bottom: 1px solid silver;
font-weight: normal;
}


/* for wiki TOC */
#toc {
font-size: .85em;
border: 1px solid #DEE4DA;
width: 220px;
float: right;
/* clear: left; */
padding: 2px 0 2px 2px;
margin: 4px 12px 0px 12px;
background: white;
      border: 1px solid #eaeace;
      border-radius: 8px;
      -moz-border-radius: 8px;
      -webkit-border-radius: 8px;
      -o-border-radius: 8px;
      box-shadow: 0 2px 12px #cfd1ce;
        -o-box-shadow: 0 2px 12px #cfd1ce;
        -webkit-box-shadow: 0 2px 12px #cfd1ce;
        -moz-box-shadow: 0 2px 12px #cfd1ce;
         behavior: url(http://www.pagetoscreen.net/scripts/pie/PIE.htc);
}

#toc p {
text-indent: 6px;
}

#toc p strong {
font-size: 1.5em;
border-bottom: 1px solid silver;
}

.entry #toc ul {
padding: 0 3px 0px 4px;
margin: 6px 3px 6px 12px;
list-style: none;
}

.entry #toc li ul {
font-size: .9em;
}

body#wiki #content p {
font-size: .8em;
text-align: left;
}

span.account {
font-family:verdana,sans-serif;
font-size:.7em;
text-align:right;
}

.account a {
color: gray;
}

br {
padding:0;
margin:0;
}

abbr {
border-bottom: 1px dotted green;
cursor: help;
}

/* edits */

del {
text-decoration: line-through;
color: #e3e3e3;
background: silver;
}

ins {
text-decoration: none;
color:green;
background:#FCF3F5;
}

fieldset.social ul {
list-style:none;
margin: 0 16px 4px 0px;
padding: 0;
 
}

fieldset.social li {
 display:inline;
 margin:2px 20px 2px 0;  
}

table.data {
    width:100%;
    border-collapse: collapse;
    font-size: .9em;
}

table.data td, table.data th {
    border:1px solid gray;
    padding:4px;
}
