/*      --------------------------------------------------------------
	Style name:		oldstylenew
	Based on style:	mardin oldstyle
	Original author:	mardin
	Modified by:		nirab
    --------------------------------------------------------------
*/

/* Layout
 ------------ */
* {
	/* Reset browsers default margin, padding and font sizes */
	margin: 0;
	padding: 0;
}

html {
	font-size: 90%;
}

body {
background: url("https://www.massage.ru/forum/styles/oldstylenew/theme/images/new/bg_body.jpg") no-repeat fixed 0 0 #DDD6C7;
	font-family: Verdana,Arial,Helvetica,sans-serif;
	color: #676666;
	font-size: 11px;
	margin: 0;padding:0 5px 10px 5px;
}

.container-fluid {
padding-right: 2px;
padding-left: 2px;
}

#wrapheader, #wrapcentre, #wrapfooter
{
border: solid 1px #BEB18E;
}

#wrapheader {
    o-verflow: hidden;
    padding: 10px 0 0 0;
	margin:0;
position:relative;
border-bottom-width: 0;
border-radius: 10px 10px 0 0;
background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);
}

#wrapcentre {
background: none repeat scroll 0 0 #FFFFFF;
    margin: 0 auto;
    padding: 10px 0;	
	border-top-width: 0;
	border-bottom-width: 0
}

#wrapfooter {
width:100%; 
margin: 0 auto;
	text-align: center;
	clear: both;
	background: none repeat scroll 0 0 rgba(255, 255, 255, 0.5);	
	border-top-width: 0
}

#wrapnav {
	width: 100%;
	margin: 0;
	background-color: #ECECEC;
	border-width: 1px;
	border-style: solid;
	border-color: #A9B8C2;
}


.ads a {
	display:block;
	margin: 2px auto;
	width: 468px;
	height:60px;
	overflow:hidden;
}

.ads a img {
	width:100%
}

.thdr {
    background: url("https://www.massage.ru/forum/styles/oldstylenew/theme/images/new/bg-th.png") repeat-x scroll 0 0 #6D665A;
    border-bottom: 1px solid #FFFFFF;
    border-top: 1px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 1.2em;
    font-weight: normal;
    text-align: left;
    white-space: normal;	
	margin:0 !important;
	display: flex;
	}
	
.thdr div {
	border-right:1px solid #fff;
	padding: 7px 0;
text-align: center;
white-space:normal
}	

.thdr div:first-child {
	padding-left:15px;
	text-align:left
}

.mrg0 {
	margin:0 !important
}

.mrg5-0{
	margin:5px 0;
}

.mrg10-0{
	margin:10px 0;
}

.mrg515 {
	margin: 5px 15px;
}

.mrg515 .row1 {
	padding: 7px 15px;
}

.mrg20t {
	margin:20px 0 0 0 !important
}

.pad0 {
	padding:0 !important
}

.pad10 {
	padding:10px !important
}

.pad0-15 {
	padding:0 15px !important
}

.pad715 {
	padding:7px 15px !important
}

.pad5l {
	 padding-left:5px !important
 }

.flex-row {
	margin:0 !important;
	display: flex;
flex-wrap: wrap;
}

.flex-row .row1, .flex-row .row2 {
	padding: 5px 0;
	border:1px solid #fff;
	border-width: 0 1px 1px 0
}	

.flex-row .row1:first-child {
border-left:1px solid #fff;
}

.row1 {
        background-color: #ececec; /*was EEEEEE */
        }
.row2 {
        background-color: #dddddd;  /* Was DDDDDDD */
        }
.row3 {
        background-color: #CDCDCD; /* was CCCCCC */
	border:1px solid #fff;
	border-width: 0 1px 1px 0
        }
		
.rowh {
	padding:2px 10px !important;
	border-bottom:1px solid #fff
}	

.lb {
	background-color:lightblue;
}	

.rowh p {
font-size: 0.8em;
margin:0 !important;
padding:0 !important;
}

.spacer {
background-color: #D1D7DC;
margin: 0;
height: 5px;
}

.flr {
	float:right;
	display:inline-block
}

.fll {
	float:left;
	margin-right:10px !important
}

.nbr {
  border-right:  none  !important
}

#forumlist p {
	margin:0
}

#forumlist h4, .cat {
background: url("https://www.massage.ru/forum/styles/oldstylenew/theme/images/cellpic1.gif") repeat-x scroll 0 0 #EEE;
min-height: 32px;
margin: 0;
text-indent: 4px;
font-size: 1.1em;
font-weight: bold;
color: #000;
padding:7px
}

#forumlist h4 a:link, #forumlist .cat a:visited,
.cat a:link, .cat a:visited {
    color: #333;
    text-decoration: none;
}

#forumlist h4 a:hover, #forumlist .cat a:active,
.cat a:hover, .cat a:active {
color:#c8c8c8
}

.forumfolder {
height: 100%;
float: left;
width: 50px;
}

.pmic {
    height: 100%;
    float: left;
    width: 20px;
    text-align: center;
}

.topicfolder {
height: 100%;
float: left;
width: 30px;
text-align:center
}

.topicbut {
	float: left;
	margin-right:15px;
}

.rbut {
float:right
}	

#logodesc {
	/*text-align: right;
    width: 98%;*/
	min-height:80px
}

.banner-head {
height: 60px;
    margin: 0 0 0 380px;
    position: absolute;
    top: 10px;
    width: 468px;
    z-index: 1000;
}

#menubar {
	padding-bottom: 10px;
	/*
float: right;
    margin: 0;    
    text-align: right;
    width: 380px;*/
}

#menubar a img {
	margin-top: -2px;
}

#menubar div {
	text-align:right;
	margin-bottom:5px
}

#menubar h2 {
margin:0;
color: #000;
text-decoration: underline;
}	

#datebar {
	margin: 0;
	font-size:80%
}

#findbar {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

#recent, #pageheader {
	margin:0 !important;
}

#pageheader.mrg515 {
	margin:5px 15px !important;
}

#pageheader.mrg515 h2 {
	margin-top:0 !important;
}

.anno-block {
background: url("https://www.massage.ru/forum/styles/oldstylenew/theme/images/new/block-top2.png") repeat-x scroll center bottom #FFFFFF;
    border: 1px solid #DDDDDD;
      -khtml-border-radius: 0 5px 5px 5px;
  -moz-border-radius: 0 5px 5px 5px;
  -webkit-border-radius: 0 5px 5px 5px;
  border-radius: 0 5px 5px 5px;
  margin-top: 4px;
    padding: 10px !important;
	color:#000
}

.anno-block a{ 
line-height: 130%;
}

.anno-recent h3 {
	color: #FFFFFF;
font-size: 1.4em;
    font-weight: normal;
	background: url("https://www.massage.ru/forum/styles/oldstylenew/theme/images/new/buttons.png") repeat-x scroll 0 0 transparent;
	padding:5px 10px;
	-khtml-border-radius: 5px 5px 0 0;
  -moz-border-radius: 5px 5px 0 0;
  -webkit-border-radius: 5px 5px 0 0;
  border-radius: 5px 5px 0 0;
  display:inline;
  margin-bottom:0
}

.anno-recent h3.anno{
	background: url("https://www.massage.ru/forum/styles/oldstylenew/theme/images/new/buttons.png") repeat-x scroll 0 100% transparent;
	}


.forumrules {
	background-color: #F9CC79;
	border-width: 1px;
	border-style: solid;
	border-color: #BB9860;
	padding: 4px;
	font-weight: normal;
	font-size: 1.1em;
	font-family: Verdana,Arial,Helvetica,sans-serif
}

.forumrules h3 {
	color: red;
}

#sorting {
	padding:5px 0;
	background: url("https://www.massage.ru/forum/styles/oldstylenew/theme/images/cellpic1.gif") repeat-x scroll 0 0 #EEE;
}

#jumpbox select, #tz, #dateoptions, #mark_option, #fid, .s300 {
	width: 300px
}

#colorPalette {
width:100%
}

#colorPalette td {
border: 1px solid #fff
}

/* menu styling */

ul.topNav{
margin:0 auto; 
    display: flex;
    flex-wrap: wrap;
	justify-content: space-between;
}

ul.topNav li a, ul.topNav li a:visited {
color: #333;
    display: block;
    font-weight: normal;
    heig-ht: 15px;
    line-height: 30px;
    text-align: center;
    text-decoration: none;
    padding: 0 18px 0 15px;
} 

ul.topNav li a:hover {
text-decoration:underline
} 

ul.topNav li {float:left; posit-ion:relative;margin:0;height:30px;
list-style: none outside none;
background: url("https://www.massage.ru/forum/styles/oldstylenew/theme/images/new/bg-li.gif") no-repeat scroll right 1px transparent
}

ul.topNav li.zel {
background: url("https://www.massage.ru/forum/styles/oldstylenew/theme/images/new/buttons.png") no-repeat scroll right 1px transparent;
}

ul.topNav li.zel a, ul.topNav li.zel a:visited {
color:#fff !important
}

ul.topNav li.last {
background: none
}

ul.topNav li.last  a{
padding-left:10px
}

a.logo{
display: block;
    float: left;
    height: 53px;
    padding: 10px 0 0 5px;
}
/*  Text
 --------------------- */
h1 {
	color: black;
	font-family: Verdana,Arial,Helvetica,sans-serif;
	font-weight: bold;
	font-size: 1.8em;
	text-decoration: none;
}

h2 {
	font-weight: bold;
	font-size: 1.2em;
	text-decoration: none;
	line-height: 120%;
}

h3 {
	font-size: 1.3em;
	font-weight: bold;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 120%;
}

h4 {
	margin: 0;
	font-size: 1.1em;
	font-weight: bold;
color:#000
}

p {
	font-size: 1em;
}

p.moderators {
font-size:0.9em;
	float: left;
	color: #333;
	font-weight: bold;
}

.rtl p.moderators {
	float: right;
}

p.linkmcp {
	margin: 0;
	float: right;
	white-space: nowrap;
}

.rtl p.linkmcp {
	float: left;
}

p.breadcrumbs {
color: black;
    font-size: 1em;
    font-weight: bold;
    margin: 0 auto;
    white-space: normal;
    width: 97%;
	padding:3px
}

.rtl p.breadcrumbs {
	float: right;
}

p.datetime {
	margin: 0;
	float: right;
	white-space: nowrap;
	font-size: 1em;
}

.rtl p.datetime {
	float: left;
}

p.searchbar {
	padding: 2px 0;
} 

.searchbar a:link{
color:#333;
}

.searchbar a:hover{
color:#000;
}

p.searchbarreg {
	margin: 0;
	float: right;
	white-space: nowrap;
}

.rtl p.searchbarreg {
	float: left;
}

p.forumdesc {
	padding-bottom: 4px;
font-size:90%
}

p.topicauthor {
	margin: 1px 0;
}

p.topicdetails {
	margin: 1px 0;
font-size:90%
}

.postreported, .postreported a:visited, .postreported a:hover, .postreported a:link, .postreported a:active {
	margin: 1px 0;
	color: red;
	font-weight:bold;
}

.postapprove, .postapprove a:visited, .postapprove a:hover, .postapprove a:link, .postapprove a:active {
	color: green;
	font-weight:bold;
}

.postapprove img, .postreported img {
	vertical-align: bottom;
	padding-top: 5px;
}

.postauthor {
	color: #000000;
margin-left:5px
}

.postdetails {
	color: #000000;
font-size:90%
}

.postbody {
	font-size: 1.1em;
	color:#000
}

.postbody li, ol, ul {
	margin: 0 0 0 1.5em;
}

.rtl .postbody li, .rtl ol, .rtl ul {
	margin: 0 1.5em 0 0;
}

.posthilit {
	background-color: yellow;
}

.navg {
	margin: 0;
	color: #333;
	font-weight: normal;
font-size:90%
}

.pagination {
	padding: 4px;
	color: black;
	font-size: 1em;
	font-weight: bold;
}

.cattitle {

}

.gen {
	margin: 1px 1px;
	font-size: 1.2em;
}

.genmed {
	margin: 1px 1px;
	font-size: 1em;
}

.gensmall {
	margin: 1px 1px;
	font-size: 0.8em;
}

.copyright {
	color: #444;
	font-weight: normal;
	font-family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
}

.titles:link, .titles:visited {
	font-weight: bold;
	font-size: 1.2em;
	text-decoration: underline;
color:#333;
}

.titles:hover {
	text-decoration: none;
	color:#e9901b
}

.error {
	color: red;
}

#ucpan .col {
padding:0 2px
}

#ucpan .col div{
 padding: 0 5px;
}

#ucpan .col .flex-row {
	padding:0
}

#ucp .row div{
 padding: 5px;
}

#ucpan .col .thdr {
padding: 5px 15px;
}

#ucpan .col .thdr div {
    border-right: 0;
	padding:0
}

#ucpan .row3 {
	border-right:0
}

#ucpan ul {
list-style-type: none;}

.pmc ul {
	margin:0
}
.pmc ul li {
padding-left: 10px;
border-bottom: 1px solid #FFFFFF;
}
.pmc ul  span{
background-color: #ececec;
display: block;
margin: 0;
padding: 3px 5px;
}

.mc {
float:left;
margin-right: 5px
}

#ucpan form[name:"viewfolder"] {
margin-top: 2px;
}

/* Tables
 ------------ */
th {
background: url("https://www.massage.ru/forum/styles/oldstylenew/theme/images/new/bg-th.png") repeat-x scroll 0 0 #6D665A;
    border-bottom: 1px solid #FFFFFF;
    border-top: 1px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 1.2em;
    font-weight: normal;
    padding: 7px 15px;
    text-align: left;
    white-space: nowrap;
}



.thTopMenu {
	background: url("https://www.massage.ru/forum/styles/oldstylenew/theme/images/new/bg-menu.png") repeat scroll 0 0 #ddd;
	padding:0 5px;
	font-size: 1.2em;
    font-weight: normal;
}

td {
	padding: 0px;
}
td.profile {
	padding: 4px;
}

.tablebg td{
margin:1px;padding:2px
}

.catdiv {
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	background: url("https://www.massage.ru/forum/styles/oldstylenew/theme/images/cellpic1.gif") repeat scroll 0 0 #EEEEEE;
}

.catnav{
text-align:right;
margin: 0;
	color: 333;
	font-weight: bold;
font-size:90%;
	height: 28px;
	padding: 7px 15px 0 0;
	border: 0;
	background: url("https://www.massage.ru/forum/styles/oldstylenew/theme/images/cellpic1.gif") repeat scroll 0 0 #EEEEEE;
}

.rtl .catdiv {background-color: #EDEDED;
	//background: white url('styles/oldstylenew/theme/images/cellpic2_rtl.jpg') repeat-y scroll top right;
}

td.cat {
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	background: url("https://www.massage.ru/forum/styles/oldstylenew/theme/images/cellpic1.gif") repeat scroll 0 0 #EEEEEE;
	text-indent: 4px;
}



hr {
	height: 1px;
	border-width: 0;
	background-color: #D1D7DC;
	color: #D1D7DC;
}

.sgntr {
	background-color: #000;
	color: #000;
	margin:10px 0
}	

.legend {
	text-align:center;
	margin: 0 auto;
}

/* Links
 ------------ */

/* Links adjustment to correctly display an order of rtl/ltr mixed content */
.rtl a {
	direction: rtl;
	unicode-bidi: embed;
}

a:link, a:visited{
	color: #000;
	text-decoration: underline;
}

 a:active, a:hover {
	color: #333;
	text-decoration: none;
}

#menubar a:link, #menubar a:visited {
color:#333;text-decoration:none
}

#menubar a:hover, .catnav a:hover {
color:#800000;text-decoration:underline
}

.thdr a {
	color:#fff
}

.cat a:link, .cat a:visited{
color:#333;text-decoration: none
}

.cat a:hover, .cat a:active{
color:#c8c8c8
}

p.breadcrumbs a:link, p.breadcrumbs a:visited{
color:#333
}

p.breadcrumbs a:hover{
	text-decoration: none; color:#555
}

.catnav a{
font-weight:bold;font-size:1em;color:#444;text-decoration:none
}

a.forumlink:link {
	color: #333;
	font-weight: bold;
	font-size: 1.1em;text-decoration: underline
}

a.forumlink:hover {
	color: #8c8c8c;font-weight: bold;
}

a.forumlink:visited{
color:#000;font-weight: bold;
}

a.topictitle {
	margin: 1px 0;
	font-weight: bold;
color:#333;
	text-decoration: underline;
}

a.topictitle:hover{
color:#e9901b
}

a.topictitle:visited{
text-decoration: none;
}

th a,
th a:visited {
	color: #333 !important;
	text-decoration: underline;
}

th a:hover {
	text-decoration: none;
}


/* Form Elements
 ------------ */
form {
	margin: 0;
	padding: 0;
	border: 0;
}

#postform {
	margin:20px 0
}

input {
	color: #333333;
	font-family: "Lucida Grande", Verdana, Helvetica, sans-serif;
	font-size: 1.1em;
	font-weight: normal;
	padding: 1px;
	border: 1px solid #A9B8C2;
	background-color: #FAFAFA;
}

textarea {
	background-color: #FAFAFA;
	color: #333333;
	font-family: "Lucida Grande", Verdana, Helvetica, Arial, sans-serif;
	font-size: 1.3em; 
	line-height: 1.4em;
	font-weight: normal;
	border: 1px solid #A9B8C2;
	padding: 2px;
	width: 100%;
}

select {
	color: #333333;
	background-color: #FAFAFA;
	font-family: "Lucida Grande", Verdana, Helvetica, sans-serif;
	font-size: 1.1em;
	font-weight: normal;
	border: 1px solid #A9B8C2;
	padding: 1px;
}

option {
	padding: 0 1em 0 0;
}

option.disabled-option {
	color: graytext;
}

.rtl option {
	padding: 0 0 0 1em;
}

input.radio {
	border: none;
	background-color: transparent;
	float: left;
	margin-right:5px
}

input.radio.nf {
	float:none;
margin: 5px auto
}	

.post {
	background-color: white;
	border-style: solid;
	border-width: 1px;
}	

#postform .post, form[name="postform"] .post, #ucp .post, #srch .post, #mcp .post  {	
	width: 100%;
}

#postform textarea[name="message"], form[name="postform"] textarea[name="message"], #ucp textarea.post {	
	min-height: 300px;
}

.post.short {
width:40px !important	
}	

.icons p{
display:inline-block;
margin-right: 10px;
}	

.icons p input.radio {
	margin-right:1px
}

.btnbbcode {
	color: #000000;
	font-weight: normal;
	font-size: 1.1em;
	font-family: "Lucida Grande", Verdana, Helvetica, sans-serif;
	background-color: #EFEFEF;
	border: 1px solid #666666;
	margin-bottom: 3px;
}

.btnmain {
	font-weight: bold;
	background-color: #ECECEC;
	border: 1px solid #A9B8C2;
	cursor: pointer;
	padding: 1px 5px;
	font-size: 1.1em;
	margin: 3px 0;
}

.btnlite {
	font-weight: normal;
	background-color: #ECECEC;
	border: 1px solid #A9B8C2;
	cursor: pointer;
	padding: 1px 5px;
	font-size: 1.1em;
	margin: 3px 0;
}

.btnlite.nxt {
    margin-top: 10px
}

.btnfile {
	font-weight: normal;
	background-color: #ECECEC;
	border: 1px solid #A9B8C2;
	padding: 1px 5px;
	font-size: 1.1em;
	margin: 3px 0;
}

.helpline {
	background-color: #DEE3E7;
	border-style: none;
	font-size: 1.1em;
}


/* BBCode
 ------------ */
.quotetitle, .attachtitle {
	margin: 10px 5px 0 5px;
	padding: 4px;
	color: #333333;
	font-size: 0.85em;
	font-weight: bold;
}

.quotetitle .quotetitle {
	font-size: 1em;
}

.quotecontent, .attachcontent {
	margin: 0 5px 10px 5px;
	padding: 5px;
	border: 1px solid #D1D7DC;
	font-weight: normal;
	font-size: 1em;
	line-height: 1.4em;
	font-family: Verdana,Arial,Helvetica,sans-serif;
	background-color: #FEFEC3;
	color: #444;
}

.attachcontent {
	font-size: 0.85em;
}

.codetitle {
	margin: 10px 5px 0 5px;
	padding: 2px 4px;
	border-width: 1px 1px 0 1px;
	border-style: solid;
	border-color: #A9B8C2;
	color: #333333;
	background-color: #A9B8C2;
	font-family: "Lucida Grande", Verdana, Helvetica, Arial, sans-serif;
	font-size: 0.8em;
}

.codecontent {
	direction: ltr;
	margin: 0 5px 10px 5px;
	padding: 5px;
	border-color: #A9B8C2;
	border-width: 0 1px 1px 1px;
	border-style: solid;
	font-weight: normal;
	color: #006600;
	font-size: 0.85em;
	font-family: Monaco, 'Courier New', monospace;
	background-color: #FAFAFA;
	word-break: break-all;
}

.syntaxbg {
	color: #FFFFFF;
}

.syntaxcomment {
	color: #FF8000;
}

.syntaxdefault {
	color: #0000BB;
}

.syntaxhtml {
	color: #000000;
}

.syntaxkeyword {
	color: #007700;
}

.syntaxstring {
	color: #DD0000;
}

/* Hide block */
div.adapthide {
        border: 1px dashed #000099;
        background-color: #FFFFFF;
        margin: 0px 10px 5px 10px;
        padding: 5px 5px 5px 5px;
        font-size: 12px;
}

/* Private messages
 ------------------ */
.pm_marked_colour {
	background-color: #000000;
}

.pm_replied_colour {
	background-color: #A9B8C2;
}

.pm_friend_colour {
	background-color: #007700;
}

.pm_foe_colour {
	background-color: #DD0000;
}


/* Misc
 ------------ */
img {
	border: none;
}

.sep {
	color: black;
	background-color: #FFA34F;
}

table.colortable td {
	padding: 0;
}

pre {
	font-size: 1.1em;
	font-family: Monaco, 'Courier New', monospace;
}

.nowrap {
	white-space: nowrap;
}

.username-coloured {
	font-weight: bold;
}


a.link-new, a.link-new:visited { color: #000; }

#ya_partner_0, #ya_partner_1 {
margin:0 auto;
width:97%
}

.ban-top {
position: absolute;
left: 340px;
}


@media (max-width: 1200px) {  
  .thTopMenu {
    background: none;
}
ul.topNav li, ul.topNav li.last {
    height: auto;
    width: 16.5%;
	background: url("https://www.massage.ru/forum/styles/oldstylenew/theme/images/new/bg-menu.png") repeat-x scroll 50% 50% #ddd;
}
ul.topNav li a, ul.topNav li a:visited {
    line-height: normal;
    padding: 10px 0;
    background: url("https://www.massage.ru/forum/styles/oldstylenew/theme/images/new/bg-li.gif") no-repeat scroll right 50% transparent;
}
}

@media (max-width: 920px) {
ul.topNav li, ul.topNav li.last {
    width: 25%;
}
}

@media (max-width: 767px) {
  .anno-recent {margin-bottom: 20px}
  p.breadcrumbs, .pag {
	width: 100%;
    padding: 15px 10px;
    clear: both;
}
.ic a {margin:0 15px}
}

@media (max-width: 690px) {
ul.topNav li, ul.topNav li.last {
    width: 33%;
}	
.undefined {
	max-width:100% !important;
	height: auto
}
}

@media (max-width: 550px) {
ul.topNav li, ul.topNav li.last {
    width: 50%;
}	
}

@media (max-width: 470px) {
 .ads a {width: 100%;}
#menubar div {text-align: center;}
}

@media (max-width: 370px) {
#logodesc img {width:100%}
}


@media (min-width: 768px) and (max-width: 991px) {
  /* стили для sm-устройств */
}
@media (min-width: 991px) and (max-width: 1199px) {
  /* стили для md-устройств */
}
@media (min-width: 1200px) {

.ads {display:flex}
}