/* --------------- common ---------------- */

body {
	font-family: Verdana,Geneva,sans-serif;
	font-size: 17px;
	color: black;
	margin: 0;
}

h1,h2,h3,h4,h5,h6 {
	font-weight: 400;
}

h1 {
	margin-top: 15px;
}

h3 {
	font-size: 1.5em;
	margin: 35px 0 0 0;
	color: #333;
}

p {
	text-align:justify;
	color: #444;
	line-height: 26px;
}

#container li{
	color: #444;
	line-height: 26px;
}

a {
	text-decoration:none;
	color: #6500a0;
}

a:hover {
	text-decoration:underline;
}

.spanl{
	border-bottom: 1px solid #6500a0;
	color: #6500a0;
	cursor: pointer;
}

.teaser .spanl{
	border-bottom: none;
}

.clear {
	clear: both;
}

.hidden {
	display:none;
}

/*---------- form elements ---------------------------*/

fieldset {
	border: none; 
	padding:0;
}

textarea {
	width: 88%; 
	height:100px;
	padding:10px;
	font-size:1em;
	margin: 10px 0 0 0;
}


input {
	padding:5px;
	margin: 10px 0 0 0;
	font-size:1em;
	width: 88%;
}


/* ----------- header ------------------------------- */

.bigbold {
	font-size:2em;
	font-weight:bold;
}

.big {
	font-size:1.3em;
}

#proj{
	font-style:italic;
	color:#666;
	font-size:1.2em;
	margin:10px 0;
}

.fright {
	float:right;
}

#topline {
	width: 100%;
	height: 30px;
	background-color: #444;
	font-size: 0.8em;
}

#topline .spanl {
	color: #666;
	border:none;
}

#topline .spanl:hover {
	color: #fff;
}

#topline a {
	color: #666;
	text-decoration: none;
}

#topline a:hover {
	color: #fff;
}


#advtop {
	float:right;
	width: 55%;
	height: 90px;
}

#topinfo {
	width:40%;
}


/*-------------- auth block ---------------------------*/

#auth-popup {
	background-color: white;
	border: 1px solid gray;
	padding: 10px;
	text-align: center;
	position: absolute;
	width: 300px;
	top: 50px;
	right: 30px;
	display: none;
}

.auth {
	float:right;
	padding: 5px;
	color: #aaa;
}

.auth span {
	margin-right: 20px;
}

.auth a {
	margin-right: 20px;
}

.auth-popup a {
	display: block;
	margin-top: 15px;
}

/* ------------ menu --------------------------------- */

#menu {
	padding: 0;
	background-color: #333;
	margin-bottom: 20px;
	/*border-bottom: 3px solid #6500a0;*/
}

#menu ul{
	list-style: none;
	margin: 0;
}

#menu ul li {
	padding: 10px 20px;
	float: left;
	height: 100%;
	font-size: 1em;
	display: block;
}

#menu ul li:hover {
	background-color: #000;
}

#menu ul li a {
	text-decoration: none;
	color: white;
	padding-right: 14px;
}

.drop_down a {
	background: url(/img/drdwn.png) no-repeat 100% 50%;
}

.drop_menu_div a {
	background: none;
}

.sticky {
	position:fixed;
	top:0px;
}

#menu ul li span {
	color: white;
}

#menu ul #ci {
	display: none;
}

#ci_a {
	background: url(/img/compact_menu.png) no-repeat;
	display: block;
	width: 27px;
}

.drop_menu_div {
	display: none;
	position: absolute;
	background: #000;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
	z-index: 100;

	padding: 5px 0 5px;
	margin: 10px 0 0 -20px;
}

.drop_menu_div a {
	color: #FFFFFF;
	display: block;
	padding: 10px 15px;
	cursor: pointer;
	text-decoration: none;
}

.drop_menu_div span {
	color: #FFFFFF;
	display: block;
	padding: 10px 15px;
	cursor: pointer;
}

#menu ul li .drop_menu_div a:hover {
	color: #b550f0;
	text-decoration: none;
}

.drop_down {
	cursor: pointer;
}

.img_item {
	float: left;
	padding: 5px 0 0 15px;
}

.img_item img {
	float: left;
	padding: 5px 15px 0 0;
}

/* --------- topteaser block ------------- */

#topblock {
	padding-bottom: 30px;
}

#topimg {
	float:left;
	padding: 0 15px 0 0;
}

#topimg img{
	max-width:98%;
}


/* --------- content --------------------- */

#wrapper {
	width: 60%;
	max-width: 1000px;
	margin: 0 auto;
	background: #fff;
	border-style: solid;
	border-color: #ddd;
	border-width: 0 1px;
}

#content {
	padding: 0 15px;
}

#container {
	float: left;
	width: 96%;
}

#container h1 {
	margin-bottom: 3px;
	padding-bottom: 10px;
}

.main_img_div {
	float: left;
	padding: 20px 20px 5px 10px;
}

.img_block {
	text-align:center;
	width: 95%;
	border: 1px solid #ddd;
	padding: 10px;
	font-style:italic;
	color: #777;
}

.img_block img {
	max-width: 90%;
}

.img_block p {
	max-width: 90%;
	text-align:center;
}



/* ---------- small usefull blocks in content -------------------------------*/

.breadcrumb{
	padding-left:10px;
	color: #999;
	font-size: 0.9em;
}

.breadcrumb a{
	color: #999;
}

.breadcrumb a:hover{
	color: #6500a0;
}

#tags {
	font-size: 1.2em;
	color: #999;
	padding-bottom: 10px;
	margin-top: 20px;
}

#tags a {
	padding-left: 10px;
}

#share {
	float:left; 
	font-size: 1.2em;
	color:#999;
	padding: 0 10px 5px 0;
	margin-top: 10px;
}

.ya-share2 .ya-share2__container .ya-share2__list .ya-share2__item {
	padding: 0 8px 0 0;
}

/* ---------- block_links in content ------------------------------------*/

#links ul{
	list-style: none;
	padding-left: 5px;
}

#links ul li{
	display: block;
	float: left;
	padding: 10px;
}

#links ul li a {
	text-decoration: none;
	font-size: 1.1em;
}

/* ---------- block_teasers in content ------------------------------------*/
.teaser {
	padding: 10px 0 25px 0;
}

.teaser:hover h2 a {
	color: #6500a0;
}

.teaser a {
	color: black;
}

.teaser a:hover {
	text-decoration: none;
}

.teaser h2 {
	margin: 0 0 10px 0;
}

.teaser_img img {
	max-height: 150px;
	min-width: 150px;
}

.teaser_img {
	float:left;
	padding: 0 10px 10px 0;
}

.teaser_content p {
	margin:0;
	font-size:0.8em;
	line-height:20px;
	color:#666;
}

.teaser_content h2 {
	max-width:85%;
}

.teaser .date_author {
	font-size: 0.8em;
	text-align:right;
	padding: 0 0 10px 0;
}

.teaser .date_author .spanl {
	padding: 3px; 
	color: white;
	background-color: #666;
	float:left;
}

.teaser .date_author .spanl:hover {
	background-color: #6500a0;
}

.teaser .comment_count {
	background: url(/img/comm.png) no-repeat 0 0;
	padding-left:20px;
	margin-top: 15px;
	float: right;
	font-size: 0.8em;
	color: #999;
}

#get_more_teasers {
	clear:both;
	text-align:center;
	padding: 10px 0;
}

.btn {
	border: 1px solid #aaa;
	background-color: #ddd;
	padding: 10px;
	width: 50%;
	cursor: pointer;
	margin: 0px auto;
	display: block;
	color: black;
}


/* --------- comments after content --------------------- */

.comment {
	border-top: 1px solid #ddd;
	margin-top: 30px; 
}

.child_comment {
	margin-left: 5%;
}

#comments {
	margin-bottom: 20px;
	clear: both;
}

#comments  h3{
	margin-top: 30px;
	border-bottom-width: 0;
}


#comments p {
	margin: 5px 0;
}

#comment-message {
	/*font-weight: bold; */
	padding: 10px 0;
}

#comment-message img {
	margin-left: 40px;
}

.comment-reply-l {
	font-size: 0.9em;
}

.successfull {
	color: green;
}

.error {
	color: red;
}

.highlited {
	border: 2px solid red;
}

.new {
	background-color: #fff6d0;
	padding: 10px;
}

#get_more_comments {
	text-align:center;
	padding: 10px 0;
}

/* ----------- sitemap page -----------------------------*/
.child_page {
	margin-left: 20px;
}

#footer a {
	color: #999;
	float: right;
	padding-left: 20px;
}

#footer .spanl {
	color: #999;
	float: right;
	border: none;
	padding-left: 20px;
}

#footer a:hover {
	color: #fff;
	text-decoration:none;
}

#footer .spanl:hover {
	color: #fff;
}


/* --------- maillist form --------------------- */

#maillist input {
	width: 45%;
}

#maillist fieldset {
	margin-left: 20px;
}

#soclinks {
	margin: 20px 0 15px 20px;
}

#soclinks span{
	padding-left:20px;
}

#soclinks p{
	margin-bottom: 10px;
}


/* --------- search form --------------------- */
#search_query {
	width: 55%;
}
#search_btn {
	float:right;
	padding: 10px 15px 0 15px;
	cursor:pointer;
}

#search-block {
	width:240px;
	border: 1px solid #aaa;
	padding: 5px;
	background-color:#f6f6f6;
}

#search-block input {
	width: 45%;
}


#search_result {
	margin-top: 5px;
	padding: 5px;
	font-size: 0.8em;
}

#search_result h2 {
	margin: 5px 0 0 0;
}

#search_result h3 {
	margin: 8px 0 2px 0;
	border-bottom-width: 0;
	font-size: 1.3em;
	color: #6500a0;
}

#search_result p {
	margin: 0;
	line-height:18px;
	font-size:0.9em;
}

#search_result a:hover {
	text-decoration:none;
	color: #9652d9;
}




/* -------- footer ------------------------ */

#footer {
	padding:15px;
	color: white;
	background-color: #333;
	text-align:center;
}

/* --------- 2-columns float --------------------- */

.twocol div:first-child{
	float: left;
	width: 30%;
	padding: 10px 20px 10px 10px;
}
.twocol div:nth-child(2){
	float: left;
	padding: 10px;
	width: 60%;
}


/* ------- adaptive ------------------------ */

@media only screen and (max-width: 1200px) { 
	#wrapper {
		width: 80%;
	}
}


@media only screen and (max-width: 1010px) { 
	#container {
		width: 98%;
		padding: 0 5px 0 5px;
	}
}

@media only screen and (max-width: 850px) { 
	#topimg {
		max-width:300px;
	}
	#wrapper {
		width: 100%;
	}
}

@media only screen and (max-width: 768px) { 
	body {
		font-size: 16px;
	}
	#topimg {
		max-width:250px;
	}
	#footer a,#footer .spanl {
		float: none;
		width:95%;
		display:block;
		padding:0 5px 10px 5px;
	}
}

@media only screen and (max-width: 640px) { 
	#topline {
		height: 25px;
	}
	#auth {
		padding: 2px;
	}
	#menu ul li {
		padding: 10px 10px;
	}
	.main_img_div img{
		max-width: 150px;
		max-height: 150px;
	}
	#proj {
		font-size:12px;
		margin: -15px 0 0 130px;
	}


	.twocol div:first-child{
		width: 90%;
		padding: 10px 10px 0 10px;
		font-size: 1.2em;
	}
	.twocol div:nth-child(2){
		width: 90%;
	}

}

@media only screen and (max-width: 430px) { 
	#topimg {
		max-width:400px;
	}
	#auth {
		font-size: 0.7em;
	}
	#tags {
		float: none;
		clear: both;
	}
	.main_img_div img{
		max-width: 98%;
		max-height: none;
	}
	#proj {
		display:none;
	}

	.teaser_img {
		float:none;
	}

	.teaser_img img {
		max-width:98%;
		max-height:300px;
	}

	.teaser {
		padding-bottom:10px;
		margin-bottom: 30px;
		border-bottom: 1px solid #ddd;
	}
}


@media only screen and (max-width: 365px) { 
	p {
		line-height:22px;
	}
}






#topblock .spanl {
	color:black;
	border-bottom-width:0;
}

#topblock .spanl:hover {
	color:#6500a0;
	text-decoration:none;
}

#topblock .date_author span:hover {
	color: #6500a0;
}

#blockfour p {
	text-align:left;
	line-height:22px;
	color: #999;
}

