
h1 {
    text-align: center;
    font-family: Arial, sans-serif;
    color: #444;
    margin-bottom: 20px;
}

.converter-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 750px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

label {
    display: block;
    margin: 10px 0;
    font-weight: bold;
    color: #333;
}

select {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
}

/* Enhanced file upload area */
.upload-area {
    border: 2px dashed #2193b0;
    border-radius: 10px;
    background: #e3f2fd;
    padding: 90px 20px;
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.upload-area.dragover {
    background: #bbdefb;
    border-color: #17668c;
}

.upload-text {
    font-size: 16px;
    color: #444;
}

.upload-button {
    background: #2193b0;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.upload-button:hover {
    background: #17668c;
}

#imageInput {
    display: none;
}

/* Image Previews */
.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    justify-content: center;
}

.preview-container img {
    max-width: 100%;
    max-height: 200px; /* Limit maximum height to 200px */
    object-fit: contain;
    border: 2px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Buttons */
button {
    background: #2193b0;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    display: block;
    width: 100%;
}

button:hover {
    background: #17668c;
}

/* Output section */
.output-container {
    margin-top: 20px;
}

.output-item {
    margin: 10px;
    display: inline-block;
    text-align: center;
}

.output-item img {
    max-width: 100%;
    max-height: 125px;
    border: 2px solid #ddd;
    border-radius: 10px;
}
.output-item p{
    display: none;
}

.download-btn {
    display: block;
    margin-top: 5px;
    background: #4caf50;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.download-btn:hover {
    background: #388e3c;
}

.download-zip {
    margin-top: 20px;
    display: block;
    background: #4caf50;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}

.download-zip:hover {
    background: #388e3c;
}
.file-name {
    font-size: 16px;
    color: #444;
    padding: 5px 0;
    border-bottom: 1px dashed #ccc;
    text-align: left;
    margin-bottom: 5px;
    word-break: break-all; /* Ensures long file names break properly */
}