article.book {
	height: 192px;
	height: 235px;
	width: 192px;
	overflow: hidden;
	position: relative;

	-o-transition: height .5s, width .5s, position .5s, top .5s, left .5s, background .5s, box-shadow .5s, opacity 1s;
}


/*article.book::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 1em;
	width: 157px;
	height: 1px;
	z-index: 99;
}*/

article.book img.epub {
	top: 0px;
	height: 40px;
	left: 0px;
	position: absolute;
}

article.book.selected {
	border: 1px dashed #aaa;
	/*box-shadow: 0 0 5px #000;*/
}


article.book, article.link {
	display: inline-block;
	margin: 1em;
	box-sizing: border-box;
	-webkit-transition: all .2s;
	padding: 1em;
	vertical-align: top;

	border: 1px solid rgba(0,0,0,0);

}




article.book:target {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 999;
	width: 95%;
	height: 95%;
	box-shadow: 0 0 5px #666;
	background: white;
}

article.book:target img.placeholder {
	box-shadow: none;
}

#book-replacement {
	background: rgba(238, 238, 238, .5);
	border: 1px dashed #aaa;
}








p.author {
	font-style: italic;
}



.bookinfo {
	float: left;
	padding-bottom: 1em;
}

article.book .bookinfo ul {
	margin: 0; padding: 0;
}

article.book .bookinfo li {
	display: inline-block;
	padding-right: 1em;
	font-size: .8em;
}

article.book.huge {
	z-index: 501;
	background: white;
}

article.book.huge meter {
	width: 100%;
	height: 8px;
	border: none;
	border-top: 1px solid #666;
}

article.book meter {
	position: absolute;
	bottom: 0;
	left: 0;
	border: 1px solid #666;
	height: 3px;
	width: 188px;
	z-index: 9;
	-o-transition: height .2s;
}




/*------------------*/
/* PSEUDO-BOOK-LOOK */
.bookish.noimage {
    content: attr(title) ' by ' attr(author);
    color: #111;
    font-family: 'Oxygen';
    font-size: .9em;
    text-shadow: 0 1px 0 #bbb;
    text-align: center;
}

/*
.bookish:not(.texture):nth-of-type(3n){
    background: #556664;
}
.bookish:not(.texture):nth-of-type(3n+1){
    background: #DD545C;
}
.bookish:not(.texture):nth-of-type(3n+2){
    background: #E0D596;
}*/

.bookish {
    display: inline-block;

    background: #DD545C;
    background: #7FA9E2;

    margin-right: 1em;
    margin-bottom: 1em;

    box-sizing: border-box;
    padding-left: 0.5em;
	padding-right: 0.5em;
    padding-top: 1.5em;
    width: auto;
    height: 200px;
    width: 160px;
    position: relative;
    border-radius: 3px;

    overflow: hidden;
	text-overflow: -o-ellipsis-lastline;

    /*border-top: 1px solid #666;
    border-left: 1px solid #666;
    border-bottom: 3px solid #dfdfdf;
    border-right: 3px solid #dfdfdf;
    border-top-right-radius: 5px;
    border-top-left-radius: 3px;
    border-bottom-right-radius: 2px;*/

    cursor: pointer;


    box-shadow: 0 0 8px #666;
}

/*.bookish:before {
    content: "";
    position: absolute;
    z-index: 9;
    background: rgba(255,255,255,.15);
    border-right: thin solid rgba(0,0,0,.3);
    border-left: 2px solid rgba(0,0,0,.1);
    height: 100%;
    width: 3px;
    top: 0;
    left: 0px;
}*/

/*.bookish:after {
    content: "";
    height: 200px;
    width: 161px;
    background: #666;
    top: 1px;
    left: -2px;
    position: absolute;
    z-index: -2;
    border-bottom-right-radius: 2px;
    border-bottom-left-radius: 3px;
}*/

article.book .bookish img {
    position: absolute; top:0; left:0;
    height: 100%;
    width: 100%;
}

article.book.fav {

}

article.book.new {
	position: relative;
}
article.book.new::after {
	content: 'NEW';
	font-family: 'Arial';
	font-size: 1.5em;
	color: white;
	font-weight: bolder;
	position: absolute;
	z-index: 8;
	background: red;
	background-size: 100%;
	height: 2.5em;
	line-height: 2.5em;
	text-align: center;
	width: 2.5em;
	top: 170px; left: 120px;
}

/*-------------------------------------------------*/


article.book.subsection {
	border: 1px solid #ddd;
	background: #eee;

	cursor: pointer;
}
article.book.subsection h1 {
	font-size: 1.2em;
}







/* HOVER */
/*
article.book:not(.huge):hover meter {
	height: 8px;
}


article.book:hover img.placeholder{
	box-shadow: none;
}

article.book:not(.selected):not(.replacement):hover {
	border: 1px dashed #aaa;
}


article.book:hover .button {
	opacity: inherit;
}
*/




/* fucking around... */
article.book::after {
	background: pink;
	height: 20px;
	width: 100%;
	position: absolute;
	bottom: -50px;
	left: 0;
}

article.book:hover div.bookish {
	box-shadow: 0 0 15px #1cd2dc;
}
article.subsection:active {
	-o-transform: scale(.95);
}




article.owned, #books-wrapper-ul li.owned {
	opacity: .3;
}

#books-wrapper-ul li {
	position: relative;
	-o-transition: opacity .5s;
}
.owned:before {
	content: '';
	position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 4;
}

article.book .favmark {
  color: red;
  font-size: 3em;
  line-height: 0.2em;
  position: absolute;
  right: 0px;
}

article.book.broken {
	background: red;
}