/* Start of CMSMS style sheet 'TCNA Layout: Top menu + 2 columns' */
/*****************
browsers interpret margin and padding a little differently, 
we'll remove all default padding and margins and
set them later on
******************/
* {
margin:0;
padding:0;
}

/*
Set initial font styles
*/
body {
   text-align: left;
   font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
   font-size: 75.01%;
   line-height: 1em;
}

/*
set font size for all divs,
this overrides some body rules
*/
div {
   font-size: 1em;
}

/*
if img is inside "a" it would have 
borders, we don't want that
*/
img {
   border: 0;
}

/*
default link styles
*/
/* set all links to have underline and bluish color */
a,
a:link 
a:active {
   text-decoration: underline;
/* css validation will give a warning if color is set without background color. this will explicitly tell this element to inherit bg colour from parent element */
   background-color: inherit; 
   color: #111;
}

a:visited {
   text-decoration: underline;
   background-color: inherit;
   color: #111;               /* a different color can be used for visited links */
}


/* remove underline on hover and change color */
a:hover {
   text-decoration: none;
   color: #8B8B8B;
}

/*****************
basic layout 
*****************/
body {
   background-color: #EAE9E3;
   color: #000;
   margin: 0; /* gives some air for the pagewrapper */
}

/* center wrapper, min max width - must be wide enough to accommodate Eric's borders */
div#pagewrapper {
    margin: 0 auto;    /* this centers wrapper */
   max-width: 913px; /* IE wont understand these, so we will use javascript magick */
   min-width: 913px;
   background-color: transparent;
   color: black;
   padding-left: 4px;
   padding-right: 4px;
}


/*** header ***
we will hide text and replace it with a image
we need to assign a height for it
*/

div#header {
   height: 104px; /* adjust according your image size */
   background: transparent;           
}

div#header h1 a {
   margin-top: 1px; /* necessary for IE7 */
   margin-left: 5px;
   background: transparent url(images/tcna/tuscanycanterbury_logo.png) no-repeat 0 20px;  /* was 12px */
   height: 104px;             /* adjust according your image size */
   display: block;
   text-indent: -999em;  /* this hides the text */
   text-decoration:none; /* old firefox would have shown underline for the link, this explicitly hides it */
}

div#topbar {
   height: 36px;
}

div#sectionheader {
   float: left;
   width: 500px;
   font-weight: bold;
   font-size: 1.5em;
   color: #a23a35;
}

div#search {
   float: right;
   width: 300px;     /* enough width for the search input box */
   text-align: right;
}

div#content {
   padding: 36px;
   background: #FFF;
}

div#main {
   margin-left: 220px; /* this will give room for sidebar to be on the left side, make sure this space is bigger than sidebar width */
   margin-right: 50px; /* and some air on the right */
   padding-left: 24px;
   width: 488px;
   background: #FFF url(images/tcna/hr_dots.png) repeat-y;
}

div#leftsidebar {
   float: left;  /* set sidebar on the left side. Change to right to float it right instead. */
   width: 200px;    /* sidebar width, if you change this please also change #main margins */
   display: inline;  /* FIX ie doublemargin bug */
}

#leftsidebar a:hover, #leftsidebar ul li a:hover {
   color: #8B8B8B;
}

div#rightsidebar {
   float: right;
   width: 45px;
   display: inline;
}

div#footer {
   clear:both;       /* keep footer below content and menu */
   color: #8B8B8B;
   background-color: transparent; /* same bg color as in header */
}

div#footer p {
   font-size: 0.8em;
   padding: 1.5em;      /* some air for footer */
   text-align: left; /* not centered text */
   margin:0;
}

div#footer p a {
   color: #8B8B8B; /* needed because footer link would be same color as background otherwise */
}

/* as we hid all hr for accessibility we create new hr with extra div element */
div.hr {
   height: 5px;
   margin: 1em 0 1em 0;
   background: #FFFFFF url(images/tcna/hr_dots.png) repeat-x; 
}

div.hrdots {
   height: 5px;
   margin: .2em 0 .8em 0;
   background: #FFFFFF url(images/tcna/hr_dots.png) repeat-x; 
}

div.hrsolid {
   height: 1px;
   margin: .6em 0em 1em 0;
   background: #59595B;
}

div.hrpagewidth {
   height: 5px;
   width: 827px;
   margin-bottom: 20px;
   background: #FFFFFF url(images/tcna/hr_dots.png) repeat-x; 
}

/* relational links under content */
div.left49 {
  width: 79%;  /* 50% for both left and right might lead to rounding error on some browser */
}

div.right49 {
  float: right;
  width: 29%;
  text-align: right;
}

div.right49 a, div.right49 a:visited {
   text-decoration: none;
}



/********************
CONTENT STYLING
*********************/

/* HEADINGS */
div#content h1 {
   font-size: 2em;  /* font size for h1 */
   line-height: 1em;
   margin: 0;
}
div#content h2 {
   color: #000; 
   font-size: 1.5em; 
   text-align: left; 
   line-height: 1.5em;
/* and some air under the border */
   margin: 0 0 0.5em 0;
}
div#content h2 a {
   text-decoration: none;
}

div#content h3 {
   color: #000; 
   font-size: 1.3em;
   font-family: Helvetica, Tahoma, sans-serif;
   line-height: 1.3em;
   margin: 0 0 0.5em 0;
}
div#content h4 {
   color: #000; 
   font-size: 1.2em;
   font-family: Helvetica, Tahoma, sans-serif;
   line-height: 1.3em;
   margin: 0 0 0.25em 0;
}
div#content h5 {
   font-size: 1.1em;
   line-height: 1.3em;
   margin: 0 0 0.25em 0;
}
h6 {
   font-size: 1em;
   line-height: 1.3em;
   margin: 0 0 0.25em 0;
}
/* END HEADINGS */

/* TEXT */
p {
   font-size: 1em;
   margin: 0 0 1.5em 0;  /* some air around p elements */
   line-height:1.4em;
   padding: 0;
}
blockquote {
   border-left: 10px solid #ddd;
   margin-left: 10px;
}
pre {
   font-family: monospace;
   font-size: 1.0em;
}
strong, b {
/* explicit setting for these */
   font-weight: bold;
}
em, i {
/* explicit setting for these */
   font-style:italic;
}

/* Wrapping text in <code> tags. Makes CSS not validate */
code, pre {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
 font-family: "Courier New", Courier, monospace;
 font-size: 1em;
}

pre {
   border: 1px solid #000;  /* black border for pre blocks */
   background-color: #ddd;
   margin: 0 1em 1em 1em;
   padding: 0.5em;
   line-height: 1.5em;
   font-size: 90%;   /* smaller font size, as these are usually not so important data */
}

/* END TEXT */

/* LISTS */
div#main ul,
div#main ol,
div#main dl {
  font-size: 1.0em;
   line-height:1.4em;
   margin: 0 0 1.5em 0;
}
div#main ul li,
div#main ol li {
   margin: 0 0 0.25em 3em;
}

div#dl dt {
   font-weight: bold;
   margin: 0 0 0.25em 3em;
}
div#dl dd {
   margin: 0 0 0 3em;
}
/* END LISTS */

/********************
search styling
*********************/
#searchbutton {
   border: 0;
   margin: auto 0 auto 4px;
   padding: 0;
   width: 20px;
   height: 20px;
   background: #FFFFFF url(images/tcna/search_button.png) no-repeat;
   cursor: pointer;
   text-indent: -999em;
}

/********************
Eric's borders
*********************/
div#navsideborder {
   margin-left: 0px;
   padding: 0;
   background: transparent;
   border: 0;
   border-left: 1px solid #8B8B8B;
}

div#contentsideborder {
   width: 899px;  /* or 898px, margins get messed up easily */
   padding: 0 4px 0 4px;
   background: transparent;
   border: 0;
   border-left: 1px solid #8B8B8B;
   border-right: 1px solid #8B8B8B;
}

div#contenttopbottomborder {
   padding: 4px 0 4px 0;
   background: transparent;
   border: 0;
   border-top: 1px solid #8B8B8B;
   border-bottom: 1px solid #8B8B8B;
}

/********************
Home style
*********************/
div.homecontent {
   padding-top: 0px;
   min-height: 554px;
   height:auto !important;
   height: 554px;
}

div#homemain {
  padding: 24px;
  width: 328px;
  height: 382px;
  overflow: auto;
  background: #FFF;
  margin-top: 155px;
}

div#homesearch {
   width: 300px;     /* enough width for the search input box */
}

div#homenews {
   background: #FFF url(images/tcna/home_news.png) no-repeat;
   margin: 1.8em 0 0em 0;
   text-indent: -999em;
}

div#homeevents {
   background: #FFF url(images/tcna/home_events.png) no-repeat;
   margin: 2.2em 0 0em 0;
   text-indent: -999em;
}

/********************
Context color
*********************/
.color-the-neighborhood {
   color: #a23a35;
}

.color-neighborhood-association {
   color: #d66f3c;
}

.color-business-directory {
   color: #718e4b;
}

.color-government-services {
   color: #45749c;
}

a.more, a:visited.more {
   color: #a23a35;
   font-weight: bold;
   font-size: .8em;
   text-decoration: none;
   margin: 0 0 0 1em;
}

/********************
Picasa
*********************/
div#picasa {
   height: 400px;
}

.pwaAlbum {
   width:200px;
   height:200px;
   float: left;
   margin: 0 0 1em 0;
}

.pwaLink {
display: inline;
width: 180px;
}

.pwaTitles {
   clear:both;
   width:200px;
   padding: .6em 0 .6em .2em;
   text-align:left;
}
/* End of 'TCNA Layout: Top menu + 2 columns' */

