body,p,h1,h2,h3,h4,h5,h6,input {
    font-family: 'Raleway', sans-serif !important;
    font-feature-settings: 'lnum' 1 !important;
}

body {
    background: linear-gradient(-45deg, #efefef, #f4f4f4);
    height: 100vh;
}

.indeterminate-progress-bar {
    height: 4px;
    background-color: rgba(5, 114, 206, 0.2);
    width: 100%;
    overflow: hidden;
}

.indeterminate-progress-bar-value {
    width: 100%;
    height: 100%;
    background-color: rgb(5, 114, 206);
    animation: indeterminateAnimation 1s infinite linear;
    transform-origin: 0% 50%;
}

.height-fill {
    height: 100%;
}

.floating-button{
    position:relative;
    width: 50px;
    height: 50px;
    background-color:#8a8f97;
    color:#FFF;
    border-style: solid;
    border-radius: 40px;
    text-align: center;
    box-shadow: 2px 2px 3px #999;
}

.toc-li {
    display: block;
}

.toc-li a {
    display: inline-block;
}

.uk-active a.active-title {
    color: #333;
}

.toc-sublist {
    padding-left: 20px !important;
}

.toc-title.toc-prefix:before {
    content: attr(data-prefix);
    display: inline-block;
    padding-right: 10px;
}

@keyframes indeterminateAnimation {
    0% {
        transform:  translateX(0) scaleX(0);
    }
    40% {
        transform:  translateX(0) scaleX(0.4);
    }
    100% {
        transform:  translateX(100%) scaleX(0.5);
    }
}

@media screen and (max-height: 750px) {
    .editor-height {
        height: 70vh;
    }
}

@media screen and (min-height: 750px) {
    .editor-height {
        height: 85vh;
    }
}

@media screen and (min-height: 1100px) {
    .editor-height {
        height: 90vh;
    }
}

.tox-tinymce {
    height: 100% !important;
}

.tox-statusbar__branding {
    display: none;
}

/* Set the height of the book to 100% of the viewport */
.book {
    height: 80vh;
    position: relative;
    overflow: hidden;
    background-color: #f1f1f1;
}

/* Add a container for the pages */
.page-wrapper {
    height: 100%;
    position: absolute;
}

/* Make the pages as tall as the book */
.page {
    transform-style: preserve-3d;
    transition: transform 1s ease-in-out;
    transform-origin: 0% 50%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    position: absolute;
    backface-visibility: hidden;
}

.page::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    pointer-events: none; /* Ensure the pseudo-element doesn't interfere with clicks */
}

.page-front::before {
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0.08) 0%, transparent 50%);
}

.page-back::before {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.08) 0%, transparent 50%);
}

/* Position the edge tint on the pages */
.page-front::before {
    right: 0;
}

.page-back::before {
    left: 0;
}

/* Front and back page styles */
.page-front {
    z-index: 2;
    background-color: #fff;
    transform: perspective(5000px) rotateY(0deg);
    border-right: 1px solid #ccc; /* Add a border to represent the page edge */
}

.page-back {
    z-index: 1;
    background-color: #f9f9f9;
}

/* Animation on hover */
.page-front-turn {
    transform: rotateY(-180deg);
}

.uk-input {
    background: transparent;
}