div {
    margin: 0px;
    padding: 0px;
}
html {
    background-color:#FFFFF0;
    color:black;
}

body {
    font-family: arial, helvetica, sans-serif;
    background-color:#FFFFF0;
    color:black;
    margin: 0px;
    padding: 0px;
    height:100%;
}
#head{
    background-color: #5555ff;
    color:white;
    left: 0pt;
    right: 0pt;
    margin: 0pt;
/*    height: 1.9em;*/
}

#header {
    /* Disabled for mozilla as it forces scrolling
    -moz-box-shadow: 0.15ex 0.15ex 0.5ex #202020; */
    -webkit-box-shadow: 0.15ex 0.15ex 0.5ex #202020;
    box-shadow: 0.15ex 0.15ex 0.5ex #202020;
}
#maintitle {
    text-align: center;
    font-family: Arial, helvetica, sans-serif;
    font-weight: normal;
    font-size: 1.4em;
    padding-top:0.2em;
    margin-top: 0pt;
    padding-bottom:0.2pt;
    margin-bottom:0pt;
    vertical-align: top;
}
.fill {
/*    width: 100%;
    height: 0pt;*/
    display:block;
}
#menu {
    border-style:solid;
    border-color: #5555ff;
    border-width: 0pt 0.15em 0.15em 0.15em;
    background-color: #5555ff;
    color: #2222ff;
/*    background-image: url("images/menu-tl.png");
    background-repeat: no-repeat;
    background-position: top left;*/
}
#menuitems {
    display:block;
    clear:both;
    text-align: center;

    -webkit-border-top-left-radius: 200pt 17pt;
    -webkit-border-top-right-radius: 200pt 17pt;
    -moz-border-radius-topleft: 200pt 17pt;
    -moz-border-radius-topright: 200pt 17pt;
    border-top-left-radius: 200pt 17pt;
    border-top-right-radius: 200pt 17pt;

    background-color: #f5f5ff;
/*    background-image: url("images/menu-tr.png");
    background-repeat: no-repeat;
    background-position: top right;*/
    padding-top: 12pt;
}
#menu .menuitem {
    display:inline;
    text-align:center;
    padding-top: 0.2em;
    padding-bottom: 0.1em;
    margin-left: 5pt;
    margin-right: 5pt;
    border: 1.5pt solid #5555ff;
    border-bottom: 0px;
    -webkit-border-top-left-radius: 0.4em;
    -webkit-border-top-right-radius: 0.4em;
    -moz-border-radius-topleft: 0.4em;
    -moz-border-radius-topright: 0.4em;
    border-top-left-radius: 0.4em;
    border-top-left-radius: 0.4em;
    vertical-align: bottom;
}
.menuitem > a {
    font-size:1.2em;
}
#menu a {
    padding-left: 7pt;
    padding-right: 7pt;
    color: #0000a0;
}
#menu .activeitem{
    background-color: #5555ff;
    border-color: #5555ff;
}
#menu .activeitem>a{
    color:#f5f5ff;
}
.activeitem :link {
    color:#f5f5ff;
}

#submenu {
    position: absolute;
    display:block;
    left: 0.6em;
/*    top: 85px;*/
    margin-top: 0.7em;
    width: 10em;
    border: 0.15em solid #5555ff;
    color:black;
    background-color:#f5f5ff;
    -webkit-border-radius: 0.4em;
    -moz-border-radius: 0.4em;
    border-radius: 0.4em;

    -moz-box-shadow: 0.15ex 0.15ex 0.5ex #202020;
    -webkit-box-shadow: 0.15ex 0.15ex 0.5ex #202020;
    box-shadow: 0.15ex 0.15ex 0.5ex #202020;
}
#submenu a {
}
.submenuitem {
    display: block;
    width: 100%;
/*    font-size: 1em;*/
}
.submenuitem.activeitem {
    color:#f5f5ff;
    background-color:#5555ff;
}
#submenu.hidden {
    display:none;
}
#content {
    border: 0.15em solid #5555ff;
    padding: 5pt;
    margin-left: 11.2em;
    margin-right: 0.6em;
    margin-top: 0.6em;
    background-color: white;
    color:black;
    min-height: 300pt;
    -webkit-border-radius: 0.4em;
    -moz-border-radius: 0.4em;
    border-radius: 0.4em;

    -moz-box-shadow: 0.15ex 0.15ex 0.5ex #202020;
    -webkit-box-shadow: 0.15ex 0.15ex 0.5ex #202020;
    box-shadow: 0.15ex 0.15ex 0.5ex #202020;
}
#content.nosubmenu {
    margin-left: 0.6em;
}

#content p:first-child {
    margin-top: 0pt;
}

.photo {
    padding: 0.75ex;
    border: 1px solid black;
    -moz-box-shadow: 0.25ex 0.25ex 0.75ex #202020;
    -webkit-box-shadow: 0.25ex 0.25ex 0.75ex #202020;
    box-shadow: 0.25ex 0.25ex 0.75ex #202020;
}

.floatl {
    float: left;
    margin-right: 0.8ex;
    margin-bottom: 0.2em;
}

.floatr {
    float: right;
    margin-left: 0.8ex;
    margin-bottom: 0.2em;
}

.btn {
    display: inline-block;
    margin: 0em 2em 0.5ex 0em;
    width: 6em;
    border: 1pt solid darkgray;
    text-align: center;
    padding: 0.5ex 0ex;
    background-color: lightgray;

    background-image: -moz-linear-gradient(top, #aaa, #eee); /* FF3.6 */
    background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #aaa),color-stop(1, #eee)); /* Saf4+, Chrome */
    filter:  progid:DXImageTransform.Microsoft.gradient(startColorStr='#aaa', EndColorStr='#eee'); /* IE6,IE7 */
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#aaa', EndColorStr='#eee')"; /* IE8 */

    text-shadow: #aaa 1px 1px;

    -moz-box-shadow: 0.25ex 0.25ex 0.75ex #202020;
    -webkit-box-shadow: 0.25ex 0.25ex 0.75ex #202020;
    box-shadow: 0.25ex 0.25ex 0.75ex #202020;

    -webkit-border-radius: 0.3em;
    -moz-border-radius: 0.3em;
    border-radius: 0.3em;
}

#bottomline {
    display: none;
}
#footer {
    display:block;
    padding: 0pt;
    margin-top: 0.6em;
/*
    color:black;
    text-align: center;
*/
}
#footer .footback {
    display:block;
    border: 0.15em solid #5555ff;
    background-color:#f5f5ff;
    padding: 0pt;
    -webkit-border-top-left-radius: 200pt 17pt;
    -webkit-border-top-right-radius: 200pt 17pt;
    -moz-border-radius-topleft: 200pt 17pt;
    -moz-border-radius-topright: 200pt 17pt;
    border-top-left-radius: 200pt 17pt;
    border-top-right-radius: 200pt 17pt;
/*
    color: #5555ff;
    padding-top:0px;
*/
    /* Disabled for mozilla as it forces scrolling
    -moz-box-shadow: 0.15ex 0.15ex 0.5ex #202020; */
    -webkit-box-shadow: 0.15ex 0.15ex 0.5ex #202020;
    box-shadow: 0.15ex 0.15ex 0.5ex #202020;
}
#footer .footborder {
/*    display:block;
    padding: 0px 0px 2px 0px;
    margin-right:-2px;
    background-image: url(images/footer-tr.png);
    background-repeat: no-repeat;
    background-position: top right;
    margin-top:-2px;*/
}
#footer .foottext {
    padding: 6pt 8pt 2pt 8pt;
    display:block;
/*    margin-left: -2px;
    background-image: url(images/footer-tl.png);
    background-repeat: no-repeat;
    background-position: top left;
    margin-top:-2px;*/
    text-align:center;
    font-size: 0.9em;
}
#validate {
    display:none;
    margin-left: 8pt;
    margin-bottom: 0pt;
    margin-top: -36px;
}
#extracontents {
    display:block;
    width: 155px;
    border-top: 2px solid #5555ff;
    margin-top: 5px;
    padding:2px 0px 5px 0px;
    font-size: 10px;
    background-color: #fffff5;
}
#extracontents a{
    margin-top: 0px;
    display:block;
}
#extracontents p a:first-child {
    margin-top: 3px;
    font-weight: bold;
}

@media (max-width: 30em) {

    #content {
        margin-left: 0.6em;
        clear: both;
    }

    #submenu {
        margin-left: -0.15em;
        margin-top: 2.1em;
        float: left;
        display: inline-block;
        left: auto;
        position: static;
        width: 100%;
        margin-right: -100%;
        margin-bottom: 0.6em;
        background-color: transparent;
        border-style: none;
    
        -moz-box-shadow: none;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

    #submenuitems {
        border: 0.15em solid #5555ff;
        color:black;
        background-color:#f5f5ff;
        margin-left: 0.6em;
        margin-right: 0.4em;
        -webkit-border-radius: 0.4em;
        -moz-border-radius: 0.4em;
        border-radius: 0.4em;
    
        -moz-box-shadow: 0.15ex 0.15ex 0.5ex #202020;
        -webkit-box-shadow: 0.15ex 0.15ex 0.5ex #202020;
        box-shadow: 0.15ex 0.15ex 0.5ex #202020;
    }

    .submenuitem {
        border-top: 1px dotted black;
        font-size: 1.2em;
        padding-top: 0.2em;
        padding-bottom: 0.2em;
    }

    .submenuitem > a {
        display: block;
        vertical-align: middle;
    }

    .submenuitem:hover, .menuitem:hover, .submenuitem:active, .menuitem:active, .submenuitem a:focus, .menuitem a:focus {
        background-color: #ffee55;
        color: #103132;
    }

    .submenuitem:hover:first-child, .submenuitem:active:first-child, .submenuitem a:focus:first-child {
        -webkit-border-top-left-radius: 0.25em;
        -webkit-border-top-right-radius: 0.25em;
        -moz-border-radius-topleft: 0.25em;
        -moz-border-radius-topright: 0.25em;
        border-top-left-radius: 0.25em;
        border-top-right-radius: 0.25em;
    }

    .submenuitem:hover:last-child, .submenuitem:active:last-child, .submenuitem a:focus:last-child {
        -webkit-border-bottom-left-radius: 0.25em;
        -webkit-border-bottom-right-radius: 0.25em;
        -moz-border-radius-bottomleft: 0.25em;
        -moz-border-radius-bottomright: 0.25em;
        border-bottom-left-radius: 0.25em;
        border-bottom-right-radius: 0.25em;
    }

    .submenuitem:hover a, .menuitem:hover a, .submenuitem:active a, .menuitem:active a, .submenuitem:focus a, .menuitem:focus a {
        color: #103132;
    }

    .submenuitem:first-child {
        border-top-style: none ;
    }
}
