body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
    margin: 0;
}

.container {
    text-align: center;
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
}

h1 {
    color: #333;
    margin-bottom: 1.5rem;
}

.input-container {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

#imageInput {
    display: none; /* Oculta el input de archivo por defecto */
}

.custom-file-upload {
    border: 1px solid #ccc;
    display: inline-block;
    padding: 6px 12px;
    cursor: pointer;
    background-color: #f0f0f0;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.custom-file-upload:hover {
    background-color: #e0e0e0;
}

#fileNameDisplay {
    font-style: italic;
    color: #666;
}

.image-area {
    position: relative;
    border: 3px dashed #ccc;
    width: 100%;
    height: 400px;
    margin: 1rem auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
}

#previewImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#cropCircle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5); 
    cursor: move;
}

.controls {
    margin-top: 1.5rem;
}

.control-group {
    margin-bottom: 1rem;
}

#circleSize {
    width: 100%;
    margin-top: 0.5rem;
}

#downloadButton {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

#downloadButton:hover {
    background-color: #0056b3;
}