/* Define animations */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-150px);
  }
  60% {
    transform: translateY(-75px);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes waiting {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeIn {
  0%, 20%, 50%, 80%, 100% {
    opacity: 0;
  }
  40%, 60% {
    opacity: 1;
  }
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0; transform: scale(0);
  }
  50% {
    opacity: 1; transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.titre_actions{
	display: flex;
}
.liste_actions{
	display: flex;
}

/* Define classes for each animation */
.bounce {
  animation: bounce 2s infinite;
}

.spin {
  animation: spin 2s infinite;
}

.fadeIn {
  animation: fadeIn 2s infinite;
}

.waiting {
  animation: waiting 4s infinite;
}

.debugDiv {
  max-width: 400px; /* Ajustez cette valeur selon vos besoins */
  width: 100%; /* Utilise toute la largeur disponible jusqu'à max-width */
  overflow-y: auto; /* Défilement vertical si le contenu d��passe la hauteur */
  border: 1px solid #ccc; /* Optionnel : pour une bordure */
  padding: 10px; /* Optionnel : pour un espacement interne */
  box-sizing: border-box; /* Inclut le padding et la bordure dans la largeur totale */
  white-space: pre-wrap; /* Force le retour à la ligne tout en respectant les espaces */
}

.animated-box {
  font-size: 100px;
  filter: drop-shadow(0 0 10px rgba(75,0,130,0.5));
  height: auto; 
  max-width: 200px; 
}

header {
  padding: 0px;
  background-color: #83c9b1;
  color: white;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
}


#user-display{
	text-align: center;
	argin-bottom: 10px;
	ont-size: 1.2em;
	olor: #666;
	font-weight: bold;
}

.siteTitle {
  font-weight: bold;
  margin-left: 8px;
}

.divLogin {
  margin-right: 8px;
}


root {
	
}

body {
  max-width: 1000px; /* Largeur maximale */
  width: 100%;
  min-height: 100vh; /* Ensure body takes full viewport height */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f8ff;
  color: #333;
  margin: 0;
  padding: 5px 5px 60px; /* Padding global de 5 pixels */
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box; /* Assure que le padding est inclus dans la largeur totale */
	margin-left: auto;
	margin-right: auto;
}

h1 {
  color: #4b0082;
  text-align: center;
}

#game-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow game-container to grow and fill space */
    width: 100%;
}

#logout-button {
	  position: absolute;
    bottom: 5px;
}

.pet-display {
  display: flex;
  flex-direction: column; /* Changed to column to stack elements vertically */
  align-items: center;
  flex-grow: 1; /* Allow pet-display to grow and fill space */
  background: linear-gradient(45deg, #e6e6fa, #d8bfd8);
  border-radius: 10px;
  margin-top: 5px; /* Reduced margin to give more space */
  position: relative;
  overflow: hidden;
}

.pet-display canvas {
    width: 100%;
    flex-grow: 1; /* Make canvas take up available space */
    min-height: 0; /* Prevent overflow issues in flex containers */
}

.stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.actions {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  width: 100%; /* Ensure actions span full width */
  flex-shrink: 0; /* Prevent the actions div from shrinking */
}

button {
  background-color: #9370db;
  color: white;
  border: none;
  padding: 10px;
	margin: 10px 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #8a2be2;
}

button:disabled,
button[disabled] {
  background-color: #cccccc;
  color: #666666;
}

.magic-particles {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #ff69b4, #ff1493);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.evolution-notice {
  background-color: #ffd700;
  color: #4b0082;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  margin-top: 20px;
  font-weight: bold;
  display: none;
}

.landscape {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to top, #228B22, #32CD32);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.cloud {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: float 10s infinite ease-in-out;
}

.cloud:nth-child(1) {
  width: 60px;
  height: 60px;
  top: 20%;
  left: 10%;
}

.cloud:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 30%;
  right: 15%;
  animation-delay: -5s;
}

.inventory {
  margin-top: 20px;
  padding: 10px;
  background-color: #e6e6fa;
  border-radius: 10px;
}

.inventory h3 {
  margin-top: 0;
  color: #4b0082;
}

.inventory-items {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.inventory-item {
  background-color: #d8bfd8;
  border-radius: 5px;
  padding: 5px 10px;
  margin: 5px;
  font-size: 14px;
}

canvas {
  display: block;
  margin: 0 auto;
}

.notification {
    background-color: #ffdddd;
    border: 1px solid #f44336;
    color: black;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.notification button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.notification button:hover {
    background-color: #d32f2f;
}