body {
    font-family: Arial, sans-serif;
    background: linear-gradient(45deg, #4CAF50, #2196F3);
    /* Gradient background */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    background-color: rgba(255, 255, 255, 0.35);
    /* Frosted glass effect */
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 80%;
    /* Default width */
    margin: auto;
    /* Center the container */
    animation: fadeIn 0.5s ease-in-out;
    /* Fade-in animation */
    display: grid;
    gap: 10px;
    justify-content: center;
    align-items: center;
    max-height: 90%;
    overflow: auto;
}

@media (min-width: 768px) {
    .container {
        width: 40%;
        /* Set width to 40% for desktop or wide screen */
    }
}

.file-inputs {
    display: flex;
    flex-wrap: wrap;
    /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    /* Center buttons horizontally */
    gap: 35px;
}

.file-input {
    position: relative;
    width: 200px;
    height: 200px;
    border: 6px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: inline-block;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 128px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    vertical-align: middle;
}

.file-input input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.selected-image {
    display: block;
    max-height: 100%;
    max-width: 100%;
    margin: auto;
}

.editBtn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 64px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    max-width: max-content;
    font-size: large;
    margin: 10px auto auto auto;
}

.editBtn:hover {
    background-color: #45a049;
}

.result {
    text-align: center;
    display: grid;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.editedImage {
    max-width: 100%;
    margin: 0 auto;
    max-height: 80vh;
    border-radius: 10px;
    object-fit: fill;
}

.label {
    font-size: 20px;
    display: block;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    font-weight: bolder;
    color: black;
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.edit-panel {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

.download-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    margin-top: 10px;
}

.download-btn:hover {
    background-color: #45a049;
}