@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600&family=Open+Sans:ital,wght@0,400;0,600;1,400;1,600&display=swap");

/* 
#665e99
*/

/* custom grid */
@media (min-width: 1520px) {
  .col-3xl-1p5 {
    width: 12.5%;
  }

  .col-3xl-2 {
    width: 16.66666667%;
  }

  .col-3xl-3 {
    width: 25%;
  }

  .col-3xl-4 {
    width: 33.33333333%;
  }

  .col-3xl-6 {
    width: 50%;
  }

  .col-3xl-8 {
    width: 66.66666667%;
  }

  .col-3xl-9 {
    width: 75%;
  }

  .col-3xl-10 {
    width: 83.33333333%;
  }

  .visible-3xl {
    display: inline !important;
  }

  .hidden-3xl {
    display: none !important;
  }
}

@media (min-width: 1280px) and (max-width: 1519px) {
  .col-xxl-1 {
    width: 8.33333333%;
  }

  .col-xxl-2 {
    width: 16.66666667%;
  }

  .col-xxl-3 {
    width: 25%;
  }

  .col-xxl-4 {
    width: 33.33333333%;
  }

  .col-xxl-5 {
    width: 41.66666667%;
  }

  .col-xxl-6 {
    width: 50%;
  }

  .col-xxl-7 {
    width: 58.33333333%;
  }

  .col-xxl-8 {
    width: 66.66666667%;
  }

  .col-xxl-9 {
    width: 75%;
  }

  .col-xxl-10 {
    width: 83.33333333%;
  }

  .col-xxl-11 {
    width: 91.66666667%;
  }

  .col-xxl-12 {
    width: 100%;
  }

  .visible-xxl {
    display: inline !important;
  }

  .hidden-xxl {
    display: none !important;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .col-xl-1 {
    width: 8.33333333%;
  }

  .col-xl-2 {
    width: 16.66666667%;
  }

  .col-xl-3 {
    width: 25%;
  }

  .col-xl-4 {
    width: 33.33333333%;
  }

  .col-xl-5 {
    width: 41.66666667%;
  }

  .col-xl-6 {
    width: 50%;
  }

  .col-xl-7 {
    width: 58.33333333%;
  }

  .col-xl-8 {
    width: 66.66666667%;
  }

  .col-xl-9 {
    width: 75%;
  }

  .col-xl-10 {
    width: 83.33333333%;
  }

  .col-xl-11 {
    width: 91.66666667%;
  }

  .col-xl-12 {
    width: 100%;
  }

  .visible-xl {
    display: inline !important;
  }

  .hidden-xl {
    display: none !important;
  }
}

@media (min-width: 440px) and (max-width: 669px) {
  .visible-sm-flex {
    display: flex !important;
  }

  .visible-sm-inline {
    display: inline !important;
  }
}

@media (max-width: 440px) {
  .visible-xs-flex {
    display: flex !important;
  }
}

/* container settings */
.row {
  display: flex;
  flex-wrap: wrap;
}

.modal-body .row {
  display: block;
}

.main-expand {
  min-height: calc(100vh - 105px);
}

.modal-backdrop {
  height: 100%;
}

/* font settings */
body {
  font-family: "Open Sans", sans-serif !important;
  font-size: 15px !important;
}

.header-font {
  font-family: "Montserrat", sans-serif !important;
}

a {
  text-decoration: none;
  color: #665e99;
}

a:hover {
  text-decoration: none;
  color: #664ea2;
}

a:focus {
  text-decoration: none;
  color: #665e99;
}

/* reusable */
a.hover-bold:hover {
  font-weight: bold;
}

.bopen-btn {
  background-color: #665e99;
  color: white;
  text-align: center;
  padding: 5px 12px;
  border-radius: 4px;
  border: none;
  text-decoration: none;
}

.bopen-btn:hover {
  background-color: #664ea2;
  color: white;
  text-decoration: none;
}

.bopen-title {
  font-family: "Montserrat", sans-serif !important;
  font-size: 130%;
  color: #665e99;
  border-left: 2.5px solid #665e99;
  border-bottom: 2.5px solid #665e99;
  padding: 0px 0px 4px 9px;
}

.bopen-title-sm {
  font-family: "Montserrat", sans-serif !important;
  color: #665e99;
  border-bottom: 2px solid #665e99;
  padding-bottom: 5px;
}

/* header search */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-input {
  border: none;
  border-radius: 4px;
  flex-grow: 1;
  width: 100%;
  padding: 5px 12px;
  box-sizing: border-box;
  color: #000;
  font-size: 93.75%;
}

.search-icon {
  background-color: white;
  position: absolute;
  right: 158px;
  pointer-events: none;
}

.advanced-search-btn {
  white-space: nowrap;
  border: none;
  border-radius: 4px;
  color: #fff !important;
  font-weight: 600;
  background-color: #8c86b3;
  cursor: pointer;
  color: inherit;
  padding: 5px 12px;
  font-size: 93.75%;
}

.advanced-search-btn:hover {
  color: #665e99 !important;
  background-color: #fff;
}

@media (min-width: 1280px) {
  .advanced-search-modal {
    margin-top: 52px;
    margin-left: 33.33333333%;
    width: 50%;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .advanced-search-modal {
    margin-top: 52px;
    margin-left: 25%;
    width: 50%;
  }
}

@media (min-width: 820px) and (max-width: 1023px) {
  .advanced-search-modal {
    margin-top: 52px;
    margin-left: 16.66666667%;
    width: 58.33333333%;
  }
}

@media (min-width: 670px) and (max-width: 819px) {
  .advanced-search-modal {
    margin-top: 52px;
    margin-left: 8.333333333%;
    width: 66.666666667%;
  }
}

@media (max-width: 669px) {
  .advanced-search-modal {
    margin-top: 98px;
    margin-left: 5%;
    width: 90%;
  }
}

/* additional style for the contents of the search modal */
.mutable-option {
  padding-top: 8px;
}

.remove-field {
  margin-left: 5px;
}

.remove-field img {
  width: 14px;
  padding-bottom: 1px;
}

/* style for the Publisher pulldown */
.publisher-pulldown-holder {}

.publisher-pulldown-holder .select-style {
  padding-right: 13px;
}

.publisher-pulldown-holder .select-style select {
  width: 100%;
}

/* about and contact buttons */
.about-text {
  font-size: 110%;
  text-decoration: none;
  color: #eee !important;
}

.about-text:hover {
  text-decoration: none;
  color: #fff !important;
}

/* footer */
.electronic-book-delivery-footer {
  background-color: #999999;
  color: #fff;
  padding: 6px 10px;
}

/* header */
.electronic-book-delivery-header {
  background-color: #665e99;
  color: #fff;
  padding: 8px 10px;
}

a.electronic-book-delivery-header-text {
  background-color: #665e99;
  color: #fff;
  text-decoration: none;
}

/* home decorations */
.home-banner {
  background-size: cover;
  background-color: #fff;
  color: #fff;
  height: 385px;
  margin-left: -15px;
  margin-right: -15px;
  margin-bottom: 25px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 8px solid #665e99;
}

@media (max-width: 1023px) {
  .banner-width {
    width: 90%;
  }
}

@media (min-width: 1024px) {
  .banner-width {
    width: 40%;
  }
}

.banner-motto {
  font-family: "Montserrat", sans-serif !important;
  font-size: 135%;
}

.home-color-container {
  background-size: cover;
  background-color: #e0dfeb;
  margin-left: -15px;
  margin-right: -15px;
}

/* search results */
@media (max-width: 440px) {
  #listingArea {
    display: block !important;
  }
}

.no-results {
  padding-top: 30px;
  max-width: 380px;
  margin: auto;
}

.search-results-list {
  padding-bottom: 25px;
}

.search-results-list .book-cover,
.search-results-list .auto-book-cover {
  /* width: 100%; */
  max-width: 120px;
}

@media (max-width: 440px) {

  .search-results-list .book-cover,
  .search-results-list .auto-book-cover {
    margin-bottom: 10px;
  }
}

.pagination {
  margin: 10px 0;
  text-align: center;
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
}

.pagination a:hover {
  font-weight: bold;
}

.search-res-header {
  padding: 10px 0 30px 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.view-toggle {
  margin-right: 25px;
  width: 70px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #e0dfeb;
  flex-shrink: 0;
  display: inline-flex;
}

.view-toggle div {
  width: 50%;
  text-align: center;
  padding: 1px 0 3px;
}

.active-view {
  background-color: #B6B3CF;
  color: #000;
}

#sortSearchRes {
  font-size: 95%;
  background: #e0dfeb;
  border: none;
  margin-right: 10px;
  border-radius: 4px;
  padding: 3px 10px;
  color: #666;
}

/* book display */
.book-cover {
  margin: auto;
  display: block;
  width: 120px;
}

.auto-book-cover {
  padding: 8px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 180px;
  font-size: 78%;
  font-weight: bold;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.auto-book-cover:hover {
  text-decoration: none;
}

.book-details {
  text-align: center;
  padding-top: 10px;
}

@media screen and (min-width: 1440px) {
  .book-details {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.book-title {
  font-weight: bold;
  text-decoration: none;
  color: #000;
}

.book-title:hover {
  text-decoration: none;
  color: #665e99;
}

.book-year {
  color: #666 !important;
  font-size: 90%;
}

/* book page */
.book-page-btn {
  display: block;
  margin: auto;
  width: 160px;
  font-size: 15px;
}

.book-page-desc {
  font-size: 15px;
  padding-top: 10px;
  margin-bottom: 20px;
}

.book-page-cover {
  width: 90%;
  max-width: 360px;
  padding: 10px 0px 25px 0px;
}

/* needs to be display: flex when it is displayed */
.cover-error-text {
  color: white;
  background-color: fuchsia;
  display: none;
  width: 280px;
  height: 400px;
  margin: 0px auto 20px auto;
  padding: 10px;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 820px) {
  .book-page-cover {
    max-width: 240px;
    padding: 0 0 20px 0;
  }
  .cover-error-text {
    width: 240px;
    height: 350px;
  }
}

/* about and contact pages */
.about-col-text {
  padding-top: 18px;
}

@media screen and (max-width: 1024px) {
  .about-col-text {
    padding-top: 15px;
  }
}

@media screen and (max-width: 1024px) {
  .about-col-mid {
    padding-bottom: 10px;
  }
}

@media screen and (min-width: 440px) {
  .contact-input-row {
    padding-left: 0;
  }
}

/* advanced search modal */
#search-div-body .descriptions {
  padding-right: 0;
}

#search-div-body .input-form {
  display: flex;
  height: 25px;
}

@media screen and (min-width: 440px) {
  .mr-offset {
    margin-right: -45px;
  }
}

@media screen and (max-width: 439px) {
  #search-div-body .select-style {
    flex-grow: 1;
    display: flex;
    height: 25px;
  }
}

@media screen and (min-width: 440px) {
  #search-div-body .select-style {
    flex-grow: 1;
    margin-right: -15px;
    display: flex;
    height: 25px;
  }
}

#search-div-body .input-form button {
  border: none;
  border-radius: 4px;
  background-color: #f1f0f6;
}

#search-div-body .input-form input,
#search-div-body .input-form select {
  border: none;
  border-radius: 4px;
  background-color: #f1f0f6;
  flex-grow: 1;
}

#search-div-body .input-form input {
  padding: 5px;
}

@media screen and (min-width: 440px) and (max-width: 530px) {
  #search-div-body .input-form input {
    width: 90%;
    margin-left: 26px;
  }
}

@media screen and (min-width: 670px) and (max-width: 719px) {
  #search-div-body .input-form input {
    width: 95%;
    margin-left: 10px;
  }
}

/* other */
.nav>li>a {
  background-color: #fff;
  border: 1px solid #adad99;
}

.nav>li>a:hover {
  background-color: #ddd;
}

.buttonish {
  text-align: center;
  padding: 15px;
  background-color: #665e99;
  color: white;
}

.buttonish button {
  /* border: 1px thin gray; */
  border: none;
  padding: 15px;
  font-variant: small-caps;
  font-size: 1.4em;
  font-weight: bold;
}

.buttonish button:hover {
  background-color: white;
  color: #665e99;
}

.pick-how-to-read {
  display: none;
}

/* simple style for BV-generated TOCs from our Chapters table */
.ch-level-1 {
  padding-left: 10px;
}

.ch-level-2 {
  padding-left: 20px;
}

.ch-level-3 {
  padding-left: 30px;
}

[class^="ch-level"] {
  padding-bottom: 4px;
}

.listing-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
  height: auto;
}

/* borrowed from cua_style */
.ebook-landing-nav-right {
  padding-top: 50px;
}

@media screen and (max-width: 670px) {
  .ebook-landing-nav-right {
    padding-top: 0px;
  }
}

.ebook-landing-nav-right-btn {
  background-color: transparent;
  border: 1px solid #fff;
  padding: 4px 10px;
  height: initial;
  width: 100%;
}

.ebook-landing-nav-right-btn:active:focus {
  background-color: #92a42a;
  outline-color: black;
}

.ebook-landing-nav-right-btn:focus {
  background-color: #92a42a;
  outline-color: black;
}

.ebook-landing-nav-right-btn.active,
.ebook-landing-nav-right-btn.active:active,
.ebook-landing-nav-right-btn.active:hover {
  background-color: #92a42a;
}

.ebook-landing-nav-right-btn:active,
.ebook-landing-nav-right-btn:hover {
  background-color: #92a42a;
}

.overflow {
  overflow: hidden;
}