h1 {
  text-align: center;
  font-weight: bold;
  font-size: x-large;
}

body {
  font-family: Georgia, Palatino, serif;
  font-size: 12pt;
}

/* Using div's to format the page: */
/* There's (1) a header with a fixed height, */
/* (2) a content section with a background image that */
/* fills the left margin and uses padding to move the text, to simulate a background */
/* of the sidebar that goes the whole length of the central section. */
/* See http:/*www.alistapart.com/articles/fauxcolumns */
/* (3) The sidebar of with links then content that uses position: absolute to push it just below the header, */
/* and (4) a navigation bar that also uses position: absolute to put it just below the */
/* header, and padding and text-align: right to push it to the right side of the window */

#header {
  background-image: url("/images/yi.png");
  background-repeat: no-repeat;
  height: 7em;
  overflow: visible;
}

#header h1 {
  font-size: 24pt;
  white-space: nowrap;
}
#header h1, #header h2 {
  text-align: center;
}
#BSD { /* the b'siyata d'shmaya */
  float: right;
}

#content {
  background-image: url("/images/linksBG.jpg");
  background-repeat: repeat-y;
  padding-left: 250px; /* the width of the sidebar + a little padding */
  padding-top: 1.25em; /* the height of the navbar */
  padding-right: 1%; /* a little bit so it doesn't run into the window edge */
  padding-bottom: 1%;
  margin: 0;
}

#links {
  position: absolute;
  top: 7em;
  line-height: 1.2em;
  height: 11em;
  width: 230px;
  background-color: transparent;
  background-image: url("/images/linksBG.jpg");
  background-repeat: repeat-y;
  margin: 0;
  }

#links li {
  font-size: larger;
  font-weight: bold;
  list-style: none;
}

#links a.selected {
  width: 200px; /* make the background extend all the way to the edge */
  display: block; /* so width has meaning */
  padding-left: 0.2em;
  margin-left: -0.2em;
  background: white;
  -moz-border-radius: 100% 0 0 100%;
}

#links a.selected:hover {
  color: blue; /* no visual indication since it can't be selected */
}

#sidebar {
  position: absolute;
  top: 18em;
  width: 230px;
  padding-left: 10px;
  background-color: transparent;
  background-image: url("/images/linksBG.jpg");
  background-repeat: repeat-y;
  margin: 0;
}

/* add some appropriate decorations */

#sidebar a , #links a {
  text-decoration: none;
  color: blue;
}

#sidebar a:visited , #links a:visited{
  color: blue;
}

#sidebar a:hover , links a:visited {
  color: red;
}

/* the forms in the sidebar */

#sidebar fieldset {
  font-size: xx-small;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  text-align: center;
  margin: 20px 20px 10px 0;
}

#sidebar fieldset p {
  margin: 0;
}

#sidebar legend {
  font-size: small;
  font-weight: bold;
  font-family: Georgia, Palatino, serif;
  color: blue;
  border: 0;
  padding-left: 20px; /* for the image */
  margin: 0;
}

#donate legend , #quickdonate legend {
  background: url("/images/money.png") transparent no-repeat 2px 50%;
}

#donate form {
  margin: 2px 0;
}

#donate .text { /* IE does not support attribute selectors, so we use classes */
  font-size: 1em;
  vertical-align: middle;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

#donate select {
  font-size: xx-small;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

#donate .image {
  vertical-align: middle;
}

#theme legend {
  background: url("/images/photos.png") transparent no-repeat 2px 50%;
}

#havarah legend {
  background: url("/images/comments.png") transparent no-repeat 2px 50%;
}
#havarah a {
  display: block;
}

#sidebar input.smallbutton {
  /* the buttons. Background ignored by IE and Safari */
  font-size: xx-small;
  background-image: url("/images/linksBG.jpg");
  color: blue;
}

#sidebar input.smallbutton:hover {
  /* this does not work in IE. I could use javascript with mouseover */
  color: red;
}

#siteinfo legend {
  background: url("/images/information.png") transparent no-repeat 2px 50%;
}

#footer {
  background-image: url("/images/linksBG2.jpg"); /* the image gives me a pattern across the page */
  background-repeat: repeat;
  font-size: x-small;
  padding: 7px 1% 7px 250px; /* left pad so it doesn't run into the sidebar. Looks odd, but hard to fix */
  margin: 0;
}
