/* Layout */

object {
  position: relative;
  left: -6px;
}

body {
  width: 830px;
  margin-left: auto;
  margin-right: auto;
  background-image: url(/images/border.png);
  background-position: center;
  background-repeat: repeat-y;
  background-color: #333;
}

#main {
  margin-left: 40px;
  float: left;
  width: 550px;
}

div#message {
  clear: both;
}

p#notice {
  color: green;
  text-align: center;
}

p#error {
  color: red;
  text-align: center;
}

#side {
  float: right;
  margin-right: 40px;
  width: 170px;
}

#side a {
  cursor: pointer;
}

#side p {
  font-size: 10px;
}

body, p, ol, ul, td {
  font-family: verdana, arial, helvetica, sans-serif;
  font-size:   13px;
  line-height: 18px;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 30px;
  color: #444;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 16px;
}

h3 {
  font-size: 12px;
}

p.tags {
  margin-right: 35px;
  margin-left: 35px;
}

a.tags {
  background-image: url(/images/tag.png);
  background-repeat: no-repeat;
  display: block;
  float: left;
  width: 130px;
  height: 37px;
  padding-top: 8px;
  color: #fff;
  text-align: center;
}

a.tags:hover {
  background-image: url(/images/tag_hover.png);
}

a.tags:active {
  padding-top: 9px;
  padding-left: 1px;
  height: 36px;
  width: 129px;
  background-image: url(/images/tag_active.png);
}

p.category {
  background-image: url(/images/category_start.png);
  margin-left: 40px;
  padding-left: 20px;
  height: 25px;
  background-repeat: no-repeat;
}

p.category a {
  background-image: url(/images/category_middle.png);
  float: left;
  height: 21px;
  width: 100px;
  color: #fff;
  padding-top: 4px;
  text-align: center;
}

p.category a.end {
  background-image: url(/images/category_end.png);
  padding-left: 20px;
  height: 25px;
  background-repeat: no-repeat;
}

a {
  color: #369;
  text-decoration: none;
}

div#side h1 {
  font-size: 14px;
  color: #369;
  margin-bottom: 0px;
}

div.project hr {
  margin-top: 0px;
  border-top: 1px solid #369;
  border-bottom: none;
  border-left: none;
  border-right: none;
}

/* Disclaimer */

div#disclaimer {
  text-align: center;
  padding: 1px;
  clear: both;
}

div#disclaimer p {
  font-size: 8px;
  line-height: 6px;
}

/* Posts */

div.post {
  margin-top: 40px;
}

div.post p.date {
  margin-top: -10px;
  font-size: 10px;
}

div.post div.body h1 {
  font-size: 18px;
}

div.post div.body h2 {
  font-size: 14px;
}

div.post div.body h3 {
  font-size: 12px;
}

div.post div.body table {
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse; /* each td shares boarders with other tds */
}

div.post div.body table thead {
  background-color: #369;
  color: white;
}

div.post div.body table tr td {
  border: 1px solid #369;
  height: 20px; /* will be higher if text is higher */
  padding-left: 10px;
  padding-right: 10px;
}

div.post div.body img {
  cursor: pointer;
}

/* Unpublished Posts */

div.unpublished a {
  color: #88f;
}

div.unpublished p, div.unpublished h2 {
  color: #888;
}

/* Comments */

div.comment {
  margin-top: 20px;
}

div.comment h1 {
  line-height: 0;
  font-size: 14px;
}

/* Forms */

label {
  width: 100px;
  float: left;
}

input {
  border: 1px solid #369;
}

form input {
  width: 439px;
}

textarea, button, select {
  border: 1px solid #369;
}

button {
  background-color: #369;
  color: white;
}

input.submit, button.submit {
  margin-left: 100px;
  width: auto;
  color: white;
  background-color: #369;
}

/* Form Errors */

.fieldWithErrors {
  padding: 2px;
  background-color: red;
  display: table;
}

#errorExplanation {
  width: 400px;
  border: 2px solid red;
  padding: 7px;
  padding-bottom: 12px;
  margin-bottom: 20px;
  background-color: #f0f0f0;
}

#errorExplanation h2 {
  text-align: left;
  font-weight: bold;
  padding: 5px 5px 5px 15px;
  font-size: 12px;
  margin: -7px;
  background-color: #c00;
  color: #fff;
}

#errorExplanation p {
  color: #333;
  margin-bottom: 0;
  padding: 5px;
}

#errorExplanation ul li {
  font-size: 12px;
  list-style: square;
}

/* Widgets */

iframe#calendar {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Slider Control */

div.track {
  margin-left: 100px;
  width: 200px;
  background-color: #ccf;
  height: 10px;
}

div.handle {
  width: 10px;
  height: 15px;
  background-color: #00f;
  cursor: move;
}

/* Popup Images */

div.popupImage {
  position: fixed;
}

div.popupImage a {
  background-color: #369;
  color: white;
  cursor: pointer;
  display: block; /* required to make the links as wide as the image */
  width: 100%;
  text-align: center;
}

/* Popup Windows */

div.popupBackground {
  position: fixed;
  background-color: gray;
  opacity: 0.0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

div.popupWindow {
  position: fixed;
  background-color: white;
  padding: 8px;
}

div.popupWindow h1 {
  background-color: #369;
  color: white;
  margin: 0;
  padding: 2px;
  cursor: move;
  font-size: 12px;
}

div.popupWindow h2 {
  color: #369;
  margin: 0;
  padding: 2px;
  font-size: 12px;
}
