body {
    font-size: clamp(14pt, calc(0.75vh + 0.75vw), 18pt);
    line-height: clamp(17pt, calc(1.25vh + 1.25vw), 20pt);
}

/* Bootstrap overrides/additions */
form p, form:not(#checkout-info) div, form:not(#checkout-info) div div {
    margin: auto;
    -webkit-column-break-inside: avoid;
    -moz-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

form .control-group {
    margin-bottom: auto;
}

form p[id^="error"] {
    margin-top:-10px;
}
form p[id^="error"] strong {
    font-style: italic;
}

.alert-block {
    min-height: 20px;
}

/* End Bootstrap overrides/additions */

.errorlist {
    font-style: italic;
    color: red;
}

.helptext {
    float: left;
    font-style: italic;
    color: darkred;
    font-size: 0.8rem;
    margin-top: -10px;
}

.border-right {
    border-right: 1px solid;
}

h1.book_title {
    margin:  0 0 0 0;
    font-size: 2rem;
    line-height: 110%;
    color: darkred;
    word-break: break-word;
 }

h2.author {
    line-height: 1.5rem;
}

p.caption {
    word-break: break-word;
}

#checkout_button {
    margin-top:8px;
}

#container {
    position: relative;
    background-color: #fff;
    height: auto;
    margin: 0 auto;
}

/*
.container > hr {
    margin: 60px 0;
}
*/

#tagline {
    color: darkred;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-style: italic;
}

#tagline > h2 {
    font-size: clamp(1rem, 1.9vw, 1.4rem);
    line-height: 1.25;
    margin: 0;
}

/* Masthead and navbar layout live in responsive.css. */

.navbar .navbar-inner {
    padding: 0;
    height: auto;
}

.navbar .nav {
    margin: 0;
    display: table;
    width: 100%;
}

.navbar .nav li a {
    font-weight: bold;
    text-align: left;
    border-left: 1px solid rgba(255,255,255,.75);
    border-right: 1px solid rgba(0,0,0,.1);
}

.navbar .nav li:first-child a {
    border-left: 0;
    border-radius: 3px 0 0 3px;
}

.navbar .nav li:last-child a {
    border-right: 0;
    border-radius: 0 3px 3px 0;
}

#home_msg h1 {
    font-size: 1.5rem;
    line-height: 120%;
    margin: 0 0 0.3rem 0;
}

.catalog-row {
    border-bottom: 2px solid darkred;
    padding: 15px 0 15px 0;
    margin-bottom: 15px;
}

#search_form [name="q"] {
    z-index: 1000;
}

#results_summary>h1 {
    margin-bottom: 1rem;
    font-size: clamp(1.6rem, 4vw, 36px);
}

.frame {
    box-sizing: border-box;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    background-color: #e3e3e3;
}

.frame .heading {
    position: relative;
    height: auto;
    color: #fff;
    background-color: #8B0000;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 7px 10px 5px 10px;
    font-weight: bold;
    font-size: 107%;
    text-align: center;
}


.frame .content {
    position: relative;
    margin: 0;
    padding: 15px;
    height: auto;
    overflow: hidden;
}

.featured {
    display:-webkit-box;
    display:-webkit-flex;
    display:-ms-flexbox;
    display:flex;
    -webkit-flex-wrap:wrap;
    -ms-flex-wrap:wrap;
    flex-wrap:wrap;
    margin-top:25px;
}

.featured .book_thumb {
    padding-inline-end:5px;
}

.book_thumb {
    overflow-wrap: break-word;
}

/* Footer layout and link colours now live in responsive.css. */

.book_thumb, .book_result {
    position: relative;
    width: 50%;
    min-height: 170px;
    margin-bottom: 15px;
}

.book_result {
    width: auto;
}

.related .book_thumb {
    position: relative;
    width: 100%;
    min-height: 170px;
    margin-bottom: 15px;
    padding: 10px 0 0 10px;
}

.book_result {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.book_result_thumb {
    position:relative;
    display:-webkit-box;
    display:-webkit-flex;
    display:-ms-flexbox;
    display:flex;
    -webkit-justify-content: space-around;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    width: auto;
    max-width: 150px;
    height:auto;
    max-height: 150px;
    margin-right:10px;
}

.col1 {
    position: relative;
    float: left;
    margin-right: 18px;
}

.col2 {
    position: relative;
    float: right;
    /*clear: right; */
}

.book_result .distinct {
    position: relative;
    clear: left;
    height: 110px;
    margin-bottom: 15px;
}

.book_result_thumb img {
    position: relative;
    float: left;
    width:auto;
    max-width: 150px;
    height: auto;
    max-height: 150px;
    margin-right: 10px;
    margin-bottom: 5px;
}

.book_thumb img {
    max-width: 150px;
    max-height: 150px;
    height: auto;
    margin-bottom: 5px;
}

.book_thumb .book_title, .book_result .book_title {
    font-size: 115%;
    font-weight: bold;
}

.book_thumb .caption {
    clear: both;
    margin: 0 5px 10px 0;
}

.book_result .caption {
    width: auto;
}

.col-left, .col-right {
    position: relative;
    width: 100%;
    max-width: 435px;
}

form ul {
    list-style-type: none;
}

.asset-list {
    border-radius: 10px;
    background-color: #EBEBEB;
    padding: 5px 10px 20px 10px;
}
.asset-list hr {
    margin: 10px 0 10px 0;
}

.asset-list div {
    margin: 1px 10px 1px 10px;
}

.asset-list h4 {
    margin: 10px;
}

.catalog {
    height: auto;
    overflow: auto;
    width: 100%;
}

.catalog img {
    max-height: 100px;
}

.book_thumb a {
    margin-left: auto;
    margin-right: auto;
}

.book_thumb a:link { color: darkred; text-decoration: none; }
.book_thumb a:hover { color: darkred; text-decoration: underline; }
.book_thumb a:active { color: darkred; text-decoration: none; }
.book_thumb a:visited { color: darkred; text-decoration: none; }

.book_result a:link .book_title { color: #333333; text-decoration: none; }
.book_result a:hover .book_title { color: #333333; text-decoration: underline; }
.book_result a:active .book_title { color: #333333; text-decoration: none; }
.book_result a:visited .book_title { color: #333333; text-decoration: none; }

.book_result a:link { color: #000; text-decoration: none; }
.book_result a:hover { color: #000; text-decoration: none; }
.book_result a:active { color: #000; text-decoration: none; }
.book_result a:visited { color: #000; text-decoration: none; }

.pagination {
    display:-webkit-box;
    display:-webkit-flex;
    display:-ms-flexbox;
    display:flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 16pt;
    font-weight:600;
    margin: 0.75rem;
}
.pagination .item {
    margin: 0 0.6rem;
}

.endless_page_link {
    margin: 0 8px;
}

.endless_page_current {
    background-color: #8b0000;
    color: white;
    padding: 7px;
    border-radius:5px;
}

#return-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    display: block;
    text-decoration: none;
    border-radius: 35px;
    display: none;
    -webkit-transition: all 0.3s linear;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 999;
}
#return-to-top i {
    color: #fff;
    margin: 0;
    position: relative;
    left: 16px;
    top: 13px;
    font-size: 19px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
#return-to-top:hover {
    background: rgba(0, 0, 0, 0.9);
}
#return-to-top:hover i {
    color: #fff;
    top: 5px;
}

#accounts .action form {
    display: flex;
    flex-direction: column;
}

#accounts .action h1 {
    font-size: 1.75rem;
    text-align: center;
}

#accounts .action a:not(.button):not(.btn) {
    font-weight: bold;
}

#accounts .action .btn {
    align-self: center;
}

#accounts .action .btn ~ .btn{
    margin-top: 10px;
}

.password-change .alert {
    text-align: center;
    margin-top: 2rem;
}

label[for="id_captcha"] {
    display: none;
}

/* .css-columns is placed on the <form> element if embedding the submit button within the columns (odd-number of fields) and is placed on a <div> tag wrapping the fields when there is an even number of form elements and so the submit button is centered below the fields. */
.css-columns {
    width: 100% !important;
}
.two.css-columns {
    column-count: 2;
    column-width: 180px;
}
.three.css-columns {
    column-width: 190px;
    column-count: 3;
}
.four.css-columns {
    column-width: 200px;
    column-count: 4;
}

.topic-list {
    list-style-type: none;
}

.nav-link {
    border-radius: 3px;
    border: 1px solid lightgray;
    font-weight: bold;
    text-shadow: 0 1px 0 #ffffff;
    background: linear-gradient(to bottom, #ffffff, #e3e3e3) !important;
}
.nav-link a {
    color: #777777;
}

#authors_recommendations .heading {
    font-size: 100%;
}

.book_thumb_recommend img {
	position: relative;
    float: left;
    width: auto;
    max-width: 75px;
    height: auto;
    max-height: 120px;
    margin: 0 10px;
}
.book_thumb_recommend + div {
    width: 100%;
}
#slideshow {
    height: 140px;
    margin: 0;
    -ms-grid-column: 2;
    padding: 7px;
}
#slideshow > div {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;
    padding: 0 25px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden;
}
#slideshow > div a {
    text-align: center;
}
#slideshow p {
    margin: 0;
}
#slideshow i.fa {
    position: absolute;
    top: 45px;
    color: #eee;
    cursor: pointer;
    z-index: 999;
}
#slideshow i.fa-angle-left {
    left: 10px;
	color: #8b0000;
}
#slideshow i.fa-angle-right {
    right: 10px;
	color: #8b0000;
}

.banner {
    font-size: 1.1rem;
    margin-block: 1rem;
    font-weight: 600;
    text-align: center;
    text-wrap-style: balance;
    color: #8B0000;
    background-color: white;
    border: 2px solid #8B0000;
    padding: 7px 10px;
}

/* Bootstrap overrides */
.nav-tabs>li>a, .nav-pills>li>a {
    padding-inline: clamp(6px, 0.75vw, 10px);
}

.slbCaption {
    color: white !important;
}

/* Catalog dropdown navigation styles */
/* Hover-based dropdown for catalog navigation */
.catalog-dropdown:hover .dropdown-menu {
    display: block;
}

.catalog-dropdown .dropdown-menu {
    margin-top: 0;
}

/* Green border for Latest Catalog button */
.catalog-dropdown > a {
    border: 1px solid hsla(120, 100%, 25%, 1);
    border-radius: 5px;
    margin: 0 !important;
    padding: 10px 8px !important;
}

.catalog-dropdown .dropdown-header {
    padding: 3px 20px;
    font-weight: 700;
    color: hsla(120, 100%, 25%, 1);
    text-wrap-mode: nowrap;
}

/* Bootstrap override */
.ui.radio.checkbox .box:before, .ui.radio.checkbox label:before {
    width: 17px !important;
    height: 17px !important;
}