#mainContainer {
  min-height: 98vh;
  height: fit-content;
  max-height: none;
}


.main-container .content {
    flex: 1;
    /* Take up remaining space */
    width: 100%;
    /* Ensure content takes full width */
    overflow-y: auto;
    /* Add vertical scrollbar if content overflows */
}


#mainContainer .text-center h1 {
    margin-top: 20px !important;
    font-size: 40px !important;
    font-weight: bolder !important;
}


.drop-zone,
#dropZone {
    border: 1px dashed #ccc;
    padding: 20px;
    text-align: center;
    transition: background-color 0.3s;
    height: 400px;
    width: 100%;
    /* Define the width */
    margin-bottom: 0px;
    /* Add some space below the drop zone */
    background-color: #f7f3f3;
    display: flex;
    /* Use flexbox */
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    flex-direction: column;
    /* Stack items vertically */
    left: 0;
}



.dropbtn {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content label {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content label:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #3e8e41;
}

#dropZone p {
    margin: 0;
    color: #333;

}

#or {
    font-size: calc(var(--font-size)*0.8);
}

.drop-zone.drag-over {
    background-color: #f0f0f0;
}

.body {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    /* Center items horizontally */
    align-items: center;
    /* Center items vertically */
}

.container {
    display: flex;
    justify-content: center;
    /* Center items horizontally */
    align-items: center;
    /* Center items vertically */
    flex-direction: column;
    /* Stack items vertically */
    margin-top: 10px;
    width: 90%;
    --height-container: 40px;
    /* 5% de la hauteur de .container */


}

.container>* {
    width: 100%;
    /* Ajustez cette valeur selon vos besoins */
    left: 0;
    margin-left: 0;

}


#preview {
    margin-top: 20px;
}

#preview img {
    max-width: 100%;
    height: auto;
}






#TranslateContainer {
    display: flex;
    /* Utilisez flexbox pour aligner les éléments en ligne */
    flex-direction: row;
    /* Alignez les éléments en ligne */
    align-items: center;
    /* Alignez les éléments verticalement au centre */
    height: var(--height-container);
}

.translate-button,
#confirmYes {
    position: relative;
    color: white;
    cursor: pointer;
    opacity: 1;
    border: none;
    /* Change to solid border */
    transition: background-color 0.3s, box-shadow 0.3s;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    margin-right: 10px;
    /* Add space to the right for the loading indicator */
    padding: 0;
    /* Remove padding */
    line-height: 30px;
    /* Set line-height to match the height of the button */
    background-color: #009548;
    /* Ensure background is blue */

}

#confirmYes,
#confirmNo {
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    border: none;
    /* Change to solid border */
    margin-left: 2%;
    margin-right: 2%;
    font-size: calc(var(--font-size) * 1);
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s;
    padding: calc(var(--font-size) * 0.3);
    padding-left: em;
    padding-right: em;
    display: flex;
    /* Utilise flexbox */
    justify-content: center;
    /* Centre horizontalement */
    align-items: center;
    /* Centre verticalement */
}

#confirmYes {
    background-color: #009548;
    /* Ensure background is blue */
}

#confirmNo {
    background-color: #ffffff;
}


.translate-button:hover,
#confirmYes:hover {
    background-color: #067a2d;
    /* Change la couleur de fond au survol */
}

.translate-button:focus,
#confirmYes:focus {
    outline: none;
    /* Supprime le contour par défaut au focus */
}

.translate-button:disabled,
#cancelButton:disabled {
    cursor: not-allowed;
    background-color: #ccc;
    color: #000000;
    opacity: 0.5 !important;
}


.translate-button,
#cancelButton {
    width: 15%;
    height: calc(var(--height-container)*0.75);
    font-size: calc(var(--font-size));
}



#cancelButton {
    position: relative;
    color: white;
    cursor: pointer;
    border: none;
    /* Change to solid border */
    transition: background-color 0.3s;
    text-align: center;
    background-color: #f52213;
    /* Ensure background is blue */
    border-radius: 5px;
    font-weight: bold;
    margin-left: 10px;
    /* Add space to the right for the loading indicator */
    padding-bottom: 0;
}



#cancelButton:not(:disabled):hover {
    background-color: #e41e10;
    /* Change la couleur de fond au survol */
}

#cancelButton:focus {
    outline: none;
    /* Supprime le contour par défaut au focus */
}

#loading,
#loadingSource {
    display: none;
    margin-top: 20px;
    font-size: 18px;
    color: #333;
}

#loadingSource {
    display: inline-block;
    position: absolute;
    right: 50%;
    /* Positionne l'indicateur de chargement à droite */
    top: 15px;
    /* Centre verticalement l'indicateur de chargement */
    font-size: 18px;
    color: #333;
}


.loading-indicator {
    position: relative;
    border: 2px solid #f3f3f3;
    /* Light grey */
    border-top: 2px solid #000000;
    /* Blue */
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    /* Align vertically with the button */
}

.loading-indicator.hidden {
    opacity: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
    margin-right: 5px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:checked+.slider:before {
    transform: translateX(20px);
}


#glossaryText {
    font-size: calc(var(--font-size)*1);
}

#glossaryInformation {
    border: none;
    background: none;
}

#glossaryInformation i {
    font-size: calc(var(--font-size)*0.7);
    color: #ccc;
}










#fileSearchLink {
    display: block;
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
}

#fileSearchLink:hover {
    text-decoration: underline;
}

.FileContainerEnabled,
.FileContainerDisabled {
    position: relative;
    display: flex;
    padding: 20px;
    /* Ajoute un padding pour un meilleur espacement */
    width: 100%;
    height: calc(var(--height-container)*1.1);
    margin-top: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    flex-direction: row;
    /* Stack items vertically */
    align-items: center;
    /* Center items horizontally */

}


.FileContainerEnabled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.308);
    /* Ajoute une ombre légère */
    background-color: white;
    /* Assurez-vous que le fond est blanc pour un meilleur contraste */
}





.FileContainerDisabled {
    box-shadow: 'none';
    background-color: #f7f3f3;
    pointer-events: 'none';
}

.FileContainer_Name {
    width: 90%;
    color: rgba(0, 0, 0, 0.322);
    text-align: left;
    align-items: center;
    /* Centrer le texte verticalement */
    margin-bottom: 0;
    font-size: calc(var(--font-size)*1);
    margin-left: 0;
}

.FileContainer_ImageContainer {
    display: flex;
    /* Active Flexbox */
    justify-content: center;
    /* Centre les éléments horizontalement */
    align-items: center;
    /* Centre les éléments verticalement */
    height: 27px;
    width: 29px !important;
    left: 1%;
    margin-right: 1%;
    overflow: hidden;
    background-color: #12C2E9;
    border-radius: 4px;
    margin-left: 0;
}



.FileContainer_Image {
    height: var(--font-size) !important;
    border: none !important;
    filter: invert(1);
}

.DownloadButton {
    position: absolute;
    height: 28px !important;
    width: 28px !important;
    opacity: 1;
    border-radius: 15px;
    border: none;
    pointer-events: all;
    right: 2% !important;
    display: flex;
    /* Utilise flexbox */
    justify-content: center;
    /* Centre horizontalement */
    align-items: center;
    /* Centre verticalement */
}

.DownloadButton .i {
    height: calc(var(--font-size)*0.5);
}

.DownloadButton:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.RemoveTargetDocumentContainerButton {
    position: absolute;
    height: 2px !important;
    width: 6px !important;
    opacity: 0.3;
    border: none !important;
    pointer-events: all;
    right: 10%;
    display: flex;
    /* Utilise flexbox */
    justify-content: center;
    /* Centre horizontalement */
    align-items: center;
    /* Centre verticalement */
    background-color: #000;
}

.RemoveTargetDocumentContainerButton::before {
    content: '';
    position: absolute;
    top: -10px;
    /* Adjust as needed */
    left: -10px;
    /* Adjust as needed */
    right: -10px;
    /* Adjust as needed */
    bottom: -10px;
    /* Adjust as needed */
    border-radius: 50%;
    /* Make it circular */
    background-color: transparent;
    /* Transparent background */
    pointer-events: all;
    /* Enable pointer events on the pseudo-element */
}

.RemoveTargetDocumentContainerButton:hover {
    opacity: 1;
}





#documentFormatContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Aligne les éléments enfants à gauche */
    margin-bottom: 5px;
    margin-left: 4px;
}

#documentFormatTrigger {
    position: relative;
    background-color: rgba(255, 255, 255, 0);
    font-size: calc(var(--font-size)*0.6);
    font-style: italic;
    color: #000000a8;
}

#overlay {
    display: none;
    /* Initialement caché */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Couleur de l'ombre */
    z-index: 999;
    /* Assure que l'overlay est au-dessus des autres éléments */
    opacity: 0;
    /* Initialement transparent */
    transition: opacity 0.25s ease;
    /* Transition pour l'opacité */
}

#documentFormatListContainer,
#glossaryInformationContainer {
    height: auto;
    display: none;
    /* Initialement caché */
    border: none;
    /* Supprime la bordure */
    padding: 10px;
    background-color: white;
    position: absolute;
    /* Positionne l'élément par rapport à la fenêtre du navigateur */
    top: 50%;
    /* Centré verticalement */
    left: 50%;
    /* Centré horizontalement */
    transform: translate(-50%, -50%);
    width: 300px;
    /* Vous pouvez ajuster cette valeur selon vos besoins */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Optionnel : ajoute une ombre pour un meilleur visuel */
    border-radius: 5px;
    z-index: 1000;
    /* Assure que le conteneur est au-dessus de l'overlay */
    opacity: 0;
    /* Initialement transparent */
    transition: opacity 0.25s ease;
    /* Transition pour l'opacité */
    text-align: left;
}

#glossaryInformationContainer {
    width: 600px !important;
}

#glossaryInformationContainer p {
    position: relative;
    height: auto;
    text-align: left;
    font-size: calc(var(--font-size)*1);
    padding-left: 10px;
}

#closeButtonSpace {
    height: 10px;
}

.closeButton {
    position: absolute;
    /* Positionne le bouton par rapport au conteneur */
    top: 8px;
    right: 8px;
    background-color: #00000010;
    border: none;
    border-radius: 15px;
    /* Rend les coins du bouton arrondis */
    width: 30px;
    /* Largeur du bouton */
    height: 30px;
    /* Hauteur du bouton */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    line-height: 7px;
    /* Hauteur de ligne pour centrer verticalement */
    padding-bottom: 4px;
    /* Ajustez cette valeur pour déplacer le "X" vers le haut */
    font-size: 16px;
    z-index: 1000;
}

#documentFormatList {

    text-align: left;
    font-size: 16px;
    margin: 10px;

}

#confirmationContainer {
    display: none;
    /* Initialement caché */
    border: none;
    /* Supprime la bordure */
    background-color: white;
    position: absolute;
    /* Positionne l'élément par rapport à la fenêtre du navigateur */
    top: 50%;
    /* Centré verticalement */
    left: 50%;
    /* Centré horizontalement */
    transform: translate(-50%, -50%);
    width: 380px;
    /* Vous pouvez ajuster cette valeur selon vos besoins */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Optionnel : ajoute une ombre pour un meilleur visuel */
    border-radius: 5px;
    z-index: 1000;
    /* Assure que le conteneur est au-dessus de l'overlay */
    opacity: 0;
    /* Initialement transparent */
    transition: opacity 0.25s ease;
    /* Transition pour l'opacité */
    font-size: 16px;
    margin: 10px;
    text-align: center;
    overflow: visible;
    padding: 2%;
}

.button-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* Centre les éléments verticalement */
    justify-content: center;
    /* Centre les éléments horizontalement */
}

.dropdowns {
    position: relative;
    display: flex;
    /* Utilisez flexbox pour le conteneur */
    flex-direction: row;
    /* Alignez les éléments en ligne */
    margin-bottom: 10px;
    align-items: flex-start;
    /* Alignez les éléments au début verticalement */
    justify-content: flex-start;
    /* Alignez les éléments au début horizontalement */
    width: 100%;
}





.languagetextSource,
.languagetextTarget {
    position: relative;
    display: inline-block;
    text-align: left;
    /* Alignez le texte à gauche */
    align-self: flex-start;
    /* Alignez l'élément lui-même au début horizontalement */
    margin-right: 10px;
    width: 50%;
}

.languagetextSource p,
.languagetextTarget p {
    position: relative;
    font-size: calc(var(--font-size)*0.8);
    margin: 0;
    /* Remove default margin */
    margin-right: 5px;
    /* Add a small margin to the right */
}

#SourceDocumentContainer {
    position: relative;
    overflow: visible;
}

#CostForFiles {
    position: relative;
    margin-left: 100px;
    display: flex;
    /* Utiliser flexbox pour aligner les éléments en ligne */
    flex-direction: row;
    /* Assurez-vous que la direction est en ligne */
    align-items: center;
    /* Aligner les éléments verticalement au centre */
}




.custom-option:hover {
    background-color: #4b4a4ac4 !important;
    /* Match hover effect of drop zone */
    color: white !important;
}

.custom-option:hover * {
    color: white !important;
}







/* Style pour le bouton ressemblant à un select */
.languagetextTarget_Button,
.dropdowns select,
.languagetextTarget_Button_Selected,
#languagetextTarget_Input {
    border-color: #000000ea;
    display: inline-flex;
    /* Utilise flexbox pour aligner les éléments enfants */
    align-items: center;
    /* Centre verticalement les éléments enfants */
    justify-content: space-between;
    /* Espace les éléments enfants */
    padding: 5px 15px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");
    background-repeat: no-repeat;
    background-position: calc(100% - 0.75rem) center !important;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2rem !important;
    text-align: left;
    /* Aligne le texte à gauche */
    flex-direction: row;
    /* Aligne les enfants horizontalement */
    width: 95%;
    height: var(--height-container) !important;

}

.languagetextTarget_Button:disabled {
    color: rgba(0, 0, 0, 0.377);
    box-shadow: 'none';
    pointer-events: 'none';
    border: 1px solid #ccc;
    border-radius: 0;
    background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23c0c0c0' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat;
    background-position: calc(100% - 0.75rem) center !important;
    background-color: #f7f3f3 !important;



}

.languagetextTarget_Button_Selected {
    border: none;
    box-shadow: 0 0 5px rgba(102, 175, 233, 0.6);
    /* Ajoute une ombre lors du focus */
}

.dropdowns select {
    box-sizing: border-box;
}


.dropdowns select:focus-within {
    border: none;
    outline: none;
    /* Supprime le contour par défaut lors du focus */
    border-color: #3d3f8f;
    /* Change la couleur de la bordure lors du focus */
    box-shadow: 0 0 5px rgba(102, 175, 233, 0.6);
    /* Ajoute une ombre lors du focus */
}

.select_ArrowHead {
    font-size: 10px;
    color: #00000096;
    overflow: visible !important;
}


#rounded-container {
    display: none;
    position: absolute;
    /* Positionne l'élément par rapport à son parent */
    top: 67px;
    /* Positionne l'élément en haut de son parent */
    left: 0;
    /* Positionne l'élément à gauche de son parent */
    z-index: 1000;
    /* Assure que l'élément est au-dessus des autres éléments */
    background-color: white;
    /* Assure que le fond de l'élément ne change pas */
    border-radius: 10px;
    /* Coins arrondis pour le conteneur */
    border: solid 1px #0000002f;
    overflow-y: auto;
    /* Cache le débordement pour appliquer les coins arrondis */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.178);
    /* Ajoute une ombre en dessous et sur les côtés */
    font-size: 16px !important;
    height: auto;
    max-height: 400px;
    width: 95%;

}

#noLanguageMessage {
    display: inline-flex;
    /* Utilise flexbox pour aligner les éléments enfants */
    align-items: center;
    /* Centre verticalement les éléments enfants */
    padding-right: 40px;
    position: relative;
    /* Nécessaire pour que l'enfant avec position absolute soit positionné par rapport à ce parent */
    padding-left: 5%;
    padding-top: 2px;
    padding-bottom: 2px;
    width: 100%;
    color: rgba(0, 0, 0, 0.322);
}

#languagetextTarget_List {
    width: 100%;
    /* Assure que l'élément prend toute la largeur de son parent */
    height: 100%;
    /* Assure que l'élément prend toute la hauteur de son parent */
    overflow-x: hidden;
}



.custom-option {
    display: inline-flex;
    /* Utilise flexbox pour aligner les éléments enfants */
    align-items: center;
    /* Centre verticalement les éléments enfants */
    padding-right: 40px;
    position: relative;
    /* Nécessaire pour que l'enfant avec position absolute soit positionné par rapport à ce parent */
    padding-left: 5%;
    padding-top: 2px;
    padding-bottom: 2px;
    width: 100%;
}




.custom-option-Text {
    width: 200px;
}

.languageSelectButton {
    border-radius: 15px;
    height: 20px;
    width: 20px;
    position: absolute;
    /* Positionne l'élément par rapport à son parent */
    right: 20px;
    /* Positionne l'élément à 10px du bord droit du parent */
    top: 50%;
    /* Centre verticalement l'élément par rapport au parent */
    transform: translateY(-50%);
    /* Ajuste la position pour centrer parfaitement */
    border: none;
}



.languageSelectButton_clicked {
    background-color: #000000af;
    border-radius: 15px;
    height: 20px;
    width: 20px;
    position: absolute;
    /* Positionne l'élément par rapport à son parent */
    right: 20px;
    /* Positionne l'élément à 20px du bord droit du parent */
    top: 50%;
    /* Centre verticalement l'élément par rapport au parent */
    transform: translateY(-50%);
    /* Ajuste la position pour centrer parfaitement */
    border: none;
    display: flex;
    /* Utilise flexbox pour centrer le contenu */
    align-items: center;
    /* Centre verticalement le contenu */
    justify-content: center;
    /* Centre horizontalement le contenu */
    padding-top: 0;
    /* Supprime le padding par défaut */
    margin: 0;
    /* Supprime la marge par défaut */
    font-size: 30px;
}

.custom-arrow {
    font-size: calc(var(--height-container)*0.4);
    /* Ajuste la taille de l'icône */
    line-height: 1.5;
    /* Ajuste la hauteur de la ligne */
    color: var(--color);
    /* Optionnel : change la couleur de l'icône */
}

@media screen and (max-width: 768px) and (max-height: 1024px) {




    #header {
        display: flex;

        overflow: visible;
        z-index: 100;
    }


    .body {
        overflow-y: scroll !important;
    }

    #mainContainer {

        height: 100% !important;

    }

    .text-center {
        position: relative;
        margin-top: 20px;
    }

    .container {
        margin-top: 0;
        padding: 0;
    }

    .dropdowns {
        flex-direction: column;
    }

    .languagetextSource,
    .languagetextTarget,
    #languagetextTarget_Input,
    #rounded-container {
        width: 100%;
        margin-right: 0;
    }

    .languagetextTarget {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .languagetextSource p,
    .languagetextTarget p {
        font-size: calc(var(--font-size)* 1);
    }

    .languagetextTarget_Button,
    .dropdowns select {
        width: 100%;
    }



    .dropdowns select {
        -moz-appearance: initial !important;
        -webkit-appearance: initial !important;
        appearance: initial !important;
    }

    .RemoveTargetDocumentContainerButton {
        right: 15% !important;
    }

    .translate-button,
    #cancelButton {
        width: fit-content;
        padding-left: 5px;
        padding-right: 5px;
    }

    /**.languagetextTarget_Button:disabled, .FileContainerDisabled, .FileContainerDisabled > *, .languagetextTarget_Button, #languagetextTarget_Button
    {
        background-color: var(--background-color-widget) !important;
        color: rgba(255, 255, 255, 0.233);
        
    }**/

    #glossaryInformationContainer {
        max-width: 100%;
    }






}