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

html { 
  background: url(https://www.marouze.com/GAMES/JAPANESE/kyoto_landscape_1920x1080_V3-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: 'orchideelightregular';
    text-align: center;
}

#home {
    margin-top: 100px;
}

#game img {
    width: 150px;
    height: 150px;
    margin: 10px;
    cursor: pointer;
}

#game .syllabes {
    font-size: 70px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.image-row {

    width: 55%; /* Utilisez 100% de la largeur parente */
    margin-bottom: 10px; /* Ajoutez un espace entre les lignes */
}

.image1 {
  order: 1;
}
.image2 {
  order: -1;
}
.image3 {
  order: 1;
}
.image4 {
  order: -1;
}

#game .images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#game .score {
    margin-top: 20px;
    font-size: 24px; /* Taille initiale du score */
    transition: font-size 0.5s ease-in-out; /* Animation de la transition */
}

@keyframes scoreAnimation { /* changment de couleurs du score quand +1pt */
    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;
}


#game .question {
    margin-top: 10px;
}

/* CSS */
@keyframes fadeIn { /* Animation apparition syllabe pour nouvelle question */
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

#revision {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.table-image {
    max-width: 100%;
    max-height: 80vh; /* Ajustez la hauteur maximale selon vos préférences */
    margin-bottom: 10px;
}

button {
    background-color: #fff;
    color: #3498db;
    font-weight: 300;
    font-size: 16px;
    padding: 10px 20px;
    border: 2px solid #3498db;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 25px;
}

button:hover {
    background-color: #3498db;
    color: #fff;
}

.reviz {
  text-decoration: none; /* Supprimer le soulignement du lien */
  color: #3498db; /* Définir la couleur du texte sur blanc */
  margin: 35px;
}

.reviz:hover {
  text-decoration: none; /* Supprimer le soulignement du lien */
  color: #3498db; /* Définir la couleur du texte sur blanc */
  margin: 35px;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

