* {
    margin: 0;
    padding: 0;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.loader {
    border: 6px solid #f3f3f3;
    border-radius: 50%;
    border-top: 6px solid #40c186;
    width: 36px;
    height: 36px;
    -webkit-animation: spin 2s linear infinite;
    /* Safari */
    animation: spin 2s linear infinite;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* Safari */

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.column-8 {
    width: 66.66666667%;
    margin: 0 auto;
}

.search {
    margin: 0 auto;
    width: auto;
    display: none;
    flex-grow: 9;
}

#search {
    display: flex;
}

.match {
    width: 80px;
    background: white;
    color: gray;
    height: 36px;
    margin: auto auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 16px;
    line-height: 19px;
    flex-shrink: 0;
    margin-right: 36px;
}

.input-group {
    width: 100%;
    position: relative;
}

.search-input {
    height: 36px;
    outline: none;
    width: 100%;
    padding-left: 20px;
    font-size: 16px;
    line-height: 19px;
    border: none;
    box-shadow: none;
}

.form-control:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
    border-color: #40C186;
}

.input-group a {
    right: 0px;
    position: absolute;
    color: #40c186;
    background-color: #ffffff;
    height: 36px;
    width: 36px;
    cursor: pointer;
}

.nav-search {
    margin: 0 auto;
    width: 350px;
}

.nav-search .input-group {
    width: 100%;
    position: relative;
}

.nav-search .search-input {
    height: 40px;
    outline: none;
    width: 100%;
    padding-left: 20px;
    font-size: 16px;
    line-height: 19px;
    border: 2px solid #E0E0E0;
    box-shadow: none;
}

.nav-search .form-control:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
    border-color: #40C186;
}

.nav-search .input-group a {
    right: 0px;
    top: 0px;
    border: none;
    position: absolute;
    z-index: 1;
    color: #949494;
    background-image: url(../img/search.png);
    background-repeat: no-repeat;
    background-position: center;
    background-color: #40C186;
    height: 52px;
    width: 50px
}

.btn {
    background-color: HSL(198.7, 97.6%, 48.4%);
    color: white;
    padding: .25em 1em;
    border-radius: 10000px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn:hover,
.btn:focus {
    background-color: HSL(198.7, 97.6%, 38.4%);
}

body {
    margin: 0;
    background-color: #f9f9f9;
    /* font-family: Helvetica, Arial, sans-serif; */
}

a {
    text-decoration: none;
}

h1,
h2,
h3 {
    margin: 0;
}

#container {
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

.wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, 150px);
    grid-gap: 2rem;
    justify-content: center;
    align-items: flex-end;
    /*! margin: 0 auto; */
    text-align: center;
}

.bookBorder {
    /*! padding: 1rem; */
}

.bookNoImage {
    background-color: #ea3e34;
    padding: 1em;
    text-align: center;
    margin: 0;
    min-height: 216px;
}

.selectedBooks {
    position: absolute;
    left: 42%;
    bottom: 8px;
    z-index: 9;
}

#footer {
    padding: 1rem;
    background-color: #40C186;
    color: white;
    text-align: center;
}


/* model2 */

.header {
    padding: .5em 1em;
    border-bottom: 1px solid #777;
    /*! padding-bottom: .5rem; */
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
}

.modal,
.loaderBox {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
}

.modal-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 0.5rem;
    width: 90vw;
    height: 40vw;
}


.mobile-scroll {
    display: flex;
    width: 100%;
    height: 100%;
}

.close-button {
    width: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    cursor: pointer;
    border-radius: 0.25rem;
    background-color: lightgray;
    position: absolute;
    top: -.5rem;
    right: -.5rem;
    z-index: 1;
}

.close-button:hover {
    background-color: darkgray;
}

.show-modal {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    transform: scale(1.0);
    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}


/* image */


/* .custom {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #555;

}

.custom-modal {
height: 80vh;
background-color: white;
border-radius: 8px;
display: flex;
flex-direction: column;
} */

.header {
    padding: .5em 1em;
    border-bottom: 1px solid #777;
    /*! padding-bottom: .5rem; */
    /* display: flex;
    justify-content: space-between; */
}

.modal-title {
    font-size: 1.2rem;
    /*! padding-top: .5em; */
    /* white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; */
    font-weight: bold;
}

.custom-close-button-small {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    /*! padding: 0; */
    cursor: pointer;
    align-self: flex-start;
    /*! padding-top: .5em; */
}

.custom-close-button-large {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    /*! padding: 0; */
    cursor: pointer;
    align-self: flex-start;
    /*! padding-top: .5em; */
    position: absolute;
    top: -18px;
    right: -18px;
    width: 36px;
    height: 36px;
    background: wheat;
    border-radius: .2rem;
}

.web-click {
    display: flex;
}

.web-click svg {
    height: 36px;
}

.mobile-click {
    display: none;
}

.modal-image {
    width: 30%;
}

.modal-image img {
    width: 100%;
    height: 100%;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    background-color: #ea3e34;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: column;
    /*! overflow: auto; */
    /*! padding: 1rem; */
    width: 70%;
}

.model-text {
    overflow: auto;
    margin: 0;
    padding: 1em;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: .5rem;
    border-top: 1px solid #777;
}

.modal-footer .btn {
    margin-right: .5rem;
}

.modal-footer .btn:last-child {
    margin-right: initial;
}

.btn {
    padding: .5em 1em;
    font-size: inherit;
    border-radius: .3em;
    border: none;
    color: white;
    cursor: pointer;
}

.btn.btn-primary {
    background-color: #1CA;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
    background-color: #0A8;
}

.btn.btn-danger {
    background-color: #C33;
}

.btn.btn-danger:hover,
.btn.btn-danger:focus {
    background-color: #A11;
}


/* books shadow 
*/

.section {
    margin: 2rem auto;
    min-height: 72vh;
    background-color: #f9f9f9;
}

.book {
    background: white;
    margin-bottom: 20px;
    border: 1px solid #e3e3e3;
    width: 100%;
    height: 300px;
    display: flex;
    padding: 1rem;
}

.book-image {
    width: 300PX;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info {
    padding-left: 1rem;
    width: 100%;
}

.book-title h1 {
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
}

.book-note {
    overflow: auto;
    margin: 0;
    padding-top: 1em;
    height: 90%;
}

.book-card-img {
    max-width: 150px;
    border-radius: 2px;
    box-shadow: 0px 1px 7px 2px #c7c9d3;
    border-bottom: 1px solid #dcddde;
    object-fit: cover;
    transition: 0.3s ease;
    cursor: pointer;
    margin-bottom: .3rem;
}

.book-card-img:hover {
    transform: scale(1.04);
}

.chapter {
    width: 100%;
}


/* table */

.chapters {
    width: 100%;
}

.chapters a {
    text-decoration: none;
}

.chapters a:hover .tg-yw42 a,
.chapters a:hover .tg-yw41 a {
    color: #000;
}

.chapters a:hover .tg .tg-yw43 a {
    color: #fff;
}

.chapters a:hover .tg th {
    background: #46B891;
    color: white;
}


/* .chapters a:hover  {
  background: #ffffff;
} */

th {
    text-align: left;
}

.chapter,
.tg-yw42 a {
    color: #555;
    text-decoration: none;
}

.tg-yw42 a:hover {
    color: #000;
}

.tg {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.2);
}

.chapter .tg {
    margin-bottom: 0px;
    box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.2);
}

.tg td {
    font-size: 16px;
    padding: 10px 20px;
    word-break: normal;
}

.tg th {
    font-size: 16px;
    font-weight: normal;
    padding: 10px 5px;
    border-style: solid;
    border-width: 1px;
    overflow: hidden;
    word-break: normal;
    border: none;
    background: #fff;
}

.tg .tg-yw41 {
    background: #46b891;
    color: #fff;
    padding: 3px;
    text-align: center;
    width: 50px;
    font-size: 16px;
}

.tg .tg-yw41 a {
    background: #46b891;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 16px;
}

.chapter .tg-yw41 {
    border-bottom: 1px solid #52B190;
}

.tg .tg-yw42 {
    margin-left: 0;
    padding: 12px 9px;
    font-size: 16px;
    text-shadow: .2px .1px #CFCFCF;
}

.tg .tg-yw43 {
    text-align: right;
    padding-right: 20px;
    max-width: 100px;
}

.tg .tg-yw43 a {
    height: 36px;
    width: 36px;
    color: HSL(152.6, 51%, 50.4%);
    /*! background-color: #ffffff; */
    cursor: pointer;
}

.tg .tg-yw43 a:hover {
    color: HSL(152.6, 51%, 70.4%);
}

.current-chapter a {
    color: HSL(152.6, 51%, 50.4%);
}

.tg .chapter-head {
    background: #40c186;
    text-align: center;
}

.tg .chapter-head input {
    width: 12vw;
    min-height: 24px;
    min-width: 48px;
    max-width: 96px;
}


/* search animation */

.push {
    margin-left: auto;
}


/* icon size */

.md-18 {
    font-size: 18px;
}

.md-20 {
    font-size: 20px;
}
.md-24 {
    font-size: 24px;
}

.md-36 {
    font-size: 36px;
}

.md-48 {
    font-size: 48px;
}

.material-icons-round .md-36 .black {
    color: black;
    font-size: 36px !important;
}


/* header */

.full-screen-header {
    min-height: 52px;
    /*! background-color: HSL(0, 0%, 100%); */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    flex-direction: column;
    position: relative;
    box-shadow: 0px 0px 10px rgb(130, 130, 130);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #40C186;
    padding: .5em 5%;
    /*! box-shadow: 0px 0px 10px rgb(130, 130, 130); */
}

.nav-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.nav-list {
    margin: 0;
    padding: 0;
    display: flex;
    list-style-type: none;
}

.search-btn-press {
    /*! margin-left: 1rem; */
}

.logo {
    color: HSL(0, 0%, 100%);
    text-decoration: none;
    font-size: 2rem;
    cursor: pointer;
    margin-right: 1rem;
}
.logo-icon {
    color: HSL(0, 0%, 100%);
    text-decoration: none;
    cursor: pointer;
    margin-right: .5rem;
}
.search-btn {
    height: 36px;
    width: 36px;
    color: #40c186;
    background-color: #ffffff;
    cursor: pointer;
}

.nav-list a {
    display: block;
    color: HSL(0, 0%, 90%);
    text-decoration: none;
    margin-left: 1rem;
    height: 36px;
    width: 36px;
    cursor: pointer;
}

.nav-list a:hover,
a:focus {
    color: HSL(0, 0%, 100%);
}

input[type=checkbox] {
    transform: scale(1.5);
}

.icon-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    color: black;
}

.icon-link:visited {
    color: black;
    text-decoration: none;
}

.icon-link:hover {
    text-decoration: underline;
}

.icon-link>.bi {
    margin-top: .125rem;
    margin-left: .125rem;
    transition: transform .25s ease-in-out;
    fill: currentColor;
}

.icon-link:hover>.bi {
    transform: translate(-.25rem);
}

.chapter-body {
    overflow: auto;
}

.modal-info {
    overflow: auto;
}

.book-count {
    display: none;
}

.about a:focus,
.about a:visited {
    color: slateblue;
}

.book-count input {
    width: 20px;
  }

.flag {
    width: 30px;
    height: 20px;
    float: left;
}

.audio {
    width: 20px;
    height: 20px;
    float: left;
    margin-left: 4px;
}
  
.bookBorder input {
    margin-left: -30px;
}
.model.flag {
  left: 0;
}

.model.audio {
  margin-left: .5rem;
}
.modal-title-large {
    margin-left: 1rem;
}



.ms-modal-content {
    /* max-width: 40vh;
    max-height: 80vh;
    width: 40vh;
    height: 80vh; */
    min-width: 300px;
    min-height: 80vh;
    /* min-height: 560px; */

}

.ms-modal-content .modal-content.read {
    width: 80vw;
    height: 60vh;
    min-width: 300px;
    min-height: 200px;
}

.ms-modal-content .mobile-scroll {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.ms-modal-content .modal-image {
    width: 100%;
    padding: .5em;
    display: flex;
    align-items: center;
}

.ms-modal-content .modal-image img {
    width: 100%;
    /*! border-top-left-radius: 0.5rem; */
    border-radius: 0.5rem;
    background-color: #fff;
    object-fit: contain;
}

.ms-modal-content .modal-body {
    /*! display: flex; */
    /*! flex-direction: column; */
    width: 100%;
    height: 88%;
}

.ms-modal-content .model-text {
    overflow: inherit;
    margin: 0;
    padding: 1em;
}

.ms-modal-content .mobile-click {
    display: none;
}

.ms-modal-content .web-click {
    display: flex;
}

.ms-modal-content .web-click>.icon-link>.bi {
    margin-top: .125rem;
    margin-left: .125rem;
    transition: transform .25s ease-in-out;
    fill: currentColor;
    transform: rotate(90deg);
}

.ms-modal-content .web-click>.icon-link:hover>.bi {
    transform: rotate(90deg) translate(-.25rem);
}


 /* The snackbar - position it at the bottom and in the middle of the screen */
 #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: 10px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    top: 54px; /* 54px from the top */
  }
  
  /* 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;
  }
  
  /* Animations to fade the snackbar in and out */
  @-webkit-keyframes fadein {
    from {top: 0; opacity: 0;}
    to {top: 54px; opacity: 1;}
  }
  
  @keyframes fadein {
    from {top: 0; opacity: 0;}
    to {top: 54px; opacity: 1;}
  }
  
  @-webkit-keyframes fadeout {
    from {top: 54px; opacity: 1;}
    to {top: 0; opacity: 0;}
  }
  
  @keyframes fadeout {
    from {top: 54px; opacity: 1;}
    to {top: 0; opacity: 0;}
  } 


