:root {
    --lightgray: #efefef;
    --blue: steelblue;
    --white: #fff;
    --black: rgba(0, 0, 0, 0.8);
    --bounceEasing: cubic-bezier(0.51, 0.92, 0.24, 1.15);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body>header {
    position: relative;
    height: auto;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2d63a3;
    width: 100%;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: solid 5px #168fd4;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0px 5px 18px rgba(0, 0, 0, 0.2);
}

.page-summary {
    margin: 0 -9999rem;
    /* add back negative margin value */
    padding: 0.25rem 9999rem;
    background: rgba(0, 0, 0, 0.5);
    background: #d1b935;
}

.page-summary>p {
    font-size: 1.3rem;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 0;
    color: #fff;
    font-family: "Montserrat";
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    padding: 30px;
    filter: contrast(2);
    margin-top: 0;
}

/* body>header {
    position: sticky;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    height: auto !important;
}

body>header::before{
    content: '';
    display: block;
    box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.2);
    background-color: transparent !important;
    top: 0;
    left: 0;
    position: absolute;
    left: 0;
    width: 100%;
    height: 78px;
}
 */


/* body>header::after {
 background: linear-gradient(white, rgba(255,255,255,0.3));
 top: 0;
} */

body>header h1 {
    /*   color: #ffffff; */
    font-size: 20px;
    font-size: 1.25rem;
}

@media only screen and (min-width: 768px) {


    body>header h1 {
        font-size: 26px;
        font-size: 1.625rem;
    }
}



body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: "Montserrat", sans-serif;
}

.wrapper {
    max-width: 1500px;
    height: 100%;
    /*! max-height: calc(100% - 100px); */
    padding-bottom: 70px !important;
    padding-top: 70px;
}

.wrapper.modal-open {
    overflow: hidden
}

.card-section-sep {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #063e5e;
    color: #fff;
    margin: 45px auto 30px;
    font-family: "Montserrat", sans-serif;
    max-width: 1250px;
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px
}

.wrapper {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

.card {
    width: 420px;
    height: 340px;
    margin: 1em;
    perspective: 1500px;
    box-shadow: 0px 4px 6px 0px rgba(50, 50, 93, 0.11), 0px 1px 3px 0px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
}

.card .content {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.75, 0, 0.85, 1);
}

.more {
    display: none;
}

.more:checked~.content {
    transform: rotateY(180deg);
}

.front,
.back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    border-radius: 6px;
}

.front .inner,
.back .inner {
    height: 100%;
    display: grid;
    padding: 1.5em;
    transform: translateZ(80px) scale(0.94);
}

.front {
    background-color: #fff;
    background-size: cover;
    background-position: center center;
}

.front:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 6px;
    backface-visibility: hidden;
    background: linear-gradient(40deg, rgba(67, 138, 243, 0.7), rgba(255, 242, 166, 0.7));
    background: linear-gradient(40deg, rgba(67, 138, 243, 0.6), rgba(255, 242, 166, 0.6));

}

.front .inner {
    grid-template-rows: 5fr 1fr 1fr 2fr 1fr;
    grid-template-rows: 3fr 1fr 1fr 2fr 1fr;
    justify-items: center;
}

.front .inner>h2 {
    grid-row: 2;
    margin-bottom: 0.3em;
    margin-top: 0 !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.front .rating {
    grid-row: 3;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    display: flex;
    flex-flow: row nowrap;

    display: none;
}

.front .rating i {
    margin: 0 1px;

    display: none;
}

.front .blurb {
    grid-row: 3;
    font-size: .8em;
    color: #fff;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}


.back .button {
    grid-column: 1/-1;
    justify-self: center;
}

.button {
    grid-row: -1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    padding: 0 1.5em;
    height: 3em;
    line-height: 2.9em;
    min-width: 3em;
    background-color: transparent;
    border: solid 2px #fff;
    color: #fff !important;
    border-radius: 4px;
    text-align: center;
    left: 50%;
    backface-visibility: hidden;
    transition: 0.3s ease-in-out;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    display: flex !important;
    align-items: center;
}

.button:hover {
    background-color: #fff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    text-shadow: none;
    color: #355cc9 !important;
}

.button.return {
    line-height: 3em;
    color: #355cc9;
    border-color: #355cc9;
    text-shadow: none;
}

.button.return:hover {
    background-color: #355cc9;
    color: #fff;
    box-shadow: none;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #859ddf;
}

::-webkit-scrollbar-thumb:hover {
    background: #355cc9;
}






a {
    color: inherit;
    text-decoration: none;
}

/* button {
      cursor: pointer;
      background: transparent;
      border: none;
      outline: none;
      font-size: inherit;
  } */

body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font: 16px/1.5 sans-serif;
    background-color: #47374e;
    background-color: #fafafa
}

.btn-group {
    text-align: center;
}

.open-modal {
    font-weight: bold;
    /*     background: var(--blue); */
    color: var(--white);
    padding: 0.75rem 1.75rem;
    /*     margin-bottom: 1rem; */
    border-radius: 5px;
}


/* MODAL
    –––––––––––––––––––––––––––––––––––––––––––––––––– */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    /* background: var(--black); */
    /* background: #000; */
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transition: transform 0.35s ease-in;
}

.modal.is-visible {
    visibility: visible;
    opacity: 1;

}

.modal.is-visible:before {
    content: "";
    position: absolute;
    background: var(--black);
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* .modal-dialog {
      position: relative;
      max-width: 800px;
      max-height: 80vh;
      border-radius: 5px;
      background: var(--white);
      overflow: auto;
      cursor: default;
  } */

.modal-dialog {
    position: relative;
    max-width: 1000px;
    max-height: 75vh;
    border-radius: 5px;
    background: #fff;
    overflow: auto;
    cursor: default;
}

.modal-dialog {
    display: grid;
    /*   grid-gap: 20px; */
    grid-template-columns: 2fr 3fr;
    grid-template-areas:
        "header  header"
        "sidebar content"
        "footer  footer";
}

.modal-dialog .modal-header {
    grid-area: header;
    /*   background-color: #fed330; */
    padding: 20px 35px;
    background-color: #2d63a3;
    color: #fff;
}

.modal-dialog .modal-header>h2 {
    font-family: "Montserrat", sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase
}

.modal-dialog .modal-content {
    grid-area: content;
    /*   background-color: #20bf6b; */
    padding: 20px;
    background-color: #f7f7f7;
}

/* .modal.for-book .cd-item-info {
    height: 100%;
} */

/* .modal.for-book>.modal-dialog {
    max-height: 500px
} */

.modal.for-book .modal-dialog {
    display: grid;
    grid-template-columns: minmax(300px, auto) minmax(55%, auto);
    grid-template-rows: 1fr minmax(300px, 450px) 1fr;
    grid-template-areas: "header header""sidebar content""footer footer";
    /*     grid-auto-rows: minmax(100px, auto); */
}

.modal.for-book .modal-dialog .modal-img-left {
    width: 100%;
    height: 100% !important;
}

.modal.for-book .modal-content {
    padding: 15px;
}

.modal.for-book .cd-item-info {
    height: 100%;
    overflow: scroll;
    background-color: #fff;
    padding: 15px;
    border: solid 1px #dad9d9;
    border-radius: 5px !important;
}

.modal.for-book .modal-dialog .modal-img-left img {
    max-width: 100%;
    object-fit: cover;
    height: 100%;
    width: 100%;
    /*     min-width: 300px; */
}

.modal.for-book .cd-item-info>.item-info-inner {
    height: initial;
}

.modal-dialog .modal-content>.cd-item-info>.item-info-inner {
    max-height: 375px;
    overflow: scroll
}

.modal-dialog .modal-img-left {
    grid-area: sidebar;
    /*   background-color: #45aaf2; */
    grid-column-end: 0;
    object-fit: cover !important;
    padding: 0;
}

.modal-dialog .modal-img-left img {
    max-width: 100%;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.modal-img-left img[src="img/Horse33.jpeg"] {
    object-position: left;
}


.modal-dialog .modal-footer {
    padding: 30px 20px;
    grid-area: footer;
    /*   background-color: #fd9644; */
    background-color: #2d63a3;
    color: #fff;
}

.modal-dialog .modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 7%;
    padding-right: 7%
}

.modal-dialog .modal-footer button.close-modal {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    padding: 0 1.5em;
    height: 3em;
    line-height: 2.9em;
    min-width: 3em;
    background-color: transparent;
    border: solid 2px #fff;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    left: 50%;
    backface-visibility: hidden;
    transition: 0.3s ease-in-out;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    min-width: 100px;
    min-height: 45px
}

.modal-dialog .modal-footer button.close-modal:hover {
    background-color: #fff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    text-shadow: none;
    color: #355cc9;
}

@media (max-width: 500px) {
    .wrapper {
        grid-template-columns: 4fr;
        grid-template-areas:
            "header"
            "content"
            "sidebar"
            "footer";
    }
}

.modal-dialog>* {
    padding: 1rem;
}

.modal-header,
.modal-footer {
    background: var(--lightgray);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header .close-modal {
    font-size: 1.5rem;
}

.modal p+p {
    margin-top: 1rem;
}


/* ANIMATIONS
    –––––––––––––––––––––––––––––––––––––––––––––––––– */
[data-animation] .modal-dialog {
    opacity: 0;
    transition: all 0.5s var(--bounceEasing);
}

[data-animation].is-visible .modal-dialog {
    opacity: 1;
    transition-delay: 0.2s;
}

.fa,
.fas,
.fa-solid {
    font-weight: 900;
}

.fa,
.far,
.fas,
.fa-solid {
    font-family: "Font Awesome 5 Free";
}

.fa,
.fab,
.fal,
.far,
.fas,
.fa-solid {
    -moz-osx-font-smoothing: grayscale;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* [data-animation="slideInOutTop"] .modal-dialog {
    transform: translateY(-100%);
} */

.modal-dialog {
    /*   position: relative;
  width: 100%;
  height: 100%; */
    width: 100%;
    /*     transform-style: preserve-3d; */
    transition: transform 1s cubic-bezier(0.75, 0, 0.85, 1) !important;
    transition: transform 1s ease-in-out !important;
    /*     perspective: 1500px; */
}

[data-animation="slideInOutLeft"] .modal-dialog {
    /*     transform: translateX(-100%); */
    transform: perspective(1000px) rotateY(180deg) translateX(-100%);
}

/* [data-animation="slideInOutRight"] .modal-dialog {
    transform: translateX(100%);
}

[data-animation="zoomInOut"] .modal-dialog {
    transform: scale(0.2);
}

[data-animation="rotateInOutDown"] .modal-dialog {
    transform-origin: top left;
    transform: rotate(-1turn);
}

[data-animation="mixInAnimations"].is-visible .modal-dialog {
    animation: mixInAnimations 2s 0.2s linear forwards;
} */

[data-animation="slideInOutDown"].is-visible .modal-dialog,
[data-animation="slideInOutTop"].is-visible .modal-dialog,
[data-animation="slideInOutLeft"].is-visible .modal-dialog,
[data-animation="slideInOutRight"].is-visible .modal-dialog,
[data-animation="zoomInOut"].is-visible .modal-dialog,
[data-animation="rotateInOutDown"].is-visible .modal-dialog {
    transform: none;
}

@keyframes mixInAnimations {
    0% {
        transform: translateX(-100%);
    }

    10% {
        transform: translateX(0);
    }

    20% {
        transform: rotate(20deg);
    }

    30% {
        transform: rotate(-20deg);
    }

    40% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(-15deg);
    }

    60% {
        transform: rotate(10deg);
    }

    70% {
        transform: rotate(-10deg);
    }

    80% {
        transform: rotate(5deg);
    }

    90% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}


/* FOOTER
    –––––––––––––––––––––––––––––––––––––––––––––––––– */
.page-footer {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

.page-footer span {
    color: #e31b23;
}


.card.book-club {
    width: 420px;
    height: 340px;
    margin: 1em;
    perspective: 1500px;
}

.card.book-club .content {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.75, 0, 0.85, 1);
}

.card.book-club .more {
    display: none;
}

.card.book-club .more:checked~.content {
    transform: rotateY(180deg);
}

.card.book-club .front,
.card.book-club .back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    border-radius: 6px;
}

.card.book-club .front .inner,
.card.book-club .back .inner {
    height: 100%;
    display: grid;
    padding: 1.5em;
    transform: translateZ(80px) scale(0.94);
}

.card.book-club .front {
    background-color: #fff;
    background-size: cover;
    background-position: center center;
}

.card.book-club .front:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 6px;
    backface-visibility: hidden;
    background: linear-gradient(40deg, rgba(67, 138, 243, 0.9), rgba(255, 242, 166, 0.7));
}

.card.book-club .front .inner {
    grid-template-rows: 5fr 1fr 1fr 2fr 1fr;
    justify-items: center;
    display: flex;
    flex-direction: column;
    justify-content: space-around
}

.rating.bc-date-wrap {
    /*     display: flex;
    flex-wrap: wrap;
    justify-content: space-between; */
}

.rating.bc-date-wrap>.blurb-date {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%
}

.card.book-club .front h2 {
    grid-row: 2;
    margin-bottom: 0.3em;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
    font-size: 1.3rem
}

.card.book-club .front .rating {
    grid-row: 3;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    display: flex;
    flex-flow: row nowrap;
}

.card.book-club .front .rating i {
    margin: 0 1px;
}

.card.book-club .back {
    transform: rotateY(180deg);
    background-color: #fff;
    border: 2px solid #f0f0f0;
}

.card.book-club .back .inner {
    grid-template-rows: 1fr 2fr 1fr 2fr 14fr 1fr 1fr;
    grid-template-columns: repeat(4, auto);
    grid-column-gap: 0.8em;
    justify-items: center;
    justify-content: center !important;
    align-content: center !important;
}

.card.book-club .back .info {
    position: relative;
    display: flex;
    align-items: center;
    color: #355cc9;
    grid-row: 3;
    width: 100%;
    justify-content: space-between;
    grid-column: 1 / 5;
    max-width: 300px;
    margin-top: 10px
}

/* .card.book-club .back>.inner {
    background-color: #f7f7f7;
}

.card.book-club .back .info,
.card.book-club .back .description {
    background-color: #fff;
} */

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

.back-date,
.back-time,
.back .description {
    color: #666 !important;
    text-align: center;
}

.back .description p {
    margin-top: 10px;
}

.card.book-club .back .info:not(:first-of-type):before {
    content: "";
    position: absolute;
    left: -0.9em;
    height: 18px;
    width: 1px;
    background-color: #ccc;
}

.card.book-club .back .info span {
    font-size: 2em;
    font-weight: 700;
}

.card.book-club .back .info i {
    font-size: 1.2em;
}

.card.book-club .back .info i:before {
    background: linear-gradient(40deg, #355cc9, #438af3);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.card.book-club .back .info .icon {
    margin-left: 0.3em;
}

.card.book-club .back .info .icon span {
    display: block;
    margin-top: -0.25em;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
}

.card.book-club .back .description {
    grid-row: 5;
    grid-column: 1/-1;
    font-size: 0.86em;
    border-radius: 5px;
    font-weight: 600;
    line-height: 1.4em;
    overflow: auto;
    color: #355cc9;
    padding-right: 10px;
}

.card.book-club .back .location,
.card.book-club .back .price {
    font-weight: 600;
    color: #355cc9;
    grid-row: 1;
    font-size: 0.86em;
}

.card.book-club .back .location {
    grid-column: 1/3;
    justify-self: left;
}

.card.book-club .back .price {
    grid-column: 3/-1;
    justify-self: right;
}

.card.book-club .back .button {
    grid-column: 1/-1;
    justify-self: center;
}

.card.book-club .button {
    grid-row: -1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    padding: 0 1.5em;
    height: 3em;
    line-height: 2.9em;
    min-width: 3em;
    background-color: transparent;
    border: solid 2px #fff;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    left: 50%;
    backface-visibility: hidden;
    transition: 0.3s ease-in-out;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

/* .card.book-club .front>.inner {
    overflow: hidden
} */


.card.book-club .front>.inner::before {
    content: "BOOK CLUB";
    width: 100%;
    text-align: center !important;
    display: inline-block;
    max-height: 20px;
    background-color: #fff;
    padding: 10px 5px;
    line-height: 1;
    color: #141414 !important;
    font-weight: bold;
    top: -10px;
    position: relative;
    border-radius: 5px;
    background-color: #f7f7f7;
    color: #2d63a3 !important;
    letter-spacing: 1px;
    font-family: "Montserrat", sans-serif;
}

.card.book-club .blurb-date {
    font-weight: 500;
    margin-top: 10px;
}

.card.book-club h2 {
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.7) !important;
    font-family: "Montserrat", sans-serif;
    line-height: 1.2 !important;
    font-size: 1.2rem !important;
}

.card.book-club .front .blurb-date {
    font-weight: 500 !important;
    margin-bottom: 0
}


.card.book-club .back .button {
    background-color: #2d63a3;
    border-radius: 5px;
}

/* .card.book-club .front>.inner::before {
   content: "BOOK CLUB";
    width: 100%;
    text-align: center !important;
    display: inline-block;
    background-color: #fff;
    padding: 10px 5px;
    line-height: 1;
    color: #141414 !important;
    font-weight: bold;
    position: absolute;
} */