@font-face {
    font-family: 'arabian_nightcommercial_used';
    src: url('https://www.marouze.com/GAMES/ARABIC_ALPHABET/arabiannight-commercialused-webfont.woff2') format('woff2'),
         url('https://www.marouze.com/GAMES/ARABIC_ALPHABET/arabiannight-commercialused-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html { 
  background: url(https://www.marouze.com/GAMES/ARABIC_ALPHABET/arabic_cover_1920x180-min.png) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

body {
    font-family: 'arabian_nightcommercial_used';
    text-align: center;
    margin: 20px;
    overflow-x: hidden;
    overflow-y: hidden;
}

h1 {
   font-family: 'arabian_nightcommercial_used';
   text-align: center;
   color: #f9d71c;
   font-size: 50px;
}

#home {
    text-align: center; /* Centrer le contenu horizontalement */
}

table {
    margin: 0 auto; /* Centrer le tableau horizontalement */
    border-collapse: collapse; /* Fusionner les bordures de cellules */
}

/* Style optionnel pour les cellules du tableau */
td {
    padding: 10px;
    border: none;
}

button, a {
    font-family: 'arabian_nightcommercial_used';
    margin: 10px;
    padding: 10px;
    font-size: 24px;
}

button, a.reviz {
    padding: 10px 20px;
    font-family: 'arabian_nightcommercial_used';
    font-size: 50px;
    text-decoration: none;
    border: 2px solid #f9d71c;
    border-radius: 5px;
    color: #f9d71c;
    background-color: transparent;  /* Fond transparent */
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Ajoutez ces styles pour les boutons lorsqu'ils sont survolés */
button:hover, a.reviz:hover {
    background-color: #f9d71c;
    color: #69758d;
    border-color: transparent;
}


.reviz {
    color: black;
    font-family: 'arabian_nightcommercial_used';
    font-size: 50px;
    margin-bottom: 20px;
}

#game {
    display: none;
}

.question_number {
    color: #f9d71c;
    font-size: 50px; /* Ajustez la taille de la police selon vos préférences */
    margin-bottom: 20px; /* Ajoute 20px d'espace en dessous de la div */
}

.syllabes {
    color: #f9d71c;
    font-size: 100px;
    margin-top: 20px;
    margin-bottom: 20px;
}

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

.syllable-animation {
    animation: fadeIn 0.5s ease-out;
}

.table-image {
    max-width: 100%;
    max-height: 100%;
}

.images {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.small-image {
    width: 20%; /* 100% / 4 */
    height: auto;
    margin: 10px;
}

.correct-answer {
    background-color: #2ecc71;
     border-radius: 8px;
     margin-right: 10px;
}

.wrong-answer {
    background-color: #e74c3c;
     border-radius: 8px;
     margin-right: 10px;
}

#game .score {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 50px;
    transition: font-size 0.5s ease-in-out;
    color: #f9d71c;
}

@keyframes scoreAnimation { /* Changement de couleurs du score quand +1 pt */
    0% { font-size: 24px; color: #2ecc71; }
    50% { font-size: 30px; color: #3498db; }
    100% { font-size: 24px; color: #2ecc71; }
}

.score-animation {
    animation: scoreAnimation 0.5s ease-in-out;
}

@media screen and (max-width: 800px) {
    .small-image {
        width: 40%; /* Une image par ligne pour les écrans plus petits */
        margin: 2% auto;  /* Ajoutez de la marge au-dessus et en dessous pour l'espacement */
    }
}

.hidden {
  display: none;
}

.end{
  font-size: 50px;
  color: #f9d71c;
}