html, body, h1, h2, div, span, p, a, em, font, img, center, ol, ul, li {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
img{max-width:100%;}
body {
line-height: 1;
}
ul {
list-style: none;
}

body {
	background-color: #eeeeee;
	font-family: Tahoma, Geneva, sans-serif;
}

#headblock
{
	width: 965px;
	margin: 0 auto;
}

#headblock  a {
	color: #69F;
}
.head
{
	width: 55%;
	float: left;
}

h1{
	float: right;
	width: 45%;
	font-size: 14px;
	color: #27293e;
	font-family: Verdana, Geneva, sans-serif;
	line-height: 1.2em;
	text-align: right;
	margin-top: 20px;
}
h2, h2 a {
	font-size: 26px;
	color: #27293e;
	font-family: Verdana, Geneva, sans-serif;
	line-height: 1em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
}

#join-desk, #pics-desc{
	font-size: 24px;
	font-weight: bold;
	color: #27293e;
	text-align: center;
	line-height: 1.2em;
	margin: 30px;
}
#join-desk img {margin: 10px 0 0;}
#pics-desc {	margin: 0px;}


#m-cont {
	width: 970px;
	margin: 2px auto;
	overflow: hidden;
}

.m-main-block  {width: 100%;}

.m-cont-foot {
	width: 99.5%;
	margin: 20px auto;
}
.m-cont-foot img{display: none;}
/* top menu */
#ddmenu {
	display: inline;
	width: 99.5%;
	font-size: 18px;
	font-weight: bold;
	float: left;
	text-decoration: none;
	color: #fff; 
	padding: 0;
	background-color: #dbdbdb;
	cursor: pointer;
	outline: none;
	margin: 0 3px 7px;
	border-radius: 20px;
	-webkit-border-radius: 20px;
	-moz-border-radius: 20px;
}

#ddmenu li { display: block; position: relative; float: left; }

#ddmenu li a {
  display: block;
  float: left;
  padding: 0 12px;
  line-height: 42px;
  font-weight: bold;
  text-decoration: none;
  color: #000000;
  -webkit-transition: all 0.2s linear;
  -moz-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}
#ddmenu li:hover > a { background: #ce0000; color: #ffffff;}

#ddmenu ul {
  position: absolute;
  top: 55px;
  width: 624px;
  background: #fff;
  display: none;
  margin: 0;
  padding: 12px 0;
  list-style: none;
  border-radius: 10px;
  box-shadow: 0 0 7px #000;
}

#ddmenu ul::after, #ddmenu ul::before {
  content: "";
  position: absolute;
  top: -8px;
  bottom: 100%;
  left: 20px;
  width: 16px;
  height: 16px;
  background: #fff;
    box-shadow: 0 0 7px #000; /* Добавляем тень для уголка */
      transform: rotate(45deg); /* Поворачиваем на 45º */
    -webkit-transform: rotate(45deg);
  z-index: -1;
}

#ddmenu ul::before {
    z-index: 1; /* Накладываем поверх, чтобы скрыть следы тени */
    box-shadow: none; /* Прячем тень */
   }

#ddmenu ul li { 
  font-size: 0.9em; 
}

#ddmenu ul li a {
  display: block;
  width: 142px;
  padding: 6px 7px;
  font-size: 14px;
  line-height: 1em;
  -webkit-transition: all 0.2s linear;
  -moz-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
  text-transform: capitalize;
  color: #27293e;
}
#ddmenu ul li a:hover {
  background: #e28383;
  color: #fff;
}
	
a {
	color: #27293e;
	text-decoration: none;
}

a.active, a:hover {
	color: #ce0000;
}

.bottom_thumb_top , .main_thumb_block {
	display:inline-block;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	-webkit-box-shadow: 0 0 2px 2px #CCCCCC;
    box-shadow: 0 0 2px 2px #CCCCCC;
	background-color:#ffffff;
	margin:6px 3px;
	padding:5px;
	zoom: 1;
    *display: inline;
}
.bottom_thumb_top a{
	display:inline-block;
	text-align:center;
	width:152px;
	margin:2px 0;
	padding-top:5px;
	padding-bottom:5px;
	zoom: 1;
    *display: inline;
}
.bottom_thumb_top a img{
	border:1px solid #cccccc;
}

.bottom_thumb_top a:hover img{border:1px solid #000;}

.main_thumb_block a img{
	text-align:center;
	max-width:300px;
	border:1px solid #cccccc;
}
div.main_thumb_block:hover {
	-webkit-box-shadow: 3px 2px 3px 3px #CCCCCC;
    box-shadow: 3px 2px 3px 3px #CCCCCC;
}
.main_thumb_tags{
	max-width:300px;
	font-size: 12px;
	font-weight:bold;
	text-align: left;
	margin-top: 7px;
	white-space: nowrap;
	overflow: hidden;
}

.pix-img img{
	display: block;
	width: auto !important;
	max-width: 100%;
	margin: 0 auto;
}
/*search form*/
#search-form {
float: right;
	display: inline-block;
	zoom: 1; /* ie7 hack for display:inline-block */
	 *display: inline;
	border: solid 1px #cccccc;
background: #e1e1e1; /* Fallback color for non-css3 browsers */
width: 280px;
margin: 3px;

background: -webkit-gradient( linear,left top, left bottom, color-stop(0, rgb(243,243,243)), color-stop(1, rgb(225,225,225)));
background: -moz-linear-gradient( center top, rgb(243,243,243) 0%, rgb(225,225,225) 100%);

border-radius: 17px;
-webkit-border-radius: 17px;
-moz-border-radius: 17px;

box-shadow: 1px 1px 2px rgba(0,0,0,.3), 0 0 2px rgba(0,0,0,.3);
-webkit-box-shadow: 1px 1px 2px rgba(0,0,0,.3), 0 0 2px rgba(0,0,0,.3);
-moz-box-shadow: 1px 1px 2px rgba(0,0,0,.3), 0 0 2px rgba(0,0,0,.3);
}

.search{
background: #fafafa;
background: -webkit-gradient( linear, left bottom, left top, color-stop(0, rgb(250,250,250)), color-stop(1, rgb(230,230,230)));
background: -moz-linear-gradient( center top, rgb(250,250,250) 0%, rgb(230,230,230) 100%);
border: 0;
border-bottom: 1px solid #fff;
border-right: 1px solid rgba(255,255,255,.8);
font-size: 14px;
margin: 3px;
padding: 5px 7px;
width: 220px;

border-radius: 17px;
-webkit-border-radius: 17px;
-moz-border-radius: 17px;

box-shadow: -1px -1px 2px rgba(0,0,0,.3), 0 0 1px rgba(0,0,0,.2);
-webkit-box-shadow: -1px -1px 2px rgba(0,0,0,.3), 0 0 1px rgba(0,0,0,.2);
-moz-box-shadow: -1px -1px 2px rgba(0,0,0,.3), 0 0 1px rgba(0,0,0,.2);
}


.submit{
border: 2px solid red;
background-color: transparent;
cursor: pointer;
float: right;
font-size: 14px;
font-weight: bold;
color: red;
margin: 2px;
padding: 0 0 1px 2px;
height: 30px;
width: 30px;
outline: none;

border-radius: 27px;
-webkit-border-radius: 27px;
-moz-border-radius: 27px;

}

.submit:hover {
background-color: red;
color: white;
}


/*page navi*/
#page_navi
{
	text-align: center;
	width: auto;
	padding: 10px;
}
/*curent page*/
.apc {
	border: 1px solid #27293e;
	padding: 2px 4px 2px 4px;
	margin: 1px;
	font-weight: bold;
	font-size: 20px;
}
.ap a
{
	padding: 2px 4px 2px 4px;
	margin: 1px;
	text-decoration: none;
	font-size: 20px;
	font-weight: bold;
}
/*links on pages*/
.ap A:link, .ap A:visited, .ap A:active {
	border: 1px solid #27293e;
}
/*selected links on pages*/
.ap A:hover {
	border: solid 1px #e28383;
}
/*page navi end*/



.webmaster {
	font-size: 14px;
	color: #000;
	text-align: center;
}
.webmaster strong{
	font-size: 18px;
}
.webmaster A{
	text-align: left;
	color: #00458A;
	text-decoration: none;
}
.webmaster A:hover{
	color: #000;
}
.webmaster A img{
	margin:5px;
	border: solid 1px #003b5c;
}
#copyright, #copyright a {
	font-size: 13px;
	color: #000;
	margin: 20px auto;
	text-align: center;
	width: 95%;
}

.side-bner{
	text-align: center;
	overflow: hidden;
}
.h_bner
{
	display: inline-block;
	width: 300px;
	height: 250px;
	margin: 8px;
	zoom: 1;
    *display: inline;
}
.pconc{display: block;
    width: 100%;
    height: auto;
}

.pconc .difr {-webkit-transform-origin:0 0 0;-moz-transform-origin:0 0 0;-ms-transform-origin:0 0 0;-o-transform-origin:0 0 0;transform-origin:0 0 0;
}
.clearfix
{
	clear:both;
}
/*page up key*/
#toTop {
    position:fixed;
    z-index:9999;
    bottom:205px;
    right: 5px;
    background: url(/images/up.png) no-repeat;
	opacity: 0.5;
    width: 55px;
    height: 55px;
    border: none;
    padding: 0px;
    cursor: pointer;
    color: transparent;
    text-decoration: none;
    font-size:0px;
}
#toTop:hover {opacity: 0.8;}

@media (min-width: 1288px){
#headblock, #m-cont  {width: 1293px;}
.topfree {font: bold 16px Arial, sans-serif;}
}
@media (max-width: 979px){
.show_top {display:none !important;}
h1{
	font-size: 12px;
	margin-top: 10px;
}
#headblock {width: 635px;}
#m-cont   {width: 642px;}
#ddmenu ul {width: 432px;}
#ddmenu ul li a {width: 130px;}
.hide {display:none;}
.apc, .ap A:link, .ap A:visited, .ap A:active {font-size: 17px;}
}
@media (max-width: 639px){
#headblock, #m-cont {width: 320px;}
.head {width: 100%;}
h1 {display:none}
#ddmenu {display:none;}
.apc, .ap A:link, .ap A:visited, .ap A:active {font-size: 15px;}
.bottom_thumb_top , .main_thumb_block {
	margin:0;
}
}
@media (max-width: 321px){
#headblock, #m-cont {width: 98%;}
#join-desk, #pics-desc{
	font-size: 16px;
	margin: 10px;
}
#pics-desc{margin: 0px;}
.bottom_thumb_top a img, .main_thumb_block a img {width:100%;}

#page_navi {padding: 10px;}
.apc {
	border-width: 1px;
	padding: 1px 2px 1px 2px;
	font-size: 8px;
	margin: 0px;
}
.ap A:link, .ap A:visited, .ap A:active {
	border-width: 1px;
	padding: 1px 2px 1px 2px;
	font-size: 8px;
	margin: 0px;
}
.ap A:hover {
	border-width: 1px;
	padding: 1px 2px 1px 2px;
	margin: 0px;
}
}
