/* Book 1 layout */

/******************************************
 * A cleaner pallate.... + housekeeping
 ******************************************/

 img {
    margin: 0 !important;
    padding: 0 !important;
}

article,
section {
    display: block;
}


/*******************************************
 * Main styles
********************************************/

/*** Featured Books ***/

#featured-books {
    padding-bottom: 15px;
    border-bottom: 1px solid;
    margin-bottom: 15px;
    position: relative;
    min-height: 210px;
}

.featured-book {
    width: 193px;
    float: left;
    margin: 0 55px;
}

.fb-image {
    width: 193px;
}

.fb-image a {
    display: block;
    width: 193px;
}

.fb-image a img {
    border: 10px solid;
}

.fb-info {
    margin: 10px auto 0;
}

.fb-info .buttons {
    margin-top: 10px;
    text-align: center;
}

#content .button {
    margin-left: 5px;
    padding: 5px 10px;
    font-weight: bold;
    text-decoration: none;
}


/*** Control Bar ***/

#control-bar {
    padding: 15px;
    height: auto;
    background-color: #f1f1f1;
}


#filter-label {
    line-height: 28px;
    float: left;
    margin-right: 10px;
}

.filter-group {
    float: left;
    margin-right: 10px;
}

.filter-group .filters {
    margin: 0;
    padding: 0;
}

.filter-group .filter-select-span {
    display: block;
    font-weight: bold;
    padding: 0 10px;
    width: 200px;
    height: 40px;
    line-height: 40px;
    z-index: 4;
    text-transform: uppercase;
    cursor: pointer;
}

.filter-group .filter-style-pair {
    position: relative;
}

.filter-select-span > span,
.bookicon-arrow-down {
    position: absolute;
    top: 14px;
    right: 10px;
    font-size: 14px;
}

.filter-select-span.open > span.icon-plus3:before {
    content: "\ed5e" !important;
}

.filter-select-list {
    display: none;
}


.filter-group .dropdown {
    list-style: none;
    display: none;
    margin: -1px 0 0 !important;
    position: absolute;
    width: 200px;
}

.filter-group .dropdown li {
    cursor: pointer;
    padding: 12px 4px 12px 18px;
    display: block;
    margin: 0 !important;
    font-size: 16px !important;
    transition: .3s;
    text-align: left;
    font-weight: 700;
}


#book-sidebar-search {
    position: relative;
}

#book-search {
    float: right;
    position: relative;
    width: 45%;
    border: 1px solid #dedede;
    max-width: 300px;
    box-sizing: border-box;
}

#book-input {
    width: 100%;
    border: 0;
    height: 40px;
    padding: 3px 25px 3px 10px;
    line-height: 40px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 600;
}

#book-list-container #book-input {
  height: 38px;
  line-height: 38px;
}

#book-search-submit {
    background: none;
    border: 0;
    cursor: pointer;
    display: block;
    float: right;
    font-size: 20px;
    height: 24px;
    margin: 0;
    outline: none;
    text-align: center;
    width: 26px;
    color: #999;
    position: absolute;
    right: 4px;
    font-size: 16px;
    top: 6px;
}

.books-sidebar #book-search-submit {
  top: 8px;
}

#book-search-submit.bookicon-search:before {
    content: "\eb30";
    font-family: 'icons' !important;
}


/*** book list ***/
#book-list {
    padding-top: 15px;
}

.book {
    float: left;
    margin-right: 15px;
    margin-bottom: 40px;
}

.book.end {
    margin-right: 0;
}

.book .book-top {
    padding: 20px 10px 10px 10px;
    width: 128px;
    -moz-border-radius: 0px;
    -webkit-border-radius: 0px;
    border-radius: 0px;
    margin: 0 auto 10px;
}

.book .book-image {
    margin: 0 auto;
    width: 116px;
    height: 166px;
}

.book .book-image a {
    display: block;
    width: 116px;
}

.book .book-image a img {
    border: 3px solid;
    -moz-border-radius: 0px;
    -webkit-border-radius: 0px;
    border-radius: 0px;
    max-height: 156px;
    max-width: 110px;
    overflow: hidden;
}

.book .buttons {
    float: none;
    margin: 10px 0 0 4px;
}

#content .book .buttons .button.first {
    margin-left: 0;
}

.book .book-title {
    text-align: center;
}

.book .meta {
    text-align: center;
}

.book-row {
    border-bottom: 1px solid;
    margin-bottom: 15px;
}


/*** Pagination (I left the colors in here in case you want to copy and paste this elsewhere. I reproduced the colors into the colors section ***/
#pagination {
    padding: 10px;
    background-color: #f1f1f1;
}

#pagination a {
    padding: 5px 8px;
    text-decoration: none;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    color: #555555;
    margin-right: 3px;
}

#pagination a:hover {
    color: #ffffff;
    background-color: #833C2B;
}

#pagination a#current {
    color: #fffeff;
    background-color: #833C2B;
}

#pagination a#off {
    color: #cccccc;
}

#pagination a#off:hover {
    background-color: transparent;
    color: #cccccc;
}


/*** Book Detail ***/
#book-detail .book-top-info,
#book-detail .book-title-line {
    overflow: hidden;
    /* clear the floats without cleraing the image */
    padding: 5px 0;
}

#book-detail .book {
    width: auto;
}

#book-detail .book-image {
    float: left;
    width: 165px;
    height: auto;
}

#book-detail .book-image img {
    border: 10px solid;
    margin: 0 15px 15px 0;
}

#book-detail .book-top-info {
    margin-bottom: 35px;
}

#book-detail .book-title {
    float: left;
    margin-right: 7px;
}

#book-detail .book-author {
    float: left;
    margin-left: 0px;
}

#book-detail .buttons {
    float: left;
    justify-content: left;
}

#book-detail .meta {
    text-align: left;
    margin-bottom: 10px;
}

/*** Sidebar ****/

.books-sidebar .sidebar-featured-label {
    margin-top: 20px;
    margin-bottom: 5px;
}

.books-sidebar .book-title {
    line-height: 1.3;
    margin: 4px 0;
}

.books-sidebar .sidebar-featured-book {
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.books-sidebar #book-input {
    border: 1px solid;
}

.books-sidebar #book-search {
    float: none;
}

/********************************************
 * Font Sizes
 ********************************************/
#content .button {
    font-size: 14px;
}

#filter-label {
    font-size: 17px;
}

.filter-group .filter-select-span {
    font-size: 16px;
    text-transform: initial;
    font-weight: 700;
    box-sizing: border-box;
    text-align: left;
}

.filter-group .dropdown li {
    font-size: 16px;
}

.book .meta {
    font-size: 11px;
}


#book-detail .meta,
#book-detail .book-author {
    font-size: 16px;
}

.books-sidebar .sidebar-featured-label {
    text-align: left;
    margin-bottom: 1em;
}

.books-sidebar .book-title {
    font-size: 16px;
}

.books-sidebar .book-author {
    font-size: 11px;
}


/********************************************
 * Colors
 ********************************************/
#featured-books {
    border-color: #f1f1f1;
}

#content .button {
    /* background-color: #f1f1f1; */
}

.featured-books {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.featured-books > article {
  width: calc(16%);
}

.fb-image a img {
    border-color: #f1f1f1;
}

.book .book-top.hover {
    background-color: #f1f1f1;
}

#book-detail .book-image img {
    border-color: #f1f1f1;
}

#filter-label {
    color: #999999;
}

.filter-group .dropdown li:hover {
  background-color: rgba(255, 255, 255, 0.15)
}

.book-row {
    border: none;
}

.books-sidebar #book-input {
    border-color: #dedede;
}

/*******************************************
 * Widths  (the ones you may want to override)
 *******************************************/
.content {
}

.book {
    width: 335px;
}

.book .buttons {
    display: flex;
    justify-content: center;
    width: 121px;
    /* a little play here for larger fonts,
                  anything more you'll need to adjust
                  the widths up higher in the css..ie9
                  is a little greedy */
}

.books-sidebar #book-sidebar-search {
    width: 300px;
    float: right;
}

.books-sidebar #book-sidebar-search:after {
    content: '';
    clear: both;
    display: block;
}

.books-sidebar #backbutton {
    width: auto;
    font-size: 16px;
    line-height: 0;
    line-height: 40px;
    font-weight: 600;
}

.books-sidebar #backbutton span {
    vertical-align: middle;
}


/********************************************
 * Useful Tweaks
 ********************************************/
#book-detail .book-author {
    margin-top: 6px;
}

#pagination {
    margin-top: 20px;
}


/****************************************************
 * Theme Overrides (consider deleting these before you start)
 ***************************************************/
.content.with-sidebar {
    width: 100%;
    float: none;
}

.books-sidebar {
    width: 100%;
    padding: 0;
    margin-right: 0;
    float: none;
    border-right: 0px solid #eeeeee;
}

.books-sidebar .detail-filters {
    padding: 2em;
    background-color: #f7f8fa;
}

.books-sidebar .book-title a,
.books-sidebar .book-author a,
.book .book-title a {
    text-decoration: none;
}

.book .book-title {
    margin-bottom: 10px;
    font-size: 18px;
}

.fb-image:after {
    content: '';
    display: block;
    clear: both;
}

#book-detail .book-author a,
.book .meta a {
    text-decoration: none;
}


#book-detail .book-title {
    font-size: 28px;
    margin-bottom: 5px;
}


/* ==|== non-semantic helper classes ========================================
   Please define your styles before this section.
   ========================================================================== */

/* For image replacement */
.ir {
    display: block;
    border: 0;
    text-indent: -999em;
    overflow: hidden;
    background-color: transparent;
    background-repeat: no-repeat;
    text-align: left;
    direction: ltr;
}

.ir br {
    display: none;
}

/* Hide from both screenreaders and browsers: h5bp.com/u */
.hidden {
    display: none !important;
    visibility: hidden;
}

/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard: h5bp.com/p */
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/* Hide visually and from screenreaders, but maintain layout */
.invisible {
    visibility: hidden;
}

/* Contain floats: h5bp.com/q */
.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    zoom: 1;
}