.clear {
  clear: both;
}

*{
    font-family: arial;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
}

#maindiv {
    min-width: 960px;
    min-height: 100%;
    background-image: url("/pics/bg.jpg");
    background-repeat: repeat;
}

.btn, .send_btn, .admin_menu_button, .first_admin_menu_button, .login_button input, .exit_button input, .show_items {
    box-sizing: content-box;
    background: -moz-linear-gradient(#ffffff, #e1e1e1);
    background: -ms-linear-gradient(#ffffff, #e1e1e1);
    background: -o-linear-gradient(#ffffff, #e1e1e1);
    background: -webkit-linear-gradient(#ffffff, #e1e1e1);
    color: #000000;
}

.btn:hover, .send_btn:hover, .admin_menu_button:hover, .active, .pagination a:hover, .menu_button:hover, .login_button input:hover, .exit_button input:hover, .show_items:hover {
    cursor: pointer;
    color: white;
    background: -moz-linear-gradient(#3fcdff, #008cc1);
    background: -ms-linear-gradient(#3fcdff, #008cc1);
    background: -o-linear-gradient(#3fcdff, #008cc1);
    background: -webkit-linear-gradient(#3fcdff, #008cc1);
}

.send_btn {
    height: 25px;
    border: none;
}

/*хедер и его элементы*/
#header {
    background-color: #eeeeee;
    padding-bottom: 10px;
    padding-top: 10px;
}

#header_wr {
  margin: 0 auto;
  width: 900px;
}

.logo {
    display: block;
    float: left;
}

#searchheader {
  float: right;
  width: 300px;
  margin-top: 10px;
  height: 80px;
}

#searchheader_left {
    float: left;
    width: 300px;
}

.auth_input {
    float: left;
    padding-top: 5px;
}

.auth_input input {
	border-radius: 5px;
	border: 1px solid #008cc1;
	height: 22px;
	width: 150px;
}

.auth_input input:focus {
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.071), 0 0 8px rgba(102, 175, 233, 0.600);
	border-color: #59f2ff;
}

.auth_text {
    float: left;
    padding-top: 5px;
}

.login_button {
    float: left;
    padding-top: 5px;
    padding-left: 2px;
}

.login_button input, .exit_button input {
	border: 1px solid #008cc1;
	border-radius: 5px;
	width: 100px;
	cursor: pointer;
	height: 25px;
    box-sizing: border-box;
}

.login_button input:hover, .exit_button input:hover {
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.071), 0 0 8px rgba(102, 175, 233, 0.600);
	border: none;
}

.auto_auth_checkbox {
	padding-top: 8px;
}

#login_text {
    float: left;
    padding-top: 58px;
    padding-right: 5px;
}

.exit_button {
    padding-top: 35px;
    padding-left: 155px;
}

#exit_text {
    float: left;
    padding-top: 37px;
	text-align: right;
	width: 150px;
	font-weight: bold;
}

/*меню и его элементы*/
#mainmenu {
    background: -moz-linear-gradient(#ffffff, #e1e1e1);
    background: -ms-linear-gradient(#ffffff, #e1e1e1);
    background: -o-linear-gradient(#ffffff, #e1e1e1);
    background: -webkit-linear-gradient(#ffffff, #e1e1e1);
}

#mainmenu_wr {
  width: 900px;
  margin: 0 auto;
  display: table;
}

#mainmenu_wr .active {
    text-align: center;
    padding: 25px 0;
    text-transform: uppercase;
    text-decoration: none;
    display: table-cell;
    min-width: 125px;
}

.menu_button {
    text-align: center;
    padding: 25px 0;
    color: black;
    text-transform: uppercase;
    text-decoration: none;
    display: table-cell;
    min-width: 125px;
}

.mainmenu_separator {
  width: 1px;
  background-color: #eeeeee;
  display: table-cell;
}

#first_menu_button:hover {
  cursor: pointer;
}

/* пагинатор */
.pagination{
    display: inline-block;
    margin: 10px auto 5px;
    padding: 0;
}

.pagination_wr{
    text-align: center;
}

.pagination li{
    display: block;
    text-align: center;
    float: left;
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.pagination a{
    display: block;
    color: #008cc1;
    width: 20px;
    height: 20px;
    text-decoration: none;
}

/*это для футера, чтоб не наезжал на содержимое страницы*/
.bottom {
    padding-bottom: 30px;
}

#footer {
    text-align: center;
    position: relative;
    height: 30px;
    margin: -30px auto 0 auto;
    display: block;
    width: 900px;
}

.counter {
    float: right;
}

/*тело страницы новостей*/
.main {
    display: block;
    margin: 30px auto;
    width: 900px;
}

.welcome_text {
    display: block;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 20px;
}

.left_block {
    display: block;
    float: left;
    width: 530px;
}

#right_block {
    display: block;
    float: left;
    width: 350px;
    margin: 0 0 0 20px;
}

/* новость */
.news {
    margin-bottom: 30px;
}
.news_date {
    font-size: 11px;
    color: #7E7E7E;
    margin-bottom: 2px;
}

.news_title{
    color: #008cc1;
    font-size: 22px;
    text-decoration: none;
}

.news .news_title:hover {
    color: #3fcdff;
}

.news_desc {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: black;
    text-align: justify;
    word-wrap: break-word;
}

.news_desc p {
    margin-bottom: 0;
}

/* объявление */
.notice {
    margin: 0 0 10px 5px;
}

.notice_block {
    background-color: #EAECEA;
    padding: 0 0 5px 0;
}

#notice_title {
    text-align: center;
    font-size: 22px;
    margin: 0 0 5px 0;
}

.notice_date {
    float: left;
    width: 330px;
    font-size: 11px;
    color: #7E7E7E;
}

#notice_add {
    color: #008cc1;
    cursor: pointer;
    font-size: 22px;
}

.notice_del {
    display: block;
    float: left;
    color: #008cc1;
    font-size: 11px;
    cursor: pointer;
}

.notice_body {
    display: block;
    text-align: left;
    font-size: 14px;
}

.notice_body:focus {
    color: #008cc1;
}

.gm-info_wr {
    text-align: center;
    margin: 10px 0 0 0;
}
.gm-info {
    display: inline-block;
}

table {
    border-spacing: 0;
}

/*файлы*/
/* выбор категории */
.cat_item, .cat_item_selected {
    display: inline-block;
    color: #008cc1;
    font-size: 18px;
    margin: 0 5px 10px 0;
    padding: 5px;
    text-decoration: none;
    background-color: #EAECEA;
}

.cat_item:hover{
    color: #3fcdff;
}

.cat_item_selected {
    color: black;
    background-color: #6DA3BD;
}

/* строка файлов и их описание*/
.row_pic, .row_name, .row_desc, .row_download {
    color: black;
    width: 32px;
    padding: 5px 0 5px 8px;
    text-align: justify;
    border-bottom: 1px #008cc1 solid;
}

.row_download {
    width: 60px;
}

.row_name {
    width: 220px;
    text-align: left;
}

.row_desc {
    width: 620px;
}

/*Список альбомов*/
.album{
    display: block;
    float: left;
    width: 250px;
    height: 250px;
    margin: 0 0 70px 35px;
    border: 1px solid #008cc1;
    text-align: center;
    text-decoration: none;
    color: black;
}

.album_image, .helper{
    display: inline-block;
    vertical-align: middle;
}

.helper{
    height: 100%;
    width: 0;
}

.album_name{
    margin-top: 5px;
    font-size: 14px;
}

/*фотоальбом*/
.photo_wr{
    height: 550px;
}

.photo {
    display: block;
    float: left;
    margin: 0 0 70px 15px;
    width: 210px;
    height: 210px;
    text-align: center;
}

.photo img{
    max-width: 200px;
    max-height: 200px;
    cursor: zoom-in;
    transition: .2s;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.photo img:focus {
    /*position: fixed;*/
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    outline: none;
    pointer-events: none;
}

.help {
    height: 100%;
    width: 0;
}

/*выравнивание картинки по центру блока*/
.photo_image, .help{
    display: inline-block;
    vertical-align: middle;
}
.photo_name{
    display: block;
    font-size: 14px;
    margin-top: 5px;
    color: #008cc1;
    text-decoration: none;
}
.photo_name:hover{
    color: #3fcdff;
}

/*опасная штука*/
.photo img:focus + div{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: zoom-out;
}

/*комментарии*/
#comment_block {
    border: 1px solid #008cc1;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 10px;
}

#comment_title {
    font-weight: bold;
    font-size: 18px;
    padding-bottom: 10px;
}

#comment_body {
    font-size: 16px;
    word-wrap: break-word;
    text-align: justify;
}

#comment_date {
    font-size: 14px;
    font-weight: normal;
}

#change_comment {
    text-align: right;
    float: right;
    font-weight: normal;
    font-size: 14px;

}

#change_comment a {
    color: #008cc1;
}

/*форма для комментариев*/
.comments_form {
    padding-bottom: 30px;
    display: block;
    margin: 0 auto;
    width: 700px;
}

.comments_form .input_row_desc, .comments_form input {
    width: 700px !important;
}

/*выбор количества отображаемых элементов на странице*/
.item_count {
    margin: 0 auto 10px;
    width: 130px;
}

.item_count select {
    width: 50px;
    padding: 0;
}

.show_items {
    border: 1px solid #008cc1;
    border-radius: 5px;
}

/*регистрация*/
.registration {
    width: 460px;
    margin: 20px auto;
}

.registration input, select, .admin_form input, .input_row_desc, .input_row_title, .comments_form input {
    box-sizing: content-box;
    width: 300px;
    border: 1px solid #d5fcff;
    border-radius: 5px;
    background-color: white;
    font-size: 16px;
    padding: 4px;
}

.registration input:focus, select:focus, .comments_form input:focus {
    border-color: #59f2ff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.071), 0 0 8px rgba(102, 175, 233, 0.600);
}

.input_row {
    margin: 0 0 3px 0;
}

.input_row label {
    display: block;
    float: left;
    width: 150px;
    padding: 3px 0;
    margin: 0;

}