/* page-wide styling */

body {
    background-color: rgb(245, 245, 245);
    border-left: 0.5em solid rgb(100, 100, 100);
    border-right: 0.5em solid rgb(100, 100, 100);
    font-family: gill sans, "Gill Sans MT", sans-serif;
    margin: 0;
}

a {	
    color: rgb(0, 64, 128);
}

a:hover {
    background-color: rgb(220, 220, 255);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
}

img {
    border: none;
    max-width: 15em;
    max-height: 15em;
    width: auto;
    height: auto;
    float: left;
    margin-right: 1em;
    margin-bottom: 1em;
    border: thin solid gray;
    -webkit-box-shadow: .2em .2em .3em black;
    -moz-box-shadow: .2em .2em .3em black;
    box-shadow: .2em .2em .3em black;
}

.floatright {
    margin-left: 1em;
    margin-right: 0;
    float: right;
}

.icon {
    width: 2em;
    height: 2em;
    text-decoration: none;
    vertical-align: middle;
    float: none;
    border: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    margin-right: 0;
    margin-bottom: 0;
}

/* masthead */

#masthead {
    text-align: center;
    width: 15.5em;
    position: fixed;
    margin-left: 0.5em;
    padding-top: 0.5em;
}

#masthead h1 {
    font-size: 2em;
    margin: 0;
}

#masthead a {
    text-decoration: none;
}

#masthead h2, #city {
    font-weight: lighter;
    font-family: "GillSans-Light", "Gill Sans Light", "Gill Sans MT", sans-serif;
    font-size: 1.25em;
    margin: 0;
    letter-spacing: 0.15em;
}

/* navigation links */

#navigation {
    font-size: 1.75em;
    width: 8.68em;
    top: 4.5em;
    left: 0.54em;
    position: fixed;
}

#navigation ul {
    list-style-type: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}

#navigation li {
    border-bottom: thin solid black;
    border-left: thin solid black;
    border-right: thin solid gray;
    padding: 0.075em;
    background-color: rgb(220, 220, 255);
    margin-right: -0.54em;
}

#navigation li a {
    display: block;
    background-color: rgb(220, 220, 255);
    padding: 0.125em;
}

#navigation li a:hover {
	background-color: white;
}
#navigation li:last-child {
	-webkit-border-bottom-left-radius: 0.25em;
	-moz-border-radius-bottomleft: 0.25em;
    border-bottom-left-radius: 0.25em;
}
#navigation li:first-child {
	-webkit-border-top-left-radius: 0.25em;
	-moz-border-radius-topleft: 0.25em;
    border-top-left-radius: 0.25em;
	border-top: thin solid black;
}

#navigation #currentPage {
    border-right: none;
    background-color: white;
}

#navigation #currentPage a {
    background-color: white;
}

#navigation a {
    text-decoration: none;
}

#navigation a:hover {
    background-color: inherit;
}

/* main content */

#content {
    margin-left: 16.5em;
    background-color: white;
    font-family: baskerville, serif;
    padding: 1em;
    border-left: thin gray solid;
    min-height: 75em;
}

#content:before {
    background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(rgba(255, 255, 255, 0)));
    background: -moz-linear-gradient(top, #FFFFFF, rgba(255, 255, 255, 0));
    background: -webkit-linear-gradient(top, #FFFFFF, rgba(255, 255, 255, 0));
    background: -ms-linear-gradient(top, #FFFFFF, rgba(255, 255, 255, 0));
    background: -o-linear-gradient(top, #FFFFFF, rgba(255, 255, 255, 0));
    background: linear-gradient(top, #FFFFFF, rgba(255, 255, 255, 0));
    content: '';
    position: fixed;
    top: 0;
    left: 16.9em;
    right: 0.5em;
    height: 2em;
}

#content:after {
    background: -webkit-gradient(linear, left bottom, left top, from(#FFFFFF), to(rgba(255, 255, 255, 0)));
    background: -moz-linear-gradient(bottom, #FFFFFF, rgba(255, 255, 255, 0));
    background: -webkit-linear-gradient(bottom, #FFFFFF, rgba(255, 255, 255, 0));
    background: -ms-linear-gradient(bottom, #FFFFFF, rgba(255, 255, 255, 0));
    background: -o-linear-gradient(bottom, #FFFFFF, rgba(255, 255, 255, 0));
    background: linear-gradient(bottom, #FFFFFF, rgba(255, 255, 255, 0));
    content: '';
    position: fixed;
    bottom: 0;
    left: 16.9em;
    right: 0.5em;
    height: 2em;
}

#content h1 {
    text-align: center;
    font-family: gill sans, "Gill Sans MT", sans-serif;
}

#content h2 {
    font-size: 1.75em;
    font-family: gill sans, "Gill Sans MT", sans-serif;
    clear: both;
}

#content div h2 {
    padding-top: 0.5em;
}

#content .section h2 {
    padding-top: 0;
}

.section h2 {
    float: left;
    width: 6em;
    margin: 0;
    padding: 0;
    text-align: right;
}

.entry {
    padding-left: 11.5em;
    margin-bottom: 1em;
}

.entry h3 {
    font-family: "GillSans-Light", "Gill Sans Light", "Gill Sans MT", sans-serif;
    font-weight: lighter;
    margin: 0;
}

.entry ul {
    margin: 0;
}

/* footer */

#footer {
    width: 15.67em;
    position: fixed;
    left: 1.18em;
    bottom: 1.18em;
    font-size: 0.85em;
    padding: 0.1em;
}

/* modifications for touch-based interfaces */

@media all and (max-device-width: 1024px) {
    /*#content:after { display: none; }*/
    #footer { position: absolute; bottom: auto; top: 30em; }
    #masthead { position: absolute; }
    #navigation { position: absolute; }
}
