#pdf-wrapper {
    position: relative;		 
    border: 1px solid rgb(192, 190, 190);
}

#pdf-viewer {  
    display: flex; /* Use flexbox for alignment */
    flex-direction: column; /* Stack pages vertically */   
    align-items: center; /* Center content horizontally */
    position: relative;
    width: 100%; 
    height: 140vh; 
    overflow-y: scroll; /* Scroll PDF pages if they overflow */
    transform-origin: top left; /* Ensures scaling happens from top left */
    scroll-behavior: instant;
    user-select: none;
}

.pdf-page {
    position: relative;
    display: flex; /* Use flexbox for alignment */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    page-break-after: always; /* Ensure each PDF page breaks */
    max-width: 100%; /* Prevent overflow */
}

canvas {
    display: block; /* Block element to remove inline spacing */
    border: 1px solid #000;
    max-width: 100%; /* Allow canvas to scale with the page */
    height: auto; /* Maintain aspect ratio */
    user-select: none;
}

.hidden {
    display:none;
}

.comment_marker {
    position: absolute;
    width: fit-content;
    background-size: contain;
    background-repeat: no-repeat;
    font-size: 11px;
}

.comment_marker:hover {
    cursor: pointer;
}

.comment_marker_text {
    position: absolute;
    transform: translate(-50%, -50%);
    font-weight: bold;
    pointer-events: none;
}

.icon_btn {			
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}

.icon_pointer_white { background-image: url('/shared/includes/images/icons/pointer-white.svg'); }
.icon_pointer_black { background-image: url('/shared/includes/images/icons/pointer-black.svg'); }
.icon_dragger_white { background-image: url('/shared/includes/images/icons/dragger-white.svg'); }
.icon_dragger_black { background-image: url('/shared/includes/images/icons/dragger-black.svg'); }
.icon_comment_white { background-image: url('/shared/includes/images/icons/comment-white.svg'); }
.icon_comment_black { background-image: url('/shared/includes/images/icons/comment-black.svg'); }
.icon_fullscreen { background-image: url('/shared/includes/images/icons/fullscreen.svg'); }
.icon_fullscreen_shrink { background-image: url('/shared/includes/images/icons/fullscreen-shrink.svg'); }
.icon_download { background-image: url('/shared/includes/images/icons/download-document.svg'); }

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.icon_btn:hover {
    cursor: pointer;
    background-color: #DEE2E6;
    border-radius: 50%;
    transition: fill 0.3s;
}

#loadingCommentContainer {
    display: flex; /* Use flexbox for alignment */  
    align-items: center; /* Center content horizontally */
    justify-content: center;
    margin: 10px;
}

.loading_comment_dot {
    opacity: 0;
    animation-duration: 2s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

#loadingCommentDot1 { animation-name: fadeSteps1; }
#loadingCommentDot2 { animation-name: fadeSteps2; }
#loadingCommentDot3 { animation-name: fadeSteps3; }

@keyframes fadeSteps1 { 25%, 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fadeSteps2 { 25%, 100% { opacity: 0; } 50%, 75% { opacity: 1; } }
@keyframes fadeSteps3 { 50%, 100% { opacity: 0; } 75% { opacity: 1; } }