body {
    font-family: Arial, sans-serif;
    background-image: url('../images/Background.png'); /* Chemin vers ton image */
    background-repeat: repeat ; /* Répète l'image sur tout l'écran */
    background-size: auto; /* Taille de l'image */
    background-color: #f5f5f5; /* Couleur de fond en cas de problème de chargement de l'image */
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    text-align: center;
    margin-bottom: 20px;
    display: flex; /* Utilisation de Flexbox pour aligner les éléments */
    flex-direction: column; /* Empile les éléments verticalement */
    align-items: center; /* Centre les éléments horizontalement */
}

header img#logo {
    max-width: 300px; /* Taille maximale du logo */
    height: auto; /* Ajuste la hauteur proportionnellement */
    margin-bottom: 10px; /* Espace entre le logo et le texte */
}

header p {
    font-size: 1.2rem;
    color: #5c5c5c;
    margin: 0;
}

html, body {
    height: 100%;
    margin: 0;
}

/* Le conteneur principal utilise Grid pour structurer la page */
.wrapper {
    display: grid;
    grid-template-rows: auto 1fr auto; /* Header, main, footer */
    min-height: 100vh; /* Hauteur minimale : 100% de la hauteur de la fenêtre */
}

/* Style pour le footer */
footer {
    text-align: center;
    padding: 10px 0;
    color: #290707e3;
    font-size: larger;
}

#app {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    color: #5c5c5c;
}

#game-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#beer-input {
    width: 70%;
    padding: 10px;
    font-size: 1.2rem;
}

#submit-btn {
    padding: 10px 20px;
    font-size: 1.2rem;
    margin-left: 10px;
    cursor: pointer;
}

#hints-container h2,
#previous-beers h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

#result-container {
    text-align: center;
    margin-top: 20px;
    display: none; /* Caché par défaut */
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #0a0707c2;
}

#social-links a {
    margin: 0 10px;
    text-decoration: none;
    color: #007bff;
}

.button-with-animation {
    position: relative;
    display: inline-block;
    width: 200px; /* Ajuste la taille en fonction de ton design */
    height: 50px;
    text-align: center;
    color: white; /* Couleur du texte */
    font-weight: bold;
    text-decoration: none;
    overflow: hidden; /* Assure-toi que rien ne déborde du bouton */
}

.animation-container {
    position: absolute;
    z-index: 1; /* Derrière le texte */
 }

.button-text {
    position: relative;
    z-index: 4; /* Au-dessus de l'animation */
    line-height: 50px; /* Centrage vertical du texte */
}
