/* page */

html, body {
    /* we'll specify the margins of our parts ourself, thanks */
    padding: 0px;
    margin: 0px;
    /* default colors */
    background: #ffe8bb;
    color: black;
}



/* masthead */

#masthead {
    /* bar across the top, large enough to contain the image */
    margin: 0;
    min-height: 110px; /* based on image height */
    border-bottom: 5px solid;
    /* colors */
    color: white;
    background: #8B008B;
    border-bottom-color: black;
    /* text */
    text-align: left;
    font: normal 200% "Times", serif;
}

#masthead a {
    text-decoration: none;
}

#masthead * {
    color: white;
}

#courselogo {
    /* logo hangs out at the left of the masthead */
    width: 125px;
    height: 125px;
    float: left;
    /* there's a decent bit of separation between it and the text */
    padding: 3px;
    margin-right: 0.75em;
}

#coursename {
    /* the text also has a decent bit of room around it */
    display: block;
    padding: 15px 3px;
}

#masthead + * {
    /* nothing overlaps it */
    clear: both;
}



/* sidebar */

/* by default, let's just shove the links together */
#navbar {
    display: block;
    margin: 0;
    padding: 0;
}

#navbar li {
    display: inline;
    margin: 0;
    padding: 0;
}

#navbar li a {
    padding: 0 0.5ex 0;
}

@media screen {
    /* lay out the page in a two-column layout */
    #sidebar {
	float: left;
	margin-right: 2em;
    }
    #body {
	float: left;
	/* note this depends on a max-width for body */
    }

    /* on screen, lay out as a column, at the page's left */
    #navbar li a {
	text-align: right;
	display: block;
	padding-left: 1ex;
    }
}

@media print {
    /* in print, just hide the whole thing */
    #navbar {
	display: none;
    }
}

#navbar li a {
    /* we emphasize navbar links not in the default way... */
    text-decoration: none;
    color: black;
    /* but with a bottom border and enlarged font/size */
    line-height: 1.5em;
    font-size: 115%;
    font-variant: small-caps;
    font-weight: bold;
    /* colors are derived from the same hue as the top color */
    color: #640a0a;
    border-color: #8c1010;
    /* surround each link with a 1px border, but no double border */
    border-bottom: 1px solid #8c1010;
}

#navbar li:first-child a {
    border-top: 1px solid #8c1010;
}

#navbar li:hover a {
    /* furthermore, active links are highlighted */
    color: white;
    background: #8B008B;
}



/* body */

#body {
    max-width: 35em;
}
#body :first-child {
    margin-top: 0;
    padding-top: 0;
}


/* footer */
#footer {
    clear: both;
    text-align: center;
    padding-top: 3em;
    font-size: smaller;
    color: gray;
}
