.modal {
  display: none;
  position: fixed;
  z-index: 999999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 1);
  justify-content: center;
  align-items: center;
}

.modal h2 {
  display: none;
}

.modal-content {
  position: relative;
  width: 90vw;
  height: 90vh;
  max-width: none;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#pdfViewer {
  width: 90vw;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#pdfViewer canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdf-controls {
  position: absolute;
  bottom: 50%;
  right: 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.nav-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
}

.nav-icon {
  width: 40px;
  height: 40px;
  color: #5ff4f4;
  background-color: black;
  border-radius: 50%;
}

.nav-button:hover .nav-icon {
  color: #5ff4f4;
}

.nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

#pageInfo {
  min-width: 100px;
  text-align: center;
  font-family: "Panel Sans";
  color: white;
}

.close {
  color: #00f2ea;
  font-size: 48px;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #fff;
}

.nav-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
}

.nav-icon {
  width: 40px;
  height: 40px;
  color: #5ff4f4;
  background-color: black;
  border-radius: 50%;
}

.nav-button:hover .nav-icon {
  color: #5ff4f4;
}

.nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* .pdf-controls {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: relative;
} */

#pageInfo {
  min-width: 100px;
  text-align: center;
  font-family: "Panel Sans";
  color: white;
}

.pdf-control-close {
  width: 30%;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  #pdfViewer {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .modal-content {
    width: 100%;
    padding: 10px;
  }
}

@media (max-height: 1100px) {
  .pdf-controls {
    right: 0%;
  }
}

@media (max-height: 850px) {
  #pdfViewer {
    height: 110% !important;
  }
}

@media (max-width: 1000px) {
  .pdf-controls {
    width: 70% !important;
  }

  #pdfViewer {
    height: auto;
  }
}

@media (max-width: 1360px) {
  .modal-content {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .pdf-controls {
    display: flex !important;
    flex-direction: row !important;
    position: relative;
    bottom: 0;
    padding-top: 10px;
    justify-content: center;
    align-items: center;
    width: 90%;
  }

  .close {
    position: absolute;
    right: 0;
  }
}

@media (max-width: 670px) {
  #prevPage svg {
    width: 30px;
    height: 30px;
  }

  #nextPage svg {
    width: 30px;
    height: 30px;
  }

  #pageInfo {
    display: none;
  }
}

@media (max-width: 500px) {
  #prevPage svg {
    width: 40px !important;
    height: 40px !important;
  }

  #nextPage svg {
    width: 40px !important;
    height: 40px !important;
  }

  #pdfViewer {
    height: auto !important;
  }
}
