.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
}
/* Add this CSS class to hide the scrollbar when the overlay is active */
.overlay-active {
  overflow: hidden;
}
/* Add this CSS to position the page numbers in the top-right corner */
.page-numbers {
  position: absolute;
  top: 220px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 5px;
  border-radius: 5px;
}


.pdf-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  width: 80%;
  height: 100%;
  overflow-y: scroll;
  overflow-x: scroll;
  scrollbar-width: inherit;
  scrollbar-color: #888 transparent;
}

/* Customize scrollbar appearance for Firefox */
.pdf-container::-webkit-scrollbar {
  width: 8px;
}

.pdf-container::-webkit-scrollbar-thumb {
  background-color: #888;
}
.control-buttons {
  position: absolute;
  top: 10px; 
  width: 40px;
  height: 120px; 
  right:10px;
  border-radius: 4px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cancel-button,
.top-button,
.bottom-button {
  width: 100%;
  height: 40px; 
  padding: 0;
  margin: 0.2vh;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.button-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: #333;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

#customPdfViewer {
  width: 100%;
  height: 100%;
}

.zoom-button{
  z-index: 10001;
}
.zoom-button-container {
  position: absolute;
  top: 130px; 
  right: 10px;
  width: 40px;
  height: 80px; 
  border-radius: 4px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.zoom-button {
  width: 100%;
  height: 40px; 
  padding: 0;
  margin: 0.2vh;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.zoom-button-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: #333;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}



.zoom-button-container:focus {
  outline: none;
}
/* Media queries for small screens */
@media (max-width: 767px) {
  .pdf-container {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: none;
  }

  
}