body {
	margin: 0;
	padding: 0;
	color: #555;
}

a  {
	color: #555;
	text-decoration: none;
}

#browseralert {
	background-color: #f2dede;
	margin: 0px;
	padding: 15px;
	text-align: center;
	color: #863617;
	border-bottom:	thin dashed;
}
#browseralert a {
	color: #863617;
	font-weight: bold;
}

#wrap {
	margin: 0 auto;
	padding: 30px 0px 20px 0px;
	width: 700px;
}

img {	border: none; }

.gallery { text-align: justify; }
.gallery_photo_div {
	max-width: 132px;
	height: 100px;
	margin: 1px;
	border: #C3BD7C 1px solid;
	text-align: right;
	overflow: hidden;
	display:inline-block;
	position: relative;
}
.gallery_photo_div:hover { box-shadow: 0px 0px 15px #888888; }
.gallery_photo_div img { min-height: 100px; }
.gallery:after{content:""; display: inline-block; width: 100%; height: 0;}

#myGalControl { text-align: right; }
#clearMyGal { cursor: pointer; }

/* ================ pagination ================ */

div.pagination {
	position: relative;
	padding:3px;
	margin:3px;
	text-align:center;
	font-size: 18px;
	line-height: 36px;
}
div.pagination a {
	padding: 4px 6px 4px 8px;
	margin: 0px 2px 0px 2px;
	border: 1px solid #ddd;
	text-decoration: none;
	color: #999;
}
div.pagination a:hover, div.pagination a:active {
	border: 1px solid #a0a0a0;
	background-color: #f0f0f0;
}
div.pagination span.current {
	padding: 4px 6px 4px 8px;
	margin: 0px 4px 0px 4px;
	border: 1px solid #d0d0d0;
	font-weight: bold;
	background-color: #eee;
	color: #777;
}

.gal_nav {
	position: absolute;
	display: block;
	width: 40px;
	height: 100%;
	opacity: 0.5;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	border: 0px!important;
	padding: 0!important;
	margin: 0!important;
}
.gal_nav:hover {
	background-color: #f2f2f2;
	opacity: 0.9;
}
#gal_prev {
	left: 0px;
	background-image: url(../images/photo_prev.png);
}
#gal_next {
	right: 0px;
	background-image: url(../images/photo_next.png);
}

/* =========== navigation ========= */

.nav {
	text-align: center;
	padding: 5px;
}
.navcenter {
	display: table;
	margin: 0px auto;
}
.nav a, .nav span {
	display: table-cell;
	vertical-align: middle;
	height: 28px;
	padding: 0px 10px 0px 10px;
	background-repeat: no-repeat;
}
.nav a {
	text-decoration: none;
	background-color: #eee;
	color: #707070;
	border-left: 1px solid #ccc;
	border-right: 1px solid #ccc;
}
.nav span {
	font-weight: bold;
	background-color: #ddd;
	color: #555;
}
.nav_itm:first-child {
	border-left: none;
	background-image: url(../images/ar_left.png)!important;
	background-position: left;
	padding-left: 20px;
}
.nav_itm:last-child {
	border-right: none;
	background-image: url(../images/ar_right.png)!important;
	background-position: right;
	padding-right: 20px;
}

.nav_itm.noPad { padding: 0px; }
.nav_itm.ar_right {
	border: none;
	background-image: url(../images/ar_right_g.png);
	background-position: right;
	padding-right: 20px;
}
.nav_itm.ar_left {
	border: none;
	background-image: url(../images/ar_left_g.png);
	background-position: left;
	padding-left: 20px;
}


/*************************************
 * Basic lightbox styles. Notice the
 * default 'display' is 'none'.
 */

.lightbox {
  /** Hide the lightbox */
  display: none;
  /** Apply basic lightbox styling */
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: 100%;
  text-align: center;
  top: 0;
  left: 0;
  background: #555;
  background: rgba(200,200,200,0.6);
}

.lightbox img {
  /** Pad the lightbox image */
	max-width: 90%;
	max-height: 80%;
	margin: auto;
	position: absolute;
	top: 0; left: 0; bottom: 0; right: 0;
	box-shadow: 0px 0px 30px #888888;
}

.lightbox:target {
  /** Show lightbox when it is target */
  display: block;
  /** Remove default browser outline style */
  outline: none;
}

/* ================================= */

#single_photo {
	margin-top: 20px;
	text-align: center;
	position: relative;
}

.photo_nav {
	position: absolute;
	display: block;
	width: 40px;
	height: 100%;
	opacity: 0.5;
	background-position: 50% 50%;
	background-repeat: no-repeat;
}
.photo_nav:hover {
	background-color: #f2f2f2;
	opacity: 0.9;
}
#photo_prev {
	left: 0px;
	background-image: url(../images/photo_prev.png);
}
#photo_next {
	right: 0px;
	background-image: url(../images/photo_next.png);
}


#image_codes li {	margin: 10px 0px 2px 0px; }
#image_codes input { width: 560px; }
label { font-weight: bold; }
#photo_extras, #download_max { text-align: center; }

#download_max_button {
	height: 44px;
	width: 310px;
	margin: 0px auto 10px auto;
	background: 10px 5px url(../images/download.png) no-repeat, linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%); /* W3C */
	padding: 20px 10px 0px 50px;
	border-radius: 5px;
	border: solid 1px silver;
}
#download_max_button:hover {
	background: 10px 5px url(../images/download.png) no-repeat, linear-gradient(to bottom, rgba(205,205,205,1) 0%,rgba(205,205,205,0) 100%); /* W3C */	
}
#download_max_button a {
	padding: 15px;
	font-weight: bold;
	text-decoration: none;
	text-shadow: 1px 1px 2px White;
	color: #555;
}

#share {
	text-align: center;
	padding-bottom: 10px;
}

#report { font-size: 14px; }
#report a { font-weight: bold; }

/* ======= tabs ======= */
.section {
	width: 630px;
	background: #EFEFEF;
	margin: 0px auto 20px auto;
}
ul.tabs {
	height: 28px;
	line-height: 25px;
	list-style: none;
	border-bottom: 1px solid #DDD;
	background: #FFF;
	padding-left: 140px;
}
.tabs li {
	float: left;
	display: inline;
	margin: 0 1px -1px 0;
	padding: 0 13px 1px;
	color: #777;
	cursor: pointer;
	background: #F9F9F9;
	border: 1px solid #E4E4E4;
	border-bottom: 1px solid #F9F9F9;
	position: relative;
}
.tabs li:hover {
	border: 1px solid #a0a0a0;
	background-color: #f0f0f0;
	padding: 0 13px;
}
.tabs li.current {
	border: 1px solid #d0d0d0;
	font-weight: bold;
	background-color: #eee;
	color: #777;
	padding: 0 13px 2px;
	border-bottom: 1px solid #EFEFEF;
}
.box {
	display: none;
	border: 1px solid #D4D4D4;
	border-width: 0 1px 1px;
	background: #EFEFEF;
	padding: 0 12px 2px;
}
.box.visible { display: block; }

/* ================================= */

#upload_form {
	height: 166px;
	width: 400px;
	margin: 20px auto;
	text-align: center;
	position: relative;
}
#upload_form #uploadFileForm { padding-top: 60px; }
#uploading { display: none; }

label.selectFileBtn input[type="file"] {
    position: fixed;
    left: -1000px;
}
.selectFileBtn {
	background: linear-gradient(to bottom, rgba(225,225,225,0) 0%,rgba(225,225,225,1) 100%);
	border-radius: 5px;
	font-weight: bold;
	text-decoration: none;
	text-shadow: 1px 1px 2px White;
	color: #555;
	padding: 10px 20px 10px 20px;
	text-decoration: none;
	border: solid 1px silver;
}
.selectFileBtn:hover {
	background: linear-gradient(to bottom, rgba(205,205,205,0) 0%,rgba(205,205,205,1) 100%);
}
#selectedHint {
	font-size: 12px;
	color: grey;
}
#upload_url {
	font-size: 16px;
	padding: 6px;
	width: 190px;
}


@keyframes bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
	40% { transform: translateY(-30px); }
	60% { transform: translateY(-15px); }
}
@-webkit-keyframes bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
	40% { transform: translateY(-30px); }
	60% { transform: translateY(-15px); }
}
.arrow {
	position: absolute;
	top: 10px;
	left: 35%;
	margin-left:-20px;
	width: 48px;
	height: 48px;
	background-image: url(../images/down_arrow.png);
	background-size: contain;
}
.bounce {
	animation: bounce 2s infinite;
	-webkit-animation: bounce 2s infinite;
}

/* ================================= */
.error {
	background-color: #FFCACA;
	border: 1px solid Red;
	border-radius: 5px;
	padding: 10px;
	text-align: center;
}

/* ================================= */
#ad_left, #ad_right {
	position: fixed;
	top: 0px;
	height: 100%;
	display: table;
}
#ad_left {
	left: 0px;
	width: 180px;
	background-color: #dfd;
}
#ad_right {
	right: 0px;
	width: 300px;
	background-color: #ddf;
	z-index: -1;
}
#ad_center {
	margin-left: -20px;
	height: 96px;
	width: 740px;
	background-color: #cde;
	text-align: center;
}
#ad_left .m, #ad_right .m {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
}

#ad_left, #ad_right, #ad_center {/**/
	display: none;
}
/*
@media only screen and (min-width:1060px) {
	#ad_center { display: none; }
	#ad_left { display: table;	}
}
@media only screen and (min-width:1204px) {
	#ad_right { display: table; }
}
/**/

/* ============ login form ============= */
#login_form {
	margin: 100px auto;
	padding: 10px;
	border: 7px solid Grey;
	width: 370px;
	height: 160px;
	text-align: right;
	background-color: #F4F4F4;
}
#login_form input {
	font-size: 24px;
	width: 300px;
	margin-bottom: 10px;
}
#login_form #login_btn {
	margin: 0 auto;
	font-size: 18px;
	width: 100px;
}
#login_form p {
	font-size: 12px;
	font-weight: bold;
	color: Grey;
	text-align: center;
}

/* ================================= */
h1 { font-size: 18px; }
.hint {
	font-size: 12px;
	color: grey;
}
.about {
	font-size: 14px;
	text-align: justify;
	background-color: #EFEFEF;
	border: 1px solid Silver;
	padding: 10px;
	border-radius: 5px;
}
.about a { font-weight: bold; }
.logo_caption {
	background-color: #888;
	border-radius: 5px;
}
.logo_caption .caption {
	color: White;
	margin: 0;
	padding: 5px 0px 5px 25px;
	font-size: 20px;
}
.logo_caption .caption a {
	color: White; 
	text-decoration: none;
}