* {
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  border: 0;
  vertical-align: top;
  text-align: left;
  color: #666666;
  text-shadow: 1px 1px 2px #ffffff;
}
.comment {
  font-size: 12px;
  color: #777777;
}
html, body {
  height: 100%;
  overflow: hidden;
}
body {
  position: absolute;
  left: 0px;
  right: 0px;
  top: 0px;
  height: 100%;
  overflow: hidden;
  background-color: #eaeaea;
}
/*#header {
  height: 150px;
}*/
.header-top {
  height: 96px;
  /*height: 146px;*/
  border-bottom: solid 1px #ffffff;
  background: #999999;
  background: -moz-linear-gradient(top,  #999999 25%, #cccccc 65%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(25%,#999999), color-stop(65%,#cccccc));
  background: -webkit-linear-gradient(top,  #999999 25%,#cccccc 65%);
  background: -o-linear-gradient(top,  #999999 25%,#cccccc 65%);
  background: -ms-linear-gradient(top,  #999999 25%,#cccccc 65%);
  background: linear-gradient(to bottom,  #999999 25%,#cccccc 65%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#999999', endColorstr='#cccccc',GradientType=0 );
}
#header-top-adv-main {
  margin-left: 180px;
}
#header-top-adv {
  position: relative;
  top: 3px;
  margin: 0 auto 7px auto;
  width: 728px;
  height: 90px;
  background-color: #ffffff;
}
#header-top-logo {
  float: left;
  width: 180px;
  height: 90px;
}
.header-top-title h1{
  line-height: 17px;
  font-size: 14px;
  display: inline-block;
  margin-left: 20px;
  width: 60%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.header-top-title .comment{
  float: right;
  line-height: 17px;
  display: inline-block;
  margin-right: 5px;
  width: 30%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.header-bottom {
  background-color: #e0e0e0;
  height: 36px;
  padding: 2px 5px;
}
.control-panel {
  height: 32px;
  border: solid 1px #dcdcdc;
}
.control-panel-body {
  /*overflow: hidden;*/
  position: relative;
  height: 30px;
  border: solid 1px #e7e7e7;
  background: #d8d8d8;
  background: -moz-linear-gradient(top,  #efefef 0%, #d8d8d8 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#efefef), color-stop(100%,#d8d8d8));
  background: -webkit-linear-gradient(top,  #efefef 0%,#d8d8d8 100%);
  background: -o-linear-gradient(top,  #efefef 0%,#d8d8d8 100%);
  background: -ms-linear-gradient(top,  #efefef 0%,#d8d8d8 100%);
  background: linear-gradient(to bottom,  #efefef 0%,#d8d8d8 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#efefef', endColorstr='#d8d8d8',GradientType=0 );
}
.control-panel-text {
  line-height: 24px;
  display: inline-block;
  font-size: 12px;
  margin: 2px;
  text-decoration: none;
  min-width: 24px;
  text-align: center;
}
.control-panel-body input {
  height: 24px;
  line-height: 24px;
  font-size: 12px;
  margin: 1px;
}
.control-line {
  display: inline-block;
  height: 28px;
  width: 1px;
  background: url(/images/control-line.png) center center no-repeat;
}
.control-icon {
  display: inline-block;
  height: 24px;
  width: 24px;
  margin: 2px;
}
.control-icon-home {
  background: url(/images/control-icon-home.png) center center no-repeat;
}
.control-icon-print {
  /*background: url(/images/control-icon-print.png) center center no-repeat;*/
  background: url(/images/control-icon-print-old.png) center center no-repeat;
}
.control-icon-options {
  background: url(/images/control-icon-options.png) center center no-repeat;
}
.control-icon-help {
  background: url(/images/control-icon-help.png) center center no-repeat;
}
.control-icon-plus {
  background: url(/images/control-icon-plus.png) center center no-repeat;
}
.control-icon-search {
  background: url(/images/control-icon-search.png) center center no-repeat;
}
.control-icon-fullscreen {
  background: url(/images/control-icon-fullscreen.png) center center no-repeat;
}
.control-icon-contents {
  background: url(/images/control-icon-contents.png) center center no-repeat;
}
.control-icon-thumb {
  background: url(/images/control-icon-thumb.png) center center no-repeat;
}
.control-icon-left {
  background: url(/images/control-icon-left.png) center center no-repeat;
}
.control-icon-right {
  background: url(/images/control-icon-right.png) center center no-repeat;
}
.control-icon-search-bottom {
  background: url(/images/control-icon-search-bottom.png) center center no-repeat;
}
.control-icon-search-right {
  background: url(/images/control-icon-search-right.png) center center no-repeat;
}
.control-icon-mail {
  background: url(/images/control-icon-mail.png) center center no-repeat;
}
.control-icon-close {
  background: url(/images/control-icon-close.png) center center no-repeat;
  float: right; 
  margin-top: -4px !important; 
  margin-right: -3px !important;
}

.control-icon-vkontakte {
  background: url('//pressa-online.com/images/pressa2013/vkontakte-24x24.png') center center;
}
.control-icon-facebook {
  background: url('//pressa-online.com/images/pressa2013/facebook-24x24.png') center center;
}

.header {
  position: absolute;
  /*bottom: -72px;*/
  bottom: 0;
  right: 0;
  left: 0;
}
.header-top-title {
  height: 20px;
  background-color: #cccccc;
}
#content {
  position: absolute;
  /*left: 0px;*/
  /*right: 0px;*/
  left: 180px;
  right: 180px;
  top: 0px;
  /*top: 100px;*/
  /*top: 160px;*/
  /*bottom: 0px;*/
  bottom: 71px;
  /*bottom: 170px;*/
  overflow: hidden;
  text-align: center; 
  z-index:1;

  background: #eaeaea;
  background: -moz-linear-gradient(top,  #ffffff 0%, #eaeaea 10%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(10%,#eaeaea));
  background: -webkit-linear-gradient(top,  #ffffff 0%,#eaeaea 10%);
  background: -o-linear-gradient(top,  #ffffff 0%,#eaeaea 10%);
  background: -ms-linear-gradient(top,  #ffffff 0%,#eaeaea 10%);
  background: linear-gradient(to bottom,  #ffffff 0%,#eaeaea 10%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eaeaea',GradientType=0 );
}
#content-page {
  position: absolute;
  left: 50px;
  right: 50px;
  top: 0px;
  bottom: 0px;
  overflow: hidden;
  text-align: center; 
}

#flip-prev {
  z-index: 200;
  cursor: pointer;
  position: absolute;
  left: 0px;
  top: 50%;
  margin-top: -30px;
  /*bottom: 0px;*/
  width: 50px;
  height: 60px;
}
#flip-prev div {
  position: absolute;
  left: 0px;
  top: 0px;
  bottom: 0px;
  width: 50px;
  /*background-color: #ff0000;*/
  /*background: url('//pressa-online.com/images/pressa2013/slider-arrow-left2-30x50.png') center center no-repeat;*/
  background: transparent url('/images/control-flip-left.png') center center no-repeat;
}
#flip-prev:hover div{
  /*background: #e1f2ff url('//pressa-online.com/images/pressa2013/slider-arrow-left2-30x50.png') center center no-repeat;*/
  background: #e1f2ff url('/images/control-flip-left.png') center center no-repeat;
}
#flip-prev:active div{
  /*background: #eeeeee  url('//pressa-online.com/images/pressa2013/slider-arrow-left-30x50.png') center center no-repeat;*/
  background: #eeeeee url('/images/control-flip-left.png') center center no-repeat;
}
#flip-next {
  z-index: 200;
  cursor: pointer;
  position: absolute;
  right: 0px;
  top: 50%;
  margin-top: -30px;
  /*top: 0px;
  bottom: 0px;*/
  width: 50px;
  height: 60px;
}
#flip-next div {
  position: absolute;
  right: 0px;
  top: 0px;
  bottom: 0px;
  width: 50px;
  /*background-color: #ff0000;*/
  /*background: transparent url('//pressa-online.com/images/pressa2013/slider-arrow-right2-30x50.png') center center no-repeat;*/
  background: transparent url('/images/control-flip-right.png') center center no-repeat;
}
#flip-next:hover div{
  /*background: #e1f2ff url('//pressa-online.com/images/pressa2013/slider-arrow-right2-30x50.png') center center no-repeat;*/
  background: #e1f2ff url('/images/control-flip-right.png') center center no-repeat;
}
#flip-next:active div{
  /*background: #eeeeee  url('//pressa-online.com/images/pressa2013/slider-arrow-right-30x50.png') center center no-repeat;*/
  background: #eeeeee url('/images/control-flip-right.png') center center no-repeat;
}
.flip-active-page {
  z-index: 70;
}

#control-search-input {
  width: 150px;
  border-radius: 0;
  /*height: 20px;*/
}

#control-search-input, .control-search-bg {
  /*background: #f0f0f0;
  background: -moz-linear-gradient(top,  #f0f0f0 30%, #d3d3d3 70%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(30%,#f0f0f0), color-stop(70%,#d3d3d3));
  background: -webkit-linear-gradient(top,  #f0f0f0 30%,#d3d3d3 70%);
  background: -o-linear-gradient(top,  #f0f0f0 30%,#d3d3d3 70%);
  background: -ms-linear-gradient(top,  #f0f0f0 30%,#d3d3d3 70%);
  background: linear-gradient(to bottom,  #f0f0f0 30%,#d3d3d3 70%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f0f0f0', endColorstr='#d3d3d3',GradientType=0 );*/
}
.control-search-bg {
  position: relative;
  display: inline-block;
  border: 1px solid #dddddd;
}
.control-search-bg .control-icon{
  margin: 1px;
}

.flip-dialog {
  position: absolute; 
  z-index: 500;
  display: none;
  font-size: 14px;
  border: 1px solid #dcdcdc;
  bottom: 35px;
}
.flip-dialog-content {
  max-height: 300px;
  overflow: auto;
  background-color: #cccccc;
  /*text-align: center;*/
  vertical-align: top;
  
  border: 1px solid #cccccc; 
  padding: 2px; 
  background-color: #eeeeee;
}
.flip-dialog-content > div{
  background-color: #cccccc;
}
.flip-dialog > div {
  border: 1px solid #ffffff;
  background: #d1d0d0;
  background: -moz-linear-gradient(top,  #d1d0d0 30%, #ece8e8 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(30%,#d1d0d0), color-stop(100%,#ece8e8));
  background: -webkit-linear-gradient(top,  #d1d0d0 30%,#ece8e8 100%);
  background: -o-linear-gradient(top,  #d1d0d0 30%,#ece8e8 100%);
  background: -ms-linear-gradient(top,  #d1d0d0 30%,#ece8e8 100%);
  background: linear-gradient(to bottom,  #d1d0d0 30%,#ece8e8 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d1d0d0', endColorstr='#ece8e8',GradientType=0 );
}
.flip-dialog > div > div {
  padding: 5px;
}
.flip-dialog > div > div:after, .flip-dialog > div > div:before {
	bottom: -17px;
	/*top: -17px;*/
	/*left: 20px;*/
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.flip-dialog > div > div:after {
	border-color: rgba(209, 208, 208, 0);
	border-top-color: #ece8e8;
	border-width: 10px;
	margin-left: -10px;
}
.flip-dialog > div > div:before {
	border-color: rgba(255, 255, 255, 0);
	border-top-color: #ffffff;
	border-width: 10px;
	margin-left: -10px;
  margin-bottom: -2px;
}
#search-panel {
  left: -130px; 
  /*height: 100px;*/ 
  width: 260px; 
  /*background-color: #fff;*/ 
}
#search-panel-result {
  /*position: relative;*/
  width: 260px;
}
#search-panel > div > div:after, #search-panel > div > div:before {
	left: 144px;
  /*z-index: 1001;*/
}
#zoom-panel > div > div:after, #zoom-panel > div > div:before {
	left: 110px;
  /*z-index: 1001;*/
}
#zoom-panel {
  left: -100px;
}
#utm-link-panel > div > div:after, #utm-link-panel > div > div:before,
#post-page-panel > div > div:after, #post-page-panel > div > div:before
{
	left: 30px;
}

#options-panel {
  left: 75px;
}
#options-panel > div > div:after, #options-panel > div > div:before {
	left: 40px;
  /*z-index: 1001;*/
}

#thumbs .flip-dialog-content > div{
  padding-top: 5px;
}

#thumbs {
  position: absolute;
  left: 0px;
  right: 0px;
  top: auto;
  bottom: 35px;
  /*top: 155px;
  bottom: 0px;*/
  text-align: left; 
  z-index:500;
  display: none;
}

.thumb-block {
  position: relative;
  /*display: inline-block;*/
  display: block;
  float: left;
  width: 250px;
  text-align: center;
  margin-bottom: 5px;
}
.thumb-page-left {
  float: left;
  margin-left: 25px;
  width: 100px;
  background-color: #ffffff;
}
.thumb-page-right {
  float: right;
  margin-right: 25px;
  width: 100px;
  background-color: #ffffff;
}

.messages {
  /*position: relative;*/
  height: 16px; 
  /*top: 36px;*/ 
  background-color: #fefefe;
}
#control-thumbline, #control-thumbline-top {
  float: left;
  display: inline-block; 
  margin: 0 30px; 
  width: 120px; 
  height: 16px; 
  background: #efefef; 
  border-left: 1px solid #e5e5e5; 
  border-right: 1px solid #e5e5e5; 
  border-bottom: 1px solid #e5e5e5;
}
#control-thumbline > span, #control-thumbline-top > span{
  display: block; 
  margin: 0 2px; 
  height: 13px;
  background: #e5e5e5; 
  background: -moz-linear-gradient(top,  #e5e5e5 50%, #efefef 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(50%,#e5e5e5), color-stop(100%,#efefef));
  background: -webkit-linear-gradient(top,  #e5e5e5 50%,#efefef 100%);
  background: -o-linear-gradient(top,  #e5e5e5 50%,#efefef 100%);
  background: -ms-linear-gradient(top,  #e5e5e5 50%,#efefef 100%);
  background: linear-gradient(to bottom,  #e5e5e5 50%,#efefef 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e5e5e5', endColorstr='#efefef',GradientType=0 );
}
#control-thumbline > span > span{
  display: block; 
  height: 11px;
  background: url(/images/control-icon-thumb-bottom.png) center bottom no-repeat;
}
#control-thumbline-top > span > span {
  display: block; 
  height: 11px;
  background: url(/images/control-icon-thumb-top.png) center bottom no-repeat;
}

#messages-short {
  display: inline-block;
  overflow: hidden;
  font-size: 12px;
  line-height: 16px;
  height: 16px;
}
#messages-panel {
  /*top: 20px !important;*/ 
  bottom: 22px !important;
  /*display: inline-block;*/
  font-size: 12px;
  line-height: 16px;
  display:  block;
  /*position: relative;
  z-index: 500;*/
  left: -20px;
}
#messages-panel > div > div:after, #messages-panel > div > div:before {
	left: 20px;
}

#thumblist {
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 56px;
  /*bottom: 152px;*/
  /*top: 154px;*/
  /*height: 166px;*/
  text-align: left; 
  z-index: 300;
  display: none;
}
#thumblist-body {
  /*height: 150px;*/
  background-color: #ffffff;
  border: 1px solid #cccccc;
  padding: 1px;
}
#thumblist-body > div{
  position: relative;
  /*height: 146px;*/
  background-color: #cccccc;
}
#thumblist-left {
  display: block;
  float: left;
  /*height: 146px;*/
  width: 30px;
  background: url(/images/control-icon-thumblist-left.png) center center no-repeat;
}
#thumblist-right {
  display: block;
  float: right;
  /*height: 146px;*/
  width: 30px;
  background: url(/images/control-icon-thumblist-right.png) center center no-repeat;
}
#thumblist-content {
  position: absolute;
  left: 35px;
  right: 35px;
  /*height: 140px;*/
  overflow: hidden;
  /*background-color: #ff0000;*/
}

#panel-top {
  position: absolute; 
  /*right: 180px; 
  left: 180px;*/ 
  top: 0; 
  /*height: 100px;*/
  /*height: 160px;*/
  height: 0px;
  /*padding: 15px 0;*/
  overflow: hidden;
}
#panel-left {
  position: absolute; 
  left: 0; 
  top: 0; 
  bottom: 71px; 
  /*bottom: 0px;*/ 
  width: 180px;
  overflow: hidden;
  z-index: 10;
}
#panel-right {
  position: absolute; 
  right: 0; 
  top: 0; 
  bottom: 71px; 
  /*bottom: 0px;*/ 
  width: 180px;
  overflow: hidden;
  z-index: 10;
}
#panel-main {
  position: absolute; 
  left: 0px; 
  top: 0; 
  bottom: 0; 
  /*right: 180px;*/
  right: 0px;
}
#panel-left-adv {
  /*margin: 10px auto;*/ 
  width: 160px; 
  height: 600px; 
  background-color: #ffffff;
  position: absolute;
  top: 50%;
  margin-top: -300px;
  margin-left: 10px;
}
#panel-right-adv {
  /*margin: 10px auto;*/ 
  width: 160px; 
  height: 600px; 
  background-color: #ffffff;
  position: absolute;
  top: 50%;
  margin-top: -300px;
  margin-left: 10px;
}
#panel-top.fullscreen {
  display: none;
}
#panel-left.fullscreen {
  display: none;
}
#panel-right.fullscreen {
  display: none;
}
#panel-main.fullscreen {
  left: 0px; 
  right: 0px; 
}
#panel-main.fullscreen .header-top{
  display: none;
}
#panel-main.fullscreen #content {
  top: 0px;
  /*bottom: 71px;*/
  left: 0;
  right: 0;
}
#panel-main.fullscreen #thumbs{
  /*top: 36px;*/
  bottom: 36px;
}
#panel-main.fullscreen #thumblist{
  /*top: 35px;*/
  bottom: 56px;
}
@media screen and (min-height: 850px) {
  #panel-top {
    left: 0px;
    right: 0px;
  }
  /*#panel-left {
    top: 160px;
  }
  #panel-right {
    top: 160px;
  }*/
}
@media screen and (max-height: 640px), screen and (max-width: 750px) {
  #panel-top {
    display: none;
  }
/*
  #panel-left {
    display: none;
  }
  #panel-right {
    display: none;
  }
*/
  #panel-main {
    left: 0px; 
    right: 0px; 
  }
  #panel-main .header-top{
    display: none;
  }
  #panel-main #content {
    top: 0px;
/*
    left: 0;
    right: 0;
*/
  }
  #panel-main #thumbs{
    bottom: 36px;
  }
  #panel-main #thumblist{
    bottom: 56px;
  }
}

#panel-page {
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: #eaeaea;
  z-index: 100;
  padding: 2px 5px;
}

.flip-page-block {
  overflow: hidden;
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 150;
  /*background-color: #666666;*/
}

.flip-page-block .img-empty {
  background-color: #eaeaea;
  background: -moz-linear-gradient(top, #ffffff 0%, #eaeaea 10%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(10%,#eaeaea));
  background: -webkit-linear-gradient(top, #ffffff 0%,#eaeaea 10%);
  background: -o-linear-gradient(top, #ffffff 0%,#eaeaea 10%);
  background: -ms-linear-gradient(top, #ffffff 0%,#eaeaea 10%);
  background: linear-gradient(to bottom, #ffffff 0%,#eaeaea 10%);
}

.flip-page-block img {
  position: absolute;
  -webkit-transform-origin: 0 0;
  -moz-transform-origin: 0 0;
  -ms-transform-origin: 0 0;
  transition: all 0s ease-in-out;
  -webkit-transform: rotate(0deg) translateY(0px);
  -moz-transform: rotate(0deg) translateY(0px);
  -ms-transform: rotate(0deg) translateY(0px);
}

.page-img, .flip-active-page {
  cursor: -webkit-grab;
}

@media print {
  div, span{
    display: none;
    z-index: 0;
  }
  #body, #panel-main, #content-main, #content, #content-page, #page1, .page-img-div {
    display: block !important;
    position: static !important;
    overflow: auto !important;
    height: auto !important;
    width: 100% !important;
  }
  img.page-img-print {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    box-shadow: none !important;
  }
  .page-img-div {
    background-color: none !important;
    box-shadow: none !important;
  }
  .page-img-div-odd::after, .page-img-odd::after, .page-img-div-even::after, .page-img-even::after{
    box-shadow: none !important;
  }
}

.page-img-div {
  z-index: 50;
  background-color: #9999ff;
  position: absolute;
}
.page-img-div-msg {
  position: absolute; 
  top: 50%; 
  left: 50%; 
  margin-top: -10px; 
  margin-left: -120px;
}
.page-img {
  z-index: 50;
  position: absolute; 
  left: 0px; 
  top: 0px;
}
.page-img-div::after, .page-img::after{
  z-index: 100;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
}
.img-empty {
  box-shadow: none !important;
}
/*нечетные страницы*/
.page-img-div-odd::after, .page-img-odd::after{
  box-shadow: inset -30px 0 40px -10px rgba(0,0,0,0.5);
}
.page-img-div-odd {
  box-shadow: -1px 0 2px 1px rgba(0,0,0,0.5);
}
/*четные страницы*/
.page-img-div-even::after, .page-img-even::after{
  box-shadow: inset 30px 0 40px -10px rgba(0,0,0,0.5);
}
.page-img-div-even {
  box-shadow: 1px 0 2px 1px rgba(0,0,0,0.5);
}

#content-controls{
  display: inline-block; 
  position: absolute; 
  bottom: 0px; 
  right: 0px; 
  padding: 20px 30px; 
  z-index: 1000;
}
#content-controls2{
  display: inline-block; 
  position: absolute; 
  bottom: 0px; 
  left: 0px; 
  padding: 20px 30px; 
  z-index: 1000;
}
#content-controls .control-panel {
  border: solid 1px #222255;
}
#content-controls .control-panel-text{
  font-size: 20px;
  color: #ffffff;
  font-weight: bold;
}
#content-controls .control-panel-body{
  border: solid 1px #ffffff;
  background: #222255;
  background: -moz-linear-gradient(top,  #5555aa 0%, #222255 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#5555aa), color-stop(100%,#222255));
  background: -webkit-linear-gradient(top,  #5555aa 0%,#222255 100%);
  background: -o-linear-gradient(top,  #5555aa 0%,#222255 100%);
  background: -ms-linear-gradient(top,  #5555aa 0%,#222255 100%);
  background: linear-gradient(to bottom,  #5555aa 0%,#222255 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5555aa', endColorstr='#222255',GradientType=0 );
}

#msg-old-issue h2{
  margin-top: 10px;
}
#msg-old-issue h2:first-child{
  margin-top: 0px;
}
