a {
	text-decoration: none;
}

b {
	font-weight: bold
}

body {
	color: #696969;
	font-size: 0.9em;
	font-family: "Liberation Sans", Helvetica, Swiss, SunSans-Regular, Arial, sans-serif;
	background-color: #cbcbcb;
	margin: 0;
}

h1 {
	font-size: 1.4em;
	text-align: center
}

h2 {
	color: #c53461;
	font-size: 1.1em;
	margin: 2em 2em 0.5em 3em
}

h3 {
	margin: 1em;
	font-size: 1em;
}

i {
	font-style: italic
}

img {
	border: none
}

li {
}

p {
	margin: .5em 1em 1em;
}

ul {
	line-height: 2em;
	list-style-type: none;
	list-style-position: outside
}


#main {
	background-color: white;
	margin: 20px auto;
	min-width: 552px;
	max-width: 90%;
	position: relative;
	border: 2px solid #929292;
	box-shadow: 5px 5px 5px #969696;
}

#main-header {
	background: #ededed none no-repeat;
	padding: .5em;
	height: 90px;
	position: relative;
}

#main-middle {
	background: white none no-repeat;
	width: 100%;
	height: auto;
}

#main-footer {
	width: 100%;
	background: url(../images/menu/footer-background.png) repeat;
	margin-top: 10px;
}

#logo {
	float: left;
	height: 90px;
}

#phone {
	font: 1.1em "Lucida Grande", Lucida, Verdana, sans-serif;
	position: absolute;
	top: 5px;
	right: 0;
}

#phone a {
	color: #000;
	text-decoration: none;
}

#menu {
	position: absolute;
	right: 5px;
	top: 45px;
}

#menu img {
	height: 50px;
	width:  auto;
	margin-right: 10px;
	display: inline;
	background-image: url(../images/menu/menu-buttons-50.png);
	background-repeat: no-repeat;
	background-size: 100px 100px
}

#menu #about-button {
		background-position: -50px 0px;
}

#menu #about-button:active {
		background-position: 0px 0px;
}

#menu #home-button {
		background-position: -50px -50px;
}

#menu #home-button:active {
		background-position: 0px -50px;
}


#site-title {
	position: absolute;
	left: 240px;
	top: 25px;
	width: 15em;
	font: italic 1.2em "Lucida Grande", Lucida, Verdana, sans-serif;
	color: #7a7a7a;
}


#page-title {
	text-align: left;
	font-weight: bold;
	font-size: 1.1em;
	text-indent: 1em;
	background-color: #bebebe;
	padding: .2em;
}


.page {
	max-width: 100em;
	border: 5px solid #dcdcdc;
	padding: 2em;
	margin: 20px;
	background-color: #ededed;
}

#slides-enclosure {
	background-color: #e0e0e0;
	padding: 10px 10px 0;
}


/* Default orientation for the slides is horizontal */
/* Default position is at the top */

#slides {
	width: 100%;
	height: auto;
	overflow-x: scroll;
	overflow-y: hidden;
	white-space: nowrap;
	padding-bottom: 10px;
}

.thumbwrap {
	display: table-cell;
    vertical-align: middle;
}

#slides a {
    margin: 0px 8px 0px 8px;
	}

/* Size of thumbnails defaults to medium desktop or laptop */

#slides img {
	width: auto;
	height: 75px;
	border: 4px solid #d1d1d1;
	box-shadow: 4px 4px 4px #c3bfbf;
	display: inline;
}

#slides img.landscape {
	height:  auto;
	width: 75px;
}


#slides[orientation="vertical"] {
	width: 20%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: scroll;
	white-space: nowrap;
	background-color: #f0f0f0;
	margin-right: 20px;
	margin-left: 20px;
	float: left;
}


#slides[orientation="vertical"] img {
	display:  block;
}

#slides[orientation="vertical"] a {
	width:  100px;	
}

#spinner {
	width: 64px;
	height: 64px;
	background-image: url(../images/menu/spinner.png);
	background-repeat: no-repeat;
	background-position: 0 0;
	position: absolute;
	top: 0px;
	left: 0px;
	opacity: 0;
}

#slide-show {
	position: relative;
  	width: 100%;
	margin-top: 10px;
}


#slide-show [slidesorientation="vertical"] {
	float: left;
	min-width: 10px;
    max-width: 70%;
}


/* Slide Show Display Area - Defaults to Medium desktop display or laptop */

#slide-display-enclosure {
	margin-right: auto;
	margin-left: auto;
	text-align: center;
}

#slide-display {
	border: 4px solid #d1d1d1;
	max-height: 450px;
	max-width: 450px;
	z-index: -1;
}

#slide-display-front	 {
	border: 4px solid #d1d1d1;
	position:absolute;
	top: 0px;
	z-index: 0;
}

/* Controls default to vertical orientation on the right */

#controls {
	width:  50px;
	height:  auto;
	position: absolute;
	background-image: url(../images/controls/background-70.png);
	background-size:  70px 290px;
	background-repeat: no-repeat;
	padding: 10px;
	top: 80px;
	right: 10px;
}

#controls.left-handedness {
	left: 10px;
}

#controls.right-handedness {
	right: 10px;
}

#controls[orientation="horizontal"] {
	position: static;
	width: 220px;
	margin-right: auto;
	margin-left: auto;
}

#backward, #forward, #play, #stop, #handedness {
  width: 40px;
  height: 40px;
  margin: 15px;
  display:  block;
  background-image: url(../images/controls/buttons-40.png);
  background-size: 160px 160px;
  background-repeat: no-repeat;
  margin-right: auto;
  margin-left: auto;
}


#controls[orientation="horizontal"] img {
	display: inline-block;
}


#backward {
		margin-top: 4px;
		background-position: -80px -40px;
}

#backward:active {
		background-position: -120px -40px;
}

#forward {
		background-position: -80px -80px;
}

#forward:active {
		background-position: -120px -80px;
}

#play.play {
		background-position: 0px -40px;
}

#play.play:active {
		background-position: -40px -40px;
}

#stop {
		background-position: -0px -120px;
}

#stop:active {
		background-position: -40px -120px;
}

#play.fastforward {
		background-position: 0px 0px;
}

#play.fastforward:active {
		background-position: -40px 0px;
}

#handedness {
		margin-bottom: 8px;
		margin-left: 6px;
}

#controls.left-handedness #handedness {
	 	background-position: 0px -80px;
}

#controls.left-handedness #handedness:active {
		background-position: -40px -80px;
}

#controls.right-handedness #handedness {
		background-position: -80px 0px;
}

#controls.right-handedness #handedness:active {
		background-position: -120px 0px;
}

/* High Resolution Display Support */

@media only screen and (-webkit-min-device-pixel-ratio: 2),
	   only screen and (min-resolution: 192dpi),
	   only screen and (min-resolution: 2dppx)  {

#backward, #forward, #play, #stop, #handedness {
  		background-image: url(../images/controls/buttons-80.png);
}

#menu img {
		background-image: url(../images/menu/menu-buttons-100.png);
}

#controls {
		background-image: url(../images/controls/background-140.png);
}

}



p#copyright a {
		font-size: 1em;
}

p#copyright {
	margin: 0;
	padding: .5em;
}

#copyright, #copyright a {
	color: silver;
	font-style: italic;
	font-size: .8em;
	text-align: center;
}

#copyright a:hover {
	color: white;
}

#bottom-nav {
	text-align: center;
	padding-top: .5em;
	color: silver;
}

#bottom-nav p {
	margin: .5em 1em .5px;
}

#bottom-nav a:link {
	text-decoration: none;
	color: silver;
}

#bottom-nav a:visited {
	color: silver;
}

#bottom-nav a:hover {
	color: white;
}

#bottom-nav a:active {
	color: gray;
}

/******* DEBUG FRAME */


body:after {
	position: fixed;
	top: 0;
	right: 0;
	background-color: teal;
	color: white;
	padding: 1em;
	display: block;
	opacity: .7;
	display: none;
}



/******** Display Styles when media queries not available */
/******** Default is Medium desktop display or laptop style */
/******** 1024 logical css pixals in width and larger */

body:after {
	content:  "Medium Desktop or Laptop Display";
}	




/********* Large Desktop Display Styles - 1680 logical css pixels in width and larger */

@media only screen and (min-device-width: 1680px)  {

body:after {
	content:  "Large Desktop Display";
}	

#slide-display {
	max-height: 550px;
	max-width: 550px;
}

#slides img {	
	height: 120px;
	border-width: 5px;
}

#slides img.landscape {
	width: 120px;
}


}


/****** Smartphone and Tablet Styles - Devices that are 1023 logical css pixels in width and smaller */
/****** Catch all for Tablets in Portrait orientation  */
/******* Also includes Small Desktop Display Styles - 1023 logical css pixels in width and smaller */



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

body:after {
	content:  "Tablet or Small Display";
}	

#bottom-nav {
	display:none;
}

body {
	background-color: white;
	min-width: 100%;
	height: 100%;
	width: 100%;
}

#main {
	margin: 0;
	max-width: 100%;
	min-width: 100%;
	width: 100%;
	height: 100%;
	border: none;
	box-shadow: none;
}


}


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

body:after {
	content:  "SmartPhone, tablet, or small display";
}	

p {
	font-size:  .7em;
}

a {
	text-decoration: none;
}

#main-header {
	height: 40px;
	padding: 5px;
}

#logo {
	height: 40px;
}


#site-title {
   left: 100px;
   top: 20px;
   width: 15em;
}

#phone {
	top: 2px;
	left: 113px;
	right: 0;
    font-size: .7em;
}

#menu {
	right: 0px;
	top: 5px;
}

#menu img {
	height: 40px;
	background-size: 80px 80px;
	margin-right: 5px;
}

#menu #about-button {
		background-position: -40px 0px;
}

#menu #about-button:active {
		background-position: 0px 0px;
}

#menu #home-button {
		background-position: -40px -40px;
}

#menu #home-button:active {
		background-position: 0px -40px;
}

#page-title {
	font-size: .5em;
}

.page {
	max-width: 100%;
	border: none;
	padding: 0;
	margin: 0;
	background-color: white;
}


#slides-enclosure {
	padding: 5px 5px 0;
}

#slides {
	padding-bottom: 0px;
}
	
#slides a {
  margin: 0px 3px 0px 3px;
	}

#slides img {
	height: 50px;
	box-shadow: 2px 2px 2px #c3bfbf;
	border-width: 2px;
}

#slides img.landscape {
	width: 50px;
}

#slide-display {
	max-height: 300px;
	max-width: 300px;
}

#slide-show {
	margin-top: 10px;
}

#copyright, #copyright a {
	font-size: .5em;
}

#controls {
display: none;
}

#copyright, #copyright a {
	font-size: .5em;
}


}



/****** Smartphone Styles - 767 logical css pixels in height and smaller */
/****** Smartphone Landscape orientation  not directly supported */
/******* Also includes Small Desktop Display Styles -  767 logical css pixels in height and smaller */

/*

@media only screen and (max-device-height:767px) and orientation(landscape) {

body:after {
	content:  "SmartPhone in Horizontal Orientation";
}	


#slide-display {
	max-height: 200px;
}

#slides img {
	height: 55px;
}


}
*/

/****** Print Media Styles */

@media print {
	
#slides {
	display: none;
}

#slides-enclosure {
	display: none;
}


b {
	color: black;
	font-weight: bold;
}

#copyright {
	color: #818181
}

body {
	background-color: white;
	min-width: 100%;
	max-width: 100%;
	height: 100%;
	width: 100%;
}

#main {
	color: black;
	background-color: white;
	font-size: 10pt;
	border: none;
	margin: 0pt;
	max-width: 100%;
	min-width: 100%;
	width: 100%;
	height: 100%;
}

}







