.main_container {
    width: 100%;
    height: 100%;
    position: relative;

    /*border-radius: 10px;*/
    /*max-width: 600px;*/
    /*max-height: 600px;*/
    /*top: 50%;*/
    /*left: 50%;*/
    /*transform: translate(-50%, -50%);*/
}

.main_area {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
}


.area_content {
    height: 100%;
    background-color: var(--background);
    flex-grow: 1;
}


/* content */
.workflow {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.work_area {
    width: 98%;
    height: 98%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    background-color: var(--background);
}

.imageCrop {
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    width: 60%;
    height: 55%;
    box-shadow: 0 -2px 5px rgba(255, 255, 255, 0.3), 0 2px 5px rgba(0, 0, 0, 0.3);
    background-image: radial-gradient(circle, var(--border-color) 1px, transparent 1px);
    background-size: 24px 24px;
    cursor: pointer;
    transition: all 150ms ease;
}

.imageCrop:hover {
    transform: translateY(-4px);
    border-color: var(--text-color);
    box-shadow: 0 -6px 8px rgba(255, 255, 255, 0.3), 0 8px 10px rgba(0, 0, 0, 0.3);
    transition: all 250ms ease;

    .iconWorkflow {
        fill: var(--text-color);
        transition: fill 300ms ease;
    }
}

.iconWorkflow {
    width: 16px;
    height: 16px;
    min-height: 16px;
    min-width: 16px;
    fill: var(--icon-color);
    transition: fill 300ms ease;
    cursor: pointer;
}

.iconWorkflow:hover {
    fill: var(--text-color);
    transition: fill 300ms ease;
}

.image_preview {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, var(--border-color) 1px, transparent 1px);
    background-size: 24px 24px;
    background-color: var(--background);
    justify-content: center;
    align-items: center;
    display: flex;
    border-radius: 10px;
    padding: 10px;
    position: relative;
}

#imagePreview {
    max-width: 100%;
    max-height: 100%;
    border-radius: 2px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: showElemOpacity linear 300ms;
    position: relative;
}

.size_imagesPX {
    position: absolute;
    left: 4px;
    bottom: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    color: var(--text-color);
    font-size: 0.7rem;
    text-align: center;
    padding: 2px 6px;
    z-index: 100;
}

.print_settings {
    display: flex;
    height: 15%;
    min-height: 90px;
    width: 100%;
    margin-top: 20px;
    background-color: var(--bg-frame);
    bottom: 0;
    position: absolute;
    border-radius: 10px;
    align-items: center;
}

.print_settings_area_size {
    margin-left: 20px;
}

.input_size {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    font-size: 20px;
    width: 68px;
    height: 2rem;
}

.input_size:focus {
    border-color: var(--active-color);
}

.iconWorkflowSize {
    width: 18px;
    height: 18px;
    fill: var(--text-color);
    background-position: center;
}

.iconInfo {
    background-position: center;
    width: 20px;
    height: 20px;
    fill: rgba(0, 0, 0, 0.8);
}

.iconInfo:hover {
    fill: rgba(0, 0, 0, 1);
}

.costArea {
    font-size: 18px;
    /*top: 10px;*/
    top: 50%;
    position: absolute;
    margin-left: 50%;
    transform: translate(-50%);
    animation: showElemOpacity linear 300ms;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.helpCost {
    margin-left: 20px;
    cursor: pointer;
}

.button_black {
    background-color: black;
    color: silver;
    border: solid 1px var(--border-color);
    border-radius: 4px;
    height: 28px;
    width: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    font-size: 16px;
    animation: showElemOpacity linear 300ms;
}

.button_black:hover {
    color: #FFFFFF;
    border-color: var(--active-color);
}

.button_black_next1 {
    margin-left: auto;
    margin-right: 20px;
    height: 40px
}

.progress_load_area {
    border-radius: 10px;
    width: 90%;
    height: 60%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    align-items: center;
    justify-content: center;
    display: flex;
    animation: showElemOpacity linear 500ms;
}

.progressItem {
    margin: 0 8px;
    border-radius: 2px;
    width: 10px;
    height: 8px;
    background-color: var(--border-color);
    transition: background-color 500ms ease;
}

.progress_header_label {
    animation: showElemOpacity linear 300ms;
}

.rotate {
    animation: rotate 1.5s linear infinite
}

/* hint */
.helpCost:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tittleContainer {
    display: inline-block;
    position: relative;
}

.tittleContainer:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text {
    font-size: 16px;
    visibility: hidden;
    padding: 10px;
    background-color: var(--bg-window);
    border: solid 1px var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    opacity: 0;
    transition: opacity 0.3s;
    min-height: 50px;
    width: max-content;
    max-width: 550px;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    align-content: center;
}

.tooltip-text.visible {
    visibility: visible;
    opacity: 1;
}

.areaInputFile {
    background-color: var(--bg-window);
    padding: 10px;
    border-radius: 10px;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3), inset -1px -1px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* hint */

@media screen and (max-width: 600px) {
    .work_area {
        width: 100%;
        height: 100%;
        border-radius: 0;
        background-color: var(--background);
    }

    .imageCrop {
        width: 90%;
    }

    .image_preview {
        margin-top: 60px;
        width: 90%;
        height: 80%;
        border: solid var(--border-color) 1px;
    }

    .print_settings {
        position: fixed;
        bottom: 0;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
        width: 96%;
        margin-left: 2%;
        height: 22%;
    }

    .print_settings_area_size {
        margin-left: 10px;
        font-size: 14px;
        text-align: left;
    }

    .input_size {
        width: 40px;
        font-size: 14px;
    }

    .iconWorkflowSize {
        width: 14px;
        height: 14px;
    }

    .costArea {
        top: 6px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }

    .helpCost {
        margin-left: 10px;
    }

    .button_black_next1 {
        margin-right: 10px;
    }

    .tooltip-text {
        max-width: 90%;
    }

}

@keyframes showElemOpacity {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}