/* General style settings */
img {
	border-width: 0;
}

a {
  color: #105289;
  text-decoration: none;
  font-weight: bold;
}
a:hover {
  color: #BC2A4D;
  text-decoration: underline;
}

a.noul {
  text-decoration: none;
}
a:hover.noul {
  text-decoration: none;
}

/* Site-wide layout */
html {
  overflow-y: scroll; /* Always show a scrollbar for short pages - stops the width jumping */
}
body {
	font-family: Helietica, Geneva, Arial, sans-serif;
	color: black;
	background-color: #7799bb;
	margin: 0;
	padding: 6px 0;
}

h3 {
	margin-top: 1.5em;
}

hr {
	color: blue;
	background-color: blue;
	width: 75%;
	height: 2px;
}

#mainbody {
	max-width: 960px;
  min-width: 760px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1em;
}
#header {
	color: white;
	background-color: #365FA4;
	background-image: url("../parts/bg_header.png");
	background-repeat: repeat-x;
	padding: 0 5px;
	margin-bottom: 4px;
}
#header #logo {
	float: left;
	padding: 5px 5px 0 10px;
}
#header h1 {
	margin: 0;
	padding: 10px 0 0 0;
}
#header p {
	margin: 5px 0;
}
#content {
	background-color: #E8F5FF;
	padding: 1px 40px 30px 40px;
}
#footer {
	padding-top: 1.5em;
	font-size: x-small;
}
#footer-left {
	float: left;
	text-align: left;
}
#footer-right {
	float: right;
	text-align: right;
}
a.subpage_link {
	font-size: larger;
	font-weight: bold;
}

.shadow {
	position: relative;
	left: 6px;
	top: 6px;
	background-color: #667799;
	line-height: 0;
}
.shadow img {
	position: relative;
	left: -6px;
	top: -6px;
}

/* Rounded borders on header */

span.corners-top, span.corners-bottom, span.corners-top span, span.corners-bottom span {
	font-size: 1px;
	line-height: 1px;
	display: block;
	height: 5px;
	background-repeat: no-repeat;
}
span.corners-top {
	background-position: 0 0;
	margin: 0 -5px;
}

span.corners-top span {
	background-position: 100% 0;
}

span.corners-bottom {
	background-position: 0 100%;
	margin: 0 -5px;
	clear: both;
}

span.corners-bottom span {
	background-position: 100% 100%;
}

/* proSilver Style Sheet Tweaks

These style definitions are mainly IE specific 
tweaks required due to its poor CSS support.
-------------------------------------------------*/

* html span.corners-top, * html span.corners-bottom { background-image: url("/parts/corners_left.gif"); }
* html span.corners-top span, * html span.corners-bottom span { background-image: url("/parts/corners_right.gif"); }

span.corners-top {
	background-image: url("/parts/corners_left.png");
}

span.corners-top span {
	background-image: url("/parts/corners_right.png");
}

span.corners-bottom {
	background-image: url("/parts/corners_left.png");
}

span.corners-bottom span {
	background-image: url("/parts/corners_right.png");
}

#navbar {
	height: 45px;
}
#nav_path {
	background-color: #ddd;
	font-size: 11px;
	height: 16px;
	padding: 3px 0 0 25px;
}
#nav_path a {
	color: inherit;
	text-decoration: none;
}
#nav_path a:hover {
	text-decoration: underline;
}

/* Page specific layout */
/* Front page */
#table_congregations {
	width: 100%;
}
#table_congregations td {
	padding: 0 10px 5px 10px;
	vertical-align: top;
}
#table_congregations td.photo {
	text-align: center;
}
#table_congregations h3 {
	text-align: center;
	margin: 0 0 10px 0;
}

#section_blocks {
  margin: 15px 0 0 0;
  width: 100%;
}
#section_blocks td {
  width: 20%;
  padding: 0;
  text-align: center;
}
#section_blocks img {
  border: solid #abdcff; 
}
#section_blocks img:hover {
  border: solid #e795a8;
}

/* Study guides */
ul.resource_list {
  margin: 0 0 0 30px;
  padding: 0;
}
ul.resource_list li.pdf {
  margin: 0;
  padding: 6px 0 18px 50px;
  list-style: none;
  background: url('../parts/pdf_icon.gif') no-repeat top left;
}

/* Press release */
table.press_release {
	width: 100%;
}
table.press_release th {
	font-size: 1.2em;
	font-weight: bold;
	text-align: left;
	padding: 5px 0 5px 10px;
}
table.press_release td {
	vertical-align: top;
	padding: 15px 10px;
}
table.press_release tr.spacer td {
	padding: 0;
}

/* Diary page */
.diary td {
	vertical-align: top;
	padding: 0.3em;
}
.diary td.day {
	width: 6em;
	font-weight: bold;
}
.diary td.time {
	width: 4em;
	text-align: right;
	padding-right: 1.5em;
}
.diary tr.spacer {
	height: 10px;
}

/* Leadership gallery */
#gallery table {
	width: 90%;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}
#gallery td {
	vertical-align: top;
	padding: 5px;
}
#gallery tr.spacer td{
	vertical-align: middle;
	height: 40px;
}

/* Worldwide mission page */
table.mission th {
	text-align: left;
	font-size: large;
}
table.mission td.organisation_info {
	padding: 10px 20px;
}
table.mission td.missionary_info {
	vertical-align: top;
	padding: 0 20px;
}
table.mission td.missionary_image {
	width: 200px;
	vertical-align: top;
	padding: 20px 0;
}

/* Sermons page */
table.sermons {
	width: 100%;
}
table.sermons th {
	text-align: left;
	padding: 0 0 0 0;
}
table.sermons th.arrow {
	width: 25px;
}
table.sermons th.arrow img {
	vertical-align: middle;
}
table.sermons th.date {
	width: 25%;
}
table.sermons td {
	padding: 0 30px;
}
table.sermons tr.spacer td {
	padding: 3px 0;
}
table.sermonheader {
	cursor: pointer;
	border: 2px solid;
	border-color: white #BBDDFF #BBDDFF white;
}
table.sermonheader:hover {
	background-color: white;
}
div.sermoninfo {
	border: solid;
	border-width: 2px 2px 2px 2px;
	padding: 10px 0 15px 0;
	border-color: white #BBDDFF #BBDDFF white;
}
table.sermonnav {
	margin: 10px auto 0 auto;
	font-size: small;
}
table.sermonnav .prev, .next {
	width: 6em;
}
table.sermonnav .prev {
	text-align: right;
}
table.sermonnav .next {
	text-align: left;
}

/* Contact page */
table.contact {
	width: 550px;
}
table.contact td.label {
	width: 7em;
	padding: 4px 0;
}
table.contact input {
	width: 100%;
}
div#recaptcha_widget {
	width: 450px;
	border: 1px solid white;
}
div#recaptcha_widget img {
	display: block;
}

/* Kosovo pages */
#slideshow {
	width: 100%;
}
#slideshow td.image {
	text-align: center;
}
#slideshow td.image img {
	padding: 10px;
}
#slideshow td.text {
	text-align: center;
	font-size: large;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
}
#slideshow td.sidetext {
	vertical-align: top;
}
#slideshow td.sidetext p {
	padding-top: 5em;
}
#slideshow td.navigation {
	padding-top: 1em;
	padding-bottom: 1em;
	text-align: center;
}

/* Sermons admin page */
table.sermonadmin {
	width: 100%;
	font-size: small;
}
table.sermonadmin td {
	padding: 5px;
}
table.sermonadmin tr.dark td {
	background-color: #bbddff;
}
table.sermonadmin tr.light td {
	background-color: white;
}
table.sermonadmin tr.light td.nobg, table.sermonadmin tr.dark td.nobg {
	background-color: transparent;
}
.error {
	color: red;
}
