﻿/* ----------------------------------------------
hh-main22.css   Style Sheet for Historic Hampshire	
target URL: historichampshire.info    
version: 22c 
last modified: 4/30/14 to fix problem of h1,h2,etc centering; 4-28-center img; remove content img float left; 4/3-include .middle to center titles    
by: CCHall
-----------------------------------------------*/

html {
	width: 100%;
	height: 100%;
	}
	
/* Reset  ------------------------------- */
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, p, blockquote, th, td
{
 	margin: 0; 
	padding: 0; 
}
li {
	margin-top:7px;
	margin-left:7px;
	list-style: circle;
}
/* End Reset --------------------------------------------*/


/* Basic Header settings*/
h1,h2,h3,h4,h5,h6 {
	margin: 10px 0 5px 0;
}

h1 {
	font-size: 1.8em;
	margin-bottom: .6em;
}

h2 {
	font-size: 1.6em;
}
h3 {
	font-size: 1.4em;
}
h4 {
	font-size: 1.2em;
}

/* class=middle  to center titles, h1, h2 etc. ----------------------------*/
.middle	{
	text-align: center;
}

/* Utility classes  class=*  --------------------------------------*/
.hideme {
	display: none;
}

.clearme {
	clear: both;
}

.nofloat {     /* DO NOT FLOAT */
	float: none;
}
/* End Utility classes ----------------------------------*/


/* Begin styling - top level down* note in sample it was left top */
/* use standard body for banners 330 or more pixels high */
body {
	background: #FFF798 url('bannerstrip.jpg') repeat-x left top; min-width: 960px; margin: 0;
	font-family: times new roman, times, serif;
}

body.paper {
	background: #FFF798 url('bannerstrip320.jpg') repeat-x left top; min-width: 960px; margin: 0;
	font-family: times new roman, times, serif;
}

/*  body class=high320  is used for banners 238 to 310 high: photo, churches, maps, veterans */
/* NOTE: databanner is 960 wide */
body.high320 {
	background: #FFF798 url('bannerstrip320.jpg') repeat-x left top; min-width: 960px; margin: 0;
	font-family: times new roman, times, serif;
}

/*  body class=low  is used for shorter banners */
body.low {
	background: #FFF798 url('bannerstrip320.jpg') repeat-x left top; min-width: 960px; margin: 0;
	font-family: times new roman, times, serif;
}


/* Styling the Header - this is the banner element of the page*/
header {                    
	width: 776px;
	margin: 0 auto;
	font-size: 1.2em;
	text-align: center;
}
/* shadow was #333333  removed text shadow from above */

header img	{
	width: 780px;
	margin: 0 auto;
	text-align: center;
	text-shadow: -2px 4px 3px #8B8878;
	-webkit-box-shadow: 3px 3px 3px 3px #4f4f4f;
	-moz-box-shadow: 3px 3px 3px 3px #4f4f4f;
	box-shadow: 3px 3px 3px 3px #4f4f4f; 
	margin-bottom: 40px;
}

/* TITLE id gives margin below title and seal of opening page */
#title	{
	margin-top: 0;
	margin-bottom: 24px;
}

/* Enclosing the centered elements of the page */
#container {
	width:730px;
	margin-top: 20px;
	margin-right: auto;
	margin-left: auto;
	padding: 0 4px;
	font-size: 1em;
}
/* below class=container920 - there may be several wide pics in a page */
.contain920	{
	width:920px;
	margin-top: 20px;
	margin-right: auto;
	margin-left: auto;
	padding: 0 4px;
	font-size: 1.2em;
}

#content {
	width: 720px;
	font-size: 1.2em;
	padding: 2px 1 2 1;
	background: #FFF798;
	margin-right: auto;
	margin-left: auto;
	text-align: left;
}

#paper {
	width: 690px;
	border-radius: 20px;
	background: #F5F5DC;
	padding: 20px;
	margin-right: auto;
	margin-left: auto;
	font-size: 1.2em;
	text-align: left;
}

#paper img {
	-webkit-box-shadow:  3px 3px 3px 3px #ffffff;
	-moz-box-shadow: 3px 3px 3px 3px #ffffff;
	box-shadow: 3px 3px 3px 3px #ffffff;
}

.subtitle2 {
	width:170px;
	text-indent: 0;
	padding-top: 20px;
	font-family: sans-serif;
    	font-size: 0.9em;
}

.articletitle {             /* Title above the content with H1, H2 and H3 elements */
	text-align: center;
	padding: 20px 0;
}

/* NOTE *** Need a Div for titles to take care of vertical spacing problems; suggest that h1,h2,h3,etc have small spacing required within paragragh content and that a Div class=title have spacing for above and below title set (h1 and h2 and h3) */

.titles {
	margin-bottom: 30px;
	text-align: center;
}

/* for use with medium Review banner for separate sections of articles */
.paperlogo {
	margin-top:20px;
	margin-bottom:20px;
	overflow: auto;
}


/* PARAGRAPH ELEMENTS AND SELECTORS ------------------------- */
/* Paragraph rules for ledgible text, includes drop caps and text from other sources that is not a block quote */
p	{                          
	line-height: 1.2em;
	text-indent: 1.2em;
	margin-bottom:.5em;
}

p.noindent{                 /* create class="noindent" for non-indented paragraphs*/
	text-indent: 0;
}

/* paragraph class=sans is indented with Arial/sans font */
p.sans	{
	font-family: "Arial",arial,helvetica,sans;
}

/* to left align particularly within Container Div outside of Content/Paper Div */
.left	{
	text-align: left;
}

.extract {                  /* Short text from outside sources without the need for a full block quote */
	border-left:2px solid #696969;
	color:#606060;
	font-style:italic;
	font-size: 1em;
	font-weight: bold;
	margin:10px;
	padding:0 10px;
	text-indent:0;
}

figure {
	font-family:arial, Arial, sans-serif;
	text-align:center;
}

figcaption {
	font-family:arial, "Arial", sans-serif;
	font-size: 1em;
}


/*  BEGIN IN TEXT SELECTORS ----------------------*/
	
blockquote {                  /* Used with HTML tag <blockquote> */
	width: 80%;
	margin: 10px 20px;
 	padding: 15px 15px 15px 32px;  
	font-weight: normal;
	font-size: 1em;
	line-height: 1.2em;
	font-style: italic;
	font-family: "Times New Roman", Times, serif;	
	}
	
	blockquote:before, blockquote:after {  /* Pseudo Selectors used to style prepended and appended elements */
		display: block;
		font-size: 300%;
		width: 50px;
	}

	blockquote:before {       /* Pseudo Selector - Prepend an opening quote glyph */
		content: open-quote;
		height: 0;
		margin-left: -0.55em;
	}

	blockquote:after {       /* Pseudo Selector - append a closing quote glyph ||Change Percentage to EM value|| */
		content: close-quote;
		height: 10px;
		margin-left: 90%;
	}
/* END IN TEXT ELEMENT SELECTORS --------------------------------------------------------- */
	
	
/* FLOATING SIDEBAR ELEMENTS ------------------------------------------------------------- */
/* floatbox ID for ENCLOSING ALL RIGHT SIDEBAR ELEMENTS into a uniform width/line */
/* floatbox was width:200px; float:right; margin:0; padding:0; then added background: #FFF798; */
/* 2/19/14 added clear: both */
#floatbox { 
	clear:both;
	color: maroon;
	width: 180px;
	position:relative;
	float: right;
	background: #EEE8AA;
	margin: 10px,0,6,18;
	padding: 8px;
	border:2px solid;
	display: inline;
}

/* Special notice text boxes */
#special1	{
	margin-top: 8px;
	margin-left:2px;
	width: 160px;
	float: left;
	padding: 2px;
	background: #D3D3D3;
	border: 4px solid #FF0000;
	color: black;
	}

#special2	{
	margin-top: 8px;
	margin-left: 2px; 
	margin-bottom: 8px;
	width: 158px;
	float: left;
	padding: 4px;
	background: #FFEBCD;
	border: 4px solid #0000CD;
	color: black;
	}


.rightaside {  /* This .rightaside will REPLACE #floatbox as the mechanism for inline floating of author reference in the HTML content of pages; had  in background none repeat scroll 0 0 */
	width: 168px;
	background: #D3D3D3;
	float: right;
	margin: 10px 0 20px 10px;
	padding: 8px;
	border:2px solid;
}

.redcolor {    /* For right or left sidebar elements to be colored RED for EMPHASIS */
	border-color: red;
	background: #FAEBD7;
}


#author	{
	width: 168px;
	background: #dcdcdc;
	float: right;
	margin: 10px 0 20px 10px;
	padding: 8px;
	border:2px solid;
	font-size: 1em;
}

/* END SIDEBAR FLOATING ELEMENTS ------------------------------------------------------------- */

/* BEGIN indented subdirectory like divs */
.subdir	{
	margin: -5px 0px 10px 30px;
}
/* END indented subdirectory like divs */


/* IMAGES RULES  ---------------------------------------------------------------------- */
/*  remove "p" so paragraph text is not drop shadow */
/* Basic Image inside of a paragraph, includes drop shadow for FF and Chrome (possibly opera) */
#content img {
	display: block;
	margin: 5px 10px 5px 5;
	border: #000 2px solid;
	-webkit-box-shadow:  3px 3px 3px 3px #696969;
	-moz-box-shadow: 3px 3px 3px 3px #696969;
	box-shadow: 3px 3px 3px 3px #696969; 
}

img.center {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    text-align:center;
}

img.right {
	display: block;
	float: right;
	test-align: right;
} /* margins not working */

#widepic	{   /* LEGACY FROM HH-MAIN17 ||INTEGRATE INTO PAGES USING THIS ID-CHANGE ID TO CLASS FOR MULTIPLE WIDE IMAGES PER PAGE|| */
	background: #FFFACD;
	margin-right: auto;
	margin-left: auto;
	width: 990px;
}
/* AFTER main content text rules -------------------------------------------*/


#footnote {     /* Used with ID="footnote" tag attribute - smaller font size and larger margin USE internal IDs for targeting from upper part of page.*/
	font-size:0.8em;
	margin:1em 3em;
	text-indent:-3em;
}

dt {             /* Definition Term or the first element */
	font-weight: bold;
}
dd {            /* Definition Data or the description of the first element NOTE: DON'T FORGET TO ENCLOSE IN A DL (DEFINITION LIST) */
	padding-left: 2em;
}


#timelist li{    /* A timeline list selector that points at the individual LIST ITEMS in a UL Timeline */
	padding-left: 2em;
	text-indent: -2em;
	padding-bottom: .2em;
	list-style: circle inside;	
}

#foot	{
	background: #3c5337;
	background-image:url('bgleaves.jpg');
	background-repeat:repeat;
	width: 100%;
	margin: 0px 0 0 0;
	padding: 10px 0 5px 0;
	font-family: arial, Arial, helvetica, sans-serif;
	text-align: center;
	}


/* Foot links MUST be a different color since they are on a dark background - this facilitates ledgibility */
#foot a:link {  
	color:#FFF8DC;
}
#foot a:visited {
	color:#ddd8DC;
}
#foot a:hover {
	color:#fff;
}
#foot a:active {
	color:#FFF;
}
/* END foot links cluster*/

/* -Probably not needed -  Used to set the width of the footer for precisely matching the container elements above */
/* div.infooter {   
	color: #BDB76B;
	width: 775px;
	margin: 0 auto;
	text-align: center;
} */