.form-wrapper {
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    /* Creates a gap between the buttons */
    width: 100%;
}

#fileTitle {
    width: 100%;
    height: 100%;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #e1e1e1;
}

@media (min-width: 768px) {
    #fileTitle {
        width: 50%;
        margin: 0 auto;
        margin-bottom: 20px;
    }
}

/* Default styles (for mobile) */
textarea[name="userText"] {
    width: 100%;
    height: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #e1e1e1;
    resize: vertical;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Styles for larger devices */
@media (min-width: 768px) {
    textarea[name="userText"] {
        width: 50%;
        margin: 0 auto;
    }
}

#file-upload-form,
#textForm {
    display: inline-block;
    margin: 0 10px;
}

#file-upload {
    display: none;
}

#upload-status {
    margin-top: 15px;
    padding: 10px 0;
    font-weight: bold;
    text-align: center;
}

.upload-file-btn,
.upload-text-btn {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0px !important;
    font-family: "Montserrat", Sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    text-decoration: none !important;
    line-height: 2rem !important;
    letter-spacing: 0px !important;
    fill: var(--e-global-color-secondary) !important;
    color: var(--e-global-color-secondary) !important;
    background-color: transparent !important;
    background-image: linear-gradient(180deg,
            var(--e-global-color-primary) 0%,
            var(--e-global-color-f49c4f5) 100%) !important;
    border-bottom-left-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
    border-top-left-radius: 4px !important;
    border-top-right-radius: 4px !important;
}

body {
    font-family: "Montserrat", sans-serif;
    background: black;
    color: white;
}

.container {
    margin: 20px auto;
    width: 400px;
    text-align: center;
    position: relative;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.progress {
    border-radius: 30px;
    background-color: transparent;
}

.progress-bar {
    height: 18px;
    border-radius: 30px;
    background-color: lightseagreen;
    width: 0%;
    transition: 0.4s linear;
    transition-property: width, background-color;
}

.loader {
    font-family: "Montserrat";
    font-weight: 500;
    --p: 0;
    font-size: 1rem;
    position: absolute;
    right: 0;
    color: lightseagreen;
}

.loader:after {
    content: attr(data-progress) "%";
}

.progress-bar.success {
    background-color: #4caf50;
}

.progress-bar.fail {
    background-color: #f44336;
}

.loader.success {
    color: #4caf50;
}

.loader.fail {
    color: #f44336;
}