/******************
 * general layout *
 ******************/

html
{
    height: 100%;
}

body
{
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, 'Trebuchet MS', sans-serif;
    background:                 #333
                                url(images/background.jpg) no-repeat fixed center center;
    -webkit-background-size:    cover;
    -moz-background-size:       cover;
    -o-background-size:         cover;
    background-size:            cover;
    color: #ddd;
    font-size: 16px;
}

header,
footer
{
    box-sizing: border-box;
    width: 100%;
    height: 36px;
    line-height: 36px;
    background-color: #232323;
    color: #e9e9e9;
}

header
{
    padding: 5px 10px 0 10px;
}

main
{
    position: absolute;
    top: 0;
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    padding: 36px 0 36px 0;
    overflow: hidden;
}
main > .wrapper
{
    position: relative;
    height: 100%;
    overflow: auto;
}
main > .wrapper > .content
{
    padding: 10px;
}

footer
{
    position: absolute;
    bottom: 0;
    vertical-align: middle;
    padding: 0 10px 0 10px;
}

.ellipsis
{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.help
{
    cursor: help;
}

.hidden
{
    display: none !important;
}

#mnu
{
    display: inline;
    float: right;
    position: relative;
    margin: 0;
    padding: 0;
    z-index: 1;
}
#mnu > li
{
    cursor: pointer;
    display: inline;
    float: left;
    list-style-type: none;
    padding: 2px 8px 2px 8px;
    border-radius: 4px;
    line-height: 26px;
}
#mnu > li:hover
{
    background-color: #0464a2;
}



/***********
 * overlay *
 ***********/

#overlay
{
    display: none;
    box-sizing: border-box;
    height: 100%;
    background-color: #04021e;
    overflow: auto;
}

#overlay-content-padding
{
    padding: 10px;
}

.overlay-list
{
    float: left;
    width: 33%;
    min-width: 160px;
    box-sizing: border-box;
    padding-right: 25px;
}

.overlay-list-title
{
    font-size: 1.4em;
    color: #fff;
    padding-bottom: 0.3em;
    border-bottom: solid 2px #999;
    margin-bottom: 0.6em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-top: 1em;
}
.overlay-list > .overlay-list-title:first-child
{
    padding-top: 0;
}

.overlay-list-note
{
    display: inline-block;
    width: 240px;
    color: #ccc;
}

.overlay-list-note img
{
    height: 1em;
    width: auto;
}

.overlay-list > p
{
    font-size: 14px;
    text-align: justify;
    color: #ccc;
}

.overlay-list a
{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.8;
}
.overlay-list a:hover
{
    opacity: 1;
}

.overlay-list > a
{
    display: block;
    position: relative;
    height: 33px;
    line-height: 33px;
    vertical-align: top;
    font-size: 1.1em;
    color: #0be;
    text-decoration: none;
    text-shadow: 1px 1px 20px #1cf;
    opacity: 0.8;
    margin-bottom: 1em;
}

.overlay-list a > img
{
    height: 33px;
    width: 33px;
    margin: 1px;
}

.overlay-tile
{
    float: left;
    box-sizing: border-box;
    height: 150px;
    width: 150px;
    margin: 5px 20px 15px 0;
    padding: 4px 6px 4px 6px;
    border: solid 1px #222;
    border-right-style:     none;
    border-bottom-style:    none;
    -webkit-border-radius:  6px;
    -moz-border-radius:     6px;
    border-radius:          6px;
    -webkit-box-shadow: 3px 3px 10px #444;
    -moz-box-shadow:    3px 3px 10px #444;
    box-shadow:         3px 3px 10px #444;
    background: #445 url(images/tile-default.jpg);
    /*
    background-color:   #445;
    background:         linear-gradient(
                            rgba(0, 0, 0, 0.4),
                            rgba(0, 0, 0, 0.3)
                        ),
                        url(images/tile-default.jpg);
    */
    -webkit-background-size:    cover;
    -moz-background-size:       cover;
    -o-background-size:         cover;
    background-size:            cover;
    text-shadow: 2px 2px #333;
    font-size: 0.9em;
    overflow: hidden;
    opacity: 0.8;
}
.overlay-tile:hover
{
    cursor: pointer;
    opacity: 1;
}

.big-history
{
    background: #445 url(images/tile-bighistory.jpg);
}

.overlay-tile-title
{
    font-size: 1.1em;
    line-height: 1.1em;
    margin-bottom: 0.1em;
    font-weight: bold;
    color: #fff;
    /* max 3 lines: */
    max-height: 3.3em;
    overflow: hidden;
}

.overlay-tile-note
{
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    line-height: 1em;
    margin: 0.6em 0 0.1em 0;
    border-top: dashed 1px #666;
    padding-top: 0.6em;
    color: #fff;
    /* max 2 lines: */
    max-height: 2em;
    overflow: hidden;
}