/* searchForm*/

#searchForm{
	border:1px solid red;
	margin:10px;
	padding:10px;
	text-align:center;
}

.catelinks ,.sublinks{
	display: block;
	border: 1px solid blue;
	width:150px;
	height:200px;
	float: right;
	padding:10px;
	margin:10px;
	font-size:1.5em;
	text-align:center;
	border-radius:10px;
	box-shadow:2px 2px 5px #567;
}

.catelinks img, .sublinks img{
	width:100px;
	margin-top:20px;
}

.sublinks{
	color: green;
}
/* Common for narrow and wide */
.ad{
	position: relative;
	border:1px solid blue;
	border-radius: 2%;
	box-shadow:2px 2px 5px #456;
	direction: ltr;
}
.ad .lnk{
	position: absolute;
	bottom: 0;
	background-color:white;
}
.ad i{
	font-size:0.8em;
	color:green;
	font-style:none;
}
.slideshow-container .prev, .slideshow-container .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  text-shadow:3px 3px 3px black;
  z-index:3;
}
.slideshow-container .prev{left:0px}
.slideshow-container .next{right:0px}

.slideshow-container .prev:hover, 
.slideshow-container .next:hover {
  background-color: rgba(0,0,0,0.8);
}
#profnav {
	position:fixed;
	bottom:20px;
	overflow:auto;
}

#profnav ul{
	list-style:none;
	text-align:center;
	
}
#profnav ul li{
	float:left;
	color: blue;
	background-color:white;
	padding:3px;
	margin:3px;
	border:1px solid;
	z-index:120;
}

/* For wide screen */
@media (min-width:501px){

.size1{
	width: 230px;
	height: 320px;
	float:right;
	margin: 20px;
	overflow:hidden;
}
.size1 .adMeta{
	position:absolute;
	top:3px;
	left:25px;
	text-shadow: 2px 2px white;
	z-index:4;
}
.size1 .detail,.size1 .aboutme {
	display:none;
}
.size1 .slideshow-container{
	position:absolute;
	top:0;
	width: 100%;
	min-height:200px;
}
.size1 .slideshow-container img{
	position:absolute;
	top:0;
	left:0;
	width: 100%;
	z-index:1;
}
.size1 .brief{
	background-color:white;
	font-size:1.4em;
	position:absolute;
	top:80%;
	right:5%;
	text-align:center;
	width: 90%;
	z-index:5;
}
.size1 .lnk{
	z-index:8;
}


.size2{
	min-width:50%;
	max-width: 60%;
	min-width: 400px;
	height: 750px;
	margin:0px auto;
	background-color:white;
	z-index:11;
	box-shadow:2px 2px 200px 100px #222;
	animation: adZoom 0.5s;
}
@keyframes adZoom {
  from {transform: scale(0)} 
  to {transform: scale(1)}
}

.size2 .slideshow-container{
	position:absolute;
	top:20px;
	right:10px;
	width: 60%;
	min-height:200px;
}
.size2 .slideshow-container img{
	position:absolute;
	top:10;
	left:0;
	width: 100%;
	max-height:500px;
	z-index:1;
}
.size2 .detail{
	list-style:none;
	width: 49%;
	margin: 0px 5px;
	padding: 6px;
	position: absolute;
	top: 50px;
	background-color:white;
	border-top-right-radius: 70px;
}
.size2 .brief{
	font-size:1.4em;
	position:absolute;
	top:60%;
	text-align:right;
	text-shadow:3px 3px white;
	width: 90%;
	z-index:5;
}


.size2 .aboutme{
	width: 49%;
	margin: 0px 10px;
	padding: 10px;
	position: absolute;
	bottom: 20px;
	right: 0px;
	background-color:white;
}
.size2 #msgform{
	display:block;
	position: absolute;
	top:70%;
	width:40%;
	padding:6px;
}

.size2 #msgform textarea{
	width:100%;
	height:100px;
	padding:5px;
}

.size2 .lnk{
	display:none;
}

}

/* For narrow screen */
@media (max-width:500px){
	
.size1{
	float:;
	width: 92%;
	height:500px;
	float:right;
	margin: 20px;
	overflow:hidden;
}
.size1 .adMeta{
	position:absolute;
	top:3px;
	left:25px;
	text-shadow: 2px 2px white;
	z-index:4;
}
.size1 .slideshow-container{
	position:absolute;
	top:0;
	width: 100%;
}
.size1 .slideshow-container img{
	position:absolute;
	top:0;
	left:0;
	width: 100%;
	z-index:1;
}
.size1 .detail,.size1 .aboutme {
	display:none;
}
.size1 .brief{
	font-size:1.4em;
	position:absolute;
	top:80%;
	text-align:center;
	background-color:white;
	width: 100%;
	z-index:5;
}
.size1 .lnk{
	z-index:8;
}

/* size2: detailed, narrow */
	
.size2{
	position:relative;
	float:none;
	width: 100%;
	height:800px;
	background-color:white;
	z-index:11;
	box-shadow:2px 2px 200px 100px #222;
	animation: adZoom 0.5s;
	overflow:auto;
}
@keyframes adZoom {
  from {transform: scale(0)} 
  to {transform: scale(1)}
}
.size2 .slideshow-container{
	position:relative;
	top:0;
	text-align:center;
	width: 90%;
	height:350px;
	overflow:hidden;
}
.size2 .slideshow-container img{
	min-height:300px;
	max-height:400px;
	z-index:1;
}

.size2 .brief{
	font-size:1.4em;
	position:absolute;
	top:44%;
	width: 200px;
	right:20px;
	z-index:5;
	background-color:white;
}
.size2 .detail{
	position:absolute;
	top:450px;
	left:10px;
}
.size2 .aboutme {
	position:relative;
	width:50%;
	float:right;
	bottom:-80px;
	right:0px;
}

.size2 #msgform{
	display:block;
	position:relative;
	width:50%;
	float:right;
	bottom:-280px;
	right:-200px;
}
.size2 .lnk{
	display:none;
}

}

.ad#adform{
	float:none;
}

#formhead{
	text-align:center;
	margin-bottom:15px;
}
.tumb img{
	height: 70px;
}

#pmsg{
	text-align:center;
	font-size:0.7em;
	padding:10px;
	color:red;
}

.formtbl label{
	color:green;
}

input[type="checkbox"]{
	width:10%;
}

#regForm {
	display: block;
	margin: 10px auto;
	padding: 10px;
	width: 350px;
	min-height:550px;
	overflow: auto;
	border:1px solid blue;
	border-radius: 5px;
	box-shadow:2px 2px 5px #456;
}

#regForm input:not([type='checkbox']),
#regForm select,
#regForm option,
#regForm textarea
{
	width: 300px;
	padding:10px;
	margin:5px 15px 15px 10px;
}



#regForm input[type='checkbox'],
#regForm input[type='radio']
{
	transform:scale(2);
}

#inspect{
	direction:ltr;
	width:70%;
	padding:5%;
	margin:5%;
	border:1px dotted;
}
