/*--------------------------------------------------------------

   application.css
   * application specific CSS classes & id's

--------------------------------------------------------------*/

/*=== Rails Model Validation ===*/
.fieldWithErrors {
  padding: 2px;
  color: red;
  display: table;
}

.formError {
  color: red;
  font-style: italic;
}

#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;
}


.form_error_message {
  font-size: 10px;
  font-style: italic;
  color: #ff0000;
}

span.red {
  color: red;
  font-style: italic;
}

/*----------------------------------*/
/* For use with images */

.floatleft {
  float: left;
  margin: 3px 5px 3px 0px;
  clear: left; 
}

.floatright {
  float: right;
  margin: 3px 0px 3px 5px;
  clear: right; 
}

.videoplayer {
  margin: 3px 0px 3px 0px;
}

/*----------------------------------*/

#topmenu {
  color: #151B8D;
  margin: .15em;
  margin-right: 1em;
  float: right;
  text-align: right;
  font-size: 1em;
}

#topmenu a {
  font-weight: bold;
  text-decoration: none;
}

#topmenu a:hover {
  border-bottom:1px dotted #2B60DE;
  color: #2B60DE;
}

/*----------------------------------*/

#header {
  padding-top:.5em;
  padding-bottom:.5em
}

#header h1 {
  color: #2554C7;
  margin-top: 5px;
  margin-left: 5px;
  margin-bottom: 0;
}

#header .type {
  margin: 0;
  margin-left: 20px;
  font-size: 40%;
  font-variant: small-caps;
  font-weight: bold;
  display: inline-block;
  vertical-align: top;
}

/*----------------------------------*/

.page hr {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.page h1 {
  color: #2554C7;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 0;
  margin-top: 0.5em;
}

.page h2 {
  color: #2554C7;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 0.5em;
  margin-top: 0em;
}

.page h3 {
  color: #2554C7;
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 0.5em;
  margin-top: 1.8em;
}

.page h4 {
  color: #2554C7;
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 0.5em;
  margin-top: 1.8em;
}

.page p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.page ul {
  padding-left: 1em;
}


/*----------------------------------*/

.article hr {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.article h1 {
  color: #2554C7;
  font-size: 2em;
  font-weight: bold;
}

.article h2 {
  color: #2554C7;
  font-size: 1.5em;
  font-weight: bold;
}

.article h3 {
  color: #2554C7;
  font-size: 1.1em;
  font-weight: bold;
}

.article h4 {
  color: #2554C7;
  font-size: 1em;
  font-weight: bold;
}

.article .byline {
  margin-top: -0.8em;
  font-style: italic;
}

.article p {
  margin-bottom: 0.5em;
}

.article ul {
  padding-left: 1em;
}

.article a, .article a:active, .article a:hover, .article a:visited {
  text-decoration: none;
  color: #2554C7;
}

.article a:hover {
  color: #2554C7;
  border-bottom: 2px dotted #2554C7;
}

.article .not_published a {
  color: #F00;
}

.page .not_published a {
  color: #F00;
}

.not_published {
  color: #F00;
}

/*----------------------------------*/

fieldset legend {
  color: #666;
  font-size: 1em;
  font-weight: bold;
  padding: 4px;
}

/*----------------------------------*/

.event h1, .event h2, .event h3, .event h4 {
  font-weight: bold;
  color: #2554C7;
}

.event a {
  color: #151B8D;
  text-decoration: none;
}

.event a:hover {
  border-bottom:1px dotted #2B60DE;
  color: #2B60DE;
}

.event.summary h1 {
  border-bottom: 2px dotted #2554C7;
  font-size: 1.5em;
  margin: 0;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.event.summary h2 {
  font-size: 1em;
  margin: 0;
}

.event.summary p {
  margin: 0;
  font-size: 1em;
  margin-bottom: 0.5em;
}

.event.summary .byline {
  margin-top: 0;
  font-style: italic;
  font-size: .8em;
}

.event.summary hr {
  border-bottom: 1px dotted #AAA;
}

/*----------------------------------*/

.article.summary h1 {
  color: #2554C7;
  border-bottom: 2px dotted #2554C7;
  font-size: 1.5em;
  font-weight: bold;
  margin: 0;
  margin-bottom: 0.5em;
}

.article.summary h2 {
  color: #2554C7;
  font-size: 1em;
  font-weight: bold;
  margin: 0;
}

.article.summary a {
  color: #151B8D;
  text-decoration: none
}

.article.summary a:focus, .article.summary a:hover {
  border-bottom: 1px dotted #2B60DE;
  color:#2B60DE;
}

.article.summary p {
  font-size: 1em;
  margin: 0;
  margin-bottom: 0.5em;
}

.article.summary .byline {
  font-size: .8em;
}

.article.summary hr {
  border-bottom: 1px dotted #AAA;
}

/*----------------------------------*/

.pagination {
  padding: 3px;
  margin: 3px;
}

.pagination a {
  padding: 2px 5px 2px 5px;
  margin: 2px;
  border: 1px solid #aaaadd;
  text-decoration: none;
  color: #000099;
}

.pagination a:hover, .pagination a:active {
  border: 1px solid #000099;
  color: #000;
  background-color: #e5ecf9;
}

.pagination span.current {
  padding: 2px 5px 2px 5px;
  margin: 2px;
  border: 1px solid #000099;
  font-weight: bold;
  background-color: #000099;
  color: #FFF;
}

.pagination span.disabled {
  padding: 2px 5px 2px 5px;
  margin: 2px;
  border: 1px solid #ccc;
  color: #bbb;
}

/*----------------------------------*/

.navlinks {
  padding: 3px;
  margin: 3px;
  float: right;
  text-align:right;
}

.navlinks a {
  padding: 2px 5px 2px 5px;
  margin: 2px;
  border: 1px solid #aaaadd;
  text-decoration: none;
  font-weight: bold;
  color: #000099;
}

.navlinks a:hover, .pagination a:active {
  border: 1px solid #000099;
  color: #000;
  background-color: #e5ecf9;
}

.navlinks span.disabled {
  padding: 2px 5px 2px 5px;
  margin: 2px;
  border: 1px solid #ccc;
  color: #bbb;
}



/*----------------------------------*/

table#calendar {
  table-layout: auto;
  border-collapse: collapse;
  border-spacing: 0;
}

table#calendar caption {
  background: #c3d9ff;
  font-weight: bold;
  text-align: left;
}

table#calendar thead th {
  vertical-align: center;
  text-align: center;
  font-size: 0.8em;
  padding-top: 0.6em;
  padding-bottom: 0.3em;
  background-color: #303030;
  color: white;
}

table#calendar tbody {
  vertical-align: center;
  text-align: center;
}

table#calendar td {
  text-align: center;
  border-bottom: 1px dotted #bbbbbb;
  border-right: 1px solid white;
  background-color: #bbccff;
  padding: 0px;
  line-height: 2em;
}

table#calendar .weekend {
  background-color: #ffffdd;
}

table#calendar .special {
  background-color: #003355;
  font-weight: bold;
  color: white;
}

table#calendar .special .weekend {
  background-color: #225577;
}

table#calendar .today {
  background-color: #4682b4;
  color: white;
}

table#calendar .special .today {
  background-color: #4682b4;
  color: white;
}

table#calendar td.special a, table#calendar td.special a:visited {
  display:block;
  width: 100%;
  height: 100%;
  color: white;
  text-decoration: none;
  vertical-align: middle;
}

table#calendar .special a:hover {
  color: white;
  background-color: black;
}

table#calendar .other {
  color: #eeeeee;
  background-color: white;
  border-bottom: 0px;
}

/* own & inherited email links */
.own, .own a, .own a:visited {
  text-decoration: none;
  font-weight: bold;
}

.inherited, .inherited a, .inherited a:visited {
  color: #888;
  text-decoration: none;
}

.inherited a:hover {
  border-bottom: 1px dotted #2B60DE;
}

#search_box {
  float: right;
  text-align:right;
  padding: 3px;
  margin: 3px;

/*  width: 300px;*/
  height: 31px;
}

#search_box.text {
  float: left;
  margin: 3px;
  border: 1px;
  width: 159px;
  background: none;
}
#search_box.button {
  float: right;
  margin: 3px;
}

/* Dashboard Membership Statistics Table */

.membership-statistics td {
  font-size: 80%;
  text-align: center;
  vertical-align: middle;
  margin: 0;
  padding: 0;
}

.membership-statistics th {
  font-size: 90%;
}

.membership-statistics thead th {
  text-align: center;
}

.membership-statistics tbody th {
  background: #c3d9ff;
  text-align: right;
}

/*----------------------------------*/
/* For use page explanations */

.explanation {
  margin-top: 5px;
  margin-bottom: 15px;
  padding: 15px;
  background-color: #f8ffdd;
  color: #888;
}

select.page_size, select.page_size option {
	text-align: right;
}


textarea {
  width: 100%;
}
