

::-moz-selection {background: #63B8FF; color: #fff; text-shadow: none;}
::selection {background: #63B8FF; color: #fff; text-shadow: none;}

img {-ms-interpolation-mode: bicubic;}

/* import screen layout 
@import url("yaml/navigation/hlist.css");
@import url("yaml/forms/gray-theme.css");
@import url("yaml/screen/typography.css");
@import url("css/style.css");
@import url("yaml/print/print.css"); */


/* ==========================================================================
   Media Queries
   ========================================================================== */

/*@media only screen and (min-width: 35em) {}*/

@media screen {
  
	body {
		/*overflow-y: scroll;*/
		background: #ddd;
		
		 /* fallback */
		 /*background-color: #666;*/
		 
		 /* Safari 4-5, Chrome 1-9 */ /* Can't specify a percentage size? Laaaaaame. */
		 /*background: -webkit-gradient(radial, center center, 0, center center, 460, from(#fff), to(#666));*/
		 /* Safari 5.1+, Chrome 10+ */
		 /*background: -webkit-radial-gradient(circle, #fff, #666);*/
		 /* Firefox 3.6+ */
		 /*background: -moz-radial-gradient(circle, #fff, #666);*/
		 /* IE 10 */
		 /*background: -ms-radial-gradient(circle, #fff, #666);*/
		 /* Opera couldn't do radial gradients, then at some point they started supporting the -webkit- syntax, how it kinda does but it's kinda broken (doesn't do sizing) */
	}
  
  html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
	
	.ym-wrapper {
    min-width: 900px;
    max-width: 70em;
    /*width: 900px;*/
    margin: 10px auto;
    /*border: 1px solid #000;*/
  }
	.ym-wbox {
    padding: 0px 20px 20px 20px;
    background: #fff;
    /*url('/img/site/header_bg.png') 0 0 repeat-x;*/
    
    border-radius: 7px;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    -webkit-box-shadow: 1px 2px 1px #d1d1d1;
    -moz-box-shadow: 1px 2px 1px #d1d1d1;
    box-shadow: 1px 2px 1px #d1d1d1;
  }

  .logo {

  }
  
  .searchform {
    /*text-align: right;*/
  }
  
  .ym-gbox {  
    padding: 10px;
    margin: 0;
    border: none;
    /*border: 1px solid #000;*/
  }
  
	div#header {
		/*background: #fff;*/
		color: #ccc;
		padding-top: 10px;
		margin-bottom: 20px;
	}

	h1, h2, h3, h4 {
    font-weight: 300;
    font-family: 'Open Sans', serif;
	}

	div#main, div#footer {
    /*font-size: 12px; нельзя указывать в пикселях! 12px*100/14=% */
    /*font-size: 85.71428%; шрифт прыгает*/
    font-size: 86%;
    font-weight: 400;
    font-family: 'Open Sans', serif;
	}

	div#footer a {
    text-decoration: none;
    /*border-bottom: dotted 1px #4d87c7;*/
	}

	div#main .content {
    font-size: 100%;
    font-weight: 400;
    font-family: 'Open Sans', serif;
    padding-right: 100px;
    /*padding-top: 0px;*/
	}

  div#main .comments {
    padding-right: 100px;
    padding-left: 50px;
	}
			
  ul.footer_menu {
    list-style-type: none;
  }
   
  ul.footer_menu li {
    float: left;
  }
  	
	.codes {
    background: url("/img/site/codes_icon.png") no-repeat 0 50%;
    padding: 0 0 0 25px;
	}
	
  .problem {
    background: url("/img/site/problem_icon.png") no-repeat 0 50%;
    padding: 0 0 0 25px;
	}
	
hr.fancy-line { 
    border: 0; 
    height: 1px;
    position: relative;
    margin: 0.5em 0; /* Keep other elements away from pseudo elements*/
}
hr.fancy-line:before {
    top: -0.5em;
    height: 1em;
}
hr.fancy-line:after {
    content:'';
    height: 1em; /* было 0.5 */
    top: 1px;
}

hr.fancy-line:before, hr.fancy-line:after {
    content: '';
    position: absolute;
    width: 100%;
}

hr.fancy-line, hr.fancy-line:before {
    background: -moz-radial-gradient(center, ellipse cover, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 75%);
    background: -webkit-gradient(radial, center center, 0px, center center, 75%, color-stop(0%,rgba(0,0,0,0.1)), color-stop(75%,rgba(0,0,0,0)));
    background: -webkit-radial-gradient(center, ellipse cover, rgba(0,0,0,0.1) 0%,rgba(0,0,0,0) 75%);
    background: -o-radial-gradient(center, ellipse cover, rgba(0,0,0,0.1) 0%,rgba(0,0,0,0) 75%);
    background: -ms-radial-gradient(center, ellipse cover, rgba(0,0,0,0.1) 0%,rgba(0,0,0,0) 75%);
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%,rgba(0,0,0,0) 75%);
}

hr.fancy-line:after {
    background: #fff;
}

	/* Column-Set Configuration: 1-3 (sidebar left) */
	/* content */
	.demo-2col .ym-col1 {width: 75%;}
	/* sidebar */
	.demo-2col .ym-col3 {margin-left:75%; margin-right:0;}
	.demo-2col .ym-col1 .ym-cbox {padding: 0 0.75em 0 1.5em;}
	.demo-2col .ym-col3 .ym-cbox {padding: 0 1.5em 0 0.75em;}
	.demo-2col .ym-gbox {padding: 0 1.5em 0 0;}
	
  #userarea {
    position: relative;
  }
  
  .dropmenu {
    margin: 0;
    padding: 0;
    list-style-type: none;
    position: absolute;
    right: 0;
    top: 0;
    height: 50px;
    width: 233px;
    z-index: 100;
    overflow: hidden;
  }

  .dropmenu.visible {
    height: auto;
    background-color: #fff;
    top: -20px;
    right: -31px; /* trick: 1 pixel more than padding*/
    border: 1px solid #000;
    padding: 19px 30px;
  }

  .dropmenu>li a {
    color: #888;
    text-decoration: none;
    font-size: 85.71428%;
    font-weight: 400;
    font-family: 'Open Sans', serif;
  }

  .dropmenu>li a:hover {
    color: #1E90FF;
  }
  
  .dropmenu.visible .menuitem {
    display: block;
  }
  
  .dropmenu>li {
    margin: 0;
    padding: 0;
    /*float: left;*/
    /*width: 100%;*/
  }
  
  .dropmenu>li.menuitem {
    display: none;
    margin-top: 0;
    padding: 0;
  }

  .dropmenu>li.hr {
    border-bottom: solid 1px #ccc;
    margin-bottom: 15px;
    padding-bottom: 15px;
  }

  .dropmenu>li.activatable {
    cursor: pointer;
  }
  
  #explore div {
    float: left;
    /*a: white-space: nowrap;*/
    width: 155px;
    /*a: overflow: hidden;*/
    margin-bottom: 10px;
  }
  #explore img {
    float: right;
    width: 50px;
  }
  #explore span {
    display: block;
  }
  
 
  ul.birthday, ul.news, ul.ad {
    list-style-type: none;
  }
 
  ul.birthday h6, ul.ad h6 {
    margin-bottom: 0px;
  }

  ul.birthday h6 span {
    margin-bottom: 0px;
    border-bottom: dotted 1px #000;
  }
   
  ul.birthday>li div:first-of-type, ul.news>li div:first-of-type, ul.ad>li div:first-of-type {
    float: left;
    width: 50px;
    margin: 0 15px 0 0;
    /*border: 1px solid #ccc;*/
    /*background-color: #e6f6f6;*/
    text-align: center;
    font-size: 85.71428%;
  }
 
  ul.ad>li i {
    font-size: 100%;
    font-weight: normal;
  }
  
  ul.birthday>li div {
    margin: 0px;
    overflow: auto;
  }

  ul.birthday>li a {
    /*text-decoration: none;*/
    color: #1874CD;
    /*font-size: 110%;*/
  }

  ul.birthday>li a:hover {
    color: #1E90FF;
  }

  ul.birthday>li div.descr {
    margin-top: 5px;
    margin-bottom: 5px;
    /*border-top: 1px solid #ccc;*/
  }
  
  ul.birthday>li div.descr p {
    margin: 0 !important;
  }
  
  ul.birthday>li {
    padding: 10px 0px;
    overflow: hidden;
  }
 
  ul.news>li {
    padding: 10px 0px 10px 0px;
  }
  
  ul.news h6 {
    font-size: 100%;
    font-weight: 400;
    font-family: 'Open Sans', serif;
    margin-top: 0px;
    margin-bottom: 0px;
    overflow: auto;
  }

  ul.news h6 span {
    color: #aaa;
  }
  
  ul.news>li a, ul.ad>li a {
    text-decoration: none;
    color: #333;
    font-size: 100%;
    font-weight: 400;
    font-family: 'Open Sans', serif;
  }

  ul.news>li a:hover, ul.ad>li a:hover {
    color: #1874CD;
  }
    
  ul.ad>li {
    padding-bottom: 10px;
    overflow: hidden;
  }
  
  ul.ad>li div {
    margin: 0px;
    overflow: auto;
  }

  ul.ad>li span {
    color: #aaa;
  }
    
/* Basic slider */

#events {
  margin-bottom: 0px;
}

#events_caption {
  text-align: right;
  color: #aaa;
  font-size: 85.71428%;
  font-weight: 400;
  font-family: 'Open Sans', serif;
  padding-right: 30px;
  padding-top: 5px;
}

.date {
  color: #aaa;
  font-size: 85.71428%;
  font-weight: 400;

}

.content ul, .content ol {
  margin-left: 30px;
}

.content .title div img {
  float: left;
  width: 50px;
  margin: 0 15px 0 0;
}

.content .title h2, .content .title div.date {
  /*margin: 0px;*/
  overflow: hidden;
}
  
ul.bxslider li {margin-left: 0;}

.white-popup {
  position: relative;
  background: #FFF;
  padding: 20px;
  width: auto;
  max-width: 500px;
  margin: 20px auto;
}

/* ---------- LOGIN ---------- */

#login {
	margin: 100px auto;
	width: 350px;
}

#login #log {
  margin: 0px;
  padding: 5px 5px 5px 15px;
  font-family: "Courier New", Courier, monospace;
  font-size: 85.71428%;
  color: #F08080;
}

}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/**
 * BxSlider v4.0 - Fully loaded, responsive content slider
 * http://bxslider.com
 *
 * Written by: Steven Wanderski, 2012
 * http://stevenwanderski.com
 * (while drinking Belgian ales and listening to jazz)
 *
 * CEO and founder of bxCreative, LTD
 * http://bxcreative.com
 */


/** RESET AND LAYOUT
===================================*/

.bx-wrapper {
	position: relative;
	margin: 0 auto 60px;
	padding: 0;
	*zoom: 1;
}

.bx-wrapper img {
	max-width: 100%;
	display: block;
}

/** THEME
===================================*/

.bx-wrapper .bx-viewport {
	-moz-box-shadow: 0 0 5px #ccc;
	-webkit-box-shadow: 0 0 5px #ccc;
	box-shadow: 0 0 5px #ccc;
	border: solid #fff 5px;
	left: -5px;
	background: #fff;
}

.bx-wrapper .bx-pager,
.bx-wrapper .bx-controls-auto {
	position: absolute;
	bottom: -30px;
	width: 100%;
}

/* LOADER */

.bx-wrapper .bx-loading {
	min-height: 50px;
	background: url(/img/site/bx_loader.gif) center center no-repeat #fff;
	height: 100%;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2000;
}

/* PAGER */

.bx-wrapper .bx-pager {
	text-align: center;
	font-size: .85em;
	font-family: Arial;
	font-weight: bold;
	color: #666;
	padding-top: 20px;
}

.bx-wrapper .bx-pager .bx-pager-item,
.bx-wrapper .bx-controls-auto .bx-controls-auto-item {
	display: inline-block;
	*zoom: 1;
	*display: inline;
}

.bx-wrapper .bx-pager.bx-default-pager a {
	background: #666;
	text-indent: -9999px;
	display: block;
	width: 10px;
	height: 10px;
	margin: 0 5px;
	outline: 0;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
}

.bx-wrapper .bx-pager.bx-default-pager a:hover,
.bx-wrapper .bx-pager.bx-default-pager a.active {
	background: #000;
}

/* DIRECTION CONTROLS (NEXT / PREV) */

.bx-wrapper .bx-prev {
	left: 10px;
	background: url(/img/site/controls.png) no-repeat 0 -32px;
}

.bx-wrapper .bx-next {
	right: 10px;
	background: url(/img/site/controls.png) no-repeat -43px -32px;
}

.bx-wrapper .bx-prev:hover {
	background-position: 0 0;
}

.bx-wrapper .bx-next:hover {
	background-position: -43px 0;
}

.bx-wrapper .bx-controls-direction a {
	position: absolute;
	top: 50%;
	margin-top: -16px;
	outline: 0;
	width: 32px;
	height: 32px;
	text-indent: -9999px;
	z-index: 100; /* 9999 */
}

.bx-wrapper .bx-controls-direction a.disabled {
	display: none;
}

/* AUTO CONTROLS (START / STOP) */

.bx-wrapper .bx-controls-auto {
	text-align: center;
}

.bx-wrapper .bx-controls-auto .bx-start {
	display: block;
	text-indent: -9999px;
	width: 10px;
	height: 11px;
	outline: 0;
	background: url(/img/site/controls.png) -86px -11px no-repeat;
	margin: 0 3px;
}

.bx-wrapper .bx-controls-auto .bx-start:hover,
.bx-wrapper .bx-controls-auto .bx-start.active {
	background-position: -86px 0;
}

.bx-wrapper .bx-controls-auto .bx-stop {
	display: block;
	text-indent: -9999px;
	width: 9px;
	height: 11px;
	outline: 0;
	background: url(/img/site/controls.png) -86px -44px no-repeat;
	margin: 0 3px;
}

.bx-wrapper .bx-controls-auto .bx-stop:hover,
.bx-wrapper .bx-controls-auto .bx-stop.active {
	background-position: -86px -33px;
}

/* PAGER WITH AUTO-CONTROLS HYBRID LAYOUT */

.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-pager {
	text-align: left;
	width: 80%;
}

.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-controls-auto {
	right: 0;
	width: 35px;
}

/* IMAGE CAPTIONS */

.bx-wrapper .bx-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	background: #666\9;
	background: rgba(80, 80, 80, 0.75);
	width: 100%;
}

.bx-wrapper .bx-caption span {
	color: #fff;
	font-family: Arial;
	display: block;
	font-size: .85em;
	padding: 10px;
}

/* UPLOAD FILEs */

#upload-files-form .ym-fbox-footer {
  display: none;
}
.progress {
  position: relative !important;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 3px;
  display: none;
}
.bar {
  background-color: #B4F5B4;
  width: 0%;
  height: 20px;
  border-radius: 3px;
}
.percent {
  position: absolute !important;
  display: inline-block;
  top: 3px;
  left: 48%;
}

#img-md {
  display: none;
  color: #ссс;
  padding: 10px 15px;
}
#status {color: red; padding: 0 1em;}

#upl-thumbs {
  padding: 0 1em;
}
#upl-thumbs>div {
  align-items: center;
  color: #212529;
  display: flex;
  flex-direction: row;
  /*font-size: 13px;*/
  justify-content: space-between;
  line-height: 1.5;
  margin-bottom: 3px;
}
#upl-thumbs>div a {
  text-decoration: none;
}
#upl-thumbs>div a.unlink, #upl-thumbs>div a.insert {
  color: inherit;
  cursor: pointer;
}
#upl-thumbs>div a.unlink i, #upl-thumbs>div a.insert i, #upl-thumbs>div a.preview i {
  color: #aaa;
}
#upl-thumbs>div a.insert.active i {
  color: #070;
}
#upl-thumbs>div i {
  padding-right: 6px;
}
#upl-thumbs>div .filler {
    flex-grow: 1;
    text-align: center;
}
.ut_active {
  border: solid 2px gold;
}
.upl-thumb img {
  max-height: 50px;
  max-width: 50px;
}
.btn {
	font-family: Arial;
	font-size: .85em;
  padding: 5px 5px;
  line-height: 1.33;
  border-radius: 3px;
  color: #333;
  background-color: #FFF;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid #CCC;
}
.btn:hover {
  background-color: #efefef;
}

.content2 {
  margin-top: 15px;
  font-size: 85.71428%;
  font-weight: 400;
  font-family: 'Open Sans', serif;
}

.content2 h1 {
  font-size: 170%;
}

.content2 h2 {
  font-size: 150%;
}

.content2 h3 {
  font-size: 130%;
}

#pagedown_preview img {
  max-width: 400px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.content img {
  max-width: 500px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.popup-gallery img {
  display: inline-block;
  border: solid 2px #efefef;
  border-radius: 3px;
  margin-right: 5px;
  width: 75px;
  height: 75px;
}

.content h3 {
  border-bottom: 1px solid #efefef;
}

.lib th {
  font-weight: normal;
  padding-left: 10px;
  cursor: pointer;
}

.lib td {
  font-size: 85.71428%;
}

.quote {
  border-radius: 4px;
  padding: 10px;
  background-color: #f6f6f6;
  border: 1px solid #efefef;
}

.pages {
	margin-top: 20px;
}

.pages a {
	padding: 5px;
	margin: 1px;
	background-color: #efefef;
	border: 1px solid #ccc;
	text-decoration: none;
}

.uc {
  border-bottom: 1px dotted #333;
  cursor: pointer;
}

#zd1, #zd2 {padding: 5px; width: 100%;}

#add-initiator-div div, #add-executor-div div {
  padding: 2px;
}
#post-tickets {
  font-size: 110%;
  width: 100%;
}

  .ym-vlist {
    margin: 0 0 1.5em 0;
    list-style-type: none;
    border: 0 none;
  }
  .ym-vlist ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
    border-top: 2px #ddd solid;
  }
  .ym-vlist li {
    float: left;
    width: 100%;
    margin: 0;
    padding: 5px 0px 5px 25px;
  }
  .ym-vlist a,
  .ym-vlist strong,
  .ym-vlist span {
    display: block;
    text-decoration: none;
    border-bottom: 1px #ddd dotted;
  } 
    /* title */
  .ym-vtitle {
    font-weight: bold;
    padding: 3px 0px 3px 15px;
    margin: 0;
    color: #444;
    background-color: #fff;
  }
 
.hlll {
  background-color: #ffa;
}

/* magnific popup image zoom */

.mfp-no-margins img.mfp-img {
	padding: 0;
}

.mfp-no-margins .mfp-figure:after {
	top: 0;
	bottom: 0;
}

.mfp-no-margins .mfp-container {
	padding: 0;
}
