.main-container {
    padding: 0;
    font-family: AvenirHeavy;
}

.hide {
    display: none !important;
}


.wrapper {

    margin-top: 0;
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
    display: flex;
    justify-content: center;
}


.content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    overflow: hidden;
    margin: 3em 1em;
    width: 100%;
}


/*To adjust the size of the cover program*/
/*.cover-wrapper {
    background-color: #ff9da6;
    text-align: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
}*/

.cover-wrapper {
    background-color: #ff9da6;
    text-align: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background-image: url('../img/NLB Uncovered Tiles.png');
    /*background-repeat: repeat-x;*/
    /*background-size: 33.3%;*/
    background-size: cover;
}

.cover {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin: auto 0 !important;
    overflow: visible;
}

.dark-BG {
    z-index: -1;
    position:absolute;
    top: 39%;
    right: 0%;
    width: 100%;
    height:6rem;  
}

.cover-center {
    max-width: 50vw;
    margin: 10px;
    align-self: center;
    padding: 80px 0;
}

.cover-center {
    max-width: 50vw;
    margin: 10px;
    align-self: center;
    padding: 80px 0;
}

@media screen and (max-width:2100px) {
    .cover-center img {
        width: 100%;
        max-width: 600px;
    }
}

.cover-center span {
    text-transform: capitalize;
    line-height: 1;
    z-index: 1;
    color: #231f20;
}



.cover-title {
    font-size: 1.5rem;
}

.cover-subtitle {
    font-size: 1.2rem;
}

.cover-left div:first-child {
    position: relative;
    left: -40px;
    top: 3em;
    z-index: 2;
}

.cover-left div:last-child {
    position: relative;
    left: -12px;
    top: -3em;
    z-index: 1;
}

.cover-right div:first-child {
    position: relative;
    right: -40px;
    top: 3em;
    z-index: 2;
}

.cover-right div:last-child {
    position: relative;
    right: -12px;
    top: -3em;
    z-index: 1;
}

.book-article {
    overflow: hidden;
    max-width: 99px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.24);
    transition: all 800ms;
    object-fit: contain;
}


    .book-article:hover {
        box-shadow: 0 7px 14px rgba(0, 0, 0, 0.25), 0 5px 5px rgba(0, 0, 0, 0.22);
    }

    .book-article img {
        display: block;
        width: 100%;
        height: auto;
    }


/* Loan Counts */
.count-wrapper {
    background-color: rgb(236, 96, 68);
    position: relative;
}

.count {
    margin-top: 4rem;
    flex-wrap: nowrap;
    flex-direction: row;
}

.full-chart-wrapper {
    width: 100%;
    height: 100%;
    margin: auto;
}

.half-chart-wrapper {
    width: 35%;
    margin: auto 20px;
}

.chart-container {
    position: relative;
    margin: auto;
}

.count-stats {
    width: 100%;
    min-width: 0;
    max-width: 50%;
    margin: auto 8px;
}

.count-left {
    text-align: center;
    margin: 1em 0;
    opacity: 0;
    transform: translateX(100vw);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.count-row {
    display: inline-block;
    flex-direction: row;
    align-items: center;

    /* styling for animation before triggering*/
    opacity: 0;
    transform: translateX(100vw);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.count-text {
    margin: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/*contains total borrowed icons and numbers*/
.count-details {
    margin: 0 20px;
    padding: 1em 0 0 0;
    display: flex;
    justify-content: center;
}


/*To adjust the alignment of the Books, eBooks, Audiobooks icons*/
.count-right {
    width: 100%;
    left: 30%;
    position: relative;
}

    .count-right .count-text {
        text-align: center;
    }

.icon-total > img {
    width: 50px;
    height: 50px;
}

.icon {
    align-items: center
}

    .icon > img {
        width: 40px;
        height: 40px;
    }


/* Rank Section */
.rank-wrapper {
    background-color: rgb(24, 62, 189);
    position: relative;
    z-index: 2;
}

.rank-left > img {
    max-width: 210px;
    height: auto;
}

.rank-right {
    text-align: center;
    line-height: 1;
    z-index:1;
}

.rank-percentage {
    font-size: 36px;
    color: #fff;
    opacity: 0;
    text-shadow: 0 0 50px #fdc000, 0 0 80px #fdc000, 0 0 40px #fdc000, 0 0 10px #fdc000, 0 0 10px #fdc000, 0 0 10px #fdc000;

}


/* Monthly Trend Charts */
.total-wrapper {
    background-color: #fff;
    position: relative;
    z-index: 2;
}


.type-wrapper {
    background-color: #ff9da6;
    position: relative;
}

.chart {
    flex-direction: column;
    gap: 1em;
}

    .chart .header-div .header {
        margin: 0
    }


/* Loan Summary Message */
.summary-wrapper {
    background-color: rgb(24, 62, 189);
    position: relative;
}

.summary-img img {
    max-width: 7.5em;
    padding: 0 0 0 0.5em;
}

/* Fav Genres */
.genre-wrapper {
    background-color: rgb(235, 194, 65);
    position: relative;
}

.genre-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

    .genre-left .header {
        margin-left: 0;
    }

.pills {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 50vw;
 }

.pill-wrapper {
    margin: 6px;
    text-align: center;

    /* styling for animation */
    opacity: 0;
    transform: translateX(100vw);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.pill {
    display: block;
    background-color: rgba(153, 153, 102, 0.6);
    padding: 6px 14px;
    align-self: center;
    border-radius: 80px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    cursor: default;
    pointer-events: none;
    color: #fff;
}

.pill-num-physical {
    background-color: #fdc000;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 12px;
    text-align: center;
    pointer-events: none;
    color: #634e55;
}

.pill-num-digital {
    background-color: #003ace;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 12px;
    text-align: center;
    pointer-events: none;
    color: white;
}

.pill-wrapper:first-child .pill {
    background-color: #ff3f21;
    color: #fff;
}

#genre-animation {
    max-width: 15em;
}

/* Author */

.author-wrapper {
    background-color: #ff3f21;
    position: relative;
}

.author {
    flex-direction: column;
    gap: 2em
}

.author-header {
    width: 100%
}

    .author-header .header {
        margin-left: 0
    }

.author-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-around;
}

.author-block {
    /* styling for animation */
    opacity: 0;
    transform: translateX(100vw);
    transition: opacity 0.5s ease, transform 0.5s ease;
}


/*Loader Spinner for Recommendations*/
.loader {
    width: 100px;
    height: 100px;
    border: 3.5px solid #008080;
    bottom: -5em;
    border-radius: 50%;
    display: none;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin: 1em;
    z-index: 999;
    display: none;
}

    .loader::after {
        content: '';
        box-sizing: border-box;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 90px;
        height: 90px;
        border-radius: 50%;
        border: 3.5px solid transparent;
        border-bottom-color: #FF3D00;
        z-index: 999;
    }

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.fade-in {
    animation: transitionIn 0.85s;
}

@keyframes transitionIn {
    from {
        opacity: 0;
        transform: rotateX(-10deg)
    }

    to {
        opacity: 1;
        transform: rotateX(0)
    }
}

.more-btn {
    display: flex;
    align-items: center;
}

.rec-header {
    margin-bottom: 1em;
    width: 100%;
}

.rec-section {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: center;
}

.rec-btn {
    transition: color 0.15s ease-in;
    background-color: #ff3f21;
    margin-top: 3em;
    padding: 1em 1.75em;
    align-self: center;
    border-radius: 8px;
    border: 1px solid #ff885d;
    color: #ff885d;
    font-weight: bold;
    box-shadow: 2px 2px 8px 0 rgba(99, 116, 128, 0.12);
    cursor: pointer;
    text-align: center;
}

    .rec-btn a {
        color: #fff
    }

.dl-btn {
    transition: color 0.15s ease-in;
    padding: 0.5em;
    align-self: center;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}



/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}


/*Social sharing icons*/

.social-wrapper {
    background-color: #003ace;
    position: relative;
    height: min-content;
}

.social {
    display: block;
    text-align: center;
    flex-direction: column;
    gap: 1em
}

.social-header {
    width: 100%; 
 }

    .social-header .header {
        display: block;
        text-align: center;
        margin-left: 0
    }


.dl-share-btn {
    position: absolute;
    padding-top: 10px;
    right: 16px;
}


.count-header {
    display: block;
    margin: 0 auto;
    margin-top: 2rem;
    font-size: 1.25rem;
    color: #fff;
    position: absolute;
    padding: 0 1rem;
}


#snackbar {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #333; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    bottom: 30px; /* 30px from the bottom */
}

    /* Show the snackbar when clicking on a button (class added with JavaScript) */
    #snackbar.show {
        visibility: visible; /* Show the snackbar */
        /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
        -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
        animation: fadein 0.5s, fadeout 0.5s 2.5s;
    }


.download,
.share {
    display: inline-block;
}

    .download svg,
    .share svg {
        cursor: pointer;
        margin-left: 6px;
        align-content: flex-end;
        stroke: #fff;
        color:#fff;
        stroke-width: 0.25px;
    }


.email {
    display: inline;
    position: relative;
    height: 22px;
    min-width: 16px;
    margin: 3px;
    padding: 6px 8px;
    background-color: indianred !important;
    border-radius: 3.33333px;
    border: 0;
    box-sizing: content-box;
    line-height: 1.5;
    transition: opacity .3s ease;
    vertical-align: middle;
}

    .email:before {
        position: absolute !important;
    }


#email-option {
    display: inline-block;
    height: 26px;
    width: 28px;
    justify-content: center;
    align-content: center;
    margin-top:1.5px;
}


.footer-img{
    width:100%;
}

/* Bookwall */
.bookwall {
    background-color: rgb(235, 194, 65);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    width: 100%;
    padding-bottom: 10%;
}

.bookwall-header {
    text-align: center;
    padding: 2em;
    margin-top: 2em;
}

    .bookwall-header .header {
        margin: 0;
    }

/* BOOKWALL MODALS */

/* EDIT BUTTON */
.float {
    position: absolute;
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    border-radius: 50px;
    text-align: center;
    box-shadow: 1px 2px 3px #999;
    z-index: 1;
}

.my-float {
    margin-top: 22px;
}

.edit-btn {
    margin: 0 auto;
    margin-top: 3rem;
    padding: 0 1rem;
    display: block;
    width: fit-content;
    height: 35px;
    border-radius: 5px;
    background-color: #ff3f21;
    border-style: none;
    color: white;
}


.nxt-btn {
    width: min-content;
    height: 35px;
    border-radius: 5px;
  background-color: #ff9da6;
    border-style: none;
    color: white;
   text-align:center;
}


.disabled {
    background-color: rgba(255, 157, 166, 0.5);
}


.image-checkbox {
    cursor: pointer;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    margin-bottom: 0;
    outline: 0;
}

    .image-checkbox input[type="checkbox"] {
        display: none;
    }

.image-checkbox-checked {
    outline: 4px solid #ff9da6;
}

.book-article-edit {
    overflow: hidden;
    max-width: 99px;
    border-radius: 10px;
    overflow: hidden;
    object-fit: contain;
    padding: 0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.24);
}

.modal-footer {
    display: flex;
    padding: 7px;
    justify-content: space-around;
}

.modal-fontsB {
    font-family: AvenirHeavy;
}

.modal-fonts {
    font-family: AvenirRoman;
}


#count-tracker {
    margin-right: 10px;
    font-size: 14px;
}

/* Layout modal */
.layout-svg {
    max-width: 10vw;
    height: auto;
}

.layout.svg:not(.active) path {
    fill: #ff885d
}

.layout-svg.active path {
    fill: white;
}

.mw-45 {
    min-width: 45vw;
}

.list-group-item.active {
    z-index: 2;
    color: var(--bs-list-group-active-color);
    background-color: #ff9da6;
    border-color: #ff9da6;
}


.list-group-item-action.disabled {
    background: rgb(90 90 90 / 10%);
}


/* Review Modal */
.review-div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin: 0.8em 0;
}

.book-review {
    width: 100%;
    margin: 0 1em;
    font-size: 14px;
    max-width: 50vw;
    word-break: break-all;
}

/* THE LAYOUTS */
#bookwall-layout {
    padding-bottom: 32px;
}


/* FOR all sizes*/

.grid-layout-modal {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-self: center;
    align-items: flex-start;
    grid-gap: 10px;
    transform: none;
    margin: 40px 30px 20px 30px;
    justify-items: center;
}



.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-self: center;
    align-items: flex-start;
    grid-gap: 10px;
    transform: none;
    margin: 40px 30px 20px 30px;
    justify-items: center;
}


.gallery-layout {
    column-count: 3;
    -webkit-column-count: 3; /* Chrome, Safari, Opera */
    -moz-column-count: 3; /* Firefox */

    margin: 1em;
    gap: 1em;
}

    .gallery-layout .book-article {
        margin-bottom: 1em
    }



.total-icon {
    z-index: -1;
    position: absolute;
    top: 57.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14.5rem;
}



/* ONLY FOR mobile sizes */
.slant-layout {

    display: inline-flex;
    flex-direction:row;
    flex-wrap:wrap;
    grid-gap: 0.5em;
    justify-content: center;
    align-items: center;
    /*width: 80vw;*/
    transform: translateX(0%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
    margin-top: 50px;
}

.brick-layout {
    position: relative;
    font-size: clamp(95px,1vw,125px);
    padding: 0.15em 0;
    width: 100%;
    /*    overflow-x: scroll;
*/
}

.brickwork-row {
    display: flex;
    flex-direction:row;
    margin: -0.52em auto 0;
    justify-content: center;
    align-items: center;
}

    .brickwork-row:first-child {
        margin-top: 0;
    }

.brickwork-brick {
    flex: 0 0 auto;
    margin: 0 0.45em 0 0.45em;
    /* styling for animation */
    opacity: 0;
    transition: opacity 0.4s ease;
}

    .brickwork-brick .cover-box {
        transform: rotate(45deg);
        transform-origin: center center;
    }

.cover-box {
    display: block;
    font-size: inherit;
    width: 1em;
    height: 1.333em;
}

.brickwork-row-b .brickwork-brick .cover-box {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.cover-box-press {
    border-radius: 1.5% 4% 2% 3%;
}

.cover-box-press {
    position: relative;
    height: 100%;
}

.cover-box-clip {
    width: 97.75%;
    height: 98.3125%;
}


img.directed-image[src] {
    opacity: 1;
}

img.directed-image {
    color: transparent;
    opacity: 0;
}

.cover-box-clip > * {
    width: 100%;
    height: 100%;
}

.cover-box-clip > * {
    display: block;
}

/* only stretch book for brickwork */
.brickwork-brick img {
    height: 100%;
    object-fit: fill;
}

/* END OF LAYOUTS */


/* Recommendation Section */
.recommendations-wrapper {

    background-color: #fff;
    position: relative;
}

.recommendations {
    flex-direction: column;
}

.rec-header .header,
.rec-header .subheader,
.rec-header .subheader-2 {
    margin-left: 0;
}

.subheader-2 {
    display: flex;
    flex-direction: row;
    gap: 3px;
}

    .subheader-2 select {
        display: inline-block;
        width: fit-content;
        cursor: pointer;
    }



/* Responsive Sizing */
/* any smaller than phone size */

@media screen and (max-width: 330px) {
    .dl-share-btn{
        display:none;
    }

    .bookwall {
        align-items: center;
    }


    .slant-layout {
        width: 550px;
        transform: translateX(0%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
    }

    .grid-layout-modal {
 
        grid-template-columns: 1fr 1fr;
   
    }


    .grid-layout {
        grid-template-columns: 1fr 1fr;
    }

    .summary,
    .genre,
    .rank,
    .count {
        flex-wrap: wrap;
        justify-content: center;
    }

    .author-section {

        justify-content:flex-start;
    }


        .count-right {
        left: 30%;
    }

    .count-stats {
        width: 100%;
        max-width: none;
    }

    .count-row {
   
        justify-content: center;
        margin: 10px auto;
    }

    .rank-left > img {
        max-height: 112px;
    }

    #genre-animation {
        max-width: 15em;
    }

    .cover .book-article {
        max-width: calc(99px * 0.6);
    }

    .rec-btn {
        font-size: 14px;
        padding: 1em 0.75em;
    }

    .pills {
        max-width: 95vw
    }

    .half-chart-wrapper {
        width: 60%;
        margin: 0;
    }

    .content {
        justify-content: center;
   
    }

    .total-icon {
        top: 61.5%;
    }

}

@media screen and (min-width: 330px) and (max-width: 355px) {

    .dl-share-btn {
        display: none;
    }

        .total-icon {
        top: 61.5%;
    }

    .grid-layout-modal {
        grid-template-columns: 1fr 1fr 1fr;
    }

        .summary,
    .genre,
    .rank,
    .count {
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 0.5em;
    }

    .content {
        margin: 3em 1em;
    }

    .count-right {
        left: 30%;
    }

    .count-stats {
        width: 100%;
        max-width: none;
    }

    .count-row {
        justify-content: center;
        margin: 10px auto;
    }

    .rank-left > img {
        height: 115px;
    }

    .slant-layout {
        width: 550px;
        transform: translateX(-18%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
    }

    .cover .book-article {
        max-width: calc(99px * 0.6);
    }

    .half-chart-wrapper {
        width: 60%;
        margin: 0;
    }
}

    /* phone size */

    @media screen and (min-width: 355px) and (max-width: 376px) {
        .dl-share-btn {
            display: none;
        }

        .total-icon {
            top: 61.6%;
        }

        .bookwall {
            align-items: center;
        }

        .slant-layout {
            width: 550px;
            transform: translateX(2%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
        }


        .grid-layout-modal {
            grid-template-columns: 1fr 1fr 1fr;
        }

        .grid-layout {
            grid-template-columns: 1fr 1fr 1fr;
        }

        .summary,
        .genre,
        .rank,
        .count {
            flex-wrap: wrap;
            justify-content: center;
            gap: 0.5em;
        }


        .count-right {
            left: 30%;
        }

        .count-stats {
            width: 100%;
            max-width: none;
        }

        .count-row {
            justify-content: center;
            margin: 10px auto;
        }

        .half-chart-wrapper {
            width: 50%;
            margin: 0;
        }


        #genre-animation {
            max-width: 15em;
        }

        .cover .book-article {
            max-width: calc(99px * 0.6);
        }

        .rec-btn {
            font-size: 14px;
            padding: 1em 0.75em;
        }

        .pills {
            max-width: 95vw
        }


        .half-chart-wrapper {
            width: 50%;
            margin: 0;
        }

        .content {
            justify-content: center;

        }

        .rank-left > img {
            height: 140px;
        }
         
    }


@media screen and (min-width: 376px) and (max-width:400px) {


    .dl-share-btn {
        display: none;
    }


    .total-icon {
        top: 61.5%;
    }

   .content {
        justify-content: space-between;
    }


    .grid-layout {
        grid-template-columns: 1fr 1fr 1fr;
    }


    .summary,
    .genre,
    .rank,
    .count {
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 0.5em;
    }


    .bookwall {
        align-items: center;
    }

    .cover .book-article {
        width: calc(99px * 1);
    }

    .half-chart-wrapper {
        width: 50%;
        margin: 0;
    }


    .slant-layout {
        width: 550px;
        grid-gap:0.6rem;
        transform: translateX(2%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
    }

    .count {
        flex-direction: column;
        align-content: center;
    }

    .count-right {
        left: 20%;
    }

    .count-stats {
        width: 100%;
        max-width: none;
    }

    .count-row {
        margin: 10px auto;
    }

    .half-chart-wrapper {
        width: 50%;
        margin: 0;
    }


    .rank-left > img {
        height: 170px
    }

    .rank-icon {
        top: 49.4%;
    }

    .pills {
        max-width: 64vw
    }
}


@media screen and (min-width: 400px) and (max-width:450px) {

    .dl-share-btn {
        display: none;
    }

    .total-icon {
        top: 61.5%;
    }


    .content {
        justify-content: space-between;
    }

    .grid-layout {
        grid-template-columns: 1fr 1fr 1fr;
    }


    .summary,
    .genre,
    .rank,
    .count {
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 0.5em;
    }


    .bookwall {
        align-items: center;
    }

    .cover .book-article {
        width: calc(99px * 1);
    }

    .half-chart-wrapper {
        width: 50%;
        margin: 0;
    }


    .slant-layout {
        width: 640px;
        transform: translateX(0%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
    }

    .count {
        flex-direction: column;
        align-content: center;
    }

    .count-right {
        left: 20%;
    }

    .count-stats {
        width: 100%;
        max-width: none;
    }

    .count-row {
        margin: 10px auto;
    }

    .half-chart-wrapper {
        width: 50%;
        margin: 0;
    }


    .rank-left > img {
        height: 170px
    }

    .rank-icon {
        top: 49.4%;
    }

    .pills {
        max-width: 64vw
    }
}


/* medium */
    @media screen and (min-width: 450px) and (max-width: 480px) {

        .dl-share-btn {
            display: none;
        }


        .total-icon {
            top: 61.5%;
        }

          
        .content {
            justify-content: space-between;
 
        }

        .grid-layout {
            grid-template-columns: 1fr 1fr 1fr;
        }


        .summary,
        .genre,
        .rank,
        .count {
            flex-wrap: wrap;
            justify-content: space-around;
            gap: 0.5em;
        }


        .bookwall {
            align-items: center;
        }

        .cover .book-article {
            width: calc(99px * 1);
        }

        .half-chart-wrapper {
            width: 50%;
            margin: 0;
        }


        .slant-layout {
            width: 650px;
            transform: translateX(0.5%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
        }

        .count {
            flex-direction: column;
            align-content: center;
        }

        .count-right {
            left: 20%;
        }

        .count-stats {
            width: 100%;
            max-width: none;
        }

        .count-row {
            margin: 10px auto;
        }

        .half-chart-wrapper {
            width: 50%;
            margin: 0;
        }

        .rank-left > img {
            height:170px
        }

        .rank-icon {
            top: 49.4%;
        }

        .pills {
            max-width: 64vw
        }
    }

  

@media screen and (min-width: 481px) and (max-width: 580px) {

    .dl-share-btn {
        display: none;
    }

    .summary,
    .genre,
    .rank,
    .count {
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 0.5em;
    }

    .count-right {
        left: 30%;
    }

    .count-stats {
        width: 100%;
        max-width: none;
    }

    .count-row {
        justify-content: center;
        margin: 10px auto;
    }


    .bookwall {
        align-items: center;
    }


    .grid-layout-modal {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }


    .grid-layout {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .gallery-layout {
        column-count: 4;
    }

    .legend text {
        font-size: 16px !important;
    }

    .legend {
        max-width: 40vw;
    }

    .icon-total > img {
        width: calc(50px * 1.15);
        height: calc(50px * 1.15);
    }

    .icon {
        margin: 10px;
        justify-content: center;
    }

        .icon > img {
            width: calc(40px * 1.25);
            height: calc(40px * 1.25);
        }

    .pill {
        font-size: 16px;
    }

    .chart-wrapper .header-div {
        justify-content: center;
    }

    .rank-left > img {
        max-width: 190px;
    }

    .slant-layout {
        width: 750px;
        transform: translateX(0%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
    }

    .total-icon {
        top: 61.5%;
    }

    .rank-icon {
        top: 49.3%;
        left: 51.5%;
    }

    }


    /* ipad mini + trophy icon appears */
@media screen and (min-width: 580px) and (max-width: 768px) {

    .dl-share-btn {
        display: none;
    }

    .content {
        padding: 20px;
        max-width: 765px;
    }

    .cover.content {
        overflow: visible;
    }

    .half-chart-wrapper {
        width: 30%;
        margin: 0;
    }


    .bookwall-header {
        align-self: center;
    }

    .grid-layout-modal {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .grid-layout {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }

    .summary,
    .genre,
    .rank,
    .count {
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 0.5em;
    }

    .gallery-layout {
        column-count: 5;
    }

    .pills {
        max-width: 35vw;
    }

    .slant-layout {
        width: 800px;
        transform: translateX(-16%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
    }

    .rank-left > img {
        max-width: 200px;
    }

    .total-icon {
        top: 60.5%;
    }
}


@media screen and (min-width: 768px) and (max-width: 820px) {

    .dl-share-btn {
        display: none;
    }

    .content {
        padding: 20px;
        max-width: 765px;
    }

    .cover.content {
        overflow: visible;
    }

    .half-chart-wrapper {
        width: 30%;
        margin: 0;
    }


    .bookwall-header {
        align-self: center;
    }

    .grid-layout-modal {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .grid-layout {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }

    .summary,
    .genre,
    .rank,
    .count {
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 0.5em;
    }

    .gallery-layout {
        column-count: 5;
    }

    .pills {
        max-width: 35vw;
    }

    .slant-layout {
        width: 900px;
        transform: translateX(-10%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
    }

    .rank-left > img {
        max-width: 200px;
    }

    .total-icon {
        top: 60.5%;
    }
}

    /*iPad Air*/
    @media screen and (min-width: 820px) and (max-width: 900px) {

        .dl-share-btn {
            display: none;
        }

        .summary,
        .genre,
        .rank,
        .count {
            flex-wrap: wrap;
            justify-content: space-around;
            gap: 0.5em;
        }

        .content {
            padding: 20px;
            max-width: 820px;
        }


        .rank-left > img {
            height: 200px;
        }


        .half-chart-wrapper {
            width: 30%;
            margin: 0;
        }

        .grid-layout-modal {
            grid-template-columns: 1fr 1fr 1fr 1fr;
        }

        .grid-layout {
            grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        }

        .slant-layout {
            width: 1000px;
            transform: translateX(-14%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
        }

        .total-icon {
            top: 60.5%;
        }
    }


    /*surface Pro 7*/
    @media screen and (min-width: 900px) and (max-width: 991px) {
        
        .dl-share-btn {
            display: none;
        }

        .content {
            padding: 20px;
            max-width: 900px;
        }

        .slant-layout {
            width: 1000px;
            transform: translateX(-14%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
        }


        .half-chart-wrapper {
            width: 25%;
            margin: 0;
        }


        .grid-layout-modal {
            grid-template-columns: 1fr 1fr 1fr 1fr;
        }


        .grid-layout {
            grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        }

        .summary,
        .genre,
        .rank,
        .count {
            flex-wrap: wrap;
            justify-content: space-around;
            gap: 0.5em;
        }

        .rank-left > img {
            height: 200px;
        }


        .total-icon {
            top: 60.5%;
        }
    }


    /*        iPad Pro*/

    @media screen and (min-width: 991px) and (max-width: 1200px) {

        .dl-share-btn {
            display: none;
        }

        .content {
            padding: 20px;
            max-width: 900px;
        }


        .half-chart-wrapper {
            width: 27%;
            margin: 0;
        }

        .slant-layout {
            width: 1300px;
            transform: translateX(-13%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
        }

        .grid-layout-modal {
            grid-template-columns: 1fr 1fr 1fr 1fr;
        }

        .grid-layout {
            grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        }


        .total-icon {
            top: 60.5%;
        }
    }



    @media screen and (min-width: 1200px) and (max-width: 1350px) {



        .content {
            padding: 20px;
            max-width: 900px;
        }


        .half-chart-wrapper {
            width: 27%;
            margin: 0;
        }

        .slant-layout {
            width: 1400px;
            transform: translateX(-9%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
        }

        .grid-layout-modal {
            grid-template-columns: 1fr 1fr 1fr 1fr;
        }


        .grid-layout {
            grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        }



        .total-icon {
            top: 60.5%;
        }
    }


/* Desktop, larger screens and up */


@media screen and (min-width: 1350px) and (max-width: 1400px) {
    .content {
        padding: 20px;
        max-width: 1000px;
    }


    .half-chart-wrapper {
        width: 25%;
        margin: 0;
    }

    .slant-layout {
        width: 1500px;
        transform: translateX(-12%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
    }

    .grid-layout-modal {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .grid-layout {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    }


    .total-icon {
        top: 60.5%;
    }
}


    @media screen and (min-width: 1400px) and (max-width: 1600px) {



        .content {
            padding: 20px;
            max-width: 1000px;
        }


        .half-chart-wrapper {
            width: 25%;
            margin: 0;
        }

        .slant-layout {
            width: 1600px;
            transform: translateX(-8%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
        }

        .grid-layout-modal {
            grid-template-columns: 1fr 1fr 1fr 1fr;
        }


        .grid-layout {
            grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        }

        .total-icon {
            top: 60.5%;
        }
    }

    @media screen and (min-width: 1600px) and (max-width: 1800px) {
        .content {
            padding: 20px;
            max-width: 1000px;
        }


        .half-chart-wrapper {
            width: 25%;
            margin: 0;
        }

        .slant-layout {
            width: 1600px;
            transform: translateX(-8%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
        }

        .grid-layout-modal {
            grid-template-columns: 1fr 1fr 1fr 1fr;
        }


        .grid-layout {
            grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        }

        .total-icon {
            top: 60.5%;
        }
    }


    @media screen and (min-width: 1800px) and (max-width:1844px) {


        .content {
            padding: 20px;
            max-width: 1400px;
        }


        .half-chart-wrapper {
            width: 25%;
            margin: 0;
        }

        .slant-layout {
            width: 1600px;
            transform: translateX(-8%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
        }

        .grid-layout-modal {
            grid-template-columns: 1fr 1fr 1fr 1fr;
        }


        .grid-layout {
            grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        }


        .total-icon {
            top: 60.5%;
        }
    }


    @media screen and (min-width: 1845px) and (max-width:2100px) {


        .content {
            padding: 20px;
            max-width: 1400px;
        }


        .half-chart-wrapper {
            width: 25%;
            margin: 0;
        }

        .slant-layout {
            width: 1600px;
            transform: translateX(-8%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
        }

        .grid-layout-modal {
            grid-template-columns: 1fr 1fr 1fr 1fr;
        }

        .grid-layout {
            grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        }


        .total-icon {
            top: 60.5%;
        }
    }


    @media screen and (min-width: 2100px) {


        .content {
            padding: 20px;
            max-width: 1400px;
        }


        .half-chart-wrapper {
            width: 25%;
            margin: 0;
        }

        .slant-layout {
            width: 1600px;
            transform: translateX(-8%) rotateX(0) rotateZ(-5deg) translateY(-7%) scale(0.9);
        }

        .grid-layout-modal {
            grid-template-columns: 1fr 1fr 1fr 1fr;
        }


        .grid-layout {
            grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
        }


        .total-icon {
            top: 60.5%;
        }
    }

    
/*new user*/
.no-loan-wrapper {
    background-color: #f2ebe1;
    position: relative;
}

.no-loan-content {
    width: 100%;
    min-width: 0;
    max-width: 50%;
    margin: 5em 3em;
}

.main-title {
    font-size: 5rem;
}

.main-subtitle {
    font-size: 3rem;
}