/* ==========================================================================
   Translation App Styles
   UI Library overrides and app-specific styles
   ========================================================================== */

/* UI lib size overrides */
.gd-about__picture {
    background-size: 54rem;
    height: 39rem;
}

.gd-step__icon {
    width: 5rem;
    height: 5rem;
}

.gd-step__icon > svg {
    width: 1.6rem;
    height: 1.6rem;
}

/* Disabled select option */
select option:disabled {
    color: #ddd;
}

/* ==========================================================================
   Upload Languages Section
   ========================================================================== */

.gd-upload-languages {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    padding-bottom:2rem;
}

/* Language select size override */
.gd-select--lang {
    width: 15rem;
}


/* ==========================================================================
   Form Layout
   ========================================================================== */

.gd-form__body {
    margin-bottom: 1.5rem;
      display: flex;
    flex-direction: column;
    align-items: center;
}


.gd-form__row {
    margin-bottom: 1.5rem;
    justify-content: center;
    display: flex;
    width: 25rem;
    gap: 1rem;
}

.gd-form__row .gd-select {
    width: 100%;
}

.gd-form__row .gd-input {
    width: 15rem;
    max-width: 15rem;
}

.gd-form__col2 {
    width: 50%;
}

.gd-form__btn-box {
    display: flex;
    justify-content: center;
    padding: 1rem 0 2rem;
}



/* ==========================================================================
   File Display in Form
   ========================================================================== */

.gd-form__file-box {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.gd-form__file {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 14rem;
}

.gd-form__file-img {
    width: 5.3rem;
    height: 5.3rem;
    background-size: 5.3rem;
    background-repeat: no-repeat;
    background-image: url(../img-redesign/translation-icons.svg#file);
}

.gd-form__file-name {
    width: 100%;
    padding: 1rem 0;
    font-weight: 500;
    color: var(--text-header-color);
    position: relative;
    box-sizing: border-box;
    max-width: 14rem;
    overflow: hidden;
    text-align: center;
}

.gd-form__file-name > span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
}

/* ==========================================================================
   Text Translation Page Styles
   ========================================================================== */

.gd-translate-texts__fields {
    display: flex;
    gap: 2rem;
}

.gd-translate-texts__field-box {
    position: relative;
    width: 100%;
}

.gd-translate-texts__paste {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    background-image: url(../img-redesign/translation-icons.svg#paste);
    background-size: 1.25rem;
    background-repeat: no-repeat;
    cursor: pointer;
}

.gd-translate-texts__copy {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    background-image: url(../img-redesign/translation-icons.svg#copy);
    background-size: 1.25rem;
    background-repeat: no-repeat;
    cursor: pointer;
}

.gd-translate-texts__field {
    padding: 1rem;
    height: 12rem;
    font-family: 'Inter', sans-serif;
}

.gd-translate-texts__btn-box {
    display: flex;
    justify-content: center;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media screen and (max-width: 750px) {

    .gd-upload-languages {
        flex-direction: column;
        align-items: center;
    }

    .gd-select--lang {
        width: 100%;
        max-width: 15rem;
    }

    .gd-form__row {
        width: 100%;
    }

    .gd-translate-texts__fields {
        flex-direction: column;
    }
}
