body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none;
}

#play-button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
    animation: zoomInOut 1.5s infinite;
}

@keyframes zoomInOut {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

#game-board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 10px;
    margin: 20px auto;
}

.cell {
    width: 100px;
    height: 100px;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cell.player {
    background-color: black;
    color: white;
}

.cell.computer {
    background-color: blue;
    color: white;
}

.cell.winning {
    background-color: green;
    color: white;
}

#reset-button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
}
#back-button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
}
/* Styles pour l'affichage des scores */
.score-display {
    margin-top: 20px;
    font-size: 18px;
    color: #333;
    text-align: center;
}
/* Styles pour l'affichage des emojis */
.emoji-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px; /* Taille de l'emoji */
    display: none; /* Caché par défaut */
    text-align: center;
    z-index: 1000; /* Par-dessus tout autre contenu */
}

/* Animation pour faire apparaître et disparaître l'emoji */
.emoji-show {
    display: block;
    animation: fadeOut 2s forwards; /* Animation pour disparaître après 2 secondes */
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

input{
    padding: 8px; 
    font-size: 1.5em; 
    border: 2px solid #e74c3c; 
    border-radius: 5px; 
    width: 100%; 
    max-width: 300px; 
    margin-bottom: 20px;
}
button{
    padding: 15px 25px; 
    font-size: 1.5em; 
    color: #fff; 
    background-color: #e74c3c; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    transition: background-color 0.3s, transform 0.3s;
}
/* Style du titre */
h1 {
    font-size: 3em; /* Taille de la police */
    text-align: center; /* Centrer le texte */
    font-weight: bold; /* Texte en gras */
    color: #333; /* Couleur de texte initiale */
    margin-bottom: 20px; /* Marge en bas */
}

/* Effet laser sur chaque mot */
h1 span {
    display: inline-block; /* Affiche les mots en ligne */
    color: #333; /* Couleur de texte par défaut */
    animation: laser-effect 2s infinite; /* Animation infinie */
}

/* Animation de l'effet laser */
@keyframes laser-effect {
    0% {
        color: #333; /* Couleur initiale (gris foncé) */
        text-shadow: none; /* Pas d'ombre */
    }
    50% {
        color: #e74c3c; /* Couleur rouge laser */
        text-shadow: 0 0 10px #e74c3c, 0 0 20px #e74c3c, 0 0 30px #e74c3c; /* Ombre lumineuse */
    }
    100% {
        color: #333; /* Retour à la couleur initiale */
        text-shadow: none; /* Pas d'ombre */
    }
}

/* Délais d'animation pour chaque mot */
h1 span:nth-child(1) {
    animation-delay: 0s; /* Premier mot */
}

h1 span:nth-child(2) {
    animation-delay: 0.5s; /* Deuxième mot, avec un léger délai */
}

h1 span:nth-child(3) {
    animation-delay: 1s; /* Troisième mot, délai supplémentaire */
}

h1 span:nth-child(4) {
    animation-delay: 1.5s; /* Quatrième mot, délai supplémentaire */
}

/* Ajoutez autant de sélecteurs que de mots dans le titre */
.select-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

select {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

option {
    padding: 10px;
}

.select-container label {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}
.firas {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    color: #000;
    animation: blinkingText 1s infinite;
}

@keyframes blinkingText {
    0% { color: #000; }
    50% { color: orangered; }
    100% { color: #000; }
}

.no-blink {
    animation: none;
}

/* Style des icônes */
.icons {
    text-align: center;
    margin-top: 20px;
}

.icon {
    font-size: 24px;
    margin: 0 10px;
    color: #000;
    transition: color 0.3s ease;
    text-decoration: none;
}

.icon:hover {
    color: red;
}
