@charset "utf-8";

@import url("/asset/font-awesome/css/font-awesome.css") all;

body {
	background: #190255 repeat center top; /* #0d1424 - синий, #260382 - тёмносиний, #190255 - ещё темнее */
	background-size: cover;
	background-attachment: fixed;
}

*, *:after, *:before {box-sizing: border-box;}

html, body {
	width: 100%;
	height: 100%;
}

script, style, template, [hidden] {display:none!important}

[contenteditable] {
  outline: 0px solid transparent;
}

pre { white-space: pre-wrap; word-wrap: break-word }

table {font: inherit}

.without-underline, a.without-underline:hover, a.button:hover {text-decoration:none}
.without-bullets {margin-left: 0; padding-left: 0}
.without-bullets > li {list-style-type: none}

.red, a:link.red, a:visited.red, a:active.red {color:Crimson}
.gray, a:link.gray, a:visited.gray, a:active.gray {color:Gray}
.orange, a:link.orange, a:visited.orange, a:active.orange {color:Gold}
.blue, a:link.blue, a:visited.blue, a:active.blue {color:RoyalBlue}
.violet, a:link.violet, a:visited.violet, a:active.violet {color:SlateBlue}
/*BlueViolet*/
.green, a:link.green, a:visited.green, a:active.green {color:LightSeaGreen}
/*Aquamarine,MediumAquamarine*/
.black, a:link.black, a:visited.black, a:active.black {color:Black}
.brown, a:link.brown, a:visited.brown, a:active.brown {color:RosyBrown}
.white, a:link.white, a:visited.white, a:active.white {color:White}

.text {text-align: justify}
.debug { border: solid 1px gray; background: rgb(38, 92, 157); color: white; padding: 4px; margin: 4px; }
.code {font-family: helvetica}
.text, .code, .debug, #error {
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: justify;
}

em {font-style: italic; color: gray}

.abs {position: absolute}
.right {float: right}
.left {float: left}
.w100 {width: 100%}

.justify { text-align: justify; }

[manual] {
    cursor: pointer;
}

img {
	display: block;
}

[error] {
	display: none;
	background-color: pink;
}

.error, #error {
    background-color: pink;
    border-radius: 4px;
    padding: 4px;
    color: black;
}
#error {
    position: fixed;
    left: 0;
    top: 0;
	border-radius: 0;
	max-height: 50%;
	overflow: auto;
	z-index: 300000;
}

/************************************************************************************
Лифты
*************************************************************************************/
#lift {
	position: fixed;
	bottom: 10px;
	margin-left: -40px;
}

#lift .widget {
	cursor: pointer;
	padding: 10px 12px;
}

/************************************************************************************
Всплывающие подсказки
*************************************************************************************/
.msgbox {
    position: absolute;
    color: white;
	z-index: 2000;
	max-width: 80%;
}
.msgbox-content {
    display: inline-block;
    background: rgba(0,0,0,0.7);
    padding: 0.5em 0.7em;
    border-radius: 5px;
}
.msgbox-close {
    display: inline-block;
	position: absolute;
    vertical-align: top;
    margin-left: 5px;
    /*margin-bottom: -1.5em;*/
    border: solid 1px white;
    color: white;
    background: rgba(255,0,0,0.7);
    border-radius: 2.5px;
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
    text-align: center;
    font-size: 1.5em;
    line-height: 1.2em;
}
.close {
	color: white;
	background: red;
	border-radius: 2.5px;
	width: 1em;
    height: 1em;
	cursor: pointer;
    text-align: center;
    font-size: 1.2em;
    line-height: 1.05em;
}
.manual-box > .msgbox-content {
    width: 70%;
    background: LightSkyBlue;
    color: black;
}
.manual-box p:first-letter {
    font-weight: 600;
}
.box {
    border: solid 1px red;
    width: auto;
}

/************************************************************************************
RESET
*************************************************************************************/
html, body, address, blockquote, div, dl, form, h1, h2, h3, h4, h5, h6, ol, p, pre, table, ul,
dd, dt, li, tbody, td, tfoot, th, thead, tr, button, del, ins, map, object,
a, abbr, acronym, b, bdo, big, br, cite, code, dfn, em, i, img, kbd, q, samp, small, span,
strong, sub, sup, tt, var, legend, fieldset {
	margin: 0;
	padding: 0;
}

img, fieldset {
	border: 0;
}

/* set image max width to 100% */
img {
	max-width: 100%;
	height: auto;
	width: auto\9; /* ie8 */
}

/* set html5 elements to block */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}

/************************************************************************************
GENERAL STYLING
*************************************************************************************/
body {
	/*background: #0d1424 url(images/body-bg.jpg) no-repeat center top;
	background-color: rgb(38, 92, 157);
	*/
	font: .81em/150% Arial, Helvetica, sans-serif;
	color: #333;
}
a {
	color: #026acb;
	text-decoration: none;
	outline: none;
}
a:hover {
	text-decoration: underline;
}
p {
	margin: 0 0 1.2em;
	padding: 0;
}

/* list */
ul, ol {
	margin: 1em 0 1.4em 24px;
	padding: 0;
	line-height: 140%;
}
li {
	margin: 0 0 .5em 0;
	padding: 0;
}

/* headings */
h1, h2, h3, h4, h5, h6 {
	line-height: 1.4em;
	margin: 20px 0 .4em;
	color: #000;
}
h1 {
	font-size: 2em;
}
h2 {
	font-size: 1.6em;
}
h3 {
	font-size: 1.4em;
}
h4 {
	font-size: 1.2em;
}
h5 {
	font-size: 1.1em;
}
h6 {
	font-size: 1em;
}

/* reset webkit search input styles */
input[type=search] {
	-webkit-appearance: none;
	outline: none;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
	display: none;
}

/************************************************************************************
STRUCTURE
*************************************************************************************/
#pagewrap {
	width: 980px;
	margin: 0 auto;
}

/************************************************************************************
HEADER
*************************************************************************************/
#header {
	position: relative;
	height: 160px;
}

/* site logo */
#site-logo {
	position: absolute;
	top: 10px;
}
#site-logo a {
	font: bold 30px/100% Arial, Helvetica, sans-serif;
	color: #fff;
	text-decoration: none;
}

/* site description */
#site-description {
	font: italic 100%/130% "Times New Roman", Times, serif;
	color: #fff;
	position: absolute;
	top: 55px;
}

/* searchform */
#searchform {
	position: absolute;
	right: 10px;
	bottom: 6px;
	z-index: 100;
	width: 160px;
}
#searchform #s {
	width: 140px;
	float: right;
	background: #fff;
	border: none;
	padding: 6px 10px;
	/* border radius */
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	/* box shadow */
	-webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
	-moz-box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
	box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
	/* transition */
	-webkit-transition: width .7s;
	-moz-transition: width .7s;
	transition: width .7s;
}
#searchform #s:focus {
	width: 350px;
}

/************************************************************************************
MAIN NAVIGATION
*************************************************************************************/
.main-nav {
	background: #ccc;
	/* gradient */
	background: #6a6a6a url(images/nav-bar-bg.png) repeat-x;
	background: -webkit-gradient(linear, left top, left bottom, from(#b9b9b9), to(#6a6a6a));
	background: -moz-linear-gradient(top,  #b9b9b9,  #6a6a6a);
	background: linear-gradient(-90deg, #b9b9b9, #6a6a6a);
	/* rounded corner */
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;
	/* box shadow */
	-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 1px rgba(0,0,0,.4);
	-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 1px rgba(0,0,0,.4);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 1px rgba(0,0,0,.4);
}

#main-nav {
	width: 100%;
	margin: 0;
	padding: 0;
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 100;
}
#main-nav li {
	margin: 0;
	padding: 0;
	list-style: none;
	float: left;
	position: relative;
}
#main-nav li:first-child {
	margin-left: 10px;
}
#main-nav a {
	line-height: 100%;
	font-weight: bold;
	color: #fff;
	display: block;
	padding: 14px 15px;
	text-decoration: none;
	text-shadow: 0 -1px 0 rgba(0,0,0,.5);
}
#main-nav a:hover {
	color: #fff;
	background: #474747;
	/* gradient */
	background: -webkit-gradient(linear, left top, left bottom, from(#282828), to(#4f4f4f));
	background: -moz-linear-gradient(top,  #282828,  #4f4f4f);
	background: linear-gradient(-90deg, #282828, #4f4f4f);
}

/************************************************************************************
CONTENT
*************************************************************************************/
#content {
	position: relative;
	margin: 30px 0 30px;
	width: 600px;
	float: left;
}

/* post */
.content-box,
.post, .widget,
.indicator + label,
.msgbox-content {
	/* rounded corner */
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;
	/* box shadow */
	-webkit-box-shadow: 0 1px 3px rgba(0,0,0,.4);
	-moz-box-shadow: 0 1px 3px rgba(0,0,0,.4);
	box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.post {
	background: #fff;
	padding: 20px 35px;
	margin-bottom: 40px;
}
.post-title {
	margin: 0 0 5px;
	padding: 0;
	font: bold 26px/120% Arial, Helvetica, sans-serif;
}
.post-title a {
	text-decoration: none;
	color: #000;
}
.post-meta {
	margin: 0 0 10px;
	font-size: 90%;
}

.post-image {
	margin: 0 0 15px;
}

/**
 * ИНДИКАТОРЫ
 */
.indicator-btn {
	position: relative;
	display: inline-block;
	margin: 0;
	background: Lavender;
	border-radius: 1em;
	padding: 0 0.5em;
	overflow: hidden;
	cursor: pointer;
}
.indicator-btn:active {
	top: 1px;
	left: 1px;
}

.indicator-input {
	display: inline-block;
	background: Lavender;
	border-radius: 1em;
	padding: 0 0.5em;
	cursor: text;
}

/**
 * ЧЕКБОКСЫ
 */
.indicator, .invisible {
	position: absolute;
	left: -100000px;
	width: 1px;
	height: 1px;
}
.indicator + label * {
	transition: all 1s;
}
.indicator + label {
	transition: all 1s;
	display: inline-block;
	margin: 0;
    margin-left: 4px;
	background: Lavender;
	border-radius: 1em;
	padding: 4px;
	width: 4em;
	overflow: hidden;
	cursor: pointer;
	text-align: center;
}
.indicator:checked + label {
	background-color: #FFE6FA;

	/* box shadow */
	-webkit-box-shadow: 0 1px 3px rgba(255,0,0,.4);
	-moz-box-shadow: 0 1px 3px rgba(255,0,0,.4);
	box-shadow: 0 1px 3px rgba(255,0,0,.4);
}
.indicator:checked + label[for=fat-dislike] .fa-bolt {color: #FFE6FA}

[for=fat-like] .fa-heart-o {color: red}
[for=fat-like] .fa-heart {color: transparent}
.indicator:checked + label[for=fat-like] .fa-heart-o {color: transparent}
.indicator:checked + label[for=fat-like] .fa-heart {color: red}

[for=fat-dislike] .fa-heart {color: transparent}
.indicator:checked + label[for=fat-dislike] .fa-heart {color: black}
.indicator:checked + label[for=fat-dislike] .fa-heart-o {color: transparent}

[for=fat-remark] .fa-weixin {color: RoyalBlue}

[for=fat-tab] .fa-bookmark-o {color: LightSeaGreen}
[for=fat-tab] .fa-bookmark {color: transparent}
.indicator:checked + label[for=fat-tab] .fa-bookmark-o {color: transparent}
.indicator:checked + label[for=fat-tab] .fa-bookmark {color: LightSeaGreen}

[for=fat-share] .fa-share-alt {color: SlateBlue}
[for=fat-view] .fa-eye {color: RosyBrown}

/************************************************************************************
SIDEBAR
*************************************************************************************/
#sidebar {
	width: 280px;
	float: right;
	margin: 30px 0 30px;
	z-index: 1000;
}
.widget {
	background: #fff;
	margin: 0 0 30px;
	padding: 10px 20px;
}
.widgettitle {
	margin: 0 0 5px;
	padding: 0;
}
.widgettitle a {
	text-decoration: none;
	color: #000;
}

.widget > ul {
	margin: 0;
	padding: 0;
}
.widget > ul > li {
	margin: 0;
	padding: 6px 0;
	list-style: none;
	clear: both;
	border-top: solid 1px #eee;
}

/* flickr widget */
.widget .flickr_badge_image {
	margin-top: 10px;
}
.widget .flickr_badge_image img {
	width: 48px;
	height: 48px;
	margin-right: 12px;
	margin-bottom: 12px;
	float: left;
}

/************************************************************************************
FOOTER
*************************************************************************************/
#footer {
	clear: both;
	color: #ccc;
	font-size: 85%;
}
#footer a {
	color: #fff;
}

/************************************************************************************
CLEARFIX
*************************************************************************************/
.clearfix:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
.clearfix { display: inline-block; }
.clearfix { display: block; zoom: 1; }


/************************************************************************************
smaller than 980
*************************************************************************************/
@media screen and (max-width: 980px) {

	/* pagewrap */
	#pagewrap {
		width: 95%;
	}


	#content {
		width: 60%;
		padding: 3% 4%;
	}

	#sidebar {
		width: 30%;
	}
	#sidebar .widget {
		padding: 8% 7%;
		margin-bottom: 10px;
	}

	/* embedded videos */
	.video embed,
	.video object,
	.video iframe {
		width: 100%;
		height: auto;
		min-height: 300px;
	}


	#lift {
		margin-left: -7px;
	}

	#lift .widget {
		padding: 10px 0px;
		width: 50px;
	}
}

/************************************************************************************
smaller than 650
*************************************************************************************/
@media screen and (max-width: 650px) {

	/* header */
	#header {
		height: auto;
	}

	/* search form */
	#searchform {
		position: absolute;
		top: 5px;
		right: 0;
		z-index: 100;
		height: 40px;
	}
	#searchform #s {
		width: 70px;
	}
	#searchform #s:focus {
		width: 150px;
	}

	/* main nav */
	#main-nav {
		position: static;
	}

	/* site logo */
	#site-logo {
		margin: 15px 100px 5px 0;
		position: static;
	}

	/* site description */
	#site-description {
		margin: 0 0 15px;
		position: static;
	}

	/* content */
	#content {
		width: auto;
		float: none;
		margin: 20px 0;
	}
	
	/*not(.map-kosmobook) #sidebar {
		float: none;
		margin: 0;
		width: 100%;
		height: 18px;
		
		position: fixed;
		left: 0;
		bottom: 0;
		z-index: 1000;
		
		display: flex;
		flex-direction: column;
		
		background-position: right bottom;
		background-repeat: no-repeat;
		background-attachment: fixed;
		
	}

	not(.map-kosmobook) #sidebar > .slider {
		background: white;
		box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 -1px 3px rgba(0,0,0,.4);
		
		padding: 6px 0 6px 0;
		cursor: n-resize;
		cursor: grab;
	}
	
	not(.map-kosmobook) #sidebar > .slider > .line {
		display: block;
		margin-left:47%;
		margin-bottom: 1px;
		width: 6%;
		height: 1px;
		background-color: gray;
	}
	
	not(.map-kosmobook) #sidebar > .content {
		position: relative;
		overflow: auto;
		padding: 3% 4%;
		flex: 1;
	}*/

	#sidebar {
        width: 100%;
        margin: 20px 0;
		float: none;
		padding: 3% 4%;
	}

	#sidebar .widget {
		padding: 3% 4%;
		margin: 0 0 30px 10px;
	}

	/* embedded videos */
	.video embed,
	.video object,
	.video iframe {
		min-height: 250px;
	}

}

/************************************************************************************
smaller than 560
*************************************************************************************/
@media screen and (max-width: 480px) {

	/* disable webkit text size adjust (for iPhone) */
	html {
		-webkit-text-size-adjust: none;
	}

	/* main nav */
	#main-nav a {
		font-size: 90%;
		padding: 10px 8px;
	}

}
