/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

/* Style du corps */
body {
  background: radial-gradient(circle, #1a1a1a, #000000);
  text-align: center;
  padding: 20px;
  color: #fff;
}

/* Animation du fond pour un effet de brillance */
@keyframes backgroundAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#gameContainer {
  background: linear-gradient(135deg, #222, #111);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
  max-width: 800px;
  margin: auto;
  border: 2px solid gold;
}

/* En-tête */
#header {
  background: linear-gradient(45deg, #ffcc00, #ff6600);
  color: black;
  padding: 15px;
  font-size: 22px;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#logoutButton {
  background: linear-gradient(45deg, #ff4444, #cc0000);
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

#logoutButton:hover {
  background: linear-gradient(45deg, #cc0000, #990000);
  box-shadow: 0px 0px 10px red;
}

/* Paramètres du jeu */
#settings {
  margin-bottom: 20px;
}

#goToGame {
  background: linear-gradient(90deg, #6b6549, #918b41, #d8cc28);
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
}


#totalTokens {
  background: #e5e7eb;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #555;
}

#userTokens{
  background: #e5e7eb;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #555;

}

#settings label {
  font-weight: bold;
  margin-right: 10px;
  font-size: 18px;
}

#settings input {
  width: 60px;
  padding: 8px;
  font-size: 16px;
  font-weight: bold;
  color: black;
  border-radius: 5px;
  text-align: center;
}

#settings button {
  padding: 10px 15px;
  border: none;
  font-size: 18px;
  font-weight: bold;
  background: linear-gradient(45deg, #28a745, #218838);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#settings button:hover {
  background: linear-gradient(45deg, #218838, #155724);
  box-shadow: 0px 0px 10px green;
}

#endGameButton {
  background: linear-gradient(45deg, #dc3545, #c82333);
}

#endGameButton:hover {
  background: linear-gradient(45deg, #c82333, #991b1e);
  box-shadow: 0px 0px 10px red;
}

/* Statut du jeu */
#gameStatus {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0px 0px 10px gold;
}

/* Grille des boutons */
.gameButton-container {
  display: grid;
  grid-template-columns: repeat(5, 80px);
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

/* Boutons du jeu */
.gameButton {
  width: 80px;
  height: 80px;
  font-size: 26px;
  font-weight: bold;
  color: black;
  background: linear-gradient(180deg, gold, #ffcc00);
  border: 3px solid #ffdb4d;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 0px 15px rgba(255, 215, 0, 0.7);
}

.gameButton:hover {
  background: linear-gradient(180deg, #ffdb4d, gold);
  transform: scale(1.1);
  box-shadow: 0px 0px 20px gold;
}

.gameButton:disabled {
  background: gray;
  border: 3px solid #aaa;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
}


/*CSS POUR MON POPUP DE JEU

/* Animation de scintillement des boutons gagnants */
@keyframes glowWin {
  0% { box-shadow: 0 0 10px gold; }
  50% { box-shadow: 0 0 20px gold; }
  100% { box-shadow: 0 0 10px gold; }
}

.gameButton.win {
  background: linear-gradient(180deg, #ffcc00, #ffaa00);
  animation: glowWin 1s infinite alternate;
}
/* Fond semi-transparent derrière le popup */
.custom-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Style du popup */
.custom-popup {
  background: linear-gradient(135deg, red, yellow, lime, cyan, blue, magenta);
  background-size: 400% 400%;
  animation: flashyBg 2s infinite alternate, shake 0.2s infinite;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px white;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: white;
  border: 5px solid white;
}

/* Animation du fond clignotant */
@keyframes flashyBg {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Effet de tremblement */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
}

/* Bouton du popup */
.popup-button {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  background: linear-gradient(45deg, #ff0000, #ff9900);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0px 0px 10px yellow;
}

/* Effet de survol du bouton */
.popup-button:hover {
  background: linear-gradient(45deg, #ff9900, #ff0000);
  box-shadow: 0px 0px 20px red;
}
