/** Cascading Style Sheet for the Pictures site. */

/* Document-wide defaults.  */

body {
    color: black;
    background: #F0F0E0; /* A pale khaki. */
    background-image: none;
    font-family: Arial, sans-serif;
}

/* Don't let text elements grow beyond a legible width.  (And weird
hack for IE.) */

.maxwidth {
    max-width: 800px;
    width:expression( 
        document.documentElement.clientWidth > 800 ? "800px" : "auto" );
}

table {
    border-spacing: 10pt;
    table-layout: fixed;
}

/* Paragraphs are set in a bit left and right.  The first line of
   succeeding paragraphs is further indented. */

p {
    margin-left: 1em;
    margin-right: 2em;
}

p + p {
    text-indent: 1em;
}

/* "Page title" style. */

.title {
    font-style: oblique;
    font-weight: bold;
    font-size: 250%;
    text-align: center;
    background: #D0D0C0; /* Darker. */
    padding: 1em;
    margin: .5em;
}

.title table {
    font-style: oblique;
    font-weight: bold;
    font-size: 100%;
    text-align: center;
}

.title td {
    padding: .3em;
}

/* "Note" style. */

.note {
    font-style: italic;
}

.note:before {
    content: "Note: ";
    font-weight: bold;
}

/* "Main index" style. */

.index li a {
    font-weight: bold;
    font-size: 125%;
    padding: .2em;
    line-height: 150%;
}

li a:hover {
    background: white;
}

h3 a:hover {    /* Also get links in sub-headings. */
    background: white;
}

/* "Quick links" style. */

.quick {
    font-weight: bold;
}

.quick a {
    padding: .2em;
    line-height: 150%;
}

.quick a:hover {
    background: white;
}

/* A "picture buttons" style that implements a psuedo-inline row of
   image-with-caption links.  Each button is a "div" with an image, a
   "<br>", and the text caption.  For some reason, setting "display:
   inline" doesn't work on "divs", so we use the "float" trick.
   This only works if all the buttons are the same height, otherwise
   you get odd effects. */

.buttons {
    vertical-align: middle;
    max-width: 100%;    /* override restriction above */
}

div.button {
    float: left;
    height: 275px;
    text-align: center;
    font-size: large;
    margin: .5em;
}

div.spacer {
    clear: both;
}

td, td p {                    /* override paragraph rules above */
    margin: 0;
    margin-top: .5em;
    text-indent: 0;
}

/* Set image-as-link borders: normally white, blue if target. */

a img {
    border: thick white inset;
    padding: 5px;
    background: white;
}

a:hover img {
    border-color: blue;
}

/* "Navigation bar" style. */

.navigation {
    background: #D0D0C0; /* Darker. */
    width: 95%;
    padding: .5em;
    margin: .5em;
    font-weight: bold;
    text-align: center;
}

.navigation td {
    height: 100px;      /* High enough for arrow images. */
}

.navigation .left {
    background: transparent url(new-left.gif) no-repeat center;
}

.navigation .up {
    background: transparent url(new-up.gif) no-repeat center;
}

.navigation .right {
    background: transparent url(new-right.gif) no-repeat center;
}

.navigation a {
    padding: .1em;
    position: relative;
    top: 0.4ex;
}

.navigation a:hover {
    border-color: blue;
}

.navigation a:active {
    border-style: inset;
}

/* An invisible paragraph, good for warnings on non-CSS browsers. */

.no-css {
    display: none;
}

/* Breakout-to-the-right style. */

.breakout-right {
    float: right;
    border: thin black solid;
    padding: 1em;
    margin: 1em;
    max-width: 50%;
}

/* Overall page layout. */

#header {
    text-align: center;
}

#footer {
    text-align: center;
}

#body {
    position: relative;
}

#right {
    padding-left: 250px;
}

#left {
    position: absolute;
    text-align: center;
    top: 0;
    left: 0;
    width: 200px;
    padding: 10px;
    border: thin grey solid;
}
