/* HTML et Body couvrent toujours 100% de la hauteur */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Le body prend toute la hauteur disponible */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* Garde au moins 100% de la fenêtre visible */
}

/* Le conteneur principal prend l'espace restant */
main {
  flex: 1;
}

/* Le footer reste collé en bas */
footer.footer {
  margin-top: auto;
  width: 100%;
}

/* Style du bouton */
button,
.button {
  padding: 10px 10px;
  background-color: #4caf50;
  color: black;
  border: 4px solid black;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 1.5rem;
  text-align: center;
  font-family: "Grandstander", cursive;
  display: block;
  width: 80%;
  max-width: 260px;
  box-sizing: border-box;
  margin: 20px auto;
}

/* Media query pour boutons sur petits écrans */
@media (max-width: 768px) {

  button,
  .button {
    width: 100%;
    font-size: 1.2rem;
    padding: 8px 10px;
  }
}

/* Animation de rotation */
.rotate-animation {
  animation: rotation 2s infinite linear;
}

#randomImage {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#imageContainer {
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 10px solid black;
  border-radius: 15px;
  transition: all 0.5s ease;
}

/* Animation de rotation */
@keyframes rotation {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Message de bienvenue avec espacement supérieur */
#welcomeMessage {
  padding-top: 100px;
}