.flipper-widget-wrapper i {
    color: var(--page-font-color);
}

.flipper-widget-wrapper {
    background-color: var(--page-bg-color);
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.flipper-widget-background {
    background-image: var(--page-bg-image);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    filter: blur(50px);
}

.flipper-widget-wrapper .flipper-summary-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 210px;
    margin-left: -210px;
    transition: margin-left .5s ease-in-out;
    z-index: calc(var(--page-surface-elevation) + 1);
    background-color: var(--page-surface-accent-color);
}

.flipper-widget-wrapper .flipper-summary-wrapper.active {
    margin-left: 0;
}

.flipper-widget-wrapper .summary-toggler {
    position: absolute;
    background-color: var(--page-surface-color);
    right: -60px;
    top: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    padding: 0;
    outline: none;
    cursor: pointer;
    border-radius: 30px;
    z-index: var(--page-surface-elevation);
}

.flipper-widget-wrapper .flipper-summary-wrapper.active .summary-toggler {
    background-color: var(--page-surface-accent-color);
}

.flipper-widget-wrapper .flipper-summary-wrapper.active .summary-toggler i {
    color: var(--page-accent-color);
}

.flipper-widget-wrapper .summary-toggler:focus {
    background-color: var(--page-surface-color);
}

.flipper-widget-wrapper .summary-toggler:focus i {
    color: var(--page-font-color);
}

.flipper-widget-wrapper .summary-toggler:hover {
    background-color: var(--page-surface-accent-color);
}

.flipper-widget-wrapper .summary-toggler:hover i {
    color: var(--page-accent-color);
}

.flipper-widget-wrapper .summary-pages {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: transparent;
    padding: 20px;
}

.flipper-widget-wrapper .summary-pages::-webkit-scrollbar-track
{
    -webkit-box-shadow: none;
    background-color: rgba(0,0,0, .2);
}

.flipper-widget-wrapper .summary-pages::-webkit-scrollbar
{
    width: 5px;
}

.flipper-widget-wrapper .summary-pages::-webkit-scrollbar-thumb
{
    background-color: var(--page-surface-color);
    border: none
}

.flipper-widget-wrapper .summary-pages .page {
    cursor: pointer;
    margin: 0 0 13px;
    background: transparent;
    position: relative;
}

.flipper-widget-wrapper .summary-pages .page img {
    width: 100%;
}

.flipper-widget-wrapper .flipper-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: var(--page-surface-elevation);
}

.flipper-widget-wrapper .flipper-actions button {
    background-color: var(--page-surface-color);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    padding: 0;
    outline: none;
    border-radius: 30px;
    position: relative;
}

.flipper-widget-wrapper .flipper-actions button:not(:disabled) {
    cursor: pointer;
}

.flipper-widget-wrapper .flipper-actions button:disabled {
    opacity: 0.6;
}

.flipper-widget-wrapper .flipper-actions button[description]:hover:after {
    position: absolute;
    content: attr(description);
    z-index: 1;
    right: 50px;
    top:7px;
    background-color: var(--page-surface-color);
    padding: 5px 10px;
    color: var(--page-font-color);
    min-width: 100px;
    white-space: nowrap;
    text-align: center;
    border-radius: 30px;
}

.flipper-widget-wrapper .flipper-actions button:not(:disabled):focus {
    background-color: var(--page-surface-color);
}

.flipper-widget-wrapper .flipper-actions button:not(:disabled):focus i {
    color: var(--page-font-color);
}

.flipper-widget-wrapper .flipper-actions button:not(:disabled):hover {
    background-color: var(--page-surface-accent-color);
}

.flipper-widget-wrapper .flipper-actions button:not(:disabled):hover i {
    color: var(--page-accent-color);
}

.flipper-widget-wrapper .flipper-pagination  {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.flipper-widget-wrapper .flipper-pagination input {
    -moz-appearance: textfield;
    outline: none;
    width: 35px;
    text-align: center;
    border: none;
    height: 20px;
    background: transparent;
    padding: 0;
    color: var(--page-font-color);
}

.flipper-widget-wrapper .flipper-pagination .actual-page {
    font-size: 20px;
    font-weight: bold;
}

.flipper-widget-wrapper .flipper-pagination .pages-separator {
    color: var(--page-font-color);
    font-size: 18px;
    font-weight: bold;
}

.flipper-widget-wrapper .flipper-pagination input::-webkit-outer-spin-button,
.flipper-widget-wrapper .flipper-pagination input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.flipper-widget-wrapper .flipper-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: var(--page-surface-elevation);
}

.flipper-widget-wrapper .flipper-share-buttons button {
    background-color: var(--page-surface-color);
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    padding: 0;
    outline: none;
    border-radius: 30px;
    cursor: pointer;
    position: relative;
}

.flipper-widget-wrapper .flipper-share-buttons button:not(:disabled):focus {
    background-color: var(--page-surface-color);
}

.flipper-widget-wrapper .flipper-share-buttons button:not(:disabled):focus i {
    color: var(--page-font-color);
}

.flipper-widget-wrapper .flipper-share-buttons button:not(:disabled):hover {
    background-color: var(--page-surface-accent-color);
}

.flipper-widget-wrapper .flipper-share-buttons button:not(:disabled):hover i {
    color: var(--page-accent-color);
}

.flipper-widget-wrapper .flipper-controls {
    position: absolute;
    display: flex;
    justify-content: space-between;
    width: 100%;
    z-index: var(--page-surface-elevation);
}

.flipper-widget-wrapper .flipper-controls button {
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
    border-radius: 100%;
    width: 40px;
    height: 40px;
    background: var(--page-surface-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.flipper-widget-wrapper .flipper-controls .previous-page {
    margin-left: 20px;
}

.flipper-widget-wrapper .flipper-controls .next-page {
    margin-right: 20px;
}

.flipper-widget-wrapper .flipper-controls button:focus {
    background: var(--page-surface-color);
}

.flipper-widget-wrapper .flipper-controls button:focus i {
    color: var(--page-font-color);
}

.flipper-widget-wrapper .flipper-controls button:hover {
    background: var(--page-surface-accent-color);
}

.flipper-widget-wrapper .flipper-controls button:hover i {
    color: var(--page-accent-color);
}

.flipper-widget-wrapper .related-toggler.active {
    background-color: var(--page-surface-accent-color);
}

.flipper-widget-wrapper .related-toggler.active i {
    color: var(--page-accent-color);
}

.flipper-widget-wrapper .related-posts-wrapper {
    background-color: var(--page-surface-accent-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--page-surface-elevation);
    min-height: 288px;
    margin-bottom: -288px;
    transition: margin-bottom .5s ease-in-out;
}


.flipper-widget-wrapper .related-posts-wrapper.active {
    margin-bottom: 0;
}

.flipper-widget-wrapper .related-posts {
    padding: 30px 30px 25px;
}

.flipper-widget-wrapper .related-posts .title {
    margin-bottom: 25px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 5px;
    font-size: 12px;
}

.flipper-widget-wrapper .related-posts-list {
    max-width: 25vw;
    max-height: 25vh;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
}


.flipper-widget-wrapper .related-posts-list::-webkit-scrollbar-track
{
    -webkit-box-shadow: none;
    background-color: rgba(0,0,0, .2);
}

.flipper-widget-wrapper .related-posts-list::-webkit-scrollbar
{
    width: 5px;
}

.flipper-widget-wrapper .related-posts-list::-webkit-scrollbar-thumb
{
    background-color: var(--page-surface-color);
    border: none
}

.flipper-widget-wrapper .related-posts-list img {
    max-width: 100%;
}

.flipper-widget-wrapper .flipper-pages-wrapper {
    width: inherit;
    height: inherit;
    overflow: visible !important;
}

.flipper-widget-wrapper .flipper-pages-wrapper .page.even .gradient {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    width: 5%;
    height: 100%;
    background: -webkit-gradient(linear, left top, right top, color-stop(0, rgba(0,0,0,0)), color-stop(1, rgba(0,0,0,0.2)));
    background-image: linear-gradient(left, rgba(0,0,0,0) 95%, rgba(0,0,0,0.2) 100%);
}
    
.flipper-widget-wrapper .flipper-pages-wrapper .page.odd .gradient {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 5%;
    height: 100%;
    background: -webkit-gradient(linear, right top, left top, color-stop(0, rgba(0,0,0,0)), color-stop(1, rgba(0,0,0,0.15)));
    background-image: linear-gradient(right, rgba(0,0,0,0) 95%, rgba(0,0,0,0.15) 100%);
}

.flipper-widget-wrapper .flipper-pages-wrapper .page {
    user-select: none;
    position: absolute;
}

.flipper-widget-wrapper .flipper-pages-wrapper .page.loading {
    background-color: #fff;
}

.flipper-widget-wrapper .flipper-pages-wrapper .page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.flipper-widget-wrapper .flipper-pages-wrapper .fa-spin {
    position: absolute;
    color: #bbb;
    top: 50%;
    left: 50%;
}

.flipper-widget-wrapper .flipper-pages-wrapper.zooming {
    cursor: grab;
}

.flipper-widget-wrapper .flipper-pages-wrapper.zooming:active {
    cursor: grabbing;
}

.flipper-widget-wrapper .flipper-pages {
    width: inherit;
    height: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.flipper-widget-wrapper .hotspots-wrapper {
    position: absolute;
    width: inherit;
    height: inherit;
    top: 0;
    left: 0;
}

.flipper-widget-wrapper .hotspots-wrapper [class*="-hotspot"] {
    position: absolute;
}

.flipper-widget-wrapper .hotspots-wrapper [class*="-hotspot"]:hover {
    z-index: 999;
}

.flipper-widget-wrapper .hotspots-wrapper [class*="icon-"], .flipper-widget-wrapper .hotspots-wrapper [class*="-link-hotspot"] {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flipper-widget-wrapper .hotspots-wrapper [class*="-link-hotspot"][data-page] {
    cursor: pointer;
}

.flipper-widget-wrapper .hotspots-wrapper .icon-link-hotspot {
    text-decoration: none;
}

.flipper-widget-wrapper .hotspots-wrapper .hotspot-popover {
    --bs-popover-bg: var(--page-surface-color);
    min-width: 400px;
    border-radius: 0;
    user-select: text;
}

.flipper-widget-wrapper .hotspots-wrapper .hotspot-popover::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: transparent;
    z-index: -1;
}

.flipper-widget-wrapper .hotspots-wrapper .hotspot-popover .popover-body {
    font-size: var(--font-size);
    font-family: var(--font-family);
    color: var(--page-font-color);
    font-weight: var(--font-weight);
    text-decoration: var(--text-decoration);
    text-align: var(--text-align);
}

.flipper-widget-wrapper .hotspots-wrapper .inline-video-hotspot video, .flipper-widget-wrapper .hotspots-wrapper [class*="-image-hotspot"] img {
    width: 100%;
    height: 100%;
}

.flipper-widget-wrapper [id*="modal-"] .modal-content {
    background-color: transparent;
    gap: 10px;
    align-items: end;
}

.flipper-widget-wrapper [id*="modal-"] .modal-content .modal-close {
    color: var(--page-font-color);
    border: none;
    width: 40px;
    height: 40px;
    background: none;
    padding: 0;
}

.flipper-widget-wrapper [id*="modal-"] .modal-content .modal-close:hover {
    background: none;
}

.flipper-widget-wrapper [id*="modal-"] .modal-body {
    padding: 0;
}

.flipper-widget-wrapper .hotspots-wrapper .icon-audio-hotspot {
    cursor: pointer;
}

.flipper-widget-wrapper .hotspots-wrapper .inline-audio-hotspot {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flipper-widget-wrapper .hotspots-wrapper .inline-audio-hotspot audio {
    width: 100%;
}

.flipper-widget-wrapper .flipper-actions .narration-toggler:not(:disabled) {
	background: var(--page-surface-accent-color);
	animation: pulse-animation 1s infinite;
}

.flipper-widget-wrapper .flipper-actions .narration-toggler:not(:disabled) i {
	color: var(--page-accent-color);
}

@keyframes pulse-animation {
	0% {
		box-shadow: 0 0 0 0 color-mix(in srgb, var(--page-surface-accent-color) 70%, transparent);
	}
	100% {
		box-shadow: 0 0 0 12px rgba(0, 0, 0, 0);
	}
}