/* styles.css */
body {
  font-family: "Poppins", sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  padding: 0;
  color: #333;
  text-align: center;
}
.logo {
    background: radial-gradient(black, transparent);
    border-radius: 99%;
    backdrop-filter: blur(60px);
    min-width: 100px;
    width: 50px;
    padding: 10px 15px;
    margin-bottom: 5px;
}
.wrapper {
  padding: 20px 0;
  position: relative; /* nécessaire pour que z-index fonctionne */
  z-index: 2;
}

.button-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px; 
  
}

.button-wrapper button {
  width: 100%; /* Boutons pleine largeur sur petits écrans */
}
.flexContainer {
    display: flex;
    align-items: center;
    justify-content: space-around;
    color: #f0f0f0;
   
}
#achievement-button {
  background: rgba(255, 255, 255, 0.2);
  /* box-shadow: none; */
  padding: 0px;
  width: 100%;
  
}
#achievement-button:hover {
  background: rgba(234, 235, 143, 0.708);
  /* box-shadow: none; */
  backdrop-filter: blur(10px);
  
  
}
#reset-game {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    
}
#reset-game:hover {
    background: rgba(129, 2, 2, 0.5);
    box-shadow: none;
    backdrop-filter: blur(10px);
    
}
.next-price {
    /* margin: 5px; Ajoute une petite marge entre chaque span */
    /* background-color: #2f2e2ea4; */
    /* width: 30%; */
    padding: 6px;
}
.buy-manager-button {
    display: block!important;
}
.finisher-header {
  min-height: 100vh; /* Ceci étend la div sur toute la hauteur de la fenêtre de visualisation */
  width: 100%; /* Assure que la div s'étend sur toute la largeur */
  position: fixed; /*   Fixe la div en arrière-plan */
  top: 0; /* Positionne la div en haut de l'écran */
  left: 0; /* Positionne la div à gauche de l'écran */
  height: 100%; /* Assure que la div s'étend sur toute la hauteur */
  z-index: -1;
  backdrop-filter: blur(5px);
}

#game-container {
  margin: auto;
  width: 80%;
  max-width: 600px;
  /* background-color: #fff; */
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: rgba(
    28,
    28,
    28,
    0.7
  ); /* Fond sombre avec un peu de transparence */
  /* backdrop-filter: blur(5px); */

  color: #fff;
}

h1 {
  font-weight: 600;
  color: #f9f6f6;
}
h2 {
  font-weight: 600;
  color: #f9f6f6;
  font-size: larger;
  text-align: center;
}



#make-money {
  background-color: green;
  color: white;
}
/* styles.css */
.upgrade-card {
  background: #fff;
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Ajoutez ces styles à votre fichier CSS */

/* Styles pour le titre et le bouton de repliement */
.upgrade-card h3 {
  /* display: flex; Utilisez flexbox pour aligner le titre et le bouton */
  align-items: center; /* Centre verticalement le titre et le bouton */
  justify-content: space-around; /* Répartit l'espace entre le titre et le bouton */
  margin-top: 0;
  justify-content: center;
  margin-bottom: 10px; /* Ajoutez une marge en bas du titre */
}

/* Styles pour le bouton de repliement */
.toggle-button  {
  background: none; /* Aucun fond pour le bouton */
  border: none; /* Aucune bordure */
  cursor: pointer; /* Curseur en forme de main pour indiquer la cliquabilité */
  font-size: 0.8em; /* Taille de la police pour le symbole de la flèche */
  padding: 5px; /* Un peu de padding pour faciliter le clic */
  color: #d1cfcf; /* Couleur de la flèche */
  margin-left: 10px; /* Marge à gauche pour l'espacement du titre */
}

.toggle-button:hover {
  color: #666; /* Changez la couleur au survol pour une meilleure visibilité */
}

.upgrade-card h4 {
    margin:0;
  }
  
button {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background: rgba(235, 233, 233, 0.9);
    color: #333;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 15px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;

  }

button:hover {
  transform: translateY(-2px);
  background-color: rgba(0, 0, 0, 8);
  backdrop-filter: blur(5px);
  color: white;
  box-shadow: 0 0 15px rgba(46, 47, 46, 0.6); /* Halo lumineux au survol */
}

button:disabled {
  background-color: #333!important; /* Couleur de fond pour les boutons désactivés */
  color: #666!important; /* Couleur de texte pour les boutons désactivés */
  cursor: not-allowed; /* Change le curseur pour indiquer l'interdiction */
}
button:hover:disabled {
    transform: none; /* Annule l'effet de transformation */
    background-color: #333; /* Garde la couleur de fond pour les boutons désactivés */
    box-shadow: none; /* Annule le halo lumineux */
    color: #666; /* Garde la couleur de texte pour les boutons désactivés */
    cursor: not-allowed; /* Garde le curseur not-allowed */
  }
  .next-price, .next-price-10 {
    display: block;
    margin-top: 2px;
    font-size: 0.8em; /* Taille de police plus petite */
    color: #666; /* Couleur de police discrète */
  }
  

.upgrade-card {
  background: rgba(
    72,
    69,
    69,
    0.9
  ); /* Eléments plus clairs sur le fond sombre */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  padding: 15px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
  
}

#player-info {
    position: sticky; /* Ajoutez cette ligne */
    top: 20px; /* Définissez la distance par rapport au haut de l'écran */
    background: rgba(26, 26, 26, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 15px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1000; /* Assurez-vous qu'il reste au-dessus des autres éléments */
  }
  

#player-money, .new-money-player {
    background-color: white;
    color: #333;
    padding: 20px 0;
    border-radius: 15px;
    border: 2px solid green;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    font-size: large;
    font-weight: bold;

}

.new-money-player {
  display: block;
  margin: 20px;
}

.upgrade-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* styles.css */
.popup {
  display: none;
  position: fixed;
  right: 0;
  top: 0;

  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  /* margin: 20px; */
}

#popup-buttons {
  display: flex;
}
#popup-buttons button {
  width: 100%;
  margin: 15px;
}

.popup-content {
    background: rgb(25, 25, 25,  0.9);
  backdrop-filter: blur(2px);
  padding: 20px;
  border:  rgba(246, 244, 244, 0.3) 2px solid;
  border-radius: 10px;
  max-width: 80vw ;
  width: 100%;
text-align: center;
  box-shadow: 0 4px 40px rgba(246, 244, 244, 0.9);
  color: rgba(241, 239, 239, 1); /* Fond sombre avec un peu de transparence */
}

.popup-close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.achievement-card, .changelog-card {
  background: rgba(227, 227, 227, 0.39);
  backdrop-filter: blur(5px);
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.achievement-card:hover, .changelog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  background: rgba(33, 32, 32, 0.837);
  color: white;
}

.achievement-list, .changelog-list {
  list-style: none;
  padding: 0;
  color: #333;
}

/* Pour les boutons dans les cartes d'achievement */
.achievement-card button, .changelog-card button {
  width: 100%; /* Boutons pleine largeur sur petits écrans */
  margin-top: 10px;
}


.info-wrapper {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    gap: 8px;
}

.info-card {
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* border: #fced00 2px solid; */
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 10px;
    color: #f3f3f3;
    text-align: center;
    width: 30%;
}

.info-title {
   
    margin-bottom: 5px;
    font-size: small;
    color: #d4d2d2;
}
.info-content {
    font-weight: normal;
    font-size: medium;
    margin-bottom: 5px;
    margin-top: auto; /* Pousse le contenu vers le bas */

}

/* Styles pour les grands écrans */
@media screen and (min-width: 768px) {
  /* Seuil pour les grands écrans */
  .button-wrapper {
    flex-direction: row; /* Boutons côte à côte */
    justify-content: space-around; /* Répartit les boutons uniformément */
  }

  .button-wrapper button {
    width: auto; /* Taille auto sur grands écrans */
    flex-grow: 1; /* Les boutons occupent une part égale de l'espace */
  }

}
/* Effet de halo au survol des boutons */
button:hover {
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.6);
}

#scroll-top-button, #scroll-bottom-button {
    position: fixed;
    right: 20px;
    display: none; /* caché par défaut */
    cursor: pointer;
    z-index: 5;
    /* Ajoutez d'autres styles pour les boutons ici */
  }
  
  #scroll-top-button {
    bottom: 100px;
  }
  
  #scroll-bottom-button {
    bottom: 20px;
  }
  
  /* Styles pour mobiles */
  @media screen and (max-width: 768px) {
    #scroll-top-button, #scroll-bottom-button {
      right: 10px;
    }
    .buy-button {
        display: flex;
        align-items: center;
        justify-content: space-between;justify-items: center;
    }
  }
  
  .credit {
    font-size: small;
    color: #666;
    background: rgba(231, 227, 227, 0.2);
    text-decoration: none!important;
    width: 50vw;
    margin: 0 auto 20px;
    padding: 10px;
    border-radius: 50px;
    backdrop-filter: blur(100px);
  }

  a {
    text-decoration: none;
  }
  