body {
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    margin: 0;
    font-family: Arial, sans-serif;
    padding-bottom: 500px; /* Ajustez selon l'espace désiré */
    padding-top: 30px; /* Ajustez selon l'espace désiré */
    
}

/* Grid layout for button containers */
#gtp-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 600px; /* Adjust based on your preference */
    max-height: 0; /* Start with 0 height */
    overflow: hidden; /* Prevent content from spilling out during transition */
    opacity: 0; /* Start fully transparent */
    transition: max-height 0.5s ease, opacity 0.5s ease; /* Smooth transitions for both properties */
}

#gtp-buttons.show {
    max-height: 500px; /* Maximum height when visible (adjust based on content) */
    opacity: 1; /* Fully visible */
    transition: max-height 0.7s ease, opacity 0.5s ease; /* Adjust timing if needed */
}

#gtp-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Adjust as per your current setup */
    gap: 10px;
    opacity: 0; /* Start hidden */
    transform: translateY(-20px); /* Start slightly above its final position */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth transition for both properties */
    visibility: hidden; /* Use visibility to hide it but keep the space */
}

#gtp-buttons.show {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Move to final position */
    visibility: visible; /* Make it visible */
}

/* Improved aesthetics for buttons */
button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-align: center;
}

/* Dynamic hover effects */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.group-title {
    font-size: 16px; /* Adjust font size as needed */
    color: #333; /* Dark grey text color */
    margin-bottom: 10px; /* Spacing between title and buttons */
    padding-left: 10px; /* Align with the buttons if needed */
    font-weight: bold; /* Make the title bold */
}

.button-group {
    margin-bottom: 20px; /* Spacing between each button group */
}
/* Couleurs et styles pour le bouton par défaut */
#start-recording {
    background-color: #1E63AE;
    color: white;
}

#stop-recording {
    background-color: #e74c3c;
    color: white;
}

#start-recording:hover,  #lien:hover {
    background-color: #164A83;
}

 #stop-recording:hover{
    background-color: #7b0303;
}

/* Style spécifique pour le bouton d'enregistrement actif */
.button-recording {
    background-color: #e74c3c;
    color: white;
}


#correct-button, #translate-button, #improve-button, #reply-button, #summarize-button, #code-button {
    background-color: #2a79cd;
    margin: 5px;
    color: white;
}
#correct-button:hover, #translate-button:hover, #improve-button:hover, #reply-button:hover, #summarize-button:hover, #code-button:hover {
    background-color: #164A83;
}


#drop-area {
    border: 2px dashed #ccc;
    padding: 50px;
    margin-bottom: 10px;
    transition: border-color 0.5s ease-in-out, transform 0.5s ease-in-out;
}

#drop-area:hover {
    border-color: #666; /* Change la couleur de la bordure au survol */
    transform: scale(1.05); /* Agrandit légèrement l'élément au survol */

}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 95%;
    max-height: 95%;
    overflow: auto;
}

.close-button {
    float: right;
    font-size: 1 rem;
    font-weight: bold;
    cursor: pointer;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-50px);
    }
}

.container {
    text-align: center;
    width: 100%;
    max-width: 600px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#text-input, #text-container {
    width: 95%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: white;
    box-sizing: border-box;
    resize: none;
    transition: transform 0.3s ease-in-out;
}

#password-input {
    width: 75%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: white;
    box-sizing: border-box;
    resize: none;
    text-align: center; /* Centrer le texte et le placeholder */
    transition: transform 0.3s ease-in-out;
}

#text-input:hover, #password-input:hover, #text-container:hover {
    /*transform: scale(1.02);*/
}

#grey-button{
    padding: 10px 20px;
    margin: 5px;
    background-color: #7e7e7e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    width:100%;
    transition: background-color 0.3s ease;
}

#copy-button,  #lien {
    padding: 10px 20px;
    margin: 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    width:90%;
    transition: background-color 0.3s ease;
}

#copy-button:hover, #grey-button:hover, #lien:hover {
    background-color: #164A83;
}

.qrcode {
    margin: auto;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: #f0f0f0;
    border-top: 1px solid #ccc;
    font-family: Arial, sans-serif;
    color: #222;
}

a, a:hover, a:visited {
    text-decoration: none;
    color: #222 !important;
}

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

#load-area {
    display: flex;
    justify-content: center;
    align-items: center;

}

.loader {
    text-align: center;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #1E63AE;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
}

@keyframes colorCycle {
    0% { background-color: #1E63AE; }
    25% { background-color: #3498db; }
    50% { background-color: #5DADE2; }
    75% { background-color: #3498db; }
    100% { background-color: #1E63AE; }
}


.loading {
    pointer-events: none; /* Disable further clicks */
    color: white; /* Ensure text is readable */
    animation: colorCycle 2s linear infinite; /* Apply the animation */
}




@media (max-width: 600px) {
    .container, #text-input, #password-input, #text-container {
        width: 100%;
        max-width: none;
    }
    #password-input {
        width: 100%; /* Ajustement pour les petits écrans */
    }
    .footer {
        font-size: 14px;
    }
}
