/* Base */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    margin-bottom: 0;
    border-radius: 0;
}
.navbar-default {
    background-color: rgba(255,255,255,0.1);
    border: 0;
    z-index: 3;
}
.navbar-brand {
    padding: 5px;
    /*background-color: rgba(255,255,255,0.9);*/
    width: 140px;
}
.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:active,
.navbar-default .navbar-nav>li>a:focus,
.navbar-default .navbar-nav>.open>a:hover,
.navbar-default .navbar-nav>.open>a:focus {
    color: white;
}
.navbar-default .navbar-nav>li>a.btn-nav {
    padding: 5px 15px 7px 15px;
    margin-top: 8px;
    border-radius: 4px;
}
.navbar-default .navbar-nav>li>a.btn-nav:hover,
.navbar-default .navbar-nav>li>a.btn-nav:active,
.navbar-default .navbar-nav>li>a.btn-nav:focus {
    background-color: #EA5948;
    border-color: #EA5948;
    color: white;
}
.list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus {
    background-color: #ff7473;
    border-color: #ff7473;
}
.list-group-item.active a, .list-group-item.active:hover a, .list-group-item.active:focus a {
    color: #FFF;
}
.btn-transparent:hover,
.btn-transparent:active,
.btn-transparent:focus {
    background-color: #ff7473;
    border-color: #ff7473;
    color: #eceff1;
    text-shadow: none;
}
.navbar-default .btn-nav {
    margin-left: 8px;
}
.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus {
    background-color: rgba(255,255,255,1);
}
.navbar-brand img[role="logo"] {
    height: 100%;
    margin: auto;
}
.navbar-default .navbar-nav>li>a {
    color: rgba(255,255,255,0.8);
}
.navbar-default .navbar-nav>.open>a, .navbar-default .navbar-nav>.open>a:hover, .navbar-default .navbar-nav>.open>a:focus {
    background-color: rgba(255, 116, 115, 0.1);
}
.navbar-form .form-control {
    background-color: rgba(0,0,0,0.28);
    border: 1px solid rgba(216, 216, 216, 0.5);
}
.navbar-form .form-control:focus, .navbar-form .form-control:active {
    background-color: white;
}
.navbar-form .form-control::-webkit-input-placeholder {
   color: rgba(255, 255, 255, 0.7);
}
.navbar-form .form-control:-moz-placeholder { /* Firefox 18- */
   color: rgba(255, 255, 255, 0.7);
}
.navbar-form .form-control::-moz-placeholder {  /* Firefox 19+ */
   color: rgba(255, 255, 255, 0.7);
}
.navbar-form .form-control:-ms-input-placeholder {
   color: rgba(255, 255, 255, 0.7);
}
.navbar-header {
    position: relative;
}
.open>.dropdown-menu {
    border-top: 3px solid #ff7473;
}
.dropdown-menu {
    padding: 0;
}
.dropdown-menu>li>a {
    padding: 0.5em 1em;
}
#ribbon {
    padding: 0 0 20px 0;
}
#ribbon div {
    background: #eceff1;
    color: #fff;
    padding: 0.4em;
    text-align: center;
    text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.5);
    height: 70px;
}
#ribbon div:after {
    border-left: 70px solid #eceff1;
    border-right: 70px solid #eceff1;
    border-bottom: 30px solid transparent;
    bottom: -7px;
    content: '';
    display: block;
    height: 0;
    left: -7px;
    position: relative;
    width: 0;
}
#ribbon div img {
    width: auto;
}
#ribbon:hover div{
    background: white
}
#ribbon:hover div:after {
    border-left-color: white;
    border-right-color: white;
}
@media (max-width: 767px) {
    .navbar-default {
        background-color: rgba(255,255,255,1);
    }
    .navbar-default .navbar-nav>li>a {
        color: #333;
    }
    .navbar-default .navbar-nav>li>a:hover {
        border-color: transparent;
        background-color: white;
        color: #333;
    }
    .navbar-default .navbar-form {
        width: 100%;
        padding: 0 0 0 30px;
        border: 0;
    }
    .navbar-default .navbar-nav>li>a.btn-nav {
        color: white;
        margin: 0 15px 10px 15px;
    }
    .navbar-default .navbar-nav>li>a.btn-nav:hover {
        margin-bottom: 10px;
        color: white
    }
    #ribbon div {
        height: 50px;
        background: white;
    }
    #ribbon div:after {
        display: none;
    }
}

/* Std-nav */
.js-std-nav.navbar-default {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.js-std-nav.navbar-default .navbar-nav>li>a {
    color: #333;
}
.js-std-nav.navbar-default .navbar-nav>li>a:hover,
.js-std-nav.navbar-default .navbar-nav>li>a:active,
.js-std-nav.navbar-default .navbar-nav>li>a:focus {
    color: #333;
}
.js-std-nav.navbar-default .navbar-nav>li>a.btn-nav {
    color: white;
    background-color: #ff7473;
    border-color: #ff7473;
}
.js-std-nav.navbar-default .navbar-nav>li>a.btn-nav:hover {
    color: white;
    background-color: #EA5948;
}
.js-std-nav #ribbon {
    padding: 0;
}
.js-std-nav #ribbon div {
    background: white;
    padding: 0.3em;
    height: 50px;
}
.js-std-nav #ribbon div:after {
    display: none;
}
.js-std-nav #ribbon div img {
    height: 100%;
    display: block;
    width: auto;
}
.js-std-nav .navbar-form .form-control {
    background-color: #eceff1;
}
.js-std-nav .navbar-form .form-control::-webkit-input-placeholder {
   color: #999;
}
.js-std-nav .navbar-form .form-control:-moz-placeholder { /* Firefox 18- */
   color: #999;
}
.js-std-nav .navbar-form .form-control::-moz-placeholder {  /* Firefox 19+ */
   color: #999;
}
.js-std-nav .navbar-form .form-control:-ms-input-placeholder {
   color: #999;
}

/* home banner */
header[role="banner"] {
    background: black;
    display: table;
    height: calc(100% + 50px);
    z-index: 0;
    color: white;
    text-align: center;
    margin-top: -50px;
    position: relative;
    width: 100%;

}
header[role="banner"]:after{
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    opacity: 0.5;
    z-index: -1;
    background-image: url("/static/img/doctype-hi-res.b8e1d11c667e.jpg");
    background-position: center center;
    background-size: cover;
}
header[role="banner"] h1 {
    font-size: 3em;
    line-height: 1.5;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
}
header[role="banner"] p > a {
    position: absolute;
    bottom: 1em;
    left: 0;
    right: 0;
    margin: auto;
    color: rgba(255, 255, 255, 0.6);
}
@media (min-width: 1200px) {
    header[role="banner"] h1 {
        font-size: 4em;
    }
}
@media (min-width: 992px) and (max-width: 1200px) {
    header[role="banner"] h1 {
        font-size: 3.5em;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    header[role="banner"] h1 {
        font-size: 3em;
    }
}

/* Features section */
.feature-image{
    height: 180px;
    width: 100%;
    margin: auto;
    display: block;
    background-color: #eceff1;
    background-size: 360px 180px;
    background-position: center center;
    background-repeat: no-repeat;
}
#feature-boxes h2 {
    text-align: center;
    font-size: 1.5em;
}
#feature-boxes p{
    text-align: center;
}
@media (min-width: 992px) {
    .feature-image{
        background-size: 100%;
    }
    #feature-boxes p{
        text-align: left;
    }
}

/* Ready to publish section */
#publish img {
    width: 100%;
    /*height: 500px;*/
}
@media (max-width: 991px) {
    #publish .text-left, #publish .text-right {
        text-align: center;
    }
    #publish img {
        height: 300px;
        width: auto;
        margin: auto;
        padding: 2em 0;
        display: block;
    }
}

/* Testimonials section */
.testimonial {
    border: 1px solid white;
    background: rgba(255,255,255,0.2);
    border-radius: 0.5em;
    height: auto;
    position: relative;
    overflow: hidden;
    margin-bottom: 1em;
}
.testimonial .author {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid white;
    padding: 0.5em 1.5em;
    background-color: rgba(255,255,255,0.5);
    font-size: 0.9em;
}
.testimonial blockquote {
    padding: 1.2em;
    font-size: 0.9em;
}
@media (min-width: 1200px) {
    .testimonial {
        height: 11em;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .testimonial {
        height: 14em;
    }
}

/* Books section */
#books img{
    width: 100%;
}

/* Newsletter signup section */
#newsletter input.form-control {
    height: 3em;
    min-width: 23em;
    padding: 6px 1em;
}

/* Footer */
footer {
    flex-shrink: 0;
}

footer p[role="copyright"] {
    font-size: 0.7em;
}
footer li > a {
    border-bottom: 1px dotted #ccc;
    display: block;
    padding: 0.25em;
}


/* Publish page components */
header[role="choose"] {
    border-bottom: 1px solid #eceff1;
    margin-top: 50px;
}
header[role="choose"] .row {
    position: relative;
}
header[role="choose"] .col-xs-6 {
    padding: 0;
}
#choose {
    position: relative;
    width: 0;
    height: 15rem;
    margin: 0;
    padding: 0;
    float: right;
    margin-top: -15rem;
    margin-right: 6rem;
}
#choose h3 {
    position: absolute;
    z-index: 2;
    margin: 3rem 0;
    color: white;
    background-color: #ff7473;
    height: 12rem;
    width: 12rem;
    border-radius: 50%;
    border: 10px solid white;
    margin: 1.5rem 0;
    padding-top: 3rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.choose-options a, .choose-options span {
    display: block;
    height: 15rem;
    line-height: 15rem;
    color: #333;
    padding: 0 4rem;
}
.choose-options .title-type {
    font-size: 1em;
}
.choose-options a:hover, .choose-options a:active, .choose-options a:focus {
    color: #ff7473;
    text-decoration: none;
    background-color: #E4E9EC;
}
.choose-active {
    height: 3rem;
    width: 3rem;
    position: absolute;
    top: 0;
    -webkit-transform: rotateZ(45deg);
    -moz-transform: rotateZ(45deg);
    -o-transform: rotateZ(45deg);
    transform: rotateZ(45deg);
    background-color: #eceff1;
    z-index: 2;
    margin-top: -1.5rem;
}
#choose-active-left {
    left: 15rem;
}
#choose-active-right {
    right: 15rem;
}
@media (min-width: 1200px) {
    .choose-options .title-type {
        font-size: 1.6em;
    }
}
@media (min-width: 992px) and (max-width: 1199px){
    .choose-options .title-type {
        font-size: 1.4em;
    }
}
@media (min-width: 768px) and (max-width: 991px){
    .choose-options .title-type {
        font-size: 0.9em;
    }
}
@media (max-width: 767px) {
    .choose-active, #choose h3 {
        display: none;
    }
    .choose-options .title-type {
        line-height: 1.5;
    }
    .choose-options a, .choose-options span {
        height: 6em;
        padding: 2em 0.5em;
        text-align: center;
    }
}


/* Timeline */
.cbp_tmtimeline {
    margin: 30px 0 0 0;
    padding: 0;
    list-style: none;
    position: relative;
}
.cbp_tmtimeline:before {
    content: '';
    position: absolute;
    top: 1em;
    bottom: 5em;
    width: 0;
    border: 0.13em dashed #D3D8DB;
    /*background: #eceff1;*/
    left: 5%;
    margin-left: 1.7rem;
}
.cbp_tmtimeline > li .cbp_tmlabel {
    margin: 0 0 15px 20%;
    padding: 0.5rem 1.2rem;
    font-size: 1em;
    font-weight: 300;
    line-height: 1.4;
    position: relative;
    border-radius: 5px;
    min-height: 8rem;
    background-color: #eceff1;
}
.cbp_tmtimeline > li .cbp_tmlabel:before {
    content: '';
    display: block;
    height: 0;
    width: 0;
    border-width: 1em 1.2em;
    border-style: solid;
    border-color: transparent #eceff1 transparent transparent;
    position: absolute;
    left: -2.35em;
    top: 1em;
}
.cbp_tmtimeline > li .cbp_tmicon {
    width: 2.5rem;
    height: 2.5rem;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    font-size: 1.4em;
    line-height: 2.5rem;
    font-weight: bold;
    -webkit-font-smoothing: antialiased;
    position: absolute;
    color: #eceff1;
    border-radius: 50%;
    box-shadow: 0 0 0 6px #eceff1;
    text-align: center;
    left: 7.5%;
    margin: 12px 0 0 -10px;
    background-color: #333333;
    background-size: 100%;
}

@media screen and (max-width: 991px) {
    .cbp_tmtimeline > li .cbp_tmtime span:first-child {
        font-size: 1.4em;
    }
    .cbp_tmtimeline > li .cbp_tmtime {
        left: 40px;
    }
}

/* Pages header */
header[role="page-header"] {
    padding: 4em 0;
    margin-top: 50px;
    margin-bottom: 50px;
    background-color: #eceff1;
    text-align: center;
}
header[role="page-header"] h1 {
    margin: 0;
}
.page-content {
    padding: 3em 0 3em 0;
}
.content h4, .content h5 {
    font-weight: 800;
}
.content h2 {
    padding-top: 1em;
    padding-bottom: 0.5em;
}
.content h5 {
    padding-top: 1em;
    padding-bottom: 0.5em;
}
.content h4 {
    padding-top: 2em;
    padding-bottom: 1em;
}
.content p {
    margin-bottom: 20px;
}
.container-centered {
    width: 65%;
    margin: auto;
}
h4.panel-title {
    padding: 0;
}

div.page {
	flex: 1 0 auto;
    padding-bottom: 4em;
}

fieldset.collapsible {
	margin-bottom: 3em !important;
}

th.checkbox, td.checkbox {
	display: table-cell;
}

.payment-modal {
    display:    block;
    position:   fixed;
    z-index:    1000;
    top:        0;
    left:       0;
    height:     100%;
    width:      100%;
    background: rgba( 255, 255, 255, .8 ) 
                url("/static/img/ajax-loader.57ca1a2085d8.gif")
                50% 50% 
                no-repeat;
}

table.order-review-table {
	width: 60%;
	border: none;
}

table.order-review-table tr.pane-title-row,
table.order-review-table tr.review-button-row {
	border: none;
	background-color: #eceff1;
	color: #ff7473;
}

@media (max-width: 550px) {
    td.image {
        display: none;
    }

    td.desc,
    td.price {
        font-size: 0.8rem;
    }

    #cart-form-products table.sticky-enabled tr th:nth-child(3){
        display: none;
    }

    #cart-form-buttons {
        text-align: center;
    }
    #update-checkout-buttons {
        float: none;
    }

    header[role="page-header"] {
        padding: 2em 0;
        margin-bottom: 25px;
    }

    .order-review-table td.title-col {
        text-align: left;
        padding-left: 0;
    }

    .order-review-table td.data-col {
        padding-right: 0;
    }

    #main {
        margin-left: 0;
    }

    div.product_book_page_image {
        float: none;
    }

    #book_title_author_details_add_to_cart {
        float: none;
        padding-bottom: 1rem;
        margin-left: 10px !important;
    }

    #book_title_author_details_add_to_cart ~ div {
        float: none;
        margin-left: 0 !important;
        text-align: left !important;
    }

    #book_title_author_details_add_to_cart ~ div > div {
        background-color: white !important;
        padding: 0px !important;
    }

    #book_title_author_details_add_to_cart ~ div > div#covid19-notice {
        text-align: center !important;
    }

    #book_details_add_to_cart > div {
        float: none !important;
    }

    body {
        font-size: 0.9em !important;
    }
}

.form-control {
    color: #333 !important;
}

div.messages {
    padding: 1.3em 1em .3em 52px;
    border-width: 2px;
    margin: 10px 0;
}

.error {
    color: #e55;
}

div.error {
    border: 1px solid #d77;
}

div.error, tr.error {
    background: #fcc;
    color: #200;
    padding: 2px;
}

.marker, .form-required {
    color: #f00;
}

.account-menu-item {
    margin-bottom: 5px; 
    padding: 15px 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

.account-menu-item a {
    display: block;
    text-decoration: none;
    font-size: 16px;
    color: #d9534f; 
}

.account-menu-item:hover {
    border-color: #c0c0c0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.account-menu-item:hover a {
    color: #c9302c;
}
