.footer,
.innerfooter {
	font-size:12px;
}
.innerfooter {
	padding: 10px;
}

p { margin: 0; }

.navigation {
	margin: 16px 0;
}

/* three columns */
div.magnific {
	margin: 20px 25px;
}

/* the space under the placeholder */
.magnific_placeholder .image > div {
	vertical-align: bottom;
}
.facebook-voting .thumb-buttons {
	text-align: center;
}

/* responsiveness for all graphics (header, fangate, ...), maybe too much gfx affected */
img {
	/* width: auto; */
	height: auto;
	max-width: 100%;
}

/* no placeholder for small screens (1 picture column) */
@media screen and (max-width: 499px) {
	div.magnific_placeholder { display: none; }
}

/* placeholder thumb buttons as high as schare/vote buttons */
.facebook .magnific_placeholder .thumb-buttons {
    height: 38px;
}

/* correct box-shadow (will affect current galleries) */
.image { box-shadow: none; }
.image img,
.magnific_placeholder .image > div {
	box-shadow: 0px 0px 3px 2px #877474;
}

.navigation {
	border-bottom: 4px solid #870D0D;
	padding: 0 1em;
}
.navigation .ui-button {
	border: 0 none;
	border-bottom-left-radius: 0px;
	border-bottom-right-radius: 0px;
}
.navigation .ui-state-default {
	color: #000000;
	background: #EFEFEF;
}
.navigation .ui-state-focus,
.navigation .ui-state-active,
.navigation .ui-state-hover {
	color: #FFFFFF;
	background: #870D0D;
}

/* voting and toplist styles */
/* in gallery */
.votecount .votes {
	padding: 0.2em 0.5em;
	font-weight: bold;
	color: #870D0D;
	background: #EFEFEF;
	position: absolute;
	right: -2px;
	top: -0.8em;
}
/* in toplist */
div.voting-toplist {
	text-align: left;
}
.voting-toplist div.magnific {
	display: block;
}
.voting-toplist .votecount {
	/* position: relative; z-index: -1; */
	color: #FFFFFF;
	background: #870D0D;
	padding: 0.5em;
	padding-left: 220px;
	font-size: 1.2em;
	font-weight: bold;
}
.voting-toplist .votecount .votes {
	color: #FFFFFF;
	background: none;
	/* position: static;
	float: right;
	padding: 0; */
	position: absolute;
	right: 0;
	top: 0;
	padding: 0.5em; /* padding-top/right/bottom: inherit; */
}
.voting-toplist .image {
	margin-top: -2em;
	margin-left: 0.5em;
	display: inline-block;
}
.voting-toplist .thumb-buttons {
	margin-left: 220px;
	position: absolute;
	top: 50%;
	/* bottom: 40px; */
	left: 0;
}
.voting-toplist .thumb-buttons > * {
	margin-left: 20px;
	margin-bottom: 10px;
	display: inline-block;
}
/* smaller screen, slightly other positioning headers */
@media screen and (max-width: 490px) and (min-width: 390px) {
	.voting-toplist .votecount .voting-place {
		display: block;
	}
	.voting-toplist .votecount .votes {
		display: block;
		float: none;
		position: static;
		padding: 0;
	}
	.voting-toplist .image {
		margin-top: -3.5em;
	}
	.voting-toplist div.magnific { min-height: 175px; }
}
@media screen and (max-width: 421px) {
	.voting-toplist .thumb-buttons > * {
		margin-left: 0;
	}
}
/* screen too small: reposition everything under each other */
@media screen and (max-width: 389px) {
	.voting-toplist .votecount { padding: 0.5em; }
	.voting-toplist .image { margin: 0.5em auto; display: block; text-align: center; }
	.voting-toplist .thumb-buttons { position: static; padding: 0; margin: auto; top: auto; left: auto; }
}

/* todo: default style for jquery buttons (vote and share) */



/* hide date in header */
.magnific .picture-date {
	display: none;
}

/* strip/gif in codeportal in single line */
.codePortal .magnific.picture-set-strip,
.codePortal .magnific.picture-set-gif {
	display: block;
}
.codePortal .magnific.picture-set-strip .thumb-buttons,
.codePortal .magnific.picture-set-gif .thumb-buttons {
	width: 200px;
	margin: auto;
	/* text-align: center; */
}
/* in facebook code portal, two lines of pictures */
.facebook-codePortal div.magnific {
	/* margin: 20px 38px; */
}
/* in facebook code portal, two lines of pictures */
.facebook-codePortal .magnific-all {
	width: 500px;
	margin: auto;
}
.thumb-buttons {
	/* text-align: center; */
}

/* reset default.css: no pagination by window size */
@media screen and (max-width: 400px) {
	#pagination-top { display:block; }
	#pagination-bottom a { width:auto; }
	.dots { width:auto; display:inline-block; }
}


/* special Flash-U styles */
body {
	font-size: 16px;
	font-family: Verdana,Arial,sans-serif;
	background: #EEEEEE;
	color: #000000;
}
a, a:active, a:focus, a:visited {
	/* color:#870D0D; */
	color:#A6131C;
}

.image img,
.magnific_placeholder .image > div {
	/* link color -> half saturation, half brighness -> get new rgb values -> 0.5 alpha */
	box-shadow: 0px 0px 3px 2px rgba(0,0,0, 0.5);
}

/* a.ui-state-default, */
.ui-state-default {
	color: #000000;
	background: #FFFFFF;
/* 	border-radius: 5px;
	border: 2px solid #A6131C; */
}
/* a.ui-state-hover,
a.ui-state-focus,
a.ui-state-active, */
.ui-state-hover,
.ui-state-focus,
.ui-state-active {
	color: #FFFFFF;
	background: #A6131C;
}
.magnific-all .ui-button-text-only .ui-button-text,
.magnific-all input.ui-button,
.fangate-content .ui-button-text-only .ui-button-text,
.fangate-content input.ui-button {
	/* buttons in content, but not navigation */
	/* padding: 0.6em 0.3em; */
}
.thumb-buttons > * {
	/* margin-left: 0.3em;
	margin-right: 0.3em; */
}

.pagination .ui-state-default,
.pagination .dots {
    color: #A6131C;
}
.pagination .ui-state-hover,
.pagination .ui-state-focus,
.pagination .ui-state-active {
	color: #000000;
}
.pagination .ui-button + .ui-button {
	border-left: 1px solid #A6131C;
}
@media screen and (max-width: 400px) {
	.pagination .ui-button + .ui-button {
		border-left: 1px solid #A6131C;
	}
}
#pagination-top, #pagination-bottom {
	/* margin-top: 10px;
    background-color: #FFFFFF; */
	background: #EEEEEE;
	background: transparent;
}
.votecount .votes {
	color: #A6131C;
	background: #FFFFFF;
	box-shadow: 0px 0px 3px 2px rgba(0,0,0, 0.5);
	top: -14px;
	right: -4px;
/* 	border: 1px solid #A6131C;
	border-radius: 3px; */
}
.voting-toplist .votecount {
	color: #FFFFFF;
	background: #A6131C;
}
.voting-toplist .votecount .votes {
	color: #FFFFFF;
	background: transparent;
	box-shadow: none;
	/* border: 0 none; */
}
.navigation {
	border-bottom: 4px solid #A6131C;
}
.navigation .ui-state-default {
	color: #000000;
	background: #FFFFFF;
}
.navigation .ui-state-focus,
.navigation .ui-state-active,
.navigation .ui-state-hover {
	color: #FFFFFF;
	background: #A6131C;
}

.login-line {
	position: relative;
	/* right: 10px;
	bottom: 44px; */
	font-size: 12px;
	text-align: right;
	padding-right: 44px;
}
.login-line > a {
	color: #888;
	text-decoration: none;
}
#login_dialog {
	background: #fff;
	border: 1px solid #888;
	padding: 10px;
	width: 350px;
	position: absolute;
	bottom: 0px; right: 0px;
	z-index: 10;
}
#login_dialog .close-btn {
	position: absolute;
	top: 5px;
	right: 5px;
	color: #888;
	border: 1px solid #888;
	text-decoration: none;
	width: 1em;
	height: 1em;
	line-height: 1em;
	vertical-align: middle;
	text-align: center;
}

/* the optional fangate stuff */
#optionalFangate {
	position: absolute;
	top: 0;
	left: 0;
	max-width: 100%;
}
/* .mobile #optionalFangate { width: 100%; } */
/* .mobile #optionalFangate .header { width: 100%; } */
/* .mobile #optionalFangate ~ .footer { padding-top: 4%; } */
.likeHeader {
	position: absolute;
	top: 0;
	left: 0;
	width: 77%;
	padding-top: 44%;
	/* margin-top: -30px; */
	text-align: center;
	/* z-index: 10; */
}
.likeHeader .fb-like { margin-top: -10px; /* -30px for box-count, -10px for button-count */ }
.likeHeader .fb-login-button { margin-top: -10px; }

.mobile .likeHeader {
/* 	text-align: right;
	padding-top: 0; */
	/* padding-top: 63%; */
}
.mobile .likeHeader .fb-like,
.mobile .likeHeader .fb-login-button { margin-top: 0; }

.alreadyLiked {
	position: absolute;
	bottom: 0;
	right: 0;
	/* width: 100%; */
	padding-bottom: 3%;
	padding-right: 4%;
	text-align: right;
	/* z-index: 1; */
}
.mobile .alreadyLiked {
	/* left: 0;
	padding: 0;
	padding-bottom: 18%;
	width: 100%; */
	/* padding-bottom: 3%;
	padding-right: 4%; */
}
.alreadyLiked .unattracting-button {
	margin-bottom: -11px;
}
@media screen and (max-width: 440px) {
	/* .likeHeader { padding-top: 25%; } */
	/* .alreadyLiked { padding-bottom: 25%; } */
}
.unattracting-button {
	/* font-size: 0.8em; */
	/* background-color: #D3E6B9 !important;
	border: 0 none !important; */
}
.mobile .unattracting-button { /* font-size: 0.8em; */ }
.fangate-content .button {
	/* this are image buttons with img tags inside */
	border: 0 none;
	border-radius: 0;
	background: transparent;
	padding: 0;
}
.fangate-content .button .ui-button-text {
	padding: 0;
}
.fangate-content {
	position: relative;
}
#gallery-link {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 66%;
	text-align: center;
	padding-bottom: 37%;
	/* padding-right: 4%; */
}
#gallery-link .button {
	margin-bottom: -18px;
}
.mobile #gallery-link {
	/* padding-bottom: 18%; */
}
.mobile #gallery-link .button {
	/* margin-bottom: -1em; */
}

/* .fangate-content { min-height: 300px; } */

.toplist-nav { width: 49%; }

.fangate-content,#aeFacebookPage { max-width:820px; /* margin: auto;*/ }
