/* 🎮 Importation des polices Pixel Art */
@font-face {
  font-family: SilkscreenNormal;
  src: url(../slkscr.ttf), url(../slkscr.eot);
  font-weight: 400;
  font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* 🌍 Réglages globaux */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #1a1a1a;
  background-image: url('../img/background.png'); /* Fond Pixel Art */
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  font-family: 'Press Start 2P', cursive;
  text-transform: uppercase;
  color: #ffffff;
}

/* 🏆 Logo en haut à droite */
.imgLogo {
  position: absolute;
  top: 20px;
  right: 20px;
  height: 100px;
  width: auto;
  z-index: 1000;
}

/* 🎵 Player Radio */
iframe {
  margin: 20px auto;
  display: block;
}

/* 🎮 Navigation */
.navigation {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 🏆 Titre principal */
.title {
  font-size: 60px;
  text-align: center;
  color: #CA8F2B;
  text-shadow: 4px 4px 0px #000;
  animation: glitch 1s infinite alternate;
}

/* 🔘 Boutons */
.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.zombie-button {
  font-size: 14px;
  background-color: #ff0000;
  color: #000;
  padding: 15px;
  width: 250px;
  border: 4px solid #800000;
  box-shadow: 4px 4px 0px #400000;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zombie-button:hover {
  background-color: #ff4d4d;
  color: white;
  animation: flicker 0.2s infinite alternate;
}

/* 📜 Profil utilisateur positionné en haut à droite mais légèrement décalé */
.user-profile {
  position: absolute;
  top: 40px; /* Décalage du haut */
  right: 60px; /* Décalage de la droite */
  background: rgba(0, 0, 0, 0.6); /* Fond semi-transparent */
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  width: 200px;
  box-shadow: 4px 4px 0px #000;
  border: 4px solid #4E4F5F;
}

/* 🖼️ Image du profil */
.pseudologo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid white;
  display: block;
  margin: 0 auto;
}

/* 🏆 Texte pseudo et grade */
.pseudoalign, .memberalign {
  color: #CA8F2B;
  font-size: 16px;
  margin: 5px 0;
}


/* 📜 Articles */
.rectangle {
  width: 75%;
  height: auto;
  background-color: rgba(211, 211, 211, 0.2);
  border: 4px solid #4E4F5F;
  border-radius: 15px;
  margin: 30px auto;
  text-align: center;
  padding: 20px;
}

.rectangle3 {
  background-color: #4E4F5F;
  width: 100%;
  border-radius: 10px;
  height: 50px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.textalign {
  font-size: 20px;
  color: white;
}

/* 🖊️ Texte des articles */
.texteditor {
  width: 90%;
  height: 200px;
  border: none;
  background: none;
  color: white;
  font-family: 'Press Start 2P', cursive;
  text-align: center;
  resize: none;
}

/* 📜 Bloc utilisateur dans les articles */
.rectangle2 {
  background-color: grey;
  width: 100%;
  border-radius: 10px;
  padding: 10px;
}

/* 🔥 Animation glitch */
@keyframes glitch {
  0% { transform: translateX(0px); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-1px); }
  80% { transform: translateX(1px); }
  100% { transform: translateX(0px); }
}

/* 🟢 Effet clignotement */
@keyframes flicker {
  0% { text-shadow: 0px 0px 10px #00ff00; }
  100% { text-shadow: 0px 0px 5px #00cc00; }
}

/* 📏 Champs de saisie */
.input, .zombie-input {
  height: 50px;
  width: 80%;
  border-radius: 5px;
  font-family: 'Press Start 2P', cursive;
  text-align: center;
  background-color: #4CAF50;
  color: #000;
  padding: 10px;
  margin: auto;
}

/* 🎭 Modale d'alerte */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover, .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* 🏆 Footer */
footer {
  text-align: center;
  font-size: 14px;
  color: white;
  margin-top: 20px;
}
/* 🎮 Conteneur pour le bouton de téléchargement */
.download-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* 🎮 Bouton Télécharger le jeu */
.download-button {
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  background-color: #0078ff; /* Bleu gamer */
  color: white;
  padding: 15px;
  width: 80%;
  border: 4px solid #005bb5;
  box-shadow: 4px 4px 0px #003f7f;
  cursor: pointer;
  transition: all 0.2s ease;
}

.download-button:hover {
  background-color: #3399ff;
  box-shadow: 4px 4px 0px #002f5f;
  animation: flicker 0.3s infinite alternate;
}

/* 🎮 Effet clignotement pixelisé */
@keyframes flicker {
  0% { text-shadow: 0px 0px 10px #00ff00; }
  100% { text-shadow: 0px 0px 5px #00cc00; }
}
/* 📜 Bouton Crédits */
.credits-button {
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  background-color: #ffcc00;
  color: black;
  padding: 10px;
  border: 4px solid #997a00;
  box-shadow: 4px 4px 0px #664d00;
  cursor: pointer;
  transition: all 0.2s ease;
}

.credits-button:hover {
  background-color: #ffdd44;
  box-shadow: 4px 4px 0px #554400;
}

/* 🎭 Fenêtre modale (cachée par défaut) */
.modal {
  display: none; /* Cachée par défaut */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 🎭 Contenu du pop-up */
.modal-content {
  background: rgba(30, 30, 30, 0.95);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  font-family: 'Press Start 2P', cursive;
  border: 4px solid #ffcc00;
  box-shadow: 6px 6px 0px #000;
  max-width: 500px;
  width: 90%;
}

/* 🎭 Liste des crédits */
.modal-content ul {
  list-style-type: none;
  padding: 0;
}

.modal-content li {
  margin: 10px 0;
}

/* 🎭 Bouton de fermeture */
.close {
  color: #ffcc00;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

/* 🎭 Texte de fermeture */
.credits-footer {
  font-size: 10px;
  margin-top: 20px;
  color: #ffcc00;
}
