/*
    css for layout with sidebar containing menu and top bar containing banner image
    sidebar and top banner bar are fixed for wide viewport (browser window) sizes
    but scroll out of the way on smaller sizes.
*/

div.centre
{
    text-align: center;
}

div.side
{
    position: absolute;
    top: 0px;
    left: 0;
    height: 100%;
    width: 30%;     /* default for small viewport - must be same value as top.left and content.left */
    padding: 10px 10px 10px 5px;
    text-align: center;
    background: #ffeeb9;
    z-index: 1;
    overflow: auto;
}

div.sidebar_bottom
{
    position: absolute;
    bottom: 1em;
    z-index: -1;
}

div.top {
    position: absolute;
    top: 0;
    left: 30%;     /* default for small viewport - must be same value as side.width and content.left    */
    right: 0;
    height: 6em;    /*  default - must be same value as content.top  */
    background: #ffeeb9;
    margin: 0 0 0 12px;
    padding: 1ex; 
    z-index: 2;
    overflow: hidden;
    text-align: center;
    line-height: 180%;
    /*border: solid 1px red;*/
}

div.top h1 {
    margin: 0;
    }

div.top img {
    border: 0;
    max-width: 90%;
    }

div.content
    {
        position: absolute; 
        top: 6em;   /*  default - must be same value as top.height  */
        left: 30%; /*  default for small viewport - must be same value as side.width and top.left */
        bottom: 0;
        right: 1em;
        margin: 1em;
        padding: 1em;
    }


@media (min-width:60em) {
    div.side
        {
            position: fixed;
            width: 10em;    /*  default for larger viewport: must be same value as top.left and content.left    */
        }

    div.top
        {
            position: fixed;
            left: 10em;    /*  default for larger viewport: must be same value as side.width and content.left */
        }
    div.content
        {
            left: 10em; /*  default for larger viewport: must be same value as side.width and top.left */
        }

}


/* menu */
#navcontainer ul
    {
        margin: 0;
        padding: 0;
        list-style-type: none;
    }

#navcontainer a
    {
        display: block;
        color: #FFF;
        background: #006000;
        width: 95%;
        padding: 3px 0 3px 5%;
        text-decoration: none;
        text-align: left;
        border-bottom: 1px solid #fff;
        font-weight: bold;
    }

#navcontainer a:hover
    {
        background-color: #00e000;
        color: #FFF;
        color: #000;
    }

#navcontainer li li a
    {
        font-size: 80%;
        display: block;
        color: #FFF;
        background-color: #00a000;
        width: 90%;
        padding: 3px 0 3px 10%;
        text-decoration: none;
        border-bottom: 1px solid #fff;
        font-weight: normal;
    }
