body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

.background {
  position: relative; 
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #4B6CB7, #182848);
  overflow: hidden;
}

/* Animation des logos */
@keyframes fallingLogos {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) rotate(15deg);
    }
    100% {
        transform: translateY(100vh) rotate(-15deg);
        opacity: 0;
    }
}

/* Logos de base */
.logo {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: url('assets/LOGO\ STEX\ 2021.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    animation: fallingLogos linear infinite;
    cursor: grab; /* Indique que l'élément est déplaçable */
}

/* Stopper l'animation quand la souris passe dessus */
.logo.paused {
    animation-play-state: paused !important;
}

/* Effet lors du déplacement */
.logo.dragging {
    opacity: 0.7;
    cursor: grabbing;
    animation: none !important; /* Désactive l'animation pendant le déplacement */
}


/* ✅ Arrêt de l'animation au survol */
.logo.paused {
  animation-play-state: paused !important; /* Force l'arrêt de l'animation */
}


.codeForm {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}

.form input {
  padding: 10px;
  margin-right: 10px;
}

.form button {
  padding: 10px 20px;
  background-color: #ffffff;
  border: none;
  cursor: pointer;
  padding: 20px;
}

h1 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: white;
  text-align: center;
}


.codeForm input[type="text"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
}

.codeForm input[type="submit"] {
  background-color: #a90b0b;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.codeForm input[type="submit"]:hover {
  background-color: #4d0d0d;
}
