@import "cake.custom.css";

* {margin:0; padding:0; }

a {text-decoration: none; color:#718597;}
a:hover {text-decoration: underline;}
body {text-align: center; background: white; font-size: 14px; font-family: Tahoma, Arial, Georgia;}
img {font-size: 70%; }

#content {
    margin-left:auto; margin-right: auto;
    margin-top:20px;
    width: 969px;
    background-color: #fff;
    color: #718597;
    overflow:visible;
}

#header { background-color: #718597; color: white; padding:5px 79px; position: relative;}
a#go_home img { border:none;}
#header a {color: white !important; }
#header strong {display:none;}
/* main logo  Цэнтр асветы і міласэрнасці беларускага экзархата*/
#header a#m-l {
    text-transform: uppercase;
    border-bottom: 1px solid white;	border-top: 1px solid white;
    font-size: 14px; letter-spacing:0.15em;
    padding: 0;
    display:block; width:100%;
}

/*menu top*/
#header div#m-t { text-align:center; }
#header div#m-t span {display:block; float:left; padding:3px 0; }
/*active link */
#header div#m-t span {font-weight: bold;}
#header div#m-t ul {list-style-type: none; margin-top: 3px;}

ul#menu li > a {width: 125px; text-align: center;}
ul#menu li:first-child > a {text-align: left !important;}
ul#menu li:last-child > a {text-align: right !important; width: 61px;}

.clear {clear: both;}
div.clear {line-height:1px;}

/*height+padding=30px*/
#submenu {padding-top: 4px;background: white; color: #718597; margin-top:20px; margin-bottom: 10px;  font-weight: bold;}

#submenu .breadcrumbs li { 
    display: inline;
}

ul.submenu { list-style-type: none; float: left; }

/*************  library-submenu  *************************************/
ul#menu { position: relative;  display: flex; justify-content: space-between;}
ul#menu * {margin:0; padding: 0;}
ul#menu li {height: 20px; }
ul#menu ul {
    display: none;
    justify-content: center;
    position:absolute; 
    top: 1em; 
    right: 30px; 
    width: 70%; 
    padding-top: 0.9em; 
}
ul#menu ul li a {
    color: #718597 !important; 
    background-color: white;
    margin-top: 0.2em;
    padding: 3px 6px 0 6px !important;
    border-left: 1px solid #718597;
}
ul#menu ul#Libs { left: 68px; width: 320px;}
ul#menu ul#Workshops { left: 110px;}
ul#menu ul#search-menu { right: 0px; width: 89px;}
ul#menu li:hover ul { display: flex; }
ul#menu, ul#menu ul {list-style-type: none;}

ul#menu ul li:first-child a{ border-left: none;}


/*************  library-submenu  *************************************/

#left {width: 200px;float: left;}
#left div#l-w {padding:0 20px 0 0;}
#left a, #right-block a, .complexes .complexes-header {display:block; margin-top: 5px; padding: 3px 0 3px 20px;
                                                       text-align: left; font-size: 100%;
                                                       background-color:#718597;color: white;}
#right-block a { text-align: center; padding: 3px 7px;}
#regions {margin-top: -5px; margin-bottom: 10px;}
#regions div a { margin-left:5px; background-color:white; color:#718597;}
.current-region span, .current-area { font-weight: bold; }

#center { width: 525px; color:#718597;display:inline;}
#main_img {cursor: pointer;} /* for ie reset left & right margin */
#main_img_wrapper { position: relative; text-align: center; }
#main_img_container { margin: 0 auto; position: relative; width: auto; display: inline-block;}

.manage-main-image img { border: none; }

.manage-main-image.plus {  bottom: -3px; right: 0; padding: 0; margin: 5px; }
.manage-main-image.arrow { top: 50%; }
.manage-main-image.arrow.left { left: 0; }
.manage-main-image.arrow.right { right: 0; }

.manage-main-image {
    position: absolute;
    border: none;
    cursor: pointer;
    opacity: 0.1;
    transition: 0.5s;
}
#main_img_container:hover .manage-main-image {
    opacity: 1;
}

#img-descr {clear:both; text-align: left; padding:8px 0 8px;}

div#previews a { display:block; float:left; margin:0px 3px 3px 0px;}
div#previews a.current img {border-color: #718597;}
div#previews a img {border: 6px solid white;}
div#previews a.right {float:right; margin-right:0;}

hr { height: 4px; background-color:#718597; margin-bottom:20px;}

#center dt {font-weight:bold; margin-top: 14px;}
#center dd { text-align:justify; display: block;}
#c-desc {margin-bottom:20px;}

#right {text-align: left;margin-left:527px; color:#718597; padding-top:5px;}
#r-w {padding-left: 20px;}
#right a {color: #718597;}
#right dl {margin-bottom: 18px;}
#right dl dt {font-size:12px; font-style:italic;}
#right dl dt:after {content:':  ';}
#r-adress:after {content:'' !important;}
#right dl dt,#right dl dd {width:auto; }
#right dl dd {margin-bottom:8px; text-align:left; }

#foo {clear:both; background-color:#718597; margin-bottom:20px; padding:10px 0; min-height: 30px; color:white;}

div.user-menu {
    background-color:#718597;
    border:1px solid black;
    color:white;
    margin:20px 0;
}
/*** Users login ****/
form#UserAddForm label {
    display:block;
    float:left;
    text-align:right;
    width:140px;
}
form#UserAddForm input {
    font-size:12px;
    padding:4px 2px;
    border:solid 1px #718597;
    color: #718597;
    width:200px;
    margin-left:10px;
}
form#UserAddForm div {
    margin:10px 0 10px 410px;
    width: 40%;
}
/*** error messages ****/
form#UserAddForm div div{
    margin:0;
    width: auto;
}
#page-view {text-align:justify;margin:0 0 20px 20px;}

/**** inner "library" page ******/

div.main-content { text-align:justify; width: 760px; margin-left:200px; min-height: 763px; position: relative;}
div.main-content h1 {
    background-color:#718597;
    color:white;
    font-size:14px;
    font-weight:bold;
    margin-left:10px;
    padding:3px 3px 3px 20px;
    width:200px;
}

div.main-content a {
    padding: 3px 3px 3px 0px;

}
div.main-content p {
    margin: 10px 0;
}

div.main-content i { display: block;}
div.churches-list a {padding-top: 0px; padding-bottom: 0px;}
div.churches-list a.patron {max-height:52px; overflow:hidden; text-overflow:ellipsis;}
div.churches-list img {
    width: 70px;
    height: 70px;
}
div#counters {
    float: right;
}
div#counters img {
    float:right;
    margin-right:12px;
}
p#copy {
    text-align: left;
    margin: 7px 0 0 33px;
    float: left;
}

p.copy { 	margin:1px auto; font-size:85%; line-height: 1;}
p.copy a {color: white;}

div.hidden {    display: none; }
div#submenu h1 { font-size: 14px;   }

div.workshops span.author {font-size: 80%;}
div.workshops span.year {font-size: 80%; font-style: italic;}

#nothing-was-found { text-align: center; margin-top: 15px; font-weight: bold;}

/** LOGIN FORM */

#UserRemember {width: 10px !important;}
div.checkbox label { display:inline !important; float: none !important; padding-left: 10px;}
#login-form { margin: 0 auto; width: 60%;}
#login-form input {text-align: center;}

div.paging {text-align: center;}
div.paging li {list-style: none; display: inline;}
div.paging li.disabled a {cursor: default; text-decoration: none;}
div.paging li:after { content: " | ";}
div.paging li.next:after { content: "";}
div.paging li.active a { cursor: default; font-weight: bold; text-decoration: underline;}


#header-lang-list { list-style-type: none; float: right; position: absolute; right: 10px; top:8px; height: 100%; border: 0;}
#header-lang-list li { font-size: 80%; margin-bottom: 3.8em; border: 0;}


#search-block { font-size: 90%; display: none; margin-bottom: 17px;}
#search-block a { background: white; color: #718597; padding: 0; margin: 0 0 15px 0;}
#search-block input, #search-block select { width: 180px; }
#search-block .submit input {width: 70px;}
#search-block label { float: left;}

#big_foto_wrapper img {margin: 0 auto;}

.complexes { margin-bottom: 17px;}
.complexes .churches-list {
    margin-top: 17px;
    min-height: 70px;
}
.complexes .churches-list a { padding: 0px; display: block;}
.complexes .churches-list img { margin-right: 3px;}
.w100 {width: 100%;}
.w60 {width: 60%;}
label {padding-right: 10px;}
span.highlight {text-decoration: underline; font-weight: bold;}

.onloader-ajax {
    min-height: 763px;
    position: absolute;
    top: 0;
    left: 0;
    min-width: 763px;
    z-index:10;
    /* background: url(/img/ajax_loader_gray_512.gif) no-repeat center #718597; */
    opacity: 0.5;
}
