html, body {
    height: 100%;
}
body {
    font: 16px Arial, Helvetica, sans-serif !important;
    margin: 0 15px;
    background:url(../img/lgrey154.jpg) repeat;
}
#wrapper {
    min-height: 100%;
    margin-bottom: -30px;
}

/* Bootstrap tweaks */
.navbar {
    margin-bottom: 10px;
}
.col-md-2 {
    padding-right: 3px;
}
.col-md-10 {
    padding-left: 2px;
}
/* Language switchers */
.nav li.langflags {
    margin-left: 5px;
}
img.langflag {
    margin-top: 13px;
    cursor: pointer;
}
img.langflag.active {
    box-shadow: 0px 0px 5px #111;
}

/* Carousel in root page */
#rootcarousel {
    border: 1px solid #999;
}
#rootcarousel .item {
    background: #666;
    cursor: pointer;
}
#rootcarousel .item span.textinfo {
    position: absolute;
    bottom: 50px;
    left: 30px;
    color: #fff;
    background: rgba(0, 0, 0, .5);
    padding: 15px;
    font: 22px Verdana, Arial, sans-serif;
}
img.carousel-img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
}

/* News in root page */
#rootnews {
    background: white;
    border: 1px dashed #ddd;
    font: 16px normal Arial, Helvetica, sans-serif;
    padding: 5px;
    margin-bottom: 10px;
}
#rootnews h1 {
    text-align: center;
    font-size: 1.4em;
}
#rootnews .nb {
    padding: 3px;
    margin-bottom: 3px;
}
#rootnews span.title {
    font-size: 1.3em;
    color: darkred;
}
#rootnews span.time {
    font-size: 0.8em;
    color: #555;
}
#rootnews p.cont {
    margin-top: 3px;
}
#rootnews .more {
    text-align: center;
    margin-bottom: 15px;
}

.rootcontent {
    margin-bottom: 10px;
}

/* News */
#news {
    padding: 10px;
}
.newsblock {
    margin: 5px auto;
    border: 1px solid #ddd;
    padding: 5px;
    background: #f5f5f5;
}
.newsblock span.title {
    font-size: 1.5em;
    color: darkred;
    font-weight: bold;
}
.newsblock span.time {
    font-size: 0.95em;
    color: #777;
    margin-left: 10px;
}
.newsblock span.author {
    font-size: 0.95em;
    color: darkslateblue;
    margin-left: 5px;
    font-weight: bold;
}
.newsblock p.cont {
    margin-top: 10px;
    text-align: justify;
    color: #333;
}

/* News form */
.newsform {
    margin: 0 auto;
    width: 100%;
    max-width: 750px;
    text-align: center;
}
.newsform p.error {
    font-weight: bold;
    color: red;
    text-align: center;
}

/* Members tables */
.members-list {
    font-size: .8em;
}
.members-list tr.head {
    background: #f5f5f5;
}
.members-list tr.r {
    cursor: pointer;
}
.members-list tr.r:hover {
    background: #eee;
}
.members-list .sort-arrow {
    display: block;
    float: right;
    margin: 2px 0 0 0;
    cursor: pointer;
}
.member {
    font-size: .9em;
}
.member .h {
    font-weight: bold;
    horiz-align: right;
    width: 20%;
}
div.membform {
    margin: 20px auto;
    padding: 20px;
    width: 80%;
    min-width: 550px;
    border: 1px solid #ccc;
    border-radius: 10px;
}
div.membform p.title {
    text-align: center;
    color: #333;
    font-weight: bold;
    font-size: 1.4em;
}
div.membform span.error {
    display: block;
    color: #990000;
    font-weight: bold;
    font-size: 80%;
}
div.membform span.required {
    color: #660000;
    font-weight: bold;
    padding-right: 3px;
}
div.membform table {
    width: 100%;
}
div.membform tr {
    height: 30px;
}
div.membform table td.k {
    horiz-align: right;
    text-align: right;
    font-weight: bold;
    padding: 5px;
    color: #333;
    font-size: 95%;
}
div.membform td.v {
    width: 80%;
}
div.membform .inp {
    width: 100%;
    height: 35px;
    margin: 3px 0;
    font-size: 1em;
}
div.membform .inp-sm {
    width: 50%;
    height: 30px;
    font-size: 1em;
}
div.membform .inp-text {
    width: 100%;
    margin: 3px 0;
    font-size: 1em;
}
div.membform .inp-select {
    width: 100%;
    font-size: .8em;
}
div.membform .submit-field {
    display: block;
    margin: 15px auto 5px auto;
    text-align: center;
}

.content {
    font: 16px Verdana, Geneva, sans-serif;
    line-height: 1.4;
    background: white;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 15px;
}
.content h1, h2, img {
    text-align: center;
}
.content img.center {
    display: block;
    margin: 20px auto;
    max-width: 100%;
}
.content img.left {
    display: block;
    margin: 10px;
    float: left;
    max-width: 100%;
}
.content img.right {
    display: block;
    margin: 10px;
    float: right;
    max-width: 100%;
}
.content p {
    text-align: justify;
}
.content div.center, .content div.center p {
    text-align: center;
}
.content .breadcrumb {
    font-size: 0.8em;
}

/*
.index-content {
    font-size: 1.2em;
}
*/

#infoblock {
    background: white;
    margin-top: 15px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px dashed #ddd;
    font: 16px Verdana, Geneva, sans-serif;
    line-height: 1.5;
    text-align: justify;
}

.linkblock {
    border: 1px solid #eee;
    margin-bottom: 5px;
}
#paging, .getrawdatablock, .legend_block, .centerblock {
    margin: 0 auto;
    text-align: center;
}
.getrawdatablock {
    padding: 10px;
}
.legend_block {
    font-size: 1.3em;
}
/* Library genres menu */
.libmenu {
    position: relative;
    border: 1px solid #ddd;
    background: #fbfbfb;
    padding: 0;
    margin-bottom: 10px;
    font: 14px Arial, Helvetica, sans-serif;
    list-style: none;
}
.libmenu li {
    border-bottom: 1px solid #ddd;
}
.libmenu li:last-child {
    border-bottom: none;
}
.libmenu li:hover {
    background: #eee;
}
.libmenu li a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 3px 10px;
}
.libmenu li.active > a {
    background: #555;
    color: white;
}
.libmenu li.active:hover > a {
    background: #777;
}
.libmenu li.title {
    background: lightblue;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    padding: 2px 2px 2px 10px;
}
.libmenu li.title:hover {
    background: lightblue;
}

/* Library - Book block */
.bb {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 5px;
}
.bb div.bb-row {
    padding: 2px;
}
.bb div.bb-title {
    text-align: left;
    margin-left: 20px;
    font-weight: bold;
    font-size: 1.2em;
}
.bb div.bb-desc {
    text-align: justify;
    font-size: 1.0em;
    padding: 5px;
}
.bb span.authors, span.editors {
    font-weight: bold;
}

/* Library - Book title in viewer */
.booktitle {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    padding: 5px;
}

/* Side menu */
.sidemenu {
    position: relative;
    border: 1px solid #ddd;
    background: #fbfbfb;
    padding: 0;
    margin-bottom: 10px;
    font: 14px Arial, Helvetica, sans-serif;
}
.sidemenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidemenu ul li {
    display: block;
    border-bottom: 1px solid #ddd;
}
.sidemenu ul li:last-child {
    border-bottom: none;
}
.sidemenu ul li:hover {
    background: #eee;
}
.sidemenu ul li a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 5px 10px 5px 10px;
}
.sidemenu ul li.active > a {
    background: #555;
    color: white;
}
.sidemenu ul li.active:hover > a {
    background: #777;
}
.sidemenu ul li.header {
    background: #ddd;
    color: darkblue;
    text-align: center;
    font-weight: bold;
}

/* Request Form */
.requestform {
    background: #f5f5f5;
    max-width: 900px;
    border: 1px solid #bbb;
    margin: 0 auto;
    padding: 15px;
    font-size: 12px;
}
.requestform h1 {
    text-align: center;
    font-size: 1.6em;
    border: 1px solid #bbb;
    margin: 0 0 10px 0;
    padding: 10px;
}
.requestform h1.uploaderr {
    color: darkred;
    font-weight: bold;
}
.requestform h2 {
    text-align: center;
    font-size: 1.3em;
    margin: 0;
    padding: 3px;
}
.requestform div.options {
    position: relative;
    border: 1px solid #ccc;
    margin: 10px;
}
.requestform div.dateselect {
    float: left;
    width: 50%;
    padding: 10px;
}
.requestform div.dateselect label {
    font-size: 1em;
}
.requestform .optionblock {
    float: left;
    padding: 0 10px 10px 10px;
    width: 50%;
}
.requestform div.channels {
    clear: both;
    position: relative;
    border: 1px solid #ccc;
    margin: 10px;
}
.requestform div.channels h1 {
    text-align: center;
    font-size: 1.5em;
    margin: 0;
    padding: 5px 5px 0 5px;
}
.requestform div.changroup {
    position: relative;
    float: left;
    width: 50%;
    padding: 10px;
}
.requestform div.chan {
    font: 14px Arial, Helvetica, sans-serif;
    padding: 3px;
}
.requestform span.desc {
    margin-left: 5px;
}
.requestform div.chan .aver_control {
    font-weight: bold;
}
.requestform span.required {
    color: red;
    font-size: 1.2em;
}
.requestform .submit {
    clear: both;
    text-align: center;
    margin-bottom: 10px;
}
.requestform .chanbtn {
    clear: both;
    text-align: center;
    margin-bottom: 10px;
}
.requestform div.formerror {
    text-align: center;
    font-weight: bold;
    color: red;
}
.requestform .error, p.error {
    color: darkred;
    font-size: 0.9em;
}
.requestform .error {
    margin-left: 20px;
}
.requestform div.genres-area {
    height: 160px;
    overflow: auto;
    padding: 10px;
    border: 1px solid #ddd;
}
.requestform div.genres-area label {
    font-weight: normal;
    margin: 0 0 0 5px;
}

/* Request result block */
.request_result {
    margin: 0 auto;
    padding-top: 100px;
    padding-bottom: 100px;
    max-width: 400px;
    font-size: 1.8em;
    text-align: center;
}
.request_result p {
    text-align: center;
}

.clear {
    clear: both;
}

/* Calendar */
.calendar {
    background: white;
    margin-bottom: 10px;
}
.calendar table {
    margin: 0;
    padding: 0;
}
.calendar table.header .btn {
    padding: 1px 1px;
}
.calendar table.header tr,
.calendar table.content tr {
    border-bottom: 1px solid #ddd;
}
.calendar table.content tr:last-child {
    border-bottom: none;
}
.calendar table.header td {
    padding: 0px;
    text-align: center;
    border: none;
}
.calendar table.content .days td {
    padding: 2px;
    text-align: center;
    background: #eee;
    color: black;
    font-weight: bold;
    cursor: default;
}
.calendar table.content td {
    height: 25px;
    padding: 1px;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid #ddd;
    font: 13px Arial, Helvetica, sans-serif;

    cursor: pointer;
}
.calendar table.content td.current {
    background: #444;
    color: white;
}
.calendar table.content td.current:hover {
    background: #777;
}
.calendar table.content td:last-child {
    border-right: none;
}
.calendar table.content tr.days > td:hover {
    background: #eee;
}
.calendar table.content td:hover {
    background: #ccc;
}
.calendar table.content td.inactive {
    cursor: default;
    color: #bbb;
}
.calendar table.content td.inactive:hover {
    background: inherit;
}
.calendarmenus {
    display: none;
    position: absolute;
    background: white;
    z-index: 9999;
    border: 2px solid #bbb;
    box-shadow: 3px 3px 10px #bbb;
}
.calendarmenus ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.calendarmenus ul li {
    display: block;
    border-bottom: 1px solid #ddd;
}
.calendarmenus ul li:last-child {
    border-bottom: none;
}
.calendarmenus ul li a {
    display: block;
    color: #444;
    padding: 2px;
    text-decoration: none;
    text-align: center;
}
.calendarmenus ul li:hover {
    background: #ccc;
}

.daily table td {
    width: 14.2857%;

}
.monthly table td {
    width: 33.3333%;
    height: 25px;
}
@media (min-width: 320px) and (max-width: 991px) {
    .daily table td, .monthly table td {
        font: 14px Arial, Helvetica, sans-serif !important;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .monthly table td {
        font: 11px Arial, Helvetica, sans-serif !important;
    }
}

.months {
    width: 150px;
    display: none;
}

.years {
    width: 120px;
    display: none;
}

/* Chart block */
.chartblock {
    padding: 5px;
    margin: 0 auto;
}
.chartblock p.error {
    color: darkred;
    font-size: 2.0em;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 30px;
}
.chartblock img {
    display: block;
    margin: 0 auto;
}

/* Sodar chart table */
.sodaritems {
    width: 100%;
}
.sodaritems td {
    width: 50%;
    padding: 5px;
}
.sodaritems img {
    display: block;
    width: 100%;
    height: 100%;
}
.sodaritems p.title {
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 1.2em;
}

p.info {
    text-align: center;
    font-size: 1.5em;
    padding: 5px;
}

/* Login form */
#loginform {
    margin: 100px auto;
    width: 370px;
    padding: 10px;
    text-align: center;
    border: 2px solid #ddd;
    background: #f5f5f5;

}
#loginform h1.title {
    margin: 0;
    padding: 10px;
    color: darkred;
}
#loginform td {
    padding: 5px;
}
#loginform p.error {
    font-weight: bold;
    color: red;
}
#loginform table {
    width: 100%;
}

#libsearch {
    padding: 3px;
    margin-bottom: 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
}
#libsearch h1 {
    text-align: center;
    margin: 0;
    padding: 5px;
    font-size: 1.2em;
}

#liberror {
    color: darkred;
    text-align: center;
    max-width: 600px;
    margin: 60px auto;
    font-size: 1.5em;
}

/* Image description */
p.img_note {
    display: block;
    padding: 0 0 15px 0;
    font-size: 0.8em;
    text-align: center;
}

/* Archive navigation buttons */
div.archive_navigation {
    text-align: center;
}
div.archive_navigation a {
    width: 100px;
    min-width: 100px;
}

/* Footer */
#footer {
    clear: both;
    height: 30px;
    padding-top: 6px;
    background-color: #ddd;
    text-align: center;
    font: 12px Arial, Helvetica, sans-serif;
}
#footer span.grant {
    color: #fff;
    font-size: 1.2em;
    background: #888;
    padding: 1px 5px 1px 5px;
}
