.field-wrapper {
    width: fit-content;
    position: relative;
    display: inline-block;
    margin: auto;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.position_top {
    position: absolute;
    top: 4rem;
}



.field-wrapper::before {
    content: attr(title-data);
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1;
    background-color: black;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 0.6rem;
    width: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.field-wrapper:hover::before {
    opacity: 1;
    visibility: visible;
}

.loader_progress {
    width: 5rem;
}

.loader {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--loader-color);
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: auto;
}

.progress {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.progress_bar {
    width: 100%;
    /* Full width of its container */
    background-color: #ddd;
    /* Light grey background */
    border-radius: 8px;
    /* Rounded corners */
    overflow: hidden;
    /* Ensures the fill doesn't spill over the border */
}

.progress_bar_fill {
    height: 20px;
    /* Height of the progress bar */
    background-color: var(--loader-color);
    /* Green background for the filled part */
    width: 0%;
    /* Initial fill width */
    border-radius: 8px;
    /* Rounded corners */
    text-align: center;
    /* Center the text (if you decide to add any) */
    line-height: 20px;
    /* Align the text vertically */
    color: white;
    /* Text color */
    transition: width 0.5s ease-in-out;
    /* Smooth transition for width changes */
}

.take_whole_screen {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}