html {
    height: 100%;
}

body {
    background: #ededf0;
    height: 100%;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.4;
}

input, textarea {
    background: #fff;
    border: 0;
    width: 100%;
}

input[type=checkbox] {
    width: auto;
}

input.big {    
    height: 57px;
    padding: 0 15px;
}

textarea.big {
    padding: 20px;
}

input:focus,
textarea:focus {
    outline: 1px #000 solid;
}

form table {
    width: 100%;
}

form table th {
    width: 1px; /* set the minimum possible width */
}

input[type=submit] {
    float: right;
    width: auto;
}

/* Fix for Safari */
input {
    border-radius: 0;
}

a:focus {
    outline: none;
    text-decoration: inherit;
}

.nowrap {
    white-space: nowrap;
}

.scrollable {
    overflow: auto;
}

.page-block {
    min-height: 150px;
    overflow: auto;
}

#header {
    padding-top: 25px;
    padding-bottom: 40px;
}

.head-alerts-wrap {
    background: #3d6aa1;
}

.head-alerts {
    display: table;
    table-layout:fixed;
    width: 100%;
}

.head-alerts-list {
    display: table-row;
    list-style: none;
    padding: 0;
}

.head-alerts .head-alert {
    height: 68px;
    line-height: 68px;
    font-size: 20px;
    color: #fff;
    text-align: center;
    display: table-cell;
}

.head-alerts .head-alert a {
    color: inherit;
    width: 100%;
    height: 100%;
    display: block;
}

.main-container {
    position: relative;
    left: 76px;
}

.logo-link {
    float: left;
    display: block;
    margin-right: 15px;
}

.logo-wrap {
    margin-top: -2px;
    margin-left: 15px;
}

.logo-title {
    font-size: 24px;
    line-height: 36px;
    color: #062c70;
    display: block;
    float: left;
    margin: 0;
    font-weight: bold;
    width: 120px;
    padding: 5px 0;
}

.logo-title a {
    color: inherit;
}

.logo-title a:hover {
    text-decoration: none;
}

/* icons */

.with-icon {
    background-repeat: no-repeat;
    background-position: 0 50%;
}

.icon {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: -2px;
    background-image: url('../img/icons.png');
}

.icon, .header-icon {
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;    
}

.icon-table {
    background-image: url('../img/icons/white/table.png');
}
.icon-info {
    background-image: url('../img/icons/white/info.png');
}
.icon-search {
    background-image: url('../img/icons/white/search.png');
}
.icon-send {
    background-image: url('../img/icons/white/send.png');    
}
.icon-download {
    background-image: url('../img/icons/white/download.png');    
}
.icon-play {    
    background-image: url('../img/icons/white/play.png');    
}
.icon-white-right {
    background-image: url('../img/icons/white/right.png');
}
.icon-download-black {
    background-image: url('../img/icons/black/download.png');    
}
.icon-food {
    background-image: url('../img/icons/black/food.png');
}
.icon-calendar {
    background-image: url('../img/icons/black/calendar.png');
}
.icon-list {
    background-image: url('../img/icons/black/list.png');
}
.icon-book {
    background-image: url('../img/icons/black/book.png');
}
.icon-attachment {
    background-image: url('../img/icons/black/attachment.png');
}
.icon-contact {
    background-image: url('../img/icons/black/contact.png');
}
.icon-black-search {
    background-image: url('../img/icons/black/search.png');
}
.icon-right {
    background-image: url('../img/icons/lightgray/right.png');
}
.icon-lightgray-attachment {
    background-image: url('../img/icons/lightgray/attachment.png');    
}
.icon-g_one {
    background-image: url('../img/icons/black/play.png');     
}

.icon-down {
	background-image: url('../img/icons/gray/down.png');
}
.icon-up {
	background-image: url('../img/icons/gray/up.png');
}

/* /icons */

.header-blocks {
    float: right;
}

.header-block {
    display: block;
    height: 60px;
    float: left;
    margin: 10px 15px;
    position: relative;
}

.header-block a {
    margin: 0;
}

.link-block {
    background-color: #3d6aa1;  
    color: #fff;  
    padding-left: 22px;
    padding-right: 22px;
    line-height: 60px;   
    height: 60px;
    display: inline-block; 
    border: 0;
    font-size: 16px;
}

.link-block.with-icon {
    padding-left: 64px;
    background-position: 22px 50%;
}

.link-block-small {
    height: 50px;
    line-height: 50px;
}

.link-block-big {
    height: 67px;
    line-height: 67px;
}

a.link-block:hover,
input.link-block:hover,
button.link-block:hover {
    background-color: #3580db;
    text-decoration: none;
    color: #fff;    
}

.link-block-gray {
    height: 35px;
    line-height: 35px;
    background-color: #d4d4d6;
    color: #000;
    padding: 0 12px;
    font-size: 13px;
}

a.link-block-gray:hover {
    background-color: #e0e0e5;
    color: #000;
}

.link-block-gray-active,
a.link-block-gray-active:hover {
    background-color: #535354;
    color: #fff;
}

.header-block form.search-form input {
    height: 60px;
    display: block;
    float: left;
}

.header-block form.search-form input.search {
    line-height: 15px;
    width: 200px;
}

.header-block form.search-form input.submit {
    background-position: 50% 50%;
    width: 63px;
    padding: 0;
}


div.content {
    margin-bottom: 40px;
}

.article-categories {
    margin-bottom: 15px;
    overflow: auto;
    display: table;
    width: 100%;
    border-spacing: 1px;
}
.article-categories ul {
    list-style: none;
    padding: 0;
    display: table-row;
}
.article-categories ul li {
    display: table-cell;
}
.article-categories ul li a,
.article-categories ul li span {
    width: 100%;
    text-align: center;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
}

.article-list {
    padding: 0 0 0 144px;
    margin: 0 0 0 -144px;
    list-style: none;
    background: url('../img/timeline.png') 99px top repeat-y;
}

.article, .white-box {
    background: #fff;
    margin-bottom: 30px;
    padding: 1px 20px 20px;
    position: relative;
}

.article p {
    text-align: justify;    
}

.article .pravy {
    /* back compatibility */
    text-align: right;

}

.article td.pravy {
    /* back compatibility */
    text-align: right;
    font-weight: bold;
    padding: 0 10px 0 0;
  vertical-align: top;
}

.article td.levy {
    /* back compatibility */
    text-align: left;
    padding: 0;
  vertical-align: top;
}

.article:last-of-type {
    margin-bottom: 0;
}

.article .timeline-point {
    position: absolute;
    right: 100%;
    top: 18px;
    background: url('../img/timeline-point.png') right top no-repeat;
    color: #8b8b8c;    
    padding: 1px 55px 0 0;
    text-align: right;
    white-space: nowrap;
}

.article .article-image {
    float: right;
    margin-left: 15px;
    height: 100px;
    overflow: hidden;
    text-align: center;
    margin-bottom: 10px;
}

.article .article-preview {
    font-size: 16px;
    line-height: 1.5;
}

.article .article-info {
    float: right;
    padding-left: 35px;
    width: 200px;
    line-height: 50px;
    height: 50px;
    color: #666;
    clear: right;
}

.article-list .article .article-date-to {
    font-size: 0.76em;
}

.article-list .article .article-category {
    color: #9d9d9e;
}

.article-list .g_one-video {
    margin-top: 0;
}

.article-list-with-previous {
    padding-top: 30px;
}

.article-list-with-next {
    padding-bottom: 30px;
}

.right-block {
    background: #fff;
    padding: 0 2px 8px;
    margin-bottom: 27px;
    font-size: 14px;
    line-height: 1.2;
}

.right-block h3 {
    margin: 0 -2px 2px;
    padding-left: 65px;
    line-height: 66px;
    border-bottom: 1px #efefef solid;
    background-position: 16px 50%;
}

.right-block h3 a {
    color: #555;
}
.right-block h3 a:hover {
    color: #000;
}

/* Fix for mobile Safari */
.scrollable .content {
    -webkit-overflow-scrolling: touch;
}

.right-block .scrollable {    
    max-height: 290px;
}

.right-block ol.content {
    list-style: none;
    padding: 0;
    margin: 0;
}

.right-block ol.content > li {
    margin: 20px 20px 30px 65px;
    position: relative;
}

.right-block .content .title {
    min-height: 50px;
}

.right-block li .date {
    display: block;
    right: 100%;
    top: 0;
    position: absolute;
    width: 65px;
    color: #b3b3b3;
}

.right-block .date .short-weekday {
    color: #000;
    font-size: 26px;
    line-height: 1;
    text-align: center;
}

.right-block .date .date-days {
    text-align: center;
}

.right-block .date .date-days.small {    
    font-size: 0.8em;
    padding-left: 10px;
    text-align: left;
}

.events li .date {
    top: 3px;
}

.events li p {
    margin-left: -50px;
}

a.event-attachment-link {
    display: block;
    height: 33px;
    font-size: 14px;
    line-height: 33px;
    background-color: #e8e8eb;
    color: #585859;
    padding-left: 13px;
    margin-left: -50px;
}

a.event-attachment-link span {
    display: block;
    float: right;
    height: 33px;
    width: 33px;
    background-position: 1px 1px;
    background-color: #3d6aa1;
    text-indent: -9999px;
    overflow: hidden;
}
a.event-attachment-link:hover {
    background-color: #E0E0E5;
    color: #000;
    text-decoration: none;
}
a.event-attachment-link:hover span {
    background-color: #3580db;
}

.foods .soup {
    color: #b3b3b3;
}

.foods ol.mainfoods {
    padding: 0;
    list-style: none;
}

.foods ol.mainfoods li {
    margin: 0 0 8px;
}
.special-pages {
    padding: 0;
    background: transparent;
    display: table;
    width: 100%;
    table-layout: fixed;
}
.special-pages ul {
    list-style: none;
    padding: 0;
    display: table-row;
}
.special-pages li {
    display: table-cell;
    /*width: 100%; /* trigger fixed layout on table */
}
.special-pages a {
    padding: 0;
    line-height: 40px;
    height: 40px;
    margin: 0 1px;
    color: #525252;
    font-size: 17px;
    text-align: center;
    display: block;
}
.special-pages a.link-block-gray-active {
    color: #fff;
}

a.link-ext {
    font-size: 17px;
    width: 100%;
    display: block;
}

a.link-ext.with-icon {
    padding-left: 10px;    
    background-position: 95% 50%;
}

a.link-ext:hover {    
    background-color: #e4e4e6;
    text-decoration: none;
    background-position: right 50%;
}

.quickcontact-right-block, .joke-right-block {
    padding: 10px 20px;
    margin-bottom: 26px;
    margin-top: 26px;
}

.denik-right-block {
    margin-top: 20px;
}

.quickcontact-right-block {
    background: #d4d4d6;
}

.g_one-right-block ol {
    list-style: none;
}

.g_one-right-block ol.content > li {
    margin: 10px auto;
    width: 178px;    
}

.joke-right-block {
    background: #fff;
    text-align: center;
}

.quickcontact-right-block h3,
.joke-right-block h3 {
    font-size: 19px;
    margin: 0 0 20px;
}

.quickcontact {
    margin: 0 0 1em;
    padding: 0;
    overflow: auto;
}

.quickcontact li span {
    font-weight: bold;
    height: 100%;
    display: block;
}

.articles-paginator {
    margin-left: -150px;
    padding-left: 150px;
    background: url('../img/timeline-paginator.png') repeat-y;
    height: 60px;
}

.articles-paginator-next {
    background-position: 105px 0;
}

.articles-paginator-previous {
    background-position: 105px 5px;
}

.articles-paginator a {
    display: block;
    background: #cccccf;
    height: 60px;
    color: #383838;
    font-weight: bold;
    text-align: center;
    line-height: 60px;
}

.articles-paginator a:hover {
    background: #d0d0d5;
    color: #000;
}

.g_one-video {
    position: relative;
    width: 178px;
}
.g_one-video-title {
    position: absolute;
    background: #000;
    color: #fff;
    padding: 3px;
    font-size: 14px;
    margin: 2px;
    bottom: 0;
    max-width: 172px;
}
.g_one-video-bg {
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

ul.photos {
    list-style: none;
    padding: 0;
}

.photos .thumb-wrap {
    margin: 10px -2px;
    display: inline-block;
    float: none;
} 

.article-text {
    margin-top: 10px;
}

.article-attachments {
    border-top: 1px #ededed solid;
    margin: 20px -20px -20px;
    padding: 20px;
    background: #f7f7f7;
}
.article-attachments h3 {
    display: none;
}

.files {
    list-style: none;
    padding: 0;
}

.files .file {
    display: block;
    background: url('../img/icons/files/unknown.png') 0 50% no-repeat;
    padding-left: 40px;
    line-height: 40px;
}

.files .file-pdf {
    background-image: url('../img/icons/files/pdf.png');
}
.files .file-doc {
    background-image: url('../img/icons/files/doc.png');
}
.files .file-xls {
    background-image: url('../img/icons/files/xls.png');
}
.files .file-zip {
    background-image: url('../img/icons/files/zip.png');
}
.files .file-rtf {
    background-image: url('../img/icons/files/rtf.png');
}

.pagetitle {
    font-size: 20px;
    line-height: 32px;
    /* make left space for icon */
    margin-left: -52px;
    padding-left: 52px;
}

.subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.search-results {
    list-style: none;
    padding: 0;
}

#footer {
    margin-top: 30px;
    width: 100%;
    background: #cccccf;
}

.banners {
    padding: 30px 0;
    list-style: none;
    text-align: center;
}

.banners .banner {
    margin: 30px;
    float: left;
}

.banners a img { 
    /** copied from http://www.karlhorky.com/2012/06/cross-browser-image-grayscale-with-css.html */   
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
}

.banners a:hover img {
    /** copied from http://www.karlhorky.com/2012/06/cross-browser-image-grayscale-with-css.html */  
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale");
    -webkit-filter: grayscale(0%);
}

#ajax-spinner {
    background: transparent url('../img/ajax-loader.gif') no-repeat 50% 50%;
    background-color: rgba(255, 255, 255, 0.5);
    font-size: 0;
    z-index: 123456;
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

.flash {
    color: black;
    background: #FFF9D7;
    border: 1px solid #E2C822;
    padding: 1em;
    margin: 1em 0;
}

a[href^="error:"] {
    background: red;
    color: white;
}

form .required label {
    font-weight: bold;
}

form .error {
    color: #D00;
    font-weight: bold;
}

.js .jshidden {
    display: none;
}

@media (max-width: 1340px) {
    /* hide timeline */

    .main-container {
        left: 0;
    }

    .article .timeline-point {
        display: none;
    }

    .article-list,
    .articles-paginator {
        background-image: none;
        padding-left: 0;
        margin-left: 0;
    }
}

@media (max-width: 1200px) {


    .article-list,
    .articles-paginator {
        background-image: none;
        padding-left: 0;
        margin-left: 0;
    }

    .pagetitle.with-icon {
        background-image: none;
        border-left: 5px #222 solid;
        padding-left: 11px;
        margin-left: -16px;
    }

}

@media (max-width: 767px) {


    #header {
        padding: 0 10px;
    }

    .logo-wrap {
        margin-left: 10px;
    }

    .header-block {
        height: 45px;
    }

    .header-block .link-block {
        height: 45px;
        line-height: 45px;
        padding-left: 40px;
        padding-right: 6px;
        background-position: 6px 50%;
    }

    .header-block form.search-form input {
        height: 45px;
    }
    .header-block form.search-form input[type=submit] {
        width: 48px;
    }

    .article-categories {
        display: block;
    }

    .article-categories ul {
        display: block;
    }

    .article-categories ul li {
        display: block;
        float: left;
        margin: 1px;
    }

    .article-categories ul li a,
    .article-categories ul li span {
        /* restore to .link-block-gray */
        padding: 0 12px;
    }

}

@media (max-width: 400px) {


    .head-alerts .head-alert {
        height: 30px;
        line-height: 30px;
        font-size: 20px;
        display: inherit;
    }

    .special-pages li {
        display: inherit;
        width: 100%;
    }

    .special-pages ul {
        width: 100%;
        display: inherit;
    }

}

/* Highslide bug fixer @TODO */
.highslide-container > div > div.highslide-controls {
    display: none;
}

/*****************************************
 * Joke presenter                        *
 *****************************************/

.joke-nav {
    height: 3em;
    margin-bottom: 1em;
    position: relative;
}

.joke-nav .latest {
    margin: 0 auto 1em;
    width: 120px;
    text-align: center;
}

.joke-nav a {
    display: block;
    height: 1em;
}

.joke-nav .next {
    float: left;
    position: absolute;
    left: 0;
    bottom: 0;
}

.joke-nav .previous {
    float: right;
    position: absolute;
    right: 0;
    bottom: 0;
}

.joke-itself, .joke-nav {
    width: 520px;
    margin-left: auto;
    margin-right: auto;
}