html, body {
    padding: 0px;
    margin: 0px;
    height: 100%;
    background: rgba(0,0,0,0.15);
    background: url(../img/body_bg.jpg);
    background-attachment: fixed;
}

page {
    display: block;
    min-height: 100%;
    height: auto !important;
    height: 100%;
}

div, top, content, menu, foot {
    display: block;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

top, content, foot {
    width: 20px;
    box-shadow: 0px 0px 12px rgba(0,0,0,0.35);
    right: 8px;
}

top {
    position: absolute;
    top: 0px;
    min-height: 100px;
    max-height: 100px;
    background: rgba(0,0,0,0.75);
    z-index: 1;

    color: #eeeeee;
    text-shadow: 1px 1px 2px #ffffff;
    font-size: 36px;
    font-style: italic;
    padding: 24px 30px 0px 0px;
    text-align: right;
    overflow: hidden;

    background-image: linear-gradient(bottom, rgba(51,51,51,0.90) 0%, rgba(102,102,102,0.90) 50%, rgba(51,51,51,0.90) 100%);
    background-image: -o-linear-gradient(bottom, rgba(51,51,51,0.90) 0%, rgba(102,102,102,0.90) 50%, rgba(51,51,51,0.90) 100%);
    background-image: -moz-linear-gradient(bottom, rgba(51,51,51,0.90) 0%, rgba(102,102,102,0.90) 50%, rgba(51,51,51,0.90) 100%);
    background-image: -webkit-linear-gradient(bottom, rgba(51,51,51,0.90) 0%, rgba(102,102,102,0.90) 50%, rgba(51,51,51,0.90) 100%);
    background-image: -ms-linear-gradient(bottom, rgba(51,51,51,0.90) 0%, rgba(102,102,102,0.90) 50%, rgba(51,51,51,0.90) 100%);

    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, rgba(51,51,51,0.90)),
        color-stop(0.5, rgba(102,102,102,0.90)),
        color-stop(1, rgba(51,51,51,0.90))
        );

    border-radius:  0px 0px 8px 8px;
}

content {
    position: absolute;
    top: 100px;
    background: rgba(255,255,255,0.75);
    z-index: 0;
    margin: 8px 0px 8px 0px;

    font-size: 14pt;
    text-align: justify;
    padding: 16px;
    text-indent: 15px;

    background-image: linear-gradient(right bottom, rgb(255,255,255) 0%, rgb(240,240,240) 50%, rgb(255,255,255) 100%);
    background-image: -o-linear-gradient(right bottom, rgb(255,255,255) 0%, rgb(240,240,240) 50%, rgb(255,255,255) 100%);
    background-image: -moz-linear-gradient(right bottom, rgb(255,255,255) 0%, rgb(240,240,240) 50%, rgb(255,255,255) 100%);
    background-image: -webkit-linear-gradient(right bottom, rgb(255,255,255) 0%, rgb(240,240,240) 50%, rgb(255,255,255) 100%);
    background-image: -ms-linear-gradient(right bottom, rgb(255,255,255) 0%, rgb(240,240,240) 50%, rgb(255,255,255) 100%);

    background-image: -webkit-gradient(
        linear,
        right bottom,
        left top,
        color-stop(0, rgb(255,255,255)),
        color-stop(0.5, rgb(240,240,240)),
        color-stop(1, rgb(255,255,255))
        );

    border: 1px solid rgba(0,0,0,0.75);;
    border-radius: 8px;
}

content header {
    /*display: block;*/
    font-size: 20pt;
    font-weight: bold;
    color: #222222;
    /*    color: #990000;
        border: 1px dotted #cccccc;
        background: #f3f3f3;*/
    margin-bottom: 10px;
}

content::after {
    position: absolute;
    display: block;
    content: ' ';
    min-width: 1px;
    min-height: 120px;
    bottom: -48px;
}

menu {
    position: absolute;
    top: 2px;
    left: 8px;
    margin: 0px;
    min-width: 100px;
    padding: 0px;
    border-radius: 8px;
    box-shadow: none;
}

menu item {
    display: block;
    cursor: pointer;
    max-width: 256px;
    margin-top: 6px;

    padding: 8px;
    color: #eeeeee;
    text-align: center;

    background: rgba(0,0,0,0.75);
    background-image: linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%, rgb(51,51,51) 100%);
    background-image: -o-linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%, rgb(51,51,51) 100%);
    background-image: -moz-linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%, rgb(51,51,51) 100%);
    background-image: -webkit-linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%, rgb(51,51,51) 100%);
    background-image: -ms-linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%, rgb(51,51,51) 100%);

    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, rgb(51,51,51)),
        color-stop(0.50, rgb(85,85,85)),
        color-stop(1, rgb(51,51,51))
        );

    border-radius: 8px;
    box-shadow: 0px 0px 12px rgba(0,0,0,0.35);
}

menu item:hover {
    text-decoration: underline;
    text-shadow: 0px 0px 1px rgba(255,255,255,0.35);
}

menu item:active {
    background-image: linear-gradient(bottom, rgb(85,85,85) 0%, rgb(51,51,51) 50%, rgb(85,85,85) 100%);
    background-image: -o-linear-gradient(bottom, rgb(85,85,85) 0%, rgb(51,51,51) 50%, rgb(85,85,85) 100%);
    background-image: -moz-linear-gradient(bottom, rgb(85,85,85) 0%, rgb(51,51,51) 50%, rgb(85,85,85) 100%);
    background-image: -webkit-linear-gradient(bottom, rgb(85,85,85) 0%, rgb(51,51,51) 50%, rgb(85,85,85) 100%);
    background-image: -ms-linear-gradient(bottom, rgb(85,85,85) 0%, rgb(51,51,51) 50%, rgb(85,85,85) 100%);

    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, rgb(85,85,85)),
        color-stop(0.50, rgb(51,51,51)),
        color-stop(1, rgb(85,85,85))
        );
    box-shadow: inset 0px 0px 8px rgba(255,255,255,0.3);
}

menu subitems {
    width: 100%;
}

menu subitems item {
    margin-left: 8px;
    margin-right: 8px;
    margin-top: 0px;
    border-radius: 0px;
}

menu subitems item:last-child {
    border-radius: 0px 0px 8px 8px;
}

foot {
    position: fixed;
    bottom: 0px;
    min-height: 40px;
    max-height: 40px;
    background: rgba(0,0,0,0.75);
    z-index: 1;
    color: #eeeeee;
    overflow: hidden;

    background-image: linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%, rgb(51,51,51) 100%);
    background-image: -o-linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%, rgb(51,51,51) 100%);
    background-image: -moz-linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%, rgb(51,51,51) 100%);
    background-image: -webkit-linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%, rgb(51,51,51) 100%);
    background-image: -ms-linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%, rgb(51,51,51) 100%);

    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, rgb(51,51,51)),
        color-stop(0.50, rgb(85,85,85)),
        color-stop(1, rgb(51,51,51))
        );

    border-radius:  8px 8px 0px 0px;
}

foot:hover {
    opacity: 1;
}

foot copyright {
    display: inline-block;
    font-size: 16px;
    font-style: italic;
    margin-left: 20px;
    margin-top: 7px;
    display: inline-block;
    padding: 4px 12px 4px 12px;
    background: rgba(255,255,255,0.75);
    border-radius: 8px;
    color: #333333;
    opacity: 1;
    box-shadow: 0px 0px 8px rgba(255,255,255,0.5);
}

foot counters {
    display: none;
}

foot contacts {
    position: fixed;
    cursor: pointer;
    bottom: 4px;
    right: 24px;
    display: inline-block;
    padding: 4px 12px 4px 12px;
    background: rgba(255,255,255,0.75);
    border-radius: 8px;
    color: #333333;
    opacity: 1;
    box-shadow: 0px 0px 8px rgba(255,255,255,0.5);
    text-decoration: underline;
}

foot contacts:hover {
    text-decoration: underline;
    text-shadow: 0px 0px 1px rgba(51,51,51,0.5);
}

foot contacts:active {
    box-shadow: inset 0px 0px 8px #333333;
}

foot contacts full {
    display: none;
    box-sizing: border-box;
    position: fixed;
    z-index: 2;
    bottom: 40px;
    right: 24px;
    background: rgb(51,51,51);
    border-radius: 8px 8px 0px 0px;
    padding: 8px;
    color: #eeeeee;

    background-image: linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%);
    background-image: -o-linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%);
    background-image: -moz-linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%);
    background-image: -webkit-linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%);
    background-image: -ms-linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%);

    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, rgb(51,51,51)),
        color-stop(0.5, rgb(85,85,85))
        );
}

upbutton {
    position: fixed;
    bottom: 4px;
    left: 8px;
    display: inline-block;
    padding: 4px;
    padding-left: 8px;
    padding-right: 8px;
    background: #333333;
    color: #eeeeee;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0px 0px 8px #333333;
    opacity: 0;
}

upbutton {
    display: block;
    cursor: pointer;
    max-width: 256px;
    margin-top: 6px;

    padding: 8px;
    color: #eeeeee;
    text-align: center;

    background-image: linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%, rgb(51,51,51) 100%);
    background-image: -o-linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%, rgb(51,51,51) 100%);
    background-image: -moz-linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%, rgb(51,51,51) 100%);
    background-image: -webkit-linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%, rgb(51,51,51) 100%);
    background-image: -ms-linear-gradient(bottom, rgb(51,51,51) 0%, rgb(85,85,85) 50%, rgb(51,51,51) 100%);

    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, rgb(51,51,51)),
        color-stop(0.50, rgb(85,85,85)),
        color-stop(1, rgb(51,51,51))
        );

    border-radius: 8px;
    box-shadow: 0px 0px 12px rgba(0,0,0,0.35);
}

upbutton:hover {
    text-decoration: underline;
    text-shadow: 0px 0px 1px rgba(255,255,255,0.35);
}

upbutton:active {
    background-image: linear-gradient(bottom, rgb(85,85,85) 0%, rgb(51,51,51) 50%, rgb(85,85,85) 100%);
    background-image: -o-linear-gradient(bottom, rgb(85,85,85) 0%, rgb(51,51,51) 50%, rgb(85,85,85) 100%);
    background-image: -moz-linear-gradient(bottom, rgb(85,85,85) 0%, rgb(51,51,51) 50%, rgb(85,85,85) 100%);
    background-image: -webkit-linear-gradient(bottom, rgb(85,85,85) 0%, rgb(51,51,51) 50%, rgb(85,85,85) 100%);
    background-image: -ms-linear-gradient(bottom, rgb(85,85,85) 0%, rgb(51,51,51) 50%, rgb(85,85,85) 100%);

    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0, rgb(85,85,85)),
        color-stop(0.50, rgb(51,51,51)),
        color-stop(1, rgb(85,85,85))
        );
    box-shadow: inset 0px 0px 8px rgba(255,255,255,0.3);
}

content error {
    display: block;
    font-size: 40px;
    text-indent: 0px;
    color: #990000;
    margin: 10px;
}

iframe.hide {
    position: fixed;
    top: 0px;
    left: 0px;
    min-width: 0px;
    max-width: 0px;
    width: 0px;
    min-height: 0px;
    max-height: 0px;
    height: 0px;
    opacity: 0;
    border: none;
}

a {
    color: #333399;
}

a:hover {
    color: #000066;
}