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

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

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

H1 {
    font-family: 'escritura_hebrew_regularRg';
    text-align: center;
    margin: 20px;
    color: #0d5eaf;
}

#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: 'escritura_hebrew_regularRg';
    margin: 10px;
    padding: 10px;
    font-size: 16px;
}

button, a.reviz {
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    border: 2px solid #0d5eaf;
    border-radius: 5px;
    color: #0d5eaf;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

button:hover, a.reviz:hover {
    background-color: #0d5eaf;
    color: #fff;
}


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

#game {
    display: none;
    height: 100vh; /* Utilise la hauteur totale de la vue pour centrer verticalement */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


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

.syllabes {
    font-family: 'escritura_hebrew_regularRg';
    font-size: 64px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #0d5eaf;
}

/* 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 {
    font-family: 'escritura_hebrew_regularRg';
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 24px; /* Taille initiale du score */
    transition: font-size 0.5s ease-in-out; /* Animation de la transition */
    color: #0d5eaf;
}

@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;
}

.hidden {
    display: none;
}


@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 */
    }
}