/* image-converter.css */

#image-converter-container {
    max-width: 90%;
    margin: 20px auto;
    padding: 20px;
    border: 1px dashed wheat;
    /*background: rgba(26, 22, 22, 0.8);*/
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}


#image-converter-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-converter-input {
    flex: 1 1 calc(33.33% - 10px);
    box-sizing: border-box;
    position: relative;
    margin-bottom: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
}

.image-converter-upload,
.image-converter-format {
    width: calc(100% - 20px);
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 8px;
    background-color: #4F4F20;
    border: 1px solid #4F4F20;
    border-radius: 3px;
    color: #A9AB16;
    cursor: pointer;
    font-size: 14px;
}

.image-converter-upload:hover,
.image-converter-format:hover {
    background-color: #6D6D20;
}

.image-converter-format {
    position: relative;
}

.image-converter-format:after {
    content: '\25BC';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

.image-converter-preview-container {
    width: 150px;
    margin-top: 10px;
}

.image-converter-preview {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.image-converter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#add-more-button,
#delete-one-button {
    flex: 1;
    box-sizing: border-box;
    padding: 10px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#delete-one-button {
    background-color: #dd7973;
}

#delete-one-button:hover {
    background-color: #ce3e35;
}

#progress-message-box{
    width: 400px;
    background-color: #30351b;
    margin-top: 10px;
    height: 30px;
    padding-left: 20px;
    border: 1px;
    border-radius: 7px;
    color: wheat;
    font-size: 12px;
}

#image-converter-convert {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-top: 10px;
    background-color: #ffbd03;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#image-converter-convert-centre {
    text-align: center;
}

#add-more-button:hover,
#image-converter-convert:hover {
    background-color: #b2d128;
    color: black;
}

#image-converter-download {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    margin-top: 10px;
    display: none;
    text-align: center;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.image-converter-preview-container {
    position: relative;
}

.image-converter-preview:hover {
    opacity: 0.6; /* Adjust the opacity value as needed */
}

.image-delete-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 8px;
    background-color: #e76c66;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease; /* Add smooth transition effect */
}

.image-delete-button:hover {
    background-color: #ee0e0e; /* Change to red on hover */
}

.image-converter-input:hover .image-delete-button {
    display: block;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .image-converter-input {
        flex: 1 1 calc(100% - 20px);
    }

    #add-more-button,
    #delete-one-button {
        flex: 1 1 calc(50% - 10px);
    }

    #image-converter-convert {
        width: 100%;
    }
}
