/** 
 * SilverStripe Theme for the Department of Mathematics
 * at the University of Toronto
 * http://www.math.utoronto.ca
 *
 * Main Layout File
 */
 
/* Misc Styles and defaults 
-------------------------------------------- */

/* COLOURS

   We use a small set of rather muted colours. The UofT logo
   is blue so we base our colour selection around that chroma:

   uoft blue:   #023064;
   dark blue:   #07090d;
   medium blue: #7aabff;
   light blue:  #c3d9ff;
   white:       #ffffff;
   grey:        #666666;
   black:       #000000;
   red:         #ff0000;
*/
  
* {
	margin: 0;
	padding: 0;
}

body {

/* The reason for 62.5% is that the default font size in browsers
   is "16", and therefore 1em becomes "10px":

      http://css-tricks.com/css-font-size/

   We tweak per-style fonts in "typography.css".
*/

	font-size: 62.5%;
	color: #07090d;
 	margin-bottom: 3em;
	font-family: sans-serif;
}

html {
	background: #07090d;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}
caption, th, td {
	text-align: left;
	font-weight: normal;
}

.clear{
	clear:both;
}

/* CONTAINER
----------------------------------------- */
#BgContainer {
	width: 98%;  
	margin: auto;
}
#Container { 
	width: 100%;
	padding-bottom: 1em;
	background: #ffffff;
}
#Layout {
	width: 95%;
	clear: both;
	overflow: auto;
	margin: 1em 0 0 1em;
}
#Content {
	width: 78%;
	float: right; 	
	text-align: left;
}
/* HEADER
----------------------------------------- */
#Header { 
 	width: 100%;
/*	background: #023064; */
	}
	img {
		vertical-align: middle;
		}
	.noborder {
		border: 0;
		}
/* Avoid using negative shift at the bottom of objects,
   otherwise overlapping will ensue when resizing */
 	#Header h1 { 
	  	color: #023064; 
		font-size: 300%; 
		font-family: sans-serif;
		font-weight: 300;
		padding: 0.2em 0 0 0.5em;
	}
	#Header p {
		font-size: 180%;
		color: #023064;
		margin: 0 0 0 5em;
	}

#Header a:link {
	text-decoration: none;
	color: #023064;
}

#Header a:visited {
	text-decoration: none; 
	color: #023064;
}

#BannerContainer {
margin: 0px 10px 10px 10px;
float: left;
/* background: #023064; */
}

#HeaderContainer {
margin: 10px 0px 0px 0px;
width: 80%;
/* background: #023064; */
}


/* MAIN NAVIGATION - TABS
----------------------------------------- */
#Navigation {
	clear: both;
	width: 100%;
	margin: auto;
        padding: 3px 0;
	overflow: hidden;
	background: #023064;
}
	#Navigation ul { 
		margin-right: 3em;
 		float: center; 
	}
		#Navigation ul li { 
	 		list-style: none; 
			margin: 0 0.3em;
			float: left;
			line-height: 2.3em;
			display: block;
		}
  			#Navigation ul li a { 
				float: left;
				text-decoration: none;
				display: block; 
				height: 2em; 
				font-size: 1.4em; 
				padding: 0 0 0 0.8em;
				color: #ffffff;
			}
				#Navigation ul li a span {
					text-align: center;
		        		float: left;
					padding-right: 0.8em;
					height: 0;
                                        color: #ffffff;
				}
					#Navigation ul li a:hover { 
			 			background: #c3d9ff;
						cursor: pointer;
					}
					#Navigation ul li a:hover span {
						background: #c3d9ff;
						cursor: pointer;
                                                color: #023064;
					}
					
    			#Navigation ul li a.current,
	    		#Navigation ul li a.section,
	    		#Navigation ul li a.section:hover,
	    		#Navigation ul li a.current:hover { 
				 	background: #7aabff;
				 	color: #07090d;
					}
				#Navigation ul li a.current span,
				#Navigation ul li a.section span,
	    		#Navigation ul li a.section:hover span,
				#Navigation ul li a.current:hover span {
					background: #ffffff;
					color: #07090d;
				}
    
/* BREADCRUMBS
-------------------------------------------- */
#Breadcrumbs { 
 	color: #07090d;
	text-align: left;
	font-size: 1.1em; 
	margin: 0.5em 1em 2em 0;
}
	#Breadcrumbs p {
		margin: 0;
	}

/* SIDEBAR
-------------------------------------- */
#Sidebar { 
 	width: 20%;
	float: left;
}
	#Sidebar .sidebarBox {
		padding: 0 0 0.5em 0;
		background: #023064;
	}
	#Sidebar ul {
		margin: 0 0 0 1em;
	}
		#Sidebar li {
			margin: 0 0;
			list-style: none;
		}
	#Sidebar h3 { 
		clear: both; 
		color: #ffffff;
		font-weight: 700; 
		font-size: 1.4em; 
		margin: 0 0 0.4em 0;
		line-height: 2em;
		padding: 0 0 0 0.3em;
		background: #023064;
	}
	
	#Sidebar a em {
		font-style: normal;
	}
	#Sidebar p {
	 	clear: both;
	 	margin: 0 0 0 0;
	}
	
	/* MENU2 */
    ul#Menu2 li { 
    	margin: 0 0 0 0;
        list-style: none;
    }
    	ul#Menu2 li a {
            display: block;
            width: 100%;
	    margin: 1.4em 0 0.5em 0;
            color: #ffffff;
      	}
			ul#Menu2 li em {
				padding: 0 0 0 0.1em;
				display: block;
			}
				ul#Menu2 li li em {
					padding-left: 0;
				}
      	/* Level 1 
      	- We use 3 elements for the nav to get 3 background images applied.
            * span - topleft rounded corner
            * em - bottomleft rounded corner
            * a - arrow on the right
            <a><span><em></em></span></a>
      	*/
      	ul#Menu2 li a:hover,
      	ul#Menu2 li a.current,
      	ul#Menu2 li a.current:hover {
        	color: #c3d9ff;
		cursor: pointer;
            	text-decoration: underline;
      	}
	  	ul#Menu2 li a.current {
	  		/* font-weight: 700; */
	  	}
      	ul#Menu2 li a.section,
      	ul#Menu2 li a.section:hover {
            font-weight: normal;
            width: 100%;
      	}
      	ul#Menu2 li a.levela:hover span,
      	ul#Menu2 li a.current span,
      	ul#Menu2 li a.section span,
      	ul#Menu2 li a.section:hover span,
      	ul#Menu2 li a.current:hover span {
			display: block;
			height: 100%;
		} 
		ul#Menu2 li a.levela:hover em,
		ul#Menu2 li a.current em,
		ul#Menu2 li a.section em,
		ul#Menu2 li a.section:hover em,
		ul#Menu2 li a.current:hover em {
			display: block;
		        height: 100%;
      	}
      		ul#Menu2 li ul {
            	height: 100%;
            	position: relative;
            	margin: 0 0 0 0;
            	width: 100%;
            	padding: 0 0 0 0;
      		}
      			ul#Menu2 li ul li {
            		width: 100%;
            		padding: 0;
            		font-size: 100%;
            		display: inline;
            		margin: 0;
      			}
      				ul#Menu2 li ul li ul {
            			margin-left: 0;
      				}	
      
					ul#Menu2 li li a.current,
      				ul#Menu2 li li a.section,
      				ul#Menu2 li li a.section:hover,
      				ul#Menu2 li li a.current:hover {
            			font-weight: normal;
      				}
      					ul#Menu2 li li ul {
            				margin: 0 0 0 10px;
            				padding: 0;
            				width: 100%;
      					}
      					ul#Menu2 li li ul .roundWhite {
      					}
      			
			/* Sub Menu */
      		ul#Menu2 li a.levelb {
            	font-size: 100%;
            	text-indent: 1em;
            	width: 100%;
      		}
	  		ul#Menu2 li a.levelb:hover,
      		ul#Menu2 li li a.current,
      		ul#Menu2 li li a.current:hover,
      		ul#Menu2 li li a.section,
      		ul#Menu2 li li a.section:hover {
            	text-decoration: underline;
            	display: block;
            	color: #c3d9ff;
      		}
      		ul#Menu2 li a.levelb:hover span,
      		ul#Menu2 li li a.current span,
      		ul#Menu2 li li a.current:hover span,
      		ul#Menu2 li li a.section span,
      		ul#Menu2 li li a.section:hover span {
            	display: block;
            	width: 100%;
            	height: 100%;
      		} 	
      		ul#Menu2 li a.levelb:hover em,
      		ul#Menu2 li li a.current em,
      		ul#Menu2 li li a.current:hover em,
      		ul#Menu2 li li a.section em,
      		ul#Menu2 li li a.section:hover em {
            	display: block;
            	width: 100%;
            	height: 100%;
      		}

/* COMMENTS
---------------------------------------- */
#CommentHolder ul {
	list-style: none;
	margin: 20px 0;
}
#PageComments li {
	margin: 5px 0;
	padding: 1px;
	width: 88%;
}
	#PageComments li.odd {
		background: #E8F6FF url(../images/commentBg.png) no-repeat 1% 10%;
		padding-left: 40px;
		padding-right: 10px;
		border-bottom: 2px solid #BCE4FE;
	}
	#PageComments li.even {
		background: #fff url(../images/commentBgAlt.png) no-repeat 99% 10%;
		padding-right: 40px;
		padding-left: 10px;
	}

		#PageComments li.odd p.info {
			color: #3AA0C3;
		}

		.actionLinks li {
		   display: inline;
		   border-right: 1px solid;
		}
			.actionLinks li a {
				padding-right: 3px;
				font-size: 10px;
			}
   			.actionLinks li.last {
      			border-right: none;
   			}

.commentrss {
	background: transparent url(../images/feed-icon-14x14.png) no-repeat;
	padding-left: 20px;
	font-size: 1.1em;
	line-height: 1.5em;
}
#PageCommentsPagination p {
	text-align: center;
	font-size: 1.2em;
}
#PageComments p {
	font-size: 1em;
}
	#PageComments p.info {
		color: #999;
		margin: 0px;
		padding: 0;
		line-height: 1em;
		font-size: 0.9em;
	}


/* SEARCH RESULTS STYLES
------------------------------------------------ */
ul#SearchResults {
	margin: 1em 0;
}
	ul#SearchResults li {
		list-style: none;
		margin: 1em 0;
		font-size: 1.5em;
	}

/* SEARCH FORM
----------------------------------------------- */
html #SearchForm_SearchForm {
	float: right;
	width: 30%;
	overflow: auto;
}

/* We use 14px below to reliably align the widgets */

html #SearchForm_SearchForm .middleColumn {
	float: left;
	width: 75%;
	padding: 0;
	border: 0;
	margin: 14px 0 0 0;
	background-color: #023064;
	
}
html #SearchForm_SearchForm .middleColumn input.text {
/* Using a % here avoids overlap with the button. See also forms.css */
	width: 90%;
	height: 1.7em;
	border: none;
	color: #7aabff;
	}
html #SearchForm_SearchForm #SearchForm_SearchForm_action_results {
	float: left;
	margin: 14px 0 0 0;
}

/* FOOTER
----------------------------------------------- */

#Footer {
	width: 100%;
	text-align: center;
	color: #023064;
	background: #ffffff;
}
	#Footer .footerTop {
		width: 100%;
	}
  	#Footer p {
		font-size: 1em;
		color: #023064;
		text-align: right;
		padding: 0 0.5em 0.5em 0;
	}

/* DIRECTORIES
----------------------------------------- */
#Directory {
}

#Directory a {
	text-decoration: none;
}
#Directory  a:hover {
	text-decoration: underline;
}
#Directory h2 {
	margin: 1.3em 0 0.5em 0;
	font-size: 1.8em;
}
#Directory h3 {
	font-size: 1.5em;
	text-align: center;
}
#Directory h4 {
	margin: 1.3em 0 0.5em 0;
	font-size: 1.3em;
}
#Directory img {
border: 0px none;
}

#Directory table {
	font-size: 1.5em;
	margin-left: auto;
	margin-right: auto;
	width: 96%;
}

#Directory tr:nth-child(2n+1) {
		background-color: #c3d9ff;
}

#Directory th {
		color: #ffffff;
		background: #023064;
		padding: 0.5em;
}

#Directory td {
		padding: 0.2em;
	}

#Directory .stripe {
	background: #c3d9ff;
}

#Directory .keys {
	width: 48%;
	border-collapse:collapse;
	border: 1px solid black;
}
