
/* Basic styling for modal content */
.modal-content {
    position: fixed; /* Fixed positioning for better behavior on scroll */
    z-index: 1050;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    width: 90%; /* Default width for smaller devices */
    max-width: 500px; /* Limit the maximum width */
    margin: 10% auto; /* Center modal on the screen */
}



.div-hide {
    display: none; /* Hides the modal */
}

/* Modal header styles */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f7f7f7;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

    .modal-header h5 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
    }

    .modal-header .close {
        font-size: 1.5rem;
        font-weight: bold;
        color: #000;
        text-shadow: none;
        cursor: pointer;
    }

/* Modal body styles */
.modal-body {
    padding: 15px;
    text-align: center;
}

    .modal-body img {
        max-width: 100%; /* Make the image fully responsive */
        height: auto;
        border-radius: 4px;
    }

/* Modal footer styles */
.modal-footer {
    padding: 10px;
    border-top: 1px solid #dee2e6;
    text-align: right;
}

/* Responsive adjustments for larger screens */
@media (min-width: 768px) {
    .modal-content {
        width: 50%; /* Larger width on bigger screens */
        max-width: 700px;
        margin-left: 27%;
    }

    .modal-body img {
        border-radius: 6px;
    }
}

/* Additional styles for extra-large screens */
@media (min-width: 1200px) {
    .modal-content {
        width: 40%;
    }
}
