/* overall body styles */
body {
    background-color: #222222;
    color: #664444;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    height: 100%;
    margin: 0;
    padding: 0;
    text-align: justify;
}

/* default link styles */
a:link, a:visited {
    color: #444466;
    text-align: left;
    text-decoration: underline;
}
a:active, a:hover {
    color: #664444;
    text-align: left;
    text-decoration: none;
}

/* line breaks */
br {line-height: 1em;}

/* small text and strong text */
em {font-style: italic;}
small {font-size: 9px;}
strong {font-weight: bold;}
strong.cv {color: #444466;}

/* cv table styles */
table.cv {
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 1em !important; /* workaround to fix non-inherited font size in tables */
}
table.cv td {
    margin: 0;
    padding: 0 0 5px 10px;
    text-align: left;
    vertical-align: top;
}

#header {
    padding: 0;
    text-align: left;
    width: 100%;
}
#header a {
    position: absolute;
        top: 4em;
}

#boxcontainer {
    background-color: #FFFFFF;
    margin: 0;
    overflow: auto;
    position: absolute;
        top: 6em;
        right: 0;
        bottom: 6em;
        left: 0;
    width: 100%;
}
* html #boxcontainer {
    height: 75%;
}

#menubox {
    background-color: #FFFFFF;
    float: left;
    margin: 3em 0 0 0;
    padding: 0;
    width: 20%;
    text-align: right;
}
#menu {
    border-right: 1px solid #AAAAAA;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 2em;
    margin: 0;
    padding: 0 10px 20px 0;
    text-align: right;
}
#menu a:link, #menu a:visited {
    color: #664444;
    text-decoration: none;
}
#menu a:active, #menu a:hover {
    color: #444466;
    text-decoration: none;
}
#menu ul {
    list-style: none;
    margin: 20px 0 0 0;
    padding: 0;
}
#menu .submenu {
    line-height: 1.3em;
    list-style: none;
    font-size: smaller;
    font-weight: normal;
    margin: 0 0 10px 0;
}
#menu .submenu a:link, #menu .submenu a:visited {
    color: #444466;
    font-weight: normal;
    text-decoration: none;
}
#menu .submenu a:active, #menu .submenu a:hover {
    color: #664444;
    font-weight: normal;
    text-decoration: none;
}

#imgbox {
    background-color: #FFFFFF;
    float: left;
    margin: 3em 0 3em 0;
    padding: 0;
    text-align: center;
    vertical-align: top;
    width: 40%;
}
#imgbox div {
    margin: 0 0 3em 0;
    text-align: center;
    width: auto;
}
#imgbox img {
    margin: 0;
    padding: 0;
}
#imgbox div .caption {
    font-size: smaller;
    margin: 0 0 20px 0;
    text-align: center;
}
#imgbox span {
    margin: 0;
    padding: 0;
}
#imgbox .imgrow {
    display: inline;
    margin: 0 0 10px 0;
    padding: 0;
}
#imgbox .imgrow img {
    border: 0;
    margin: 0;
    padding: 0 5px 10px 5px;
}
#imgbox h2, #imgbox h3 {
    text-align: center;
}

#textbox {
    margin: 3em 0 3em 0;
    position: absolute;
        top: 0;
        left: 60%;
    text-align: left;
    width: 40%;
}
#textbox div {
    background-color: #EEEEEE;
    margin: 0 2em 3em 0;
    padding: 1px 2em 3em 2em; /* the 1px height is necessary for some odd reason */
    text-align: justify;
}
#textbox span {
    margin: 0;
    padding: 0;
    text-align: left;
}
#textbox .imgrow {
    display: inline;
    margin: 0 0 10px 0;
    padding: 0;
    text-align: left;
}
#textbox .imgrow img {
    border: 0;
    margin: 0;
    padding: 0 5px 10px 5px;
}

h2 {
    color: #444466;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 10px 0 0 0;
    text-align: left;
}
h3 {
    color: #664444;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
    text-align: left;
}

#footer {
    color: #AA8888;
    font-size: smaller;
    height: 6em;
    margin: 0 auto;
    position: absolute;
        bottom: 5px;
        right: 5px;
    text-align: right;
}
* html #footer {
    height: 10%;
    z-index: -1;
}
#footer a:link, #footer a:visited {
    color: #AA8888;
    text-decoration: none;
}
#footer a:active, #footer a:hover {
    color: #8888AA;
    text-decoration: underline;
}