/* Overriding the default color scheme with our own. 
   Adding new styles. */

a:link, a:visited { color: #07b; text-decoration: none; }
a, a:hover, a:active { color: #d30; }
h1, h2, h3 {color: #dee9ee;}

/* Block styling */
#hd { background-color:#232c30; }
#site-title { 
    font-family: Verdana, Geneva, sans-serif;
    font-size: 3.0em; color:#ededed;
    font-weight: bold; 
    }

.block .hd { background-color:#445566; 
             color:#dee9ee; 
             padding: 0.4em 0em 0.4em 1.5em;
             font-family: Verdana, Geneva, sans-serif; 
             border-bottom:5px solid #262626; }
.block .hd h1 { font-size:1.4em; color: #eee;}
.block .hd h2 { font-size:1.3em; color: #eee;}
.block .bd { border-right: 1px solid #cccccc; border-left: 1px solid #dddddd;
			 border-top: 1px solid #dddddd; 
		     border-bottom: 1px solid #cccccc; }
.block .bd h2 { color:#445566; }
.block .bd h3 { font-size: 1.1em; color:#445566; }
.block .ft { background-color: #eeeeee; }
.spaces .hd { background-color:transparent; }
.spaces .hd ul li { background-color:#445566; }


/* Navigation styles */

#navigation {
	background-color: #232c30;
}

#primary-navigation li.active a { background-color: #eeeeee; color:#333;}

#primary-navigation li {
  margin-left: 5px;
  background: #456;
  border-top: 1px solid #5C738A;
  color: #eee;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

#primary-navigation li:hover {
  border-top-color: #7593B0;
  background-color: #576C82 !important;
  color: #fff;
}

#primary-navigation li.active {
  border-top: 1px solid #fff;
  background-color: #eee !important;
  color: #333;
}

#primary-navigation li a:link, #primary-navigation li a:visited, 
#primary-navigation li a:hover, #primary-navigation li a:active,
{
  text-decoration: none;
  color: #FFF;
}

#primary-navigation li.active a:link, #primary-navigation li.active a:visited, 
#primary-navigation li.active a:hover, #primary-navigation li.active a:active {
  color: #364b69;
}

#user-navigation li a:hover { color:cyan; }

/* Login block */
#login-block div.bd p {
}

/* Footer */
#ft { font-size:95%;}

/*
  Search results styling
  TODO: style not affected? 
*/
#cse-search-results { 
    display: block;
    background-color: white;
}

/* Browse category */
.booklet-category {
    margin-bottom: 1em;
    text-align: center;
}

/* Table styling */
thead tr { background-color: #576c82; }

/* Booklet listing with thumbnail */
.booklet-title {
    font-size: 1.2em;
}

div.booklet-info {
    overflow: hidden;
}

/* Featured booklet */
div.featured-booklet .booklet {
    border-bottom: 1px dotted #000;
}

/* Article/Photo preview */
.article-preview h2 {
    padding: 4px;
    background-color: #f0f0ee;
    border: 1px solid #dddddd;
}

.article-preview .odd {
    padding: 4px;
    background-color: #eeeeee;
}

.article-preview .even {
    padding: 4px;
    background-color: #ffffff;
}

.photo-preview h2 {
    padding: 4px;
    background-color: #f0f0ee;
    border: 1px solid #dddddd;
}


/* Pager */
.pagination {
	padding-bottom: 10px;
	margin-bottom: 10px;
}

.pagination a {
  text-decoration: none;  
  color: #364B69;
  border: 1px solid #ddd;
  -moz-border-radius:5px;
  -webkit-border-radius: 5px;
}

.pagination a, .pagination span {
  padding: 2px 5px;
  margin-right: 5px; 
  float: right;
  border-style: solid;
  border-width: 1px;
}

.pagination span.current {
  font-weight: bold;  
  background: #576C82;
  color: #FFF;
  border: 1px solid #7593B0;
  -moz-border-radius:5px;
  -webkit-border-radius: 5px;
}

.pagination span.disabled {
  background: #eee;
  color: #aaa;
  border: 1px solid #ddd;
  -moz-border-radius:5px;
  -webkit-border-radius: 5px;
}

.pagination a:hover {
  color: #444;
  background: #eaeaea;
  border: 1px solid #576C82;
}

/* Command box and buttons */

#message {
    font-size: 1.4em;
    border: 6px solid #aaa;
    -moz-border-radius:5px;
    -webkit-border-radius: 5px;
}

.command_box {
	padding-bottom: 1em;
	margin-bottom: 1em;
}

.command_box a, .command_box span {
	font-size: 1.2em;
  	text-decoration: none;  
  	color: #364B69;
  	border: 1px solid #ddd;
  	padding: 2px 5px 2px;
  	margin-right: 5px; 
  	float: left;
  	border-style: solid;
  	-moz-border-radius: 5px;
  	-webkit-border-radius: 5px;
}

.command_box a:hover {
  	color: #444;
  	background: #eaeaea;
  	border: 1px solid #576C82;
  	cursor: pointer;
}

.command_box span.disabled, .command_box a.disabled {
    background: #eee;
    color: #aaa;
    border: 1px solid #ddd;
    cursor: default;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;    
}

/* a links at the top of a table for multi action operations,
i.e. Delete multiple items, Marked as Read, Archive, etc.
*/
.list_action_box {
    display: block;
    padding-top: 4px;
	padding-bottom: 4px;
	margin-top: 8px;
	margin-bottom: 8px;
}

.list_action_box a, .list_action_box span {
	font-size: 0.9em;
  	text-decoration: none;  
  	color: #364B69;
  	border: 1px solid #ddd;
  	padding: 5px;
  	border-style: solid;
  	-moz-border-radius: 5px;
  	-webkit-border-radius: 5px;
}

.list_action_box a:hover {
  	color: #444;
  	background: #eaeaea;
  	border: 1px solid #576C82;
  	cursor: pointer;
}

.list_action_box span.disabled, .list_action_box a.disabled {
    background: #eee;
    color: #aaa;
    border: 1px solid #ddd;
    cursor: default;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;    
}

.list_action_box span.selected, .list_action_box a.selected {
    background: #eee;
    color: #232c30;
    border: 1px solid #232c30;
    cursor: default;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;    
}


/* Forms like style for ajax io */
.form label { font-weight:bold; }
.form label span { font-weight:normal; color:#f00; font-size:85%; }
/*.form span.info { font-style:italic; color:#aaa; font-size:85%; }*/
span.info { font-style:italic; color:#aaa; font-size:85%; display: block; clear: both;}
.form .text { display:block; width:99%; border:1px solid #aaa; padding:0.3em; }
.form .column { width:48%; }
.form .left { float:left; }
.form .right { float:right; }

/* Generic styles */
.right { float:right; }
.left { float:left; }
.clear { clear:both; }
/* Images sizing */
.img-icon {
    width: 24px;
    height: 24px;
}

.img-small {
    width: 32px;
    height: 32px;
}

.img-medium {
    width: 64px;
    height: 64px;
}

/* bookshelf */
.shelf { 
    background:#fff url(/media/img/bookshelf-latest-booklets.jpg) no-repeat top right;
    height: 185px;
    }
    
.book {
    background-color:#f1f1f1;
    position: relative;
    top: 41px;
    left: 10px;
    display: block;
    text-align: center;
    height: 120px;
    width: 80px;
    padding-left: 0.3em;
    padding-right: 0.3em;
    font-size: 0.8em;
    overflow: hidden;    
    border-top: 1px solid #a9a9a9;
    border-right: 1px solid #a9a9a9;
}

.cover {
    height: 110px;
    padding-top: 8px;
    overflow: hidden;
}

.cover img {
    border: 1px solid #a7a7a7;
}

.cover em {
    font-size: 0.75em;
}