/* 
	Stylesheet by Mediabyrån at Karolinska Institutet University Library 
	Sofia Samuelsson  2007-07-09

   ToDo:
 * Include directives for neat printing
 * Clean up - put menu directives together
 
*/

/* General styling for all areas */
/* ---------------------------------------------------------------------------- */

/* Don't set font size in body. Set it in content area. Otherwise everything else will be relative to this */
body {
   margin: 0px 0px 0px 0px;
   padding: 0px 0px 0px 0px;
   font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
}

/* Set Internet Explorer to inherit fontsize in tables from surrounding element */
table {
    font-size: 100%;
}

/* Set browsers with proper CSS2 support (Mozilla, Opera) to inherit fontsize in tables from surrounding element */
* > table {
	font-size: inherit;
}

/* Set no cellpadding and align top as default for all table cells */
td, th {
   padding: 0px;
	margin: 0px;
   vertical-align: top;
}

/* Set margins to avoid excessive spacing between headers and text */
p, td, th, ul, ol, dl, pre {
	margin-top: 0px;
	margin-bottom: 6px;
}

/* Font family for all headings */
h1, h2, h3, h4, h5 {
	font-family: Arial, Helvetica, sans-serif;
	color: #333333;
	margin-top: 10px;
	margin-bottom: 2px;
}

h1 {
	font-size: 1.3em;
}

h2 {
	font-size: 1.1em;
}

h3 {
	font-size: 0.9em;
}

li {
	margin-top : 6px;
   margin-bottom: 0px;
}

dt {
	font-weight: bold;	
	margin-top : 6px;
   margin-bottom: 0px;
}

hr {
    height: 1px;
    border: none;
    background-color: #666666;
}

/* General link styling */
a:link {
   color: #0473b9;
   text-decoration : none;
  
}

a:visited {
   color: #0473b9;
   text-decoration : none;
}

a:active {}

a:hover {
    text-decoration : underline;
}

/* Content area styling for editors. Should be classes to vork well with Contribute */ 
/* -------------------------------------------------------------------------------- */

/* Set maximum width of body text for readability. CSS2. Only supported by Mozilla and Opera, not IE */
td#content-area p {
   max-width: 50em;  
}

/* Redesign all heading 1  */
h1 {
	color: #333333;
   line-height: 1.1em;
   padding-bottom: 4px;
   margin-bottom: 8px;
   margin-top: 14px;
	padding-top: 12px;
}

/* Table for single-column layout. Just put in 100% to keep any centered objects in the middle */
table.one-column {
	width: 100%;
}

/* Table for two-column layout. */ 
table.two-column {
	width: 100%;
   margin-top: 10px;
}

/* Settings common for both columns */ 
table.two-column td {
	padding-right: 10px;
	padding-left: 0px;
}

/* Right part of two-column layout, including separating border between columns */
table.two-column td.column-right {
   padding-left: 10px;
  
}

/* Right part of two-column layout, no separating border */
td.column-right-no-separator {
}

/* Special classes for frontpage */
/* ------------------------------------------------ */

/* Table for text block in frontpage columns */
#content-area .textbox {
   margin-top: 20px;
}

#content-area .textbox td {
   padding-left: 20px;
   padding-right: 30px;
   text-align:left;
   padding-bottom:10px;
}

.textbox h1,
.textbox h2 {
   font-size: 1em;
   font-weight: bold;
   color: #000;
   margin-top: 8px;
   margin-bottom: 0px;
}
.textbox img{
	padding-right: 10px;
	margin-top:2px;
}
/* Head above text block in columns. Negative margin to point our to the left. */
.texthead {
  margin-left: -20px;
  margin-bottom: 6px;
 
}

.texthead div {
   margin-left: 10px;
   padding-left: 8px;
   padding-bottom:5px;
   padding-top: 2px;
   text-align: left;
   background-image:url(../images/texthead_line.jpg);
   background-repeat:repeat-x;
   font-weight: bold;
   color: #545454;
   font-size: 0.86em;
}

/* Right margin elements */ 
/* ----------------------------------------------------------------------------------- */

/* Table-style shortcut link box. Should have been done with a div, but sorry, no work in Contribute */
table.shortcuts, table.shortcuts-head  {
   width: 190px;
   margin-right: 20px;
   margin-top:0px;
   border: 1px solid #acb3b5;
   background-color: #e2f7f8;
   margin-left:5px;
}
table.shortcuts-head{
   width: 195px;
   margin-left:0px;
   margin-top: 5px;
   margin-right:0px;
   border-bottom: none;
   border-top: none;
   border-left: none;
  
   
}

table.shortcuts-head div.head {
   background-image: url(../images/bg_corner_upper_left.gif);
   background-position: top left;
   background-repeat: no-repeat;
   padding-left: 10px;
   background-color: #c0ecf2;
  
  
}

table.shortcuts-head div.head div {
   font-size: 0.92em;
   border-top: 1px solid #acb3b5;
   padding: 4px;
   padding-left: 8px;
   padding-bottom:6px;
   color: #333;
   
}

table.shortcuts-head th {
   font-weight: bold;
   vertical-align: top;
   text-align: left;
	

}


table.shortcuts td {
   padding-left: 0px;
   padding-right: 0px;
   padding-bottom: 0px;
   margin-left: 10px;
  
   
}

table.shortcuts ul {
   list-style-type: none;
   margin-left : 0px;
   padding-left : 0px;
   margin-top : 8px;
   margin-bottom : 8px;
}

table.shortcuts ul li {
   padding-top : 2px;
   padding-bottom : 4px;
   padding-left : 8px;
   padding-right : 0px;
   border-bottom: 2px solid #fff;
}
table.shortcuts ul li#bottom{
	border-bottom: none;
}

table.shortcuts a, 
table.shortcuts a:visited {
   color: #0473b9;
   
}

table.shortcuts a:hover {
}

/* Decoration image in shortcuts box. Should be aligned at right bottom */
table.shortcuts img {
   margin-right: 10px;
   margin-top: 10px;
   float: right;
}

td#right-margin hr {
   color: #fff;
   background-color: #fff;
   height: 2px;
   margin-top: 16px;
}

td#right-margin form {
   margin-top: 0px;
}

/* Table-style login box */
table#loginbox {
	width: 190px;
   margin-right: 20px;
   margin-top: 8px;
   border: 1px solid #38695D;
}

table#loginbox div.head {
   margin: 0;
   padding-right: 10px;
}

table#loginbox div.head div {
   color: #206859;
   padding: 4px;
   padding-left: 8px;
   margin: 0;
}

table#loginbox th {
   font-weight: bold;
   vertical-align: top;
	text-align: left;
}

table#loginbox td {
   padding-left: 8px;
   color: #fff;
   background-color: #38695D;
   vertical-align: middle;
   height: 80px;
}

table#loginbox input {
   font-size: 0.9em;
   width: 120px;
}

table#loginbox td#go-button {
   background-image: url(../images/bg_form_go_dot.jpg);
   background-repeat: no-repeat;
   width: 36px;
   padding-left: 12px;
}

table#loginbox td#go-button input {
   width: 24px;
}

/* End of editor-accessible classes - the rest of CSS is design IDs and classes */
/* =============================================================================== */

/* Page and margin layout */
/* ------------------------------------------------------------------------------- */

/* Content holder table */
table#content-holder {
   width: 100%; 
}

/* Actual content area. Set font style and size in relative values (em) to make it scalable in IE */
td#content-area {
	font-size: 0.70em;
   padding-top: 0px;
   padding-left: 20px;
   padding-right: 10px;
   padding-bottom: 10px;
   
}

/* Left margin area */
td#left-margin {
   width: 180px;
}

/* Used from DW template property to hide left margin. Used on frontpage. */
td#left-margin.false {
   display: none;
}

/* Right margin area */
td#right-margin {
   width: 240px;
   font-size: 0.66em;
   padding-top: 10px;
   padding-left: 20px;
   padding-right: 10px;
   padding-bottom: 10px;
}

/* Use to hide border on right margin on front page */
td#right-margin.false {
   background-image: none;
}

/* Use this class as a DW template property for hiding right margin, if needed */
/*
td#right-margin.false {
   display: none;
}
*/

/* Hide left menu and right margin to save space when printing, if needed */
/*
@media print {
	td#left-margin {
		display: none;
	}
	td#right-margin {
		display: none;
	}
}
*/

/* Design elements for head */
/* ---------------------------------------------------------------------------- */

/* This object is here just in case it should be needed for coloring purposes */
div#head-holder {
 white-space:nowrap;
}

/* Image banner streching over head to right end */
div#head-banner {
	background-color:#e5f1f7;
	margin-left: 0px;
	white-space:nowrap;
	height:90px;
	
}

/* Banner image */
div#head-banner img {
	border: 0px; 

}

/* Actual logotype */
div#head-banner img#logo {
	border: 0;

	
}


/* Design elements for horizontal menus */
/* ---------------------------------------------------------------------------- */

div#menu-holder {
	clear: both;
	margin-left: 0px;
    border-left : 1px solid #666;
    border-right : 1px solid #666;
  
   
}

/* Hide menu when printing, because it looks ugly without background colors */
@media print {
	div#menu-holder {
		display: none;
	}
}

/* Class to hide (doubled) bottom border on pages without second level menu */
div.false#menu-holder {
	border-bottom : 0px;
	white-space: nowrap;
	
}

/* Common properties for both menu level containers */
div#menu-holder div {
	white-space: nowrap;
	padding-top: 7px;
   padding-bottom: 7px;
	padding-left: 15px;
	 background-color:#f4f4f4;
}

/* Common properties for both menu level links */
div#menu-holder a {
   padding-top : 1px;
   padding-bottom : 1px;
	margin-left: 0px;
	margin-right: 0px;
}

/* Background image in bottom of menu level 1 puts border between menus */
div#menu-level1 {
	font-size: 0.67em;
    border-top : 1px solid #9c9c9c;
    border-bottom : 1px solid #9c9c9c;
    font-weight: bold;
}

div#menu-level1 a {
   padding-left: 23px;
   padding-right: 20px;
   text-decoration: none;
   padding-top: 6px;
   padding-bottom: 6px;
   color: #333;
   /*background: transparent url("../images/menu_bar.gif") no-repeat left;*/
   background-image: url(../images/menu-bar.gif);
   background-position:left;
   background-repeat:no-repeat;
}

/* Special ID to remove extra border in leftmost menu link */
div#menu-level1 a#menu-edge {
   background-image: none;
   padding-right: 11px;
}

div#menu-level1 a:hover {
 	color: #000;
	background-color: #e2f7f8;
}

/* Background image in link overwrites and thus "removes" default background border from outer td */
div#menu-level1 a.true, 
div#menu-level1 a.true:hover, 
div#menu-level1 a.true:visited {
   background-color: #e2f7f8;
   border: 2px solid #39c2cc;
   padding-top: 5px;
   padding-bottom: 5px;
   background-image: none;
}

/* Remove background image on link after the selected one - will not work in IE5-6 */
div#menu-level1 a.true + a {
    background-image: none;  
   text-decoration: none;
}

div#language-switcher, div#logo-holder {
	position: absolute;
	right: 40px;
	top: 91px;
	text-align: right;
	width: 100px;
	/* display: none; Change to "none" here if language switcher is not desired on site */
}
div#logo-holder{
	position: absolute;
	right: 10px;
	top: 0px;
	text-align: right;
	width: 427px;
	
}

div#language-switcher a, 
div#logo-holder a,
div#language-switcher a:hover,
div#logo-holder a:hover {
	border: none;
	font-variant: normal;
	background-color: transparent;
   background-image: none;
}

div#language-switcher a:hover,
div#logo-holder a:hover {
	text-decoration: underline;
}

div#menu-level2 {
	font-size: 0.7em;
	background-color : #D3D3D5;
}

div#menu-level2 a {
	padding-left: 12px;
	padding-right: 16px;
	text-decoration: none;
 	color: #003366;
	background-image:  url("../../_development/images/line_vertical_gray.gif");
	background-position: right;
	background-repeat: no-repeat;
}

div#menu-level2 a:hover {
 	color: #3399CC;
}

div#menu-level2 a.true, 
div#menu-level2 a.true:hover, 
div#menu-level2 a.true:visited {
 	color: #003366;
	font-weight: bold;
	background-color : #D3D3D5;
}


/* Structure marker */
/* ------------------------------------------------------------ */

div#structure-marker {
	clear: both;
	margin-left: 150px;
	font-size: 60%;
	border-left: 1px solid #cccccc; 
	border-right: 1px solid #eeeeee; 
	border-bottom: 1px solid #eeeeee;
	padding-left: 2px;
	padding-top: 4px;
	padding-bottom: 4px;
	padding-left: 4px;
	white-space: nowrap;
	font-weight: bold;
	color: #666666;
}

div#structure-marker a {
	color: #333355;
	font-weight: normal;	
}

/* Vertical menus */
/* ---------------------------------------------------------------- */

div#menu-left {
	font-size: 0.70em;
	line-height: 1.1em;
   vertical-align : top;
   margin-top: 15px;
   margin-left:15px;
   border:  1px solid #b4b4b4;

}

div#menu-left h2{
	font-size: 0.62em;
}
/* If image is used instead of menu, position it neat */
div#menu-left img {
	padding-top: 14px;
	padding-left: 30px;
}

/* Menu heading for verical menu */
div#menu-left div.menu-head {
   background-color: #ece4e4;
   padding: 3px;
   padding-left: 15px;
   font-weight: bold;
   color: #000;
   height: 14px;
 
}

/* List for menu levels 3 and 4 */
div#menu-left ul {
   margin-top: 6px;
	list-style: none;
	padding-left: 0px;
	margin-left: 0px;
}

/* Menu level 3 */
div#menu-left ul li {
   
   padding-left: 14px;
   padding-right:5px;
   padding-bottom:3px;
   margin-bottom: 3px;
   margin-left: 0px;
   margin-right: 0px;
   border-bottom:1px solid #e4e4e4;
  
}
div#menu-left li h2{
	font-size:1.1em;
	font-weight:bold;
	margin-top:2px;
	color:#333;
}
div#menu-left ul li.menu-line {
	border-top:1px solid #e4e4e4;
	padding-top:5px;
}
div#menu-left ul li#menu-bottom {
	border: none;
}
/* Menu level 4 */
div#menu-left ul li.submenu {
   margin-left: 20px;
   padding-left: 2px;
   margin-top: 0px;
   margin-bottom: 2px;
   padding-top: 0px;
   padding-bottom: 0px;
   font-weight: normal;
   background-image: none;
   border:none;
}

div#menu-left a {
	color: #0671be;
	text-decoration: none;
   display: block;
   width: 100%;
   padding-top: 2px;
   padding-bottom: 2px;
}

div#menu-left ul li#menu-top a {
   border: 0;
}

div#menu-left ul li.submenu a {
   border-top: 0px;
   padding-top: 1px;
   padding-bottom: 1px;
   margin: 0;
}

div#menu-left ul li#menu-bottom a {
   /* border-bottom: 1px solid #ccc; */
}

div#menu-left a:hover {
	color: #0671be;
	text-decoration: underline;
}

/* Class to set selected item in vertical menu, if needed */
div#menu-left ul li.true {
  	font-weight: bold;
   background: transparent url(../images/menu_arrow.jpg) no-repeat;
}

/* Class to set selected item in submenus, if needed */
div#menu-left a.true {
	font-weight: bold;
}

/* Foot elements */
/* ---------------------------------------------------------------------------- */

hr#foot-divider {
}

/* Sorry, Dreamweaver don't handle margins properly in combination with clear :-( */
div#foot-holder {
	margin-top: 3px;
	margin-left: 0px;
	margin-right: 0px;
}
	
td#updated {
	font-size: 0.66em;
	color: #333333;
	text-align: center;
   padding-top: 20px;
   padding-bottom: 6px;
}

td#updated a {
	color: #333366;
}

td#updated.false {
   display: none;
}

div#foot {
   font-size: 0.62em;
   color: #000;
   background: #e5f1f7;
   border-top: 1px solid #9c9c9c;
   border-bottom: 1px solid #9c9c9c;
   border-left: 1px solid #9c9c9c;
   border-right: 1px solid #9c9c9c;
   padding-left: 30px;
   height: 23px;
}

div#foot p {
   margin-top: 7px;
}

div#foot a,
div#foot a:visited {
   text-decoration : none;
	color: #0473b9;
}

div#foot a:hover {
   text-decoration : underline;
	color: #0473b9;
}

div#credits {
	font-size: 0.56em;
	color: #ccc;
	text-align: right;
	margin-top: 4px;
	margin-right: 4px;
}

div#credits a,
div#credits a:visited {
   text-decoration : none;
	color: #bbbbbb;
}

div#credits a:hover {
	text-decoration : underline;
}

/* Hide credits when printing */
@media print {
	div#credits {
		display: none;
	}
}

/* End of stylesheet */
/* =============================================================== */
