/* PDF reader container */
.pdf-reader-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    display: block;
}

/* Ensure the canvas is responsive */
canvas {
    width: 80%;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    
}

@media only screen and (max-width: 766px) {
    /* Modal Content */
    .modal-content {
        background-color: white;
        width: 100% !important;
        padding: 20px;
    }

    /* Ensure the canvas is responsive */
    canvas {
        width: 100% !important;
        height: auto;
    }
}

@media only screen and (min-width: 768px) {
    /* Modal Content */
    .modal-content {
        background-color: white;
        width: 90% !important;
        padding: 20px;
    }

    /* Ensure the canvas is responsive */
    canvas {
        width: 100% !important;
        height: auto;
    }
}

/* Modal Content */
.modal-content {
    background-color: #fff;
    width: 80%;
    padding: 20px;
}

/* Modal Content */
.modal-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.modal-header h2 {
    color: #a22025 !important;
    font-weight: 600;
}

.modal-footer {
    margin-top: 10px;
    font-size: 12px !important;
}

#pdf-container {
    max-height: 85vh;
    overflow-y: scroll !important;
    background-color: #f1f1f1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding: 20px;
}


#pdf-container::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
  }
  
#pdf-container::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0, 0, 0, .5);
    box-shadow: 0 0 1px rgba(255, 255, 255, .5);
  }

/* close-modal Button */
.close-modal {
    color: #00007e;
    float: right;
    font-size: 48px;
    font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
    color: #a22025;
    text-decoration: none;
    cursor: pointer;
}