body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1 {
    text-align: center;
    margin: 20px 0;
    color: #2c3e50;
}

.container {
    display: flex;
    flex-direction: column;

    .modal {
        z-index: 1000;
    }

    align-items: center;
    gap: 20px;
}

.image-processing-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

#croppieContainer {
    border: 1px solid #ccc;
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 400px;
}
#croppieContainer input {
    width: 100%;
}


.preview-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: fit-content;
}


.preview-panel h3 {
    margin-top: 0;
    color: #2c3e50;
}

.preview-panel .select-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.crop-controls {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

button,
.crop-controls button,
.custom-upload-button,
#download {
    float: right;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

button:hover,
.crop-controls button:hover,
.custom-upload-button:hover,
#download:hover {
    background-color: #2980b9;
}

#download
button:active,
.crop-controls button:active,
.custom-upload-button:active,
#download:active {
    transform: translateY(1px);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

#download {
    display: none;
}
.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.slider-container input[type="range"] {
    width: 200px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 70%;
    max-width: 600px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


canvas {
    max-width: 100%;
    border: 1px solid #ddd;
    /* cursor: crosshair; */
    border-radius: 0px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


.crop-controls {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    /* Center the buttons horizontally */
    align-items: center;
    /* Align the buttons vertically */
    gap: 10px;
}



.selection-box {
    border: 2px dashed rgba(0, 0, 0, 0.5);
    position: absolute;
    pointer-events: none;
}

input[type="file"] {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

label {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #555;
}

input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #3498db;

}


@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .preview-panel {
        width: 90%;
    }

}

.image-processing-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    /* Align items to the top of their container */
    justify-content: center;
    /* Center the content horizontally */
    width: 100%;
    /* Ensure container takes full width available */
    box-sizing: border-box;
    /* Include padding and border in element's total width and height */
}

.preview-panel {
    /* Remove fixed width to enable auto sizing */
    max-width: 400px;
    /* Set a maximum width to prevent overflowing */

    /* ... other .preview-panel styles ... */
}


@media (max-width: 800px) {

    /* Adjust breakpoint as needed */
    .image-processing-container {
        flex-direction: column;
        /* Stack vertically on smaller screens */
    }
}

.fa-solid {
    cursor: pointer
}
