.image-container {
    position: relative; /* Necessary for positioning the rotate icon */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align items */
    border: 1px solid #ccc; /* Add a border */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); /* Add shadow effect */
    margin-bottom: 10px; /* Space between cards */
    width: calc(33.333% - 10px); /* 4 columns */
    height: 300px; /* Fixed height */
    overflow: hidden; /* Clip overflow */
}

.uploaded-image {
    transition: transform 0.3s ease; /* Smooth transition for rotation */
    max-width: 100%; /* Keep the image responsive */
    max-height: 80%; /* Limit height for better presentation */
    object-fit: contain; /* Maintain aspect ratio */
    margin-bottom: 10px; /* Space between image and button */
}

.rotate-icon {
    position: absolute;
    top: 10px; /* Distance from the top */
    right: 10px; /* Distance from the right */
    cursor: pointer; /* Change cursor to pointer */
    color: #007bff; /* Icon color */
    font-size: 24px; /* Size of the icon */
    transition: transform 0.3s ease; /* Smooth rotation transition */
}

.rotate-icon:hover {
    transform: scale(1.1); /* Scale on hover for effect */
}

#drop-area {
    border: 2px dashed #007bff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}
.image-container {
    margin: 10px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
}
.uploaded-image {
    max-width: 100%;
    max-height: 150px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.rotate-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
}
#pdf-preview-container {
    display: none;
    margin-top: 20px;
}