/*===================*/
/*=    CSS reset    =*/
/*===================*/

html, body, div, span, h2, h3, hr, img, table, tr, td, header, nav, footer
{
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  vertical-align: baseline;
  background: transparent;
}

img
{
  max-width: 90%; /* changed to 90% from 40% */
  margin: 5%;
}

@media only screen and (orientation:landscape)
{
  img
  {
    max-width: 30%;
    margin: 0 5%;
  }
}

/*====================================*/
/*=    Styles relevant everywhere    =*/
/*====================================*/

/* the header would shift slightly if the scrollbar were allowed to disappear */
html
{
  overflow-y: scroll;
}


body
{
  padding-bottom: 20px;  /* leaves some space at the bottom of the page */
  width: 100%;
  font-family: "Quicksand", Helvetica, sans-serif;
  font-size: 12pt;
  font-weight:400;
}

h1
{
text-align:center;
/*font-style:normal;
font-family:"Josefin sans", sans-serif;
font-weight:300*/
/*margin-top: 40px;*/
margin-top: 20px;
margin-bottom:15px;
font-style:normal;
font-family:"Josefin sans", sans-serif;
    font-weight: 600;
    /*text-transform: uppercase;*/
    font-size: 48px;
    line-height: 50px;
    letter-spacing: 3px;
    margin: 5%;
    color: #005bbb;
}

h2
{
margin-top: 40px;
font-style:normal;
font-family:"Josefin sans", sans-serif;
    font-weight: 400;
    /*text-transform: uppercase;*/
    font-size: 20px;
    line-height: 25px;
    letter-spacing: 1px;
}

h3
{
font-family: "Quicksand", Helvetica, sans-serif;
  font-size: 12pt; 
  font-weight:500
}

/* all links will be buffalo blue, and displayed without an underline, hover grey */
a:link,
a:visited
{
  color: #528ccf;
  text-decoration: none;
}

a:hover,
a:visited:hover
{
  color: #cccccc;
  text-decoration: none;
}


hr
{
  width: 100%;
  height: 2px;
  background-color: #999999;
  a
}


nav
{
	text-align: center; /* center aligns nav bar */
 	margin: auto;
 	padding: 0 5%;   /* side padding should match that of the content div */ /* changed to 5% from 50px */
	width: 90%;      /* width should match that of the content div */	/* changed to 100% from 600px */
	line-height: 24px; /* pads nav bar */
	background-color: #bad2ec;
    font-weight: 600
}


/* suppresses bullets and all other list formatting */
nav ul
{
	width: 100%
 	margin: auto;
 	padding: 0;
 	border: 0;
 	list-style: none;
 	display: inline;
}


/* spaces nav links away from each other */
nav li
{
  margin: 0 5%; 
  display: inline-block;
}

a.navi:link,
a.navi:visited
{
  color: #528ccf;
  text-decoration: none; 
  padding: 2px 2px; /* changed to 5% from 30px */
  background-color: #bad2ec;
}

a.navi:hover,
a.navi:visited:hover
{
	color: white;
	text-decoration: none;
	padding: 2px 2px;
	background-color: #528ccf;
}

a.active:link,
a.active:visited
{
	color: #005bbb;
	text-decoration: none;
	padding: 2px 2px;
	background-color: #bad2ec;
}

a.active:hover,
a.active:visited:hover
{
	color: white;
	text-decoration: none;
	padding: 2px 2px;
	background-color: #528ccf;
}

#content
{
  margin: 0;          /* centers the content div on the page */
  padding: 0 5%;  /* makes room for the header, leaves some space at the sides of the page */
  width: 90%; /* changed to 100% from 600px */
}



/* spacing between entries of a list */
li
{
  margin-top: 15px;
}


/* prevents space between borders of adjacent table cells */
/* 
table
{
  border-collapse: collapse;
}
 */


/* makes table header cells left-aligned and non-bold */
th
{
  text-align: left;
  font-weight: normal;
}





/*==========================================*/
/*=    Styles relevant on the home page    =*/
/*==========================================*/

#portrait
{
  margin: 0 auto;
  padding: 15px 5% 0 5%;
}

@media only screen and (orientation: landscape)
{
  #portrait
  {
    float: right;
    padding: 15px 5% 0 5%;
  }
}

#contactinfo td,
#contactinfo th
{
  margin: 5%;
  padding-bottom: 15px;
  padding-right: 5%;
}

/*=======================================*/
/*=    Styles relevant in the footer    =*/
/*=======================================*/
/*
footer
{
  padding: 3px;
  border: 2px solid #999999;
  border-radius: 5px;
  text-align: center;
  font-size: 8pt;
  background-color: #ffffff;
}
*/

/*  by default, put the footer on the bottom  */
/*  right, immediately after the content div  */ 
/*
footer
{
  float: right;
  margin: 80px 10px 10px 10px;
}




footer img
{
  vertical-align: text-bottom;
  margin: 2px 0;
}
*/

#code_links a
{
  margin: 0 3px;
}
