/* Mise en forme globale de la page */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #6e7bff, #c5a2ff); /* Dégradé coloré */
}
@font-face {
    font-family: 'SavoryCurry';
    src: url('fonts/savory_curry/SavoryCurry.ttf') format('truetype');
}

body {
    font-family: 'SavoryCurry', sans-serif;
}

/* Conteneur principal */
.container {
    text-align: center;
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 450px;
    background-color: rgba(255, 255, 255, 0.8); /* Légère transparence */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px); /* Effet de flou pour un look moderne */
    animation: fadeIn 1s ease-out;
}

/* Animation d'apparition */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Style du titre */
h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Style du sélecteur de catégorie */
select {
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #ccc;
    width: 100%;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

select:hover {
    border-color: #6e7bff;
    transform: scale(1.05);
}

/* Style des boutons */
button {
    padding: 15px 25px;
    font-size: 18px;
    border-radius: 50px;
    background-color: #6e7bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:hover {
    background-color: #4e5cbf;
    transform: translateY(-4px);
}

button:active {
    transform: translateY(2px);
}

/* Style du texte généré */
h2 {
    font-size: 28px;
    color: #333;
    margin-top: 30px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

/* Style du bouton "Copier" */
#copy {
    display: none;
    padding: 12px 22px;
    background-color: #4CAF50;
    font-size: 16px;
    border-radius: 25px;
    margin-top: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#copy:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

#copy:active {
    transform: scale(1);
}

/* Effets supplémentaires pour le contenu généré */
h2#generatedName {
    font-weight: bold;
}

/* Animation de brillance du texte */
@keyframes textGlow {
    0% { text-shadow: 0 0 10px #6e7bff, 0 0 20px #6e7bff, 0 0 30px #6e7bff, 0 0 40px #6e7bff; }
    100% { text-shadow: 0 0 15px #6e7bff, 0 0 25px #6e7bff, 0 0 35px #6e7bff, 0 0 45px #6e7bff; }
}

/* Style du bouton "Copier" pour qu'il soit identique au bouton "Générer un Nom" */
#copy {
    display: none; /* Caché au départ */
    padding: 15px 25px;
    font-size: 18px;
    border-radius: 50px;
    background-color: #6e7bff; /* Même couleur que le bouton Générer */
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin: 10px 0; /* Alignement vertical */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: auto; /* S'adapte au texte */
}

/* Effets au survol et au clic */
#copy:hover {
    background-color: #4e5cbf; /* Même effet au survol */
    transform: translateY(-4px);
}

#copy:active {
    transform: translateY(2px);
}

/* Centrage parfait en garantissant que les boutons soient bien alignés */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre horizontalement */
    gap: 10px; /* Espacement uniforme */
}
