body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: #333;
  font-family: "Quicksand", serif;

}

.quicksand-normal {
  font-family: "Quicksand", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.quicksand-thin {
  font-family: "Quicksand", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.quicksand-bold {
  font-family: "Quicksand", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

header {
  background-color: #333;
  color: #fff;
  padding: 20px;
  max-width: 600px;
  margin: auto;
}

.board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 20px;
  max-width: 920px;
  margin: auto;
}

@media (max-width: 800px) {
  .board {
  grid-template-columns: repeat(4, 1fr);
}
}
@media (max-width: 600px) {
  .board {
  grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 440px) {
  .board {
  grid-template-columns: repeat(2, 1fr);
}
}

.card-slot {
  height: auto;
  padding: 10px;
  position: relative;
  display: flex;
  flex-direction: column; /* Aligne les enfants verticalement */
  align-items: center;
  justify-content: flex-start; /* Aligne le contenu en haut */
  text-align: center; /* Centre le texte */
    background-color: rgba(255,255,255,0.9);
    border: 2px dashed rgba(255,255,255,1);
    border-radius: 10px;
    height: 250px;
  box-shadow: 0 6px 3px  rgba(0,0,0,0.2);
  transition: all 0.3s ease;

}

.card-slot.empty {
  border: 1px dashed rgba(255,255,255,0.2);
  background-color: rgba(0,0,0,0.2);
  box-shadow: inset 2px 6px 7px  rgba(0,0,0,0.13);
}

.card-slot.empty:hover {
  border: 1px dashed rgba(255,255,255,0.4);
  background-color: rgba(0,0,0,0.24);
}

.card-slot img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px; /* Ajoute un espace entre l'image et le texte */
}

.card-slot h4 {
  font-size: 16px;
  margin: 5px 0;
  font-weight: bold;
}

.card-slot p {
  font-size: 14px;
  margin: 2px 0;
}




.card-slot.filled {
  border: 2px solid #333;
  color: #000;
}

/* Effet "Nommé" tamponné */
.card-slot .stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  font-size: 24px;
  color: red;
  font-weight: bold;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 540px;
}

.modal.hidden {
  display: none;
}

/* Modal pour les politiciens */
.politician-card {
  img {
    max-width: 250px;

  }
}


/* Modal pour les événements */
.event-modal {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}

.event-content h2 {
  margin: 0 0 10px;
  color: #ff3333;
}

.event-content p {
  margin: 0;
  color: #333;
}

/* Bouton "J'annonce mon gouvernement" */
.announce-btn {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 300px;
  margin: auto;
  background: #333;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid white;
}

.announce-btn:disabled {
  background: #999;
  cursor: not-allowed;
  opacity: 0.7;
  border: 2px solid rgba(255,255,255,0.4);

}

/* Barre de temps */
#timer-bar-container {

  width: 100%;
  height: 10px;
  background: rgba(0,0,0,0.4);
  border-radius: 5px;
}

#timer-bar {
    border-radius: 5px;
  height: 100%;
  background: #ff3333;
  width: 100%;
  transition: width 0.1s linear;
  box-shadow: 0 0 20px red;
  animation: glow 1.5s infinite;
}

@keyframes glow {
            0%, 100% {
                box-shadow: 0 0 10px red;
            }
            50% {
                box-shadow: 0 0 20px red, 0 0 40px red;
            }
        }

/* Modal pour les enjeux */
.enjeu-modal {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffe680;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1002;
}

.enjeu-content h2 {
  margin: 0 0 10px;
  color: #d48806;
}

.enjeu-content p {
  margin: 0;
  color: #333;
}

/* Ajout d'un style pour afficher le score dans le modal */
.message-modal p {
  font-size: 18px;
  color: #333;
  margin-top: 10px;
}

/* Conflit (carte qui tremble) */
.conflict {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Corruption (teinte sombre) */
.corrupted {
  filter: grayscale(100%);
}

/* Brûlé */
.burned {
  animation: burn 2s ease;
}

@keyframes burn {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(0.8); }
}


button {
           padding: 10px 20px;
           font-size: 16px;
           font-weight: bold;
           border: 2px solid #000;
           border-radius: 5px;
           cursor: pointer;
           text-align: center;
           transition: all 0.3s ease;
           font-family: "Quicksand", serif;
           font-optical-sizing: auto;
           font-weight: 700;
           font-style: normal;
       }

       button.black {
           background-color: #000;
           color: #fff;
       }

       button.black:hover {
           background-color: #333;
           border-color: #333;
       }

       button.outline {
           background-color: transparent;
           color: #000;
       }

       button.outline:hover {
           background-color: #000;
           color: #fff;
       }

#close-modal-btn {
  position: absolute;
  top: -35px;
  right: 0px;
  padding: 10px 20px;
    font-size: 16px;
    font-weight: 400;
    border: 0px solid #000;

    color: white;
    background-color: rgba(0,0,0,0);
}
