﻿/* CSS for Dr. Vaughn's group webpages */
body, ul.nav a, ul.nav a:visited {
	color: black;
}

body, ul, ol, dl {
	margin: 0;
	padding: 0;
}

body, a:visited {
	background-color: #4e5869;
}

body {
	font: "Times New Roman";
}

/* ~~ Element/tag selectors ~~ */
/* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify 
the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to 
the .nav list unless you write a more specific selector. */
h1, h2, h3, h4, h5, h6, p, figure, header, .header, footer, .footer, .ls {
	text-align: center;
}

h1, h2, h3, h4, h5, h6, p {
	margin-top: 0;	 /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom 
						margin will hold it away from any elements that follow. */
	padding: 0 0.9325em;
}

h1.pubs {
	font-size: 1.17em;
	margin: 1em 0;
}

figure, .container {
	margin: 0 auto;
}

table {
	border-collapse: collapse;
}

a:link, a:visited {
	text-decoration: underline;
}

.container, footer, .footer {
	width: 65.625em;
}

header, .header {
	width: 21.875em;
}

/* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
a img { 
	border: none;
}

/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
a:link {
	color:#414958;
}

/* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
a:hover, a:active, a:focus, ul.nav a, ul.nav a:visited { 
	text-decoration: none;
}

/* ~~ this container surrounds all other divs giving them their percentage-based width ~~ */
.container, nav, .sidebar1, ul.nav > li, ul.nav a, ul.nav a:visited {
	background-color: white;
}

.container {
	max-width: 78.75em;/* a max-width may be desirable to keep this layout from getting too wide on a large monitor. This keeps line length more 
							readable. IE6 does not respect this declaration. */
	min-width: 48.75em;/* a min-width may be desirable to keep this layout from getting too narrow. This keeps line length more readable in the 
						side columns. IE6 does not respect this declaration. */
}

/* ~~ the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced 
with your own linked logo ~~ */
header, .header, footer, .footer {
	color: #c00;
	background-color: black;
}

header, .header, ul.nav a, ul.nav a:visited, ol > li::before {
	font-weight: bold;
}

header, .header {
	font-size: 3em;
	height: 1.4583em;
	line-height: 1.0625em;
}

/* ~~ These are the columns for the layout. ~~ 

1) Padding is only placed on the top and/or bottom of the divs. The elements within these divs have padding on their sides. This saves you from 
any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create 
the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the 
padding necessary for your design.

2) No margin has been given to the columns since they are all floated. If you must add margin, avoid placing it on the side you're floating 
toward (for example: a right margin on a div set to float right). Many times, padding can be used instead. For divs where this rule must be 
broken, you should add a "display:inline" declaration to the div's rule to tame a bug where some versions of Internet Explorer double the margin.

3) Since classes can be used multiple times in a document (and an element can also have multiple classes applied), the columns have been assigned
class names instead of IDs. For example, two sidebar divs could be stacked if necessary. These can very easily be changed to IDs if that's 
your preference, as long as you'll only be using them once per document.

4) If you prefer your nav on the right instead of the left, simply float these columns the opposite direction (all right instead of all left) and
they'll render in reverse order. There's no need to move the divs around in the HTML source.

5) Currently, the sidebar1, sidebar2, and content class widths are set to percentages of the container class.

*/
nav, .sidebar1, main, .content, .fltlft {
	float: left;
}

nav, .sidebar1, main, .content {
	min-height: 46.875em;
}

nav, .sidebar1 {
	width: 18%;
	padding-bottom: 0.625em;
}

main, .content, .image {
	border-style: solid;
}

main, .content, ol > li {
	text-align: justify;
}

main, .content {
	width: 80%;
	padding: 0.625em 0;
	border-width: 0 0.0625em;
}

ol {
	padding-bottom: 0.75em;
}

/* ~~ This grouped selector gives the lists in the .content area space ~~ */
/* this padding mirrors the right padding in the headings and paragraph rule above. Padding was placed on the 
bottom for space between other elements on the lists and on the left to create the indention. These may be 
adjusted as you wish. */
.content ul, .content ol, main ul, main ol { 
	padding: 0 0.9375em 0.9375em 2.5em; 
}

/* ~~ The navigation list styles (can be removed if you choose to use a premade flyout menu like Spry) ~~ */
ul.nav {
	list-style: none; /* this removes the list marker */
	border-top: 0.0625em solid black; /* this creates the top border for the links - all others are placed using a bottom border on the LI */
	margin-bottom: 0.9375em; /* this creates the space between the navigation on the content below */
}

ul.nav > li {
	border-bottom: 0.0625em solid black; /* this creates the button separation */
}

/* grouping these selectors makes sure that your links retain their button look even after being visited */
ul.nav a, ul.nav a:visited, ol {
	display: block;
}

ul.nav a, ul.nav a:visited { 
	padding: 0.3125em 0.3125em 0.3125em 0.9375em;
}

/* this changes the background and text color for both mouse and keyboard navigators */
ul.nav a:hover, ul.nav a:active, ul.nav a:focus { 
	background-color: #6f7d94;
	color: white;
}

/* ~~ The footer ~~ */
footer, .footer {
	position: relative;/* this gives IE6 hasLayout to properly clear */
	clear: both; /* this clear property forces the .container to understand where the columns end and contain them */
	padding: 0.625em 0;
}

/* ~~ miscellaneous float/clear classes ~~ */
/* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on 
the page. */
.fltrt {  
	float: right;
	margin-left: 0.5em;
}

/* this class can be used to float an element left in your page. The floated element must precede the element it should be next to 
on the page. */
.fltlft { 
	margin-right: 0.5em;
}

/* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) 
if the #footer is removed or taken out of the #container */
.clearfloat { 
	clear: both;
	height: 0;
	font-size: 0.0625em;
	line-height: 0;
}

.image {
	padding: 0.3125em;
	border-width: 0.0625em;
}

.ls {
	border: thin black solid;
}

ol {
	margin: 1em 0;
	padding-left: 2.5em;
}

ol > li, ol#list > li {
	padding-bottom: 0.75em;
}

ol > li {
	position: relative;
	list-style: none;
	margin-right: 1em;
}

ol > li::before {
	position: absolute;
	left: -3.5em;
	width: 3em;
	content: attr(value) ".";
	text-align: right;
}

ol#list > li {
	font-size: 0.75em;
}