﻿.pdf-viewer-container {
    background: url(images/document_bg.png);
    color: rgb(255 255 255 / 1);
    font-family: sans-serif;
    font-size: 10px;
    width: 100%;
    overflow: hidden;
    padding-bottom: 5rem;
    border: 1px solid #000;
    position: relative;
    height: 450px;
}

footer {
    background-image: url(images/toolbar_background.png);
    height: 50px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    box-shadow: 0 -0.2rem 0.5rem rgb(50 50 50 / 0.75);
}

.toolbarButton {
    display: block;
    padding: 0;
    margin: 0;
    border-width: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: rgb(0 0 0 / 0);
}

    .toolbarButton.pageUp {
        position: absolute;
        width: 18%;
        height: 100%;
        left: 0;
        color: white;
        font-size: 18px;
    }

    .toolbarButton.pageDown {
        position: absolute;
        width: 18%;
        height: 100%;
        left: 18%;
        color: white;
        font-size: 18px;
    }

.pageNumber {
    -moz-appearance: textfield; /* hides the spinner in moz */
    position: absolute;
    width: 28%;
    height: 100%;
    left: 36%;
    text-align: center;
    border: 0;
    background-color: rgb(0 0 0 / 0);
    font-size: 1.2rem;
    color: rgb(255 255 255 / 1);
}

.toolbarButton.zoomOut {
    position: absolute;
    width: 18%;
    height: 100%;
    left: 64%;
    color: white;
    font-size: 18px;
}

.toolbarButton.zoomIn {
    position: absolute;
    width: 18%;
    height: 100%;
    left: 82%;
    color: white;
    font-size: 18px;
}

.toolbarButton[disabled] {
    opacity: 0.3;
}

.hidden {
    display: none;
}

[hidden] {
    display: none !important;
}

.viewerContainer {
    position: absolute;
    overflow: auto;
    width: 100%;
    inset: 0px;
}

canvas {
    margin: auto;
    display: block;
}

.pdfViewer .page .loadingIcon {
    width: 2.9rem;
    height: 2.9rem;
    background: url("images/spinner.png") no-repeat left top / 38rem;
    border: medium none;
    animation: 1s steps(10, end) 0s normal none infinite moveDefault;
    display: block;
    position: absolute;
    top: calc((100% - 2.9rem) / 2);
    left: calc((100% - 2.9rem) / 2);
}

@keyframes moveDefault {
    from {
        background-position: 0 top;
    }

    to {
        background-position: -39rem top;
    }
}

.loadingBar {
    /* Define this variable here, and not in :root, to avoid reflowing the
     entire viewer when updating progress (see issue 15958). */
    --progressBar-percent: 0%;
    position: relative;
    height: 0.6rem;
    background-color: rgb(51 51 51 / 1);
    border-bottom: 1px solid rgb(51 51 51 / 1);
}

    .loadingBar .progress {
        position: absolute;
        left: 0;
        width: 100%;
        transform: scaleX(var(--progressBar-percent));
        transform-origin: 0 0;
        height: 100%;
        background-color: rgb(221 221 221 / 1);
        overflow: hidden;
        transition: transform 200ms;
    }

@keyframes progressIndeterminate {
    0% {
        transform: translateX(0%);
    }

    50% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.loadingBar.indeterminate .progress {
    transform: none;
    background-color: rgb(153 153 153 / 1);
    transition: none;
}

    .loadingBar.indeterminate .progress .glimmer {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 5rem;
        background-image: linear-gradient( to right, rgb(153 153 153 / 1) 0%, rgb(255 255 255 / 1) 50%, rgb(153 153 153 / 1) 100% );
        background-size: 100% 100%;
        background-repeat: no-repeat;
        animation: progressIndeterminate 2s linear infinite;
    }
