/*
-----------------------------------------------
	www.agoodbook.de
Design: www.kuchenbeiser.de
Coding: www.simonmalz.com
----------------------------------------------- */


/*		R E S E T
----------------------------------------------- */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

body {
	line-height: 1;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

*::-moz-selection {
	background: #ccc;
}

*::selection {
	background: #ccc;
}

:focus, a {
	-moz-outline-style: none;
	outline: none;
}

html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

em, i {
	font-style: italic;
}


/*		C U S T O M   I C O N S
----------------------------------------------- */

@font-face {
font-family: 'agb_icons';
src: url('fonts/a_good_book_icons.eot');
src: url('fonts/a_good_book_icons.eot?#iefix') format('embedded-opentype'),
     url('fonts/a_good_book_icons.woff') format('woff'),
     url('fonts/a_good_book_icons.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}


/*		L I N K S
----------------------------------------------- */

a:link, a:visited, .link {
	color: #b9b9b9;
	text-decoration: none;
    cursor: pointer;
}

a:hover, a:active, .link:hover {
	color: #222;
}


/*		I N D E X
----------------------------------------------- */

body {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 25px;
	letter-spacing: 1px;
	word-spacing: -1px;
	line-height: 30px;
	background: #fff;
	color: #222;
	text-align: center;
}

#header {
	margin: 33px 0 22px 0;
	min-width: 720px;
}

h1 {
	min-width: 180px;
	white-space: nowrap;
}

#books {
	clear: both;
	margin-top: 60px;
}

.bk {
	width: 200px;
	height: 300px;
	display: inline-block;
	margin: 0 16px 0 16px;
	position: relative;
}

.bk a {
	display: table;
	width: 200px;
	height: 260px;
}

.si {
	position: absolute;
	left: 0;
	top: 0;
	width: 200px;
	height: 200px;
}

.si img {
	max-width: 200px;
	max-height: 200px;
	width: auto;
	height: auto;
	filter: grayscale(1);
}

.in {
	height: 200px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.ns {
	display: none;
}

.bt {
	width: 200px;
	height: 200px;
	display: block;
	background: #fff;
	position: absolute;
	left: 0;
	top: 0;
	margin-bottom: 17px;
	opacity: 0;
}

a:hover .bt {
	color: #222;
	opacity: 1;
}

.ei {
	display: none;
}

.bt span {
	width: 180px;
	height: 195px;
	padding: 0 10px 5px 10px;
	display: table-cell;
	vertical-align: middle;
	font-size: 15px;
	line-height: 20px;
}

.bk .sn {
	display: block;
	margin-top: 216px;
}

.bk small {
	display: block;
	font-size: 15px;
	position: relative;
	top: -4px;
}

.zo {
	color: #fff;
}

.bk em {
	display: block;
	font-size: 15px;
	opacity: 0;
	position: relative;
	top: -4px;
}

.btx {
	width: 750px;
	text-align: center;
	font-size: 25px;
	line-height: 33px;
	padding: 10% 0;
}

.lefty {
	text-align: left !important;
}

#aba {
	background: #000;
	margin-bottom: 50px;
}

#aba .bt {
	background: #000;
}

#aba a:hover .bt {
	color: #fff;
	opacity: 1;
}

#aba a:hover, #aba a:active, #aba .link:hover {
	color: #fff;
}

.blk {
	color: #fff;
}

.blk a:hover, .blk .link:hover {
	color: #fff;
}

.blk .zo {
	color: #000;
}


/*		P A G E S
----------------------------------------------- */

#content {
	width: 840px;
	margin: 66px auto 100px auto;
	text-align: left;
}

#content p {
	margin-right: 20px;
	margin-bottom: 30px;
	margin-left: 40px;
}

#algo {
	text-align: left;
	margin-top: 10px;
	margin-bottom: 30px !important;
}

#copy {
	font-size: 15px;
	line-height: 20px;
	text-align: left;
	margin-top: 6px;
}

#data {
	margin-right: 40px;
	margin-bottom: 30px;
	margin-left: 40px;
	text-align: left;
	font-size: 15px;
	clear: both;
}

#data table {
	width: 100%;
	margin: 0 auto;
}

#data table td a {
	display: block;
	width: 100%;
	height: 100%;
}

#data th, #data td {
	line-height: 20px;
	padding: 1px 10px 0px 0;
	border-bottom: 1px solid #fff;
}

#data th {
	color: #222;
	padding-bottom: 21px;
	text-align: left;
}

#data th:hover {
	color: #b9b9b9;
	cursor: pointer;
}

#sorttable_sortrevind, #sorttable_sortfwdind {
	color: #222;
	font-family: "agb_icons";
}

#data tr:hover td {
	border-bottom: 1px solid #222;
	cursor: pointer;
}

#data td a {
	color: #222;
}

.dr {
	text-align: right !important;
	padding-right: 30px !important;
}

.ptitle {
	text-align: center;
	padding-right: 20px;
}

.pimg {
	text-align: center;
	font-size: 15px;
	line-height: 20px;
	padding: 30px 20px 20px 0;
}

.pimg span {
	display: block;
	margin-top: 10px;
}


/*		A   G O O D   B O O K
----------------------------------------------- */

#abook {
	margin: 0 auto;
	max-width: 100%;
	max-height: 100%;
}

#nav {
	width: 200px;
	margin-left: 40px;
	float: left;
	text-align: left;
	display: block;
	position: relative;
	top: -30px;
}

#submit {
	width: 200px;
	margin-right: 40px;
	float: right;
	text-align: right;
	display: block;
	position: relative;
	top: -30px;
}

.sb {
	font-size: 15px;
	line-height: 20px;
	text-align: center;
	margin-top: 30px;
}

.fancybox-skin {
	background: transparent !important;
	color: #222;
}

.fancybox-opened .fancybox-skin {
	-webkit-box-shadow: none !important;
	-moz-box-shadow: none !important;
	box-shadow: none !important;
}

.fancybox-inner {
    z-index: 8000;
}

.fancybox-error {
    color: #222;
    font: 15px/25px Arial, Helvetica, sans-serif;
}

.fancybox-image, .fancybox-iframe {
    margin-top: 60px !important;
}

.fancybox-title {
	position: absolute;
	top: 0;
} 

.fancybox-skin {
	position: relative;
}

#fancybox-loading, .fancybox-close, .fancybox-prev span, .fancybox-next span {
	background-image: none;
}

@media all and (-webkit-min-device-pixel-ratio: 1.5), all and (min-device-pixel-ratio: 1.5), all and (-o-min-device-pixel-ratio: 3/2), all and (min-resolution: 200dpi) {
#fancybox-loading div {
    background-size: 22px 22px;
    background-image: none;
}
}

.fancybox-overlay {
	background: none;
}

#booknav {
	position: absolute;
	z-index: 90000;
	bottom: 20px;
	width: 100%;
}


#booknav h3 {
	text-align: center;
	font-family: "agb_icons", Verdana, Arial, Helvetica, sans-serif;
	font-size: 23px;
	position: relative;
	top: 46px;
	z-index: 9000;
}

#booknav strong {
	text-align: center;
	display: block;
	position: relative;
	top: 18px;
	z-index: 1000;
}

#booknav small {
	font-size: 15px;
	width: 100%;
	text-align: center;
	position: relative;
	top: 10px;
	z-index: 9000;
}

#booknav em {
	position: absolute;
	right: 40px;
	width: 40px;
	text-align: right;
	font-family: "agb_icons", Verdana, Arial, Helvetica, sans-serif;
	font-size: 23px;
	top: 47px;
	z-index: 9000;
	font-style: normal;
}

.fancybox-title-outside-wrap {
	color: #222;
	font-size: 25px;
	margin-bottom: 40px;
	width: 100%;
	text-align: center;
}

.fancybox-type-inline h2 {
	top: -66px;
}

.fancybox-type-inline h3 {
	bottom: -68px;
}

.fancybox-type-inline em {
	bottom: -67px;
}

.fancybox-type-inline strong {
	bottom: -68px;
}


/*		R E S P O N S I V E
----------------------------------------------- */

@media screen and (max-width: 1250px) {
/*		The index table is getting too heavy. */

.ts {
	display: none;
}

}


@media screen and (max-width: 900px) {
/*		The index table is getting too heavy, still. */

.tp {
	display: none;
}

}


@media screen and (max-width: 840px) {

#content {
	max-width: 100%;
	margin: 66px auto 100px auto;
}

.btx {
	width: 100%;
	padding: 0;
}

.td {
	display: none;
}

}


@media screen and (max-width: 730px) {
/*		The navigation needs to be a double-decker. */

#header {
	margin: 33px 0 22px 0;
	width: 100%;
	min-width: inherit;
	text-align: center;
}

h1 {
	width: 100% !important;
	white-space: nowrap;
}

#nav {
	width: 40% !important;
	margin-left: -20px;
	margin-right: 5px;
	float: none;
	text-align: right;
	display: inline-block;
	position: inherit;
	top: 0;
}

#submit {
	width: 40% !important;
	margin-right: 20px;
	margin-left: 5px;
	float: none;
	text-align: left;
	display: inline-block;
	position: inherit;
	top: 0;
}

.fancybox-overlay #nav {
	margin-right: 9px;
}

.fancybox-overlay #submit {
	margin-left: 9px;
}

.bk {
	width: 160px;
	height: 240px;
}

.bk a {
	width: 160px;
	height: 200px;
}

.si {
	width: 160px;
	height: 160px;
}

.si img {
	max-width: 160px;
	max-height: 160px;
}

.in {
	height: 160px;
}

.bt {
	width: 160px;
	height: 160px;
}

.bt span {
	width: 140px;
	height: 145px;
}

.bk .sn {
	margin-top: 166px;
}

}


@media screen and (max-width: 650px) {
/*		That table is getting too heavy, again. */

.ta {
	display: none;
}

}


@media screen and (min-width: 560px) and (max-width: 610px) {
/*		Fixing that sweet spot. */

#books {
	margin-left: 30px;
	margin-right: 30px;
}

}


@media screen and (max-width: 610px) {
/*		Make those images smaller! */

.bk {
	width: 115px;
	height: 180px;
	margin: 0 10px 0 10px;
}

.bk a {
	width: 115px;
	height: 150px;
}

.si {
	width: 115px;
	height: 115px;
}

.si img {
	max-width: 115px;
	max-height: 115px;
}

.in {
	height: 115px;
}

.bt {
	width: 115px;
	height: 115px;
}

.bt span {
	width: 99px;
	height: 115px;
	padding: 0 10px 5px 10px;
	font-size: 15px;
	line-height: 20px;
}

.bk .sn {
	margin-top: 121px;
}

.bk small {
	font-size: 15px;
	line-height: 20px;
}

.bk em {
	font-size: 15px;
	line-height: 20px;
}

.btx {
	padding-top: 30px;
}

.fancybox-inner {
	position: relative;
	padding-top: 5px;
}

}


@media screen and (max-width: 500px) {
/*		Now, the text needs to be smaller, as well. */

body {
	font-size: 15px;
	letter-spacing: 0.025em;
	word-spacing: -0.1em;
	line-height: 22px;
}

#header {
	margin-top: 20px;
}

#nav {
	margin-right: 2px;
	margin-left: -3px;
}

#submit {
	margin-left: 2px;
}

.fancybox-overlay #nav {
	margin-right: 4px;
}

.fancybox-overlay #submit {
	margin-left: 4px;
}

#content {
	margin-top: 40px;
	margin-bottom: 40px;
}

#content p {
	margin-right: 10px;
	margin-bottom: 22px;
	margin-left: 20px;
}

#copy {
	font-size: 11px;
	line-height: 16px;
	margin-top: 26px;
	letter-spacing: 0.1em;
}

#booknav small {
	font-size: 11px !important;
}

#booknav em {
	right: 20px !important;
}

.btx {
	font-size: 15px;
	line-height: 22px;
	padding-top: 50px;
}

#data {
	margin-right: 20px;
	margin-bottom: 30px;
	margin-left: 20px;
	font-size: 11px;
}

#data td {
	line-height: 16px;
}

.ta {
	display: block;
}

.bt span {
	font-size: 11px;
	line-height: 16px;
}

.bk small {
	font-size: 11px;
	line-height: 16px;
}

.bk em {
	font-size: 11px;
	line-height: 16px;
}

.ptitle {
	padding-right: 10px;
}

.pimg span {
	font-size: 11px;
	line-height: 16px;
	letter-spacing: 0.1em;
}

}


@media screen and (max-width: 480px) {

.pimg {
	width: auto;
	padding: 20px 10px 20px 0;
}

.pimg img {
	max-width: 100%;
	height: auto;
}

}


@media screen and (max-width: 440px) {
/*		No more author. */

.ta {
	display: none;
}

}
