:root {
      --primary-color: DodgerBlue;
      --secondary-color: LightSkyBlue;
      --accent-color: rebeccapurple;
      --error-color: lightcoral;
      --success-color: lightgreen;
      --font-family: Arial, sans-serif;
    }

/* mettre en rouge le son */
.highlight { color: red; font-weight: bold; }

/* zone cachée au chargement */
#containerGameFdbckHistory {
	display: none;
}

#instructionsJeu {
	display: none;
}

/* affichage des mots sous forme de boutons*/
.image-container img {
	max-width: 100%;
	height: auto;
	cursor: pointer;
}

.word-buttons {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.word-buttons button {
  padding: 10px;
  text-align: center;
  font-size: 1rem;
}

/* badge annonce total questions*/
.circle {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	background-color: var(--primary-color); /* Couleur de fond */
	color: white; /* Couleur du texte */
	font-weight: bold;
	margin-left: auto;
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
	margin-top: -15px; /* Marge vers le haut négative pour compenser title*/
	cursor: help;
}

/* aspect des zones façon fieldset */
.settings-wrapper {
    position: relative;
    padding-top: 15px;
}

.settings-title {
    position: absolute;
    top: 8px;
    left: 10px;
    padding: 1px 5px;
    font-style: italic;
    font-size: 1rem;
    border-radius: 5px;
}

.progress-bar {

	background-color: var(--primary-color);
	transition: width 0.3s ease;
	display: flex;
	align-items: center;
}

/* toggle button & zone des réglages */
.lblValue {
    font-weight: italic;
    font: 1rem monospace;
    color: rebeccapurple;
}

.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 15px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: all 0.3s ease-in-out;
    border-radius: 12px;
    border: 1px ridge #999;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 1px;
    bottom: 1px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(13px);
}

/* simulation bootstrap 5*/
.gap-4 {
	gap: 4rem !important;
}
.gap-3 {
	gap: 3rem !important;
}
.gap-2 {
	gap: 2rem !important;
}
.gap-1 {
	gap: 1rem !important;
}
.gap-0 {
	gap: 0.5rem !important;
}

/* animation de l'image pendant speechSynthesis */
#current-image.playing {
	animation: pulse 0.5s;
}
#current-image {
	cursor: pointer;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* zone historique */
.grille {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Exactement 4 colonnes */
    gap: 10px; /* Espacement entre les éléments */
    justify-content: center;
    align-items: start;
    text-align: center;
}

.grille > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px;
    background-color: #f8f9fa; /* Fond léger pour séparer visuellement */
    border: 1px solid #dee2e6; /* Légère bordure */
    border-radius: 5px;
		margin-top: 1rem;
}

.grille img {
    width: 50px; /* Taille plus grande pour mieux voir les images */
    height: 50px;
    margin-bottom: 5px; /* Espacement avec le texte */
}

.grille span {
    font-size: 14px; /* Taille adaptée pour les mots */
    word-wrap: break-word; /* Permet de couper les mots si nécessaire */
}

#fin img {
    width: 50px; /* Taille plus grande pour mieux voir les images */
    height: 50px;
    margin-bottom: 5px; /* Espacement avec le texte */
}

/* Faire clignoter le feedback*/
	/* On fait clignoter le feedback*/
.blink {
  animation: blink 0.5s infinite;
	background-color: #F08080; /* Couleur corail */
  border: 2px dotted #555; /* Bordure pointillée grise */
  padding: 10px; /* Espacement intérieur */
	border-radius: 10px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.blink_new {
  animation: blink 1s infinite;
}

.custom-blink {
  background-color: #F08080;
}

#message {
		min-height: 50px; 
    height: 100%; /* Assurez-vous que la hauteur du conteneur est définie */
}
