/* The Ad */

.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;
}

.ad{
	position: relative;
	float:right;
	border:1px solid blue;
	margin: 10px;
	border-radius: 2%;
	box-shadow:2px 2px 5px #456;
	z-index: 1; 
	max-width:700px;
	height: 600px;
}

.ad.size1{
	width: 200px;
	height: 250px;
	overflow:hidden;
}

.ad.size2{
	width:95%;
	height: 700px;
	overflow:auto;
	font-size:1.2em;
}
.ad .detail{
	list-style:none;
	width: 200px;
	margin: 0px 20px;
	padding: 15px;
	position: absolute;
	bottom: 20px;
	background-color:white;
}

.adMeta{
	font-size:0.8em;
	color: #555;
}

.ad .lnk{
	position: absolute;
	bottom: 0;
	background-color:white;
}

/* Slideshow container */
.slideshow-container {
  max-height: 200px;
  position: relative;
  margin:20px auto;
}

.prev, .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;
}
.prev{left:0px}
.next{right:0px}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

@keyframes adZoom {
  from {transform: scale(0)} 
  to {transform: scale(1)}
}

.ad.size2 .pics img{
	margin-top:30px;
	width:180px;
}

.ad.size2 .adtext{
	overflow:auto;
}

.ad .toggle{
	float:left;
	background-color:blue;
	color: white;
	font-weight:bold;
	font-size: 1.5em;
	line-height:0.8em
}

.ad#adform{
	float:none;
}

#formhead{
	text-align:center;
	margin-bottom:15px;
}

.formtbl .tumb img{
	height: 50px;
}

#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: 100px auto;
	padding: 20px 10px;
	width: 350px;
	min-height:600px;
	overflow: auto;
	border:1px solid blue;
	border-radius: 5px;
	box-shadow:2px 2px 5px #456;
}

#regForm input:not([type='checkbox']),
#regForm select,
#regForm textarea
{
	width: 300px;
	padding:10px;
	margin:5px 15px 15px 10px;
}

#regForm input[type='checkbox'] {
	transform:scale(2);
}

#inspect{
	direction:ltr;
	width:70%;
	padding:5%;
	margin:5%;
	border:1px dotted;
}


@media (max-width:600px){
	.ad.size2{
		margin: 2px;
		width: 100%;
	}
}