@charset "UTF-8";
/* CSS Document */

body{
	text-align: center;
	min-width:780px;
	margin: 0;
	padding: 0;
	color: #555555;
	margin-top:10px;
}
#wrapper{
	width: 750px;
	margin: 0 auto;
	text-align: left;
}
#frame{
	border-left-color:#000000;
	border-left-style:solid;
	border-left-width:1px;
	border-right-color:#000000;
	border-right-style:solid;
	border-right-width:1px;
	border-bottom-color:#000000;
	border-bottom-style:solid;
	border-bottom-width:1px;
	_overflow: hidden;/*แก้ปัญหา ie ที่ไม่มี border ตรงส่วนที่ float*/
	_width: 99.7%;/*แก้ปัญหา ie ที่ไม่มี border ตรงส่วนที่ float*/
	height:100%;
}
body{
	font-size: 12px;
	line-height: 2em;
	font-family: tahoma;
}
h3{
	font-size:125%;
	margin:0;
	color:#544539;
	text-align:center;
	padding:5px 0 3px 0;}
.clearboth{
	clear:both;}
	
/* mainNav */	
#mainNav{
	background:url(../img/upperCorner.png) top center no-repeat #000000;
	padding:15px;
	color:#FF7701;
}

#mainNav a, #p_header a{
	text-decoration:none;
	font-size:125%;
	font-weight:bold;
	padding-left:15px;
	margin:0;
}
#p_header a.ad{
	float:right;}
#mainNav  a:link {color:#fff;}     /* unvisited link */
#mainNav  a:visited {color:#fff;}  /* visited link */
#mainNav  a:hover {color:#FFFF00;}   /* mouse over link */
#mainNav  a:active {color:#fff;}   /* selected link */	

/*สำหรับลิ้งค์ที่ด้านบนซ้าย สำหรับโชว์ ในกรณีที่ไม่ได้ล๊อกอิน*/
#mainNav span a.login{color:#FF7701; text-decoration:none; padding-left:0;}
#mainNav span a.login:hover{color:#FF7701; text-decoration:underline;}

#p_look #mainNav .profile, 
#p_activity #mainNav .profile,
#p_lifestyle #mainNav .profile,
#p_family #mainNav .profile,
#p_mymatch1 #mainNav .profile,
#p_mymatch2 #mainNav .profile,
#p_intro #mainNav .profile,
#p_photo #mainNav .profile,
#p_photoupload #mainNav .profile,
#message #mainNav .message,
#search #mainNav .search,
#searchresult #mainNav .search,
#mail #mainNav .mail,
#main #mainNav .main,
#invite #mainNav .invite{
	color:#FFFF00;
	text-decoration:underline;}

	
/*p_header*/
#p_header{
	padding:15px;}
	
#p_header img{
	border:none;}

#p_header a:link {color:#c2c2c2;}     /* unvisited link */
#p_header a:visited {color:#c2c2c2;}  /* visited link */
#p_header a:hover {color:#0044F1;}   /* mouse over link */
#p_header a:active {color:#c2c2c2;}   /* selected link */
	

#p_look #p_header .wording, 
#p_activity #p_header .wording,
#p_lifestyle #p_header .wording,
#p_family #p_header .wording,
#p_mymatch1 #p_header .wording,
#p_mymatch2 #p_header .wording,
#p_intro #p_header .wording,
#p_photo #p_header .photo,
#p_photoupload #p_header .photo{
	color:#0044F1;}

#tab{
	float:left;
	width:100%;
	font-weight: bold;
	font-size:130%;
	background: url("../img/tabBg.jpg") repeat-x bottom;
	line-height:normal;
}

#tab ul{	
	margin:0;
	padding:10px 10px 0px 15px;
	list-style: none;	
}

#tab li{
	float: left;
	background:url(../img/tab_normal_left.jpg) no-repeat left top;
	margin:0;
	padding:0 0px 0px 10px;
}

#contact #tab li, #faq #tab li{
	margin-right:10px;}
	
#tab ul li a {
    display:block;
	background:url(../img/tab_normal_right.jpg) no-repeat right top;
	padding: 6px 15px 4px 6px;
}

#tab a:link {color: #bbb; text-decoration:none;}     /* unvisited link */
#tab a:visited {color: #bbb; text-decoration:none;}  /* visited link */
#tab a:hover {color: #636363; text-decoration:none;}   /* mouse over link */
#tab a:active {color: #000; text-decoration:none; }   /* selected link */

#p_look #tab li.me, 
#p_activity #tab li.me,
#p_lifestyle #tab li.me,
#p_family #tab li.me,
#p_mymatch1 #tab li.mymatch,
#p_mymatch2 #tab li.mymatch,
#p_intro #tab li.intro,
#p_photo #tab li.photo,
#p_photoupload #tab li.photo,
#contact #tab li.contact, 
#faq #tab li.faq{
   background:url(../img/tab_on_left.jpg) no-repeat left top;
}

#p_look #tab li.me a, 
#p_activity #tab li.me a,
#p_lifestyle #tab li.me a,
#p_family #tab li.me a,
#p_mymatch1 #tab li.mymatch a,
#p_mymatch2 #tab li.mymatch a,
#p_intro #tab li.intro a,
#p_photo #tab li.photo a,
#p_photoupload #tab li.photo a,
#contact #tab li.contact a,
#faq #tab li.faq a{
	background:url(../img/tab_on_right.jpg) no-repeat right top;
	padding-bottom:5px;
	color: #636363;
	cursor:default;
}

/*************/
#p_link{
	width: 170px;
	padding:5px 5px 0 0;
	margin:0;
	float: right;
}

#p_link ul{
	width:auto;
	padding: 0;
	margin:0 0 0 0px;
	border:#4D4D4D solid 1px;
	list-style-type:none;
}

#p_link ul li{
	width:auto;
	border-top: #4D4D4D solid 1px;
	text-align:left;
	}
	
#p_link  .first{
	background-color:#FF7701;
	color:#fff;
	font-weight:bold;
	font-size: 125%;
	padding: 3px;
	border-top:none;}
		
#p_link  .linktopic{
	background-color:#FF7701;
	color:#fff;
	font-weight:bold;
	font-size: 125%;
	padding:3px;
}
	
#p_link a{
	padding: 0 0 0 25px;
	font-size:110%;
}

#p_link a:link {color:#555555; text-decoration:none;}     /* unvisited link */
#p_link a:visited {color:#555555; text-decoration:none;}  /* visited link */
#p_link a:hover {color: #555555; text-decoration: underline;}   /* mouse over link */
#p_link a:active {color: #555555; text-decoration:none;}   /* selected link */	


#p_look #p_link a.look, 
#p_activity #p_link a.activity,
#p_lifestyle #p_link a.lifestyle,
#p_family #p_link a.family,
#p_mymatch1 #p_link a.mymatch1,
#p_mymatch2 #p_link a.mymatch2,
#p_intro #p_link a.intro{
	color:#FF7701;
	text-decoration:underline;
	font-weight:bold;}

/*myprofile*/

#myprofile{
	padding-left:20px;
	width:510px;
}

#myprofile h2{
	position: relative;
	top:20px;
	padding-bottom:20px;
	color:#ff7701;
	font-size:165%;
	border-bottom: #ccc solid 1px;
}

#myprofile span.required{
	color:#D32201;
	font-weight:bold;
	margin-left:5px;}

#myprofile h2 span{
	font-size:65%;
	font-weight:100;
	color:#555;
	margin-left:25px;}

#myprofile .paddingtop{
	padding-top:15px;}
	
#myprofile .paddingbottom{
	padding-bottom:10px;}	
	

#myprofile hr {
	border: none 0;
	border-top: 1px solid #ccc;/*the border*/
	width: 100%;
	height: 1px;/*whatever the total width of the border-top and border-bottom equal*/
	margin:15px 0;
	padding:0;
}

#p_mymatch1 #myprofile hr, #p_mymatch2 #myprofile hr {
	border: none 0;
	border-top: 1px solid #ccc;/*the border*/
	width: 100%;
	height: 1px;/*whatever the total width of the border-top and border-bottom equal*/
	margin:15px 0 5px 0;
	padding:0;
}

#myprofile p{
	padding: 0;
	margin:0;
	}
	
#myprofile .bigfont{
	font-size:125%;
	font-weight:bold;}
	
#myprofile .bigfont_block{
	font-size:125%;
	font-weight:bold;
	display:block;
	padding-bottom:10px;
	margin-bottom:0px;
}

#myprofile  td{
	width:33.33%;}	
	
#myprofile table{
	width:510px;
	margin-top:0;
	table-layout:fixed;}	
	
#myprofile a:link {color: #0044F1; text-decoration:none;}     /* unvisited link */
#myprofile a:visited {color: #0044F1; text-decoration:none;}  /* visited link */
#myprofile a:hover {color: #0044F1; text-decoration:none;}   /* mouse over link */
#myprofile a:active {color: #0044F1; text-decoration:none; }   /* selected link */

.important{
text-align:center;
background-color:#eee;
}
.important span{
	color:#ff7701;
	margin-right:40px;
}
div.important label{
	margin-left:5px;
	color:#555;}
textarea{
	font-family: Tahoma, sans-serif;
	font-size:100%;
	color:#555;}
#footer{
	clear:both;
	margin:15px 0 0 0;
	padding:5px;
	text-align:center;
	background-color:#FF7701;
	color:#FFF;}		
#footer a{
	padding:0 10px;
	color:#FFF;
	text-decoration:none;
	}	
#footer a:hover{
	text-decoration:underline;}	
input [type="text"]{
	font-family:tahoma;
	color:#555;
	font-size:100%;}
/* surrounding margins (optional) This code is shared for making round corners*/
.round{
margin-bottom:5px;
}
.round .c{
/* inner content padding */
padding:0 10px 0 10px;
border-top:0;
border-bottom:0;
border-style:solid;
}
.round .t, .round .b, .round .t b, .round .b b{
display:block;
overflow:hidden;
}
.round .t b, .round .b b{
float:right;
width:50%;
}
.round .t .r{
background-position:top right;
}
.round .b .r{
background-position:bottom right;
}
.round .b{
background-position:bottom left;
}
.round .br{
clear:both;
display:block;
overflow:hidden;
height:0px;
}
/*end of code making round corner*/		