html,
body {
    padding: 0;
    margin: 0;
}

* {
    box-sizing: border-box;
    font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
}

html {
    min-height: 100%;
    background-color: #f6f7fa;
}

#content {
    width: 100%;
    text-align: center;
}

#logged-in {
    padding: 10px 30px;
    text-align: right;
    max-width: 800px;
    margin: auto;
}
#logged-in.admin {
    display: flex;
    justify-content: space-between;
}
.logo {
    max-width: 200px;
    height: auto;
}

#header {
    max-width: 800px;
    margin: auto;
    font-size: 0;
    position: relative;
}
#header-img {
    max-width: 100%;
}
#face {
    max-width: 75px;
    border-radius: 100%;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) translateY(38%);
    border: 2px solid #f6f7fa;
}

.profile-pic {
    width: 20px;
    height: auto;
    border-radius: 100%;
    vertical-align: middle;
    margin-right: 5px;
    transform: translateY(-2px);
}

#password-entry {
    max-width: 350px;
    margin: 40px auto 0;
}
#login-btn {
    font-weight: bold;
}
.patreon-logo {
    vertical-align: middle;
    margin-right: 15px;
}

#password {
    background-color: #ffffff;
    padding: 0 10px;
}
#password-label.active {
    transform: translateY(-23px) scale(0.8);
}


#pdf-area {
    opacity: 0;
    width: 100%;
}
#pdf {
    max-width: 800px;
    width: 100%;
    height: calc(100vh - 125px);
    max-height: 1035px;
}

.hide {
    transition: opacity 1s ease-in-out;
    opacity: 0 !important;
}

.show {
    transition: opacity 1s ease-in-out;
    opacity: 1 !important;
}

#error-msg {
    opacity: 0;
    text-align: center;
    font-size: .9rem;
    padding-top: 20px;
}


#main-content {
    max-width: 500px;
    margin: auto;
}
.tabs .tab a {
    color: #558b2f;
}
.tabs .tab a.active {
    color: #558b2f;
}
.tabs .tab a:hover {
    color: #558b2f;
}
.tabs .tab a:focus {
    background-color: #f1f8e9 ;
}
.tabs .tab a:focus.active {
    background-color: #f1f8e9 ;
}
.tabs .indicator {
    background-color: #33691e;
}
.tab-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
    padding: 12px;
}

.chapter p {
    margin: 0;
}
.chapter {
    border: 1px solid #ebebeb;
    border-radius: 10px;
    min-height: 100px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: space-between;
    background-image: url("ch1.png");
    position: relative;
    color: #ffffff;
    background-size: cover;
    background-position: 50%;
    cursor: pointer;
}
.chapter:hover .chapter-overlay {
    opacity: .8;
}
.chapter-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,.62);
    z-index: 1;
    transition: opacity .3s ease-in-out;
    pointer-events: none;
    border-radius: 10px;
}
.chapter-num {
    font-family: "Libre Baskerville", 'Times New Roman', Times, serif;
    font-size: 1.05rem !important;
    z-index: 2;
    position: relative;
    font-weight: bold;
    user-select: none;
    pointer-events: none;
}
.chapter-title {
    font-size: .9rem !important;
    z-index: 2;
    position: relative;
    user-select: none;
    pointer-events: none;
    padding-right: 50px;
}

#story-modal {
    max-width: 800px;
    top: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
}
#story-canvas {
    max-width: 100%;
}
#story-pages canvas {
    max-width: 100%;
}
#story-pages p:last-child {
    margin-bottom: 0;
}
#story-spacer {
    height: 30vh;
    min-height: 200px;
}
#story-container {
    padding-top: 0 !important;
}
#story-image {
    background-image: url('ch1.png');
    width: 100%;
    height: 30vh;
    min-height: 200px;
    background-size: cover;
    background-position: 50%;
}
.close-btn {
    position: absolute;
    z-index: 1;
    color: #ef5350;
    right: 20px;
    top: 8px;
    background-color: #ffffff;
    font-size: 0;
    border-radius: 50%;
    box-shadow: 0 0 10px rgb(0 0 0 / 40%);
    cursor: pointer;
}
.modal .modal-footer {
    text-align: left;
}
#story-modal .modal-footer {
    display: flex;
    justify-content: space-between;
}

.modal .modal-content {
    padding: 0;
}
@media screen and (min-width: 500px) {
    .modal .modal-content {
        padding: 24px;
    }
    .tab-content {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media only screen and (max-width: 500px) {
    .modal {
        width: 100%;
    }
    #story-pages {
        padding: 0 15px;
    }
    #face {
        max-width: 60px;
        transform: translateY(13%) translateX(-50%);
    }
}


#main-content-manage {
    max-width: 1000px;
    background-color: #ffffff;
    padding: 10px;
    margin: auto;
}
#manage-title {
    text-transform: capitalize;
}
#manage-modal.modal .modal-footer {
    text-align: right;
}
.row {
    width: 100%;
}
.col .row {
    margin-left: initial;
    margin-right: initial;
}

#story-modal #story-container,
#story-modal .modal-footer,
#story-modal .modal-footer .modal-close {
    transition: all .3s ease-in-out;
}

#story-modal.darkmode #story-container {
    background-color: #222222;
    color: #ffffff;
}
#story-modal.darkmode .modal-footer {
    background-color: #222222;
    border-top: 1px solid #444444;
}
#story-modal.darkmode .modal-footer .modal-close {
    color: #ffffff;
}
#dm-button {
    border: 1px solid #898989 !important;
    line-height: 28px;
}
#dm-button span {
    color: #898989;
}

.tabs-content.carousel.carousel-slider .carousel-item.active{
    position: relative;
}
.tabs-content {
    height: auto !important;
    min-height: 200px;
}



.book-title {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
}
.title-icon {
    padding-right: 10px;
    border-right: 1px solid #795948;
    font-size: 0;
}
.title-icon span {
    font-size: 2.5rem;
    color: #795948;
}
.title-outer {
    padding-left: 10px;
}
.minor-title {
    font-size: .7rem;
    font-family: "Source Sans Pro", Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 5px;
    color: #5d534d;
}
.major-title {
    font-family: "Libre Baskerville", 'Times New Roman', Times, serif;
    font-size: 1.3rem;
    font-weight: bold;
    color: #795948;
}
  


.ryan-msg {
    display: block;
    position: fixed;
    top: 27px;
    left: 26px;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #4caf50;
    box-shadow: 0 0 12px #ffffff;
    font-size: 1.8rem;
}
.ryan-msg #is-prod {
    background-color: tomato;
}

.select-wrapper input.select-dropdown {
    height: 2.3rem;
    line-height: 2.3rem;
}
.input-field {
    margin-top: 0;
    margin-bottom: 0;
}

.percent-read {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    color: #ffffff;
    line-height: 1;
    pointer-events: none;
}
.percent {
    font-family: "Libre Baskerville", 'Times New Roman', Times, serif;
    font-size: 1.1rem;
    font-weight: bold;
}
.read {
    font-family: "Libre Baskerville", 'Times New Roman', Times, serif;
    font-size: .8rem;
}

.ribbon {
    text-transform: uppercase;
    padding: 5px;
    position: absolute;
    top: 10px;
    right: -5px;
    color: #ffffff;
    background-color: #6b9ab3;
    height: 16px;
    padding: 0 5px;
    font-size: .7rem;
    line-height: 16px;
    z-index: 2;
    pointer-events: none;
}
.ribbon:before,
.ribbon:after {
    content: "";
    display: block;
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent #6b9ab3 transparent transparent;
    transform: rotate(0deg);
    position: absolute;
    left: 0;
    top: 0;
    transform: translateX(-100%);
}
.ribbon:after {
    border-width: 0 0 8px 8px;
    top: initial;
    bottom: 0;
    border-color: transparent transparent #6b9ab3 transparent;
}