/*
COLORS:
#231F20 - Dark Brown
#04519F - Royal Blue
#FFF7E2 - Cream
#B61629 - Blood Red
*/

a:link {
  color: #B61629;
  font-weight: bold;
  font-style: italic;
}
a:visited {
  color: #04519F;
  font-weight: bold;
  font-style: italic;
}
a:hover {
  color: #B61629;
}
a:active {
  color: #B61629;
}

body, html {
  margin: 0;
  padding: 0;
}

body {
  background: url(bg.tile.gif);
  font-family:Verdana, Arial, Helvetica, sans-serif;
  font-size: small;
  color: #231F20;
}

h1 {
  font-size: 1.1em;
  color: #04519F;
  margin: 0;
}

h2 {
  color: #04519F;
  font-size: 1em;
}

h3 {
  color: #04519F;
  font-family:Verdana, Arial, Helvetica, sans-serif;
  font-size:18px;
  font-weight:normal;
  margin: 0;
  padding: 0;
}

.fineprint {
  font-size: 0.75em;
  font-style: italic;
}

.inputText {
  color: #04519f;
  background-color: #F2E3B7;
  height: 0.95em;
  font-size: 0.95em;
}

.w450c {
  width: 450px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.w450c ul {
  padding: 0;
  margin: 0;
}

.w450c ul li {
  margin: 0.5em 0;
  list-style-type: none;  
}

.w400 {
  width: 400px;
}

.inputButton {
  color: #04519f;
  background-color: #F2E3B7;
  height: 1.67em;
  font-size: 1em;
  font-weight: bold;
}

#wrapper {
  background: url(bg.main.jpg) repeat-y;
  width: 760px;
  margin: auto;
  padding: 0;
  position: relative;
}

#header {
  background: url(bg.header.jpg);
  text-align: center;
  padding: 25px;
}

#headermenu {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  padding: 0 0 5px 0;
  width: 685px;
}

#headermenu li {
  display: inline;
}

#headersearch {
  position: absolute;
  top: 55px;
  right: 40px;
}

#headersearch img {
  margin-top: 0.5em;
}

#infobarOuter {
  border-top: 1px solid #231F20;
  border-bottom: 1px solid #231F20;
  width: 685px;
  height: 16px;
  margin: 0 auto;
  background-color: #231F20;
}

#infobar {
  width: 685px;
  height: 14px;
  font-size: 0.85em;
  margin: 1px 0px 1px;
  color: #FFF7E2;
  background-color: #04519F;
  text-align: center;
}

#infobar #engdate {
  font-weight: bold;
  width: 31%;
  margin-left: 2%;
  float: left;
  text-align: left;
}

#infobar #hebdate {
  font-weight: bold;
  font-size: 1.1em;
  width: 31%;
  margin-right: 2%;
  float: right;
  text-align: right;
  line-height: 1.05em;   /* moves baseline slightly up to match English text */
}

#infobar #perasha {
  font-weight: bold;
  font-size: 1.1em;
  width: 33%;
  float: left;
  text-align: center;
  line-height: 1.05em;   /* moves baseline slightly up to match English text */
}


/* The following two styles are not currently used.
 * They were used when we had perasha, maqam, candlelighting, and havdala
 * in the infobar.
 * They are here in case we ever need to use them again.
 */
#infobar .label {
  font-weight: bold;
  display: inline;
  margin: 0 0.33em 0 1em;
}

#infobar .value {
  display: inline;
  margin: 0 1em 0 0.33em;
}

#main {
  margin: 37px 0 0 38px;
  width: 685px;
  padding: 0;
  text-align: left;
  position: relative;
}

#welcome {
  margin: 0;
  padding: 0;
  position: relative;
  top: 0;
  left: 10px;
  text-align: justify;
  float:left;
}

.signup {
  width: 390px;
  color: #04519F;
  margin: 3em auto 0 auto;
  padding: 0.25em;
  border: 1px solid;
  background-image: url(bg.torah.jpg);
  text-align: center;
}

/* The next two are for omer signup */
#omer {
  text-align: left;
  width: 21em;
  margin: 2em auto 1em auto;
}

#osubmitBtn {
  display: block;
  margin: 0.67em auto;
}

#subscription {
  text-align: left;
  width: 21em;
  margin: 2em auto 1em auto;
}

.signup label {
  display: block;
  float: left;
  width: 7em;
  text-align: left;
}

#submitBtn {
  display: block;
  margin: 0.67em auto;
}

#contactBox {
  width: 500px;
  color: #04519F;
  margin: 2em auto 0 -25px; /* -25 because the containing div (w450c) is only 450px wide (()450-500)/2) */
  padding: 0.25em;
  padding-top: 1em;
  border: 1px solid;
  text-align: center;
}

#contactForm {
  width: 90%;
  margin: auto;
}


#contactBox label {
  display: block;
  float: left;
  width: 3em;
  margin-left: 7em;
  text-align: left;
}

#contactBox textarea {
  color: #04519f;
  background-color: #F2E3B7;
  margin-top: 2em;
}

#rabbis {
  text-align: left;
  width: 80%;
  margin: 0 auto;
}

#rabbis em {
  display: block;
  text-align: center;
}

#rabbi {
  padding: 0.67em 0 1em 0;
  margin: 1em 0 0 0;
  border-top: 1px solid;
  text-align: justify;
}

#rabbi.firstRabbi {
  border-top: 0;
}

#rabbi img {
  float: left;
  margin: 0.33em 1em 0.67em 0;
  border: 1px solid #231F20;
}

#rabbi .site {
  float: right;
  margin-top: 0.3em;
  font-weight: normal;
}

#rabbi .browseLink {
  text-decoration: none;
  font-style: normal;
}


#YUTorah {
  width: auto;
  margin-left: -20px;
  text-align: center;
}

#YUTorah table {
  margin: 0 auto;
}

.sidebar {
  width: 200px;
  float: right;
  clear: right;
  font-size: 0.85em;
  border: 1px solid #B61629;
  padding: 0 0 0 0;
  margin: 0 10px 40px 0;
}

.sidebar h1 {
  background-color: #B61629;
  color: #FFF7E2;
  margin: 0 0 10px 0;
  padding: 5px 0;
  text-align: center;
}

.sidebar .miniThumbnail {
  display: block;
  float: left;
  margin: 0 0.5em 10px 0.5em;
}

.sidebar .rabbi {
  font-size: 0.85em;
  font-weight: bold;
  display: block;
}

.sidebar .lecture {
  font-size: 0.85em;
  margin: 0 0 10px;
}

.sidebar .featuredLecture {
  clear: both;
}

.sidebar h2 {
  font-size: 0.85em;
  clear: both;
  text-align: right;
  margin: 10px;
}

.sidebar2 {
  width: 200px;
  text-align: center;
  float: right;
  clear: right;
  margin: 0 10px 40px 0;
}

.notice {
  text-align: center;
  color: #B61629;
  padding: 0.5em;
  margin: 0;
}

#footerOuter {
  height: 65px;
  width: 760px;
  margin: 0 auto;
}

#footer {
  border-top: 2px solid #231F20;
  padding-top: 4px;
  width: 685px;
  height: 14px;
  font-size: 0.85em;
  margin: 2px 0px 2px 39px;
  color: #B61629;
  text-align: center;
}

#footer a {
  text-decoration: none;
  font-style: normal;
  font-weight: normal;
  color: #B61629;
}

#clear {
  clear: both;
}


/* Make sure background extends to bottom for short pages */
html, body, #wrapper {height: 100%;}
body > #wrapper {height: auto; min-height: 100%;}
#footerOuter { clear: both; }


/* Get footer to "stick" to bottom of viewport or page, whichever is longer */
#main {
  padding-bottom: 98px; /* 65 + 2 + 31 (footerOuter + footerOuter:borders + padding */
                        /* keep this an even number so that the background stripes line up */
}
#footerOuter {
  background: url(bg.footer.gif);
  position: absolute;
  bottom: 0;
}
