.pdf-flex {
    display: flex;
    overflow: auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 16px;
    margin-top: 16px;
}
#loading {
    display: none; /* Hide the loading GIF initially */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#loading img {
    width: 50px; /* Adjust size as needed */
    height: 50px; /* Adjust size as needed */
    animation: rotate 0.5s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}
#pdf-canvas {
    display: block; /* Ensure the canvas is displayed as a block */
    margin: 20px auto;
}
.lr-button-container {
   position: fixed;
   width:40vw;
   height:100vh;
   top:0;
   cursor:pointer;
}
.l-button-container {
    left: 0;
}
.r-button-container {
    right: 0;
}

.lr-button {
    position:absolute;
    top:50vh;
    right:8px;
    font-size: 5em;
}

.unselectable {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.l-button {
    left: 25px;
}
.r-button {
    right: 25px;
}

.download {
    display: flex;
    align-items: center;
    cursor:pointer;
    text-decoration: none;
}

#prev {
    display: none;
}

#next {
    display: none;
}

#loading {
    display: none;
}

#page-number-container {
    display: none;
    flex-direction: column;
    align-items: center;
}

.loading-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 12px;
}

@media (min-width: 769px) {
    #pdf-canvas {
        height: 85vh;
    }
}


@media (max-width: 768px) {
    #pdf-canvas {
        overflow: auto;
        width: 100%;
    }
    .lr-button {
        font-size: 2em;
    }

    .l-button {
    left: 5px;
    }
    .r-button {
        right: 5px;
    }

}