body
{
  counter-reset: chapter section subsection;
  color: black;
  line-height: 1.3;
}

#generated_table_of_contents h4
{
  margin-bottom: .25em;
}

#generated_table_of_contents ul
{
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#generated_table_of_contents ul ul
{
  margin-left: 2em;
}

#generated_table_of_contents a
{
  text-decoration: none;
  color: inherit;
}

#footer
{
  /* text-align: center; */
  clear: both;
}

h1, h2
{
  clear: both;
}

img
{
  border: none;
}

.centered-bordered-block
{
  text-align: center;
  margin-left: auto;
  margin-right: auto;  
}

.centered-bordered-block img
{
  border: 1px solid;
}

.centered
{
  text-align: center;
  clear: left;
}

hr
{
  border: 1px solid;
  border-color: black;
  clear: both;
}

div.menu-row
{
  display: table-row;
}

div.menu-row div.menu-item
{
  display: table-cell;
  width: 35ex;
  text-align: left;
  padding-top: 3px;
}

/* I needed this one, and the next, for my cv, but I'm not sure if I should make this in-line css or not */
div.table-layout-row
{
  display: table-row;
}

div.table-layout-row div.column
{
  display: table-cell;
  width: 30ex;
  text-align: left;
  padding-top: 3px;
}

q
{
  quotes: "\201C" "\201D";
}

table.standard_table thead
{
  background-color: #fcf8a9;
}

table.standard_table tr,td,th
{
  border: solid 1px;
}

table.standard_table
{
  border: solid 1px;
  border-collapse: collapse;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

abbr
{
  border-bottom: 1px dotted;
}

@media screen
{
  body
  {
    font-family: sans-serif;
    padding: 0px;    
    background: #aaa;
    background: #EAF7D4;
    background: #ece3ba;
    margin: 0px;
    margin-bottom: 10px;
  }
  
  #header
  {
    margin: 0 -15px 0px -15px;
    background: white;    
    text-align: center;
    height: 110px;
    color: black;
    width: 830px;
  }
  
  #footer
  {
    margin: 15px -15px -15px -15px;
    background: white;        
    height: 110px;
    color: black;
    width: 830px;
    background-image: url(/media/footer-image.jpg);
    background-position: top left;
    border-top: 1px solid;
    border-bottom: 1px solid;    
  }
  
  #footertext
  {
    padding-left: 10px;        
    width: 650px;
    float: left;
    margin: 0px;
  }
  
  #footertext p
  {
    margin-left: 0;
    margin-right: 0;
    margin-top: 1ex;
    margin-bottom: 1ex;
  }
  
  .centered-bordered-block
  {
    background: #eee;
    color: black;
    border: 1px solid;
  }
  
  a.digglink
  {
    color: red;
    background: white;
  }
  
  div#main-content
  {
    background: white;
    width: 800px;
    margin-top: 0px;
    margin-left: auto;
    margin-right: auto;    
    border: none;    
    padding: 15px;
    padding-top: 0px;
    border-bottom: 1px solid;    
  }
  
  div.main-border
  {
    border: none;
    width: 850px;    
    padding: 0px;    
    margin-left: auto;
    margin-right: auto;
  }
  
  
  div#right-main-border
  {
    background-image: url(/media/border-gradient-b-to-w.png);
    background-repeat: repeat-y;
    background-position: right;
  }
  
  div#left-main-border
  {
    background-image: url(/media/border-gradient-w-to-b.png);
    background-repeat: repeat-y;
    background-position: left;
  } 
  
  #adsense_linkunit_top
  {
    width: 728px;
    height: 15px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
  }
  
  #adsense_square
  {
    width: 200px;
    height: 200px;
    float: left;
    margin-right: 5px;
    margin-bottom: 5px;
  }

  #matchmaker_square
  {
    width: 120px;
    height: 240px;
    float: left;
    margin-right: 5px;
    margin-bottom: 5px;
  }
  
  #adsense_top, #projectwonderful_default_top
  {
    width: 728px;
    height: 90px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px; /* I put this here for PW. Adsense ads may get ugly */
  }
  
  #adsense_bottom, #projectwonderful_default_bottom
  {
    width: 728px;
    height: 90px;
    margin-left: auto;
    margin-right: auto;
  }
  
  #amazon_product
  {
    width: 120px;
    height: 240px;
    float: left;
    margin-right: 5px;
    margin-bottom: 5px;
  }
  
  .amazon
  {
    width: 728px;
    height: 90px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
  }
  
  div#menu
  {
    border-bottom: 1px solid;
    border-top: 1px solid;
    width: 830px;
    padding: 0;
    margin-left: -15px;
    margin-right: -15px;
    background: #6fa127;
  }
  
  div#menu a
  {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
  }
  
  div#menu a.active
  {
    text-decoration: none;
  }
  
  div#menu ul
  {
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
  
  div#menu li
  {
    float: left;
    width: 20%;
    text-align: center;
  }

  div#menu li.active
  {
    background: #97db35;
  }
  
  div#breadcrumb
  {
    margin-top: 1ex;
    font-size: 85%;
  }
  
  div#breadcrumb a
  {
    text-decoration: none;
    color: #76A727;
  }
  
  div.code
  {
    overflow: auto;
    background: #eee;
  }

  h1, h2, h3, h4, h5, h6
  {
    color: #9D7E17;
  }

  a
  {
    color: #b33e27;
    text-decoration: none;
  }
  
  a:hover
  {
    text-decoration: underline;
  }


  blockquote
  {
    padding-top: 12px;
    background: url('/media/quote-open.png') no-repeat top left;
    padding-left: 45px;
    margin-left: 0ex;
    margin-right: 5ex;
  }
  
  blockquote p:first-child
  {
    margin-top: 0;
  }

  div.blockquote
  {
    min-height: 40px;
    background: url('/media/quote-close.png') no-repeat bottom right;
    padding-right: 40px;
  }
  

}

@media print
{
  body
  {
    font-family: serif;
    background: white;
  }
  
  *
  {
    color: black;
    background: white;
  }
  
  .amazon, #adsense_bottom, #adsense_top, #menu, #footer, #header, #breadcrumb, #adsense_square, #amazon_product, #adsense_linkunit_top, #matchmaker_square, #projectwonderful_default_bottom, #projectwonderful_default_top
  {
    display: none;
  }
  
  .centered-bordered-block
  {
    border: none;
  }
  
  a
  {
    color: black;
    background: white;
    text-decoration: underline;
  }
  
  div#main-content
  {
    width: 100%;
    border: none;
  }
  
  div.code
  {
    overflow: hidden; 
  }
  
  div#ie-notice
  {
    display: none;
  }

}
