/* --------- LINKS --------- */

a:link { color: #0000CC; text-decoration: underline; } 
a:visited { color: #8B008B; text-decoration: none; } 
a:active, a:hover { text-decoration: none; } 
a:hover { text-decoration: underline; }

/* Navigation links should NOT be underlined on Desktop */
#navcontainer a, #navcontainer2 a, #navcontainer3 a, #navcontainer4 a {
    text-decoration: none;
}

/* --------- LAYOUT --------- */

*, *::before, *::after {
    box-sizing: border-box; 
}

body {
    background: #faebd7;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 10pt;
    margin: 0 auto;
    padding: 20px;
}

img { max-width: 100%; height: auto; }

#container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px;
}

p, table { margin-left: auto; margin-right: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    border-color: #333333;
    margin-bottom: 2em;
    clear: both; 
    display: table; 
}
td, th { border: 1px solid #555555; }
th { font-weight: bold; text-align: center; background-color: #A9A9A9; }

h1 { text-align: center; font-size: 14pt; margin-top: 1em; margin-bottom: 2em; }
h2, h3 { font-size: 10pt; font-weight: bold; }

/* --------- NAVIGATION --------- */

#navcontainer ul, #navcontainer2 ul, #navcontainer3 ul, #navcontainer4 ul {
    font-size: 9pt;
    text-align: center;
    padding: 2px 0;
    margin: 0;
    color: white;
    width: 100%;
    font-weight: bold;
    list-style-type: none;
}

#navcontainer ul li, #navcontainer2 ul li, #navcontainer3 ul li, #navcontainer4 ul li {
    display: inline;
    padding: 2px 0;
}

#navcontainer ul li a, #navcontainer2 ul li a, #navcontainer3 ul li a, #navcontainer4 ul li a {
    padding: 2px 10px;
    color: white;
    border-right: 1px solid #fff;
}

#navcontainer ul li a:hover, #navcontainer2 ul li a:hover, #navcontainer3 ul li a:hover, #navcontainer4 ul li a:hover {
    background-color: #3333CC;
    color: white;
}

#navcontainer ul  { background-color: #444; line-height: 17px; }
#navcontainer2 ul { background-color: #666; line-height: 15px; margin-bottom: 3em; }
#navcontainer3 ul { background-color: #777; line-height: 13px; margin-top: 3em; clear: both; }
#navcontainer4 ul { background-color: #999; line-height: 13px; margin-bottom: 20px; }

#active, #active2, #active3, #active4 { border-left: 1px solid #fff; }

/* --------- CONTENT --------- */

blockquote { font-style: italic; }
.centeredimage { text-align: center; margin: 10px 20px; }
.spacer { 
    clear: both; 
    display: block;
    height: 0;
    margin: 0;
}

/* FIX: Bullets stay inside the flow so they don't crowd images */
ul {
    list-style-position: inside; 
    padding-left: 10px;
    margin-bottom: 1em;
}

ul.nodot {
    list-style-type: none;
    padding-left: 0;
    overflow: hidden;
}

ul.nodot li {
    margin-bottom: 5px;
}

/* FIX: Increased right margin on floatleft to push the list away */
img.floatleft, img.floatleftlink { 
    float: left; 
    margin: 10px 30px 10px 0; 
}

img.floatright, img.floatrightlink { 
    float: right; 
    margin: 10px 0 10px 20px; 
}

img.floatleft, img.floatright, img.middle { border: 1px solid black; }
img.floatleftlink, img.floatrightlink { border: 3px solid #0000CC; }

/* --------- GALLERY --------- */

div.gallery { width: 100%; margin: 0 auto; }
div.img { margin: 25px; float: left; text-align: center; }
div.img img { display: inline; margin: 1px; border: 3px solid #0000CC; }
div.desc { text-align: center; width: 200px; margin: 10px 30px; }


/* --------- FOOTER --------- */

#footer { font-size: 9pt; }

/* --------- RESPONSIVE ADJUSTMENTS --------- */

@media (max-width: 600px) {
    table { 
        display: table;
        width: 100%; 
        overflow-x: auto; 
    }

    #navcontainer ul, #navcontainer2 ul, #navcontainer3 ul, #navcontainer4 ul {
        background-color: transparent !important;
        margin: 0 !important;
        padding: 0;
    }

    #navcontainer ul li, #navcontainer2 ul li, #navcontainer3 ul li, #navcontainer4 ul li {
        display: block; 
        width: 100%;
        border: none !important;
    }

    #navcontainer ul li a, #navcontainer2 ul li a, #navcontainer3 ul li a, #navcontainer4 ul li a {
        color: #0000CC !important;
        text-decoration: underline !important;
        border: none !important;
        display: block;
        padding: 10px;
    }

    #navcontainer ul li a:visited, 
    #navcontainer2 ul li a:visited, 
    #navcontainer3 ul li a:visited, 
    #navcontainer4 ul li a:visited {
        color: #8B008B !important;
    }

    img.floatleft, 
    img.floatleftlink, 
    img.floatright, 
    img.floatrightlink {
        float: none !important;
        display: block;
        margin: 0 auto 15px auto;
        max-width: 100%;
    }
} /* This correctly closes the @media block */