@font-face {
  font-family: 'Voster';
  src: url('Voster\ Font.ttf') format('truetype');
}

body {
  font-family: 'Voster', sans-serif;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  overflow: hidden;
}

.machine-2 {
  background-image: url('img/bandit-mancho.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 1000px;
  height: 750px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Rouleaux */
.reels-2 {
  margin-top: 265px; /* ajusté pour aligner au visuel */
  display: flex;
  gap: 5px;
}

.reel-container-2 {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border: 2px solid black;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 10px #000, 0 0 6px rgba(255, 255, 255, 0.3);
}

.reel-2 {
  display: flex;
  flex-direction: column-reverse;
  font-size: 65px;
  animation: none;
  color: white;
}

.symbol-img-2 {
  width: 65px;
  height: 65px;
  object-fit: contain;
  display: block;
  margin: 5px auto;
}

.button-container-2 {
  margin-top: 25px;
  align-items: center;
}

/* Image utilisée comme bouton */
.button-img-2 {
  width: 300px;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.button-img-2:hover {
  transform: scale(1.005);
}

.button-img-2:active {
  transform: translateY(20px);
}

.button-img-2.disabled {
  pointer-events: none;
}

.result-2 {
  padding: 10px 20px;
  margin-top: 20px;
  font-size: 24px;
  color: black;
  text-align: center;
  min-height: 32px;
  transition: color 0.3s ease-in-out, transform 0.3s ease;
}

.result-2.gagnant-2 {
  color: black;
  animation: flashWin 1s ease-in-out 1;
}

.result-2.perdu-2 {
  color: black;
  animation: shakeLoss 0.5s ease-in-out 1;
}

#bordure-2 {
  width: 300px;
  height: 22.1px;
  margin-top: -7px;
  z-index: 999;

}

/* === Popup Résultat === */
.popup-2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  margin-top: 10px;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* STYLE POP UP */
.popup-content-2 {
  background-color: white;
  padding: 20px;
  max-width: 800px;
  height: 100%;
  width: 90%;
  border-radius: 12px;
  position: relative;
}

.popup-content-2.win-2 {
  background-color: #fcd11e;
}
.popup-content-2.lose-2 {
  background-color: #9dc458;
}

#popup-text-2 {
  background-color: #f6f1ad;
  padding: 2rem;
}

.popup-2 iframe {
  margin-top: 20px;
}

#form-lose-2 {
  background-color: #9dc458 !important;
}

.close-2 {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  color: #000;
  cursor: pointer;
}

/* STYLE TITRE POP UP */
#popup-result-2 {
  font-size: 64px;
  text-align: center;
  font-weight: bold;
  color: black;
}
/* STYLE TEXT POP UP */
#popup-text-2 {
  text-align: center;
  font-size: 18px;
  margin-top: 10px;
  color: black;
}

@keyframes flashWin {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes shakeLoss {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@media (max-width: 431px) {

  .reels-2 {
    margin-top: 275px;
  }

  .reel-container-2 {
    border: 2px solid black;
    width:75px;
    height: 75px;
  }

  .symbol-img-2 {
    width: 60px;
    height: 60px;
  }

  .button-img-2 {
    width: 240px;
  }
  .button-container-2 {
  margin-top: 30px;
  align-items: center;
}
  #bordure-2 {
  width: 300px;
}
}

@media (min-width: 380px) and (max-width: 430px) {

  .reels-2 {
    margin-top: 280px;
  }

  .reel-container-2 {
    border: 2px solid black;
    width:70px;
    height: 70px;
  }

  .symbol-img-2 {
    width: 55px;
    height: 55px;
  }

  .button-img-2 {
    width: 250px;
  }

.button-container-2 {
  margin-top: 25px;
  align-items: center;
}

#bordure-2 {
  width: 255px;
}
}

@media (min-width: 320px) and (max-width: 379px) {

  .reels-2 {
    margin-top: 290px;
  }

  .reel-container-2 {
    border: 2px solid black;
    width:55px;
    height: 55px;
  }

  .symbol-img-2 {
    width: 40px;
    height: 40px;
  }

  .button-img-2 {
    width: 210px;
  }

.button-container-2 {
  margin-top: 20px;
  align-items: center;
}

#bordure-2 {
  width: 205px;
}
}

@media (max-width: 319px) {

  .reels-2 {
    margin-top: 305px;
  }

  .reel-container-2 {
    border: 2px solid black;
    width:50px;
    height: 50px;
  }

  .symbol-img-2 {
    width: 35px;
    height: 35px;
  }

  .button-img-2 {
    width: 210px;
  }
  .button-container-2 {
  margin-top: 10px;
  align-items: center;
}

#bordure-2 {
  width: 205px;
}
}