/* ===== FONDO ===== */
body {
  background-image: url("../img/logos_backgroun/comodines_background.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  font-family: "balatro", fantasy;
}

@font-face {
  font-family: "balatro";
  src: url("../tipografia/balatro.otf") format("truetype");
}

.title {
  text-align: center;
  font-size: 82px;
  margin-bottom: 30px;
  font-family: "balatro", fantasy;
  color: #ffffff;
}










/* ===== GRID ===== */
.album-container {
  text-align: center;
  padding: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 120px);
  gap: 15px;
  justify-content: center;

  background: linear-gradient(#3c444c, #2b3238);
  padding: 20px;
  border-radius: 12px;
  border: 4px solid #c2c7cc;
  box-shadow: 6px 6px 0 #000;

  /* 🔥 CONTROL DE TAMAÑO */
  width: fit-content;
  margin: 0 auto;
}

.card {
  width: 120px;
  height: 170px;
  background: rgba(255, 255, 255, 0);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;
  height: 100%;
}

/* ===== PAGINACIÓN ===== */
.paginacion {
  margin-top: 20px;
}

button {
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
}

/* ===== TOOLTIP (CAJA PEQUEÑA COMO EL JUEGO) ===== */
.tooltip {
  position: absolute;
  background: #3c444c;
  border: 3px solid #bfc5cc;
  border-radius: 10px;
  padding: 8px;

  width: auto;          /* 👈 clave */
  max-width: 260px;     /* límite */
  min-width: 180px;     /* opcional */

  display: none;
  z-index: 999;
  box-shadow: 4px 4px 0 #000;
  font-family: "balatro", fantasy;
}

/* TÍTULO */
.tooltip-title {
  color: #ffffff;

  font-size: 22px;
  margin-bottom: 8px;

  text-align: center;

  letter-spacing: 2px;   /* 👈 separa letras */
  word-spacing: 6px;     /* 👈 separa palabras */

 
  text-shadow:
    2px 2px 0 #000,
    3px 3px 0 #000;      /* 👈 estilo más tipo juego */
}

/* CAJA BLANCA */
.tooltip-box {
  background: #f5f5f5;
  border: 2px solid #c2c7cc;
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
  word-wrap: break-word;
  
  font-size: 17px;
  line-height: 1.6;
   font-family: "balatro", fantasy;
}

/* COLORES ESPECIALES */
.multi {
  color: #ff3b3b;
}

.fichas {
  color: #009dff;
}

.resaltar {
  color: #ff9100;
}

.tarot {
  color: #b26de0;
}

.multix {
  color: #ffffff;
  background: #ff4b4b;
  padding: 1.2px;
  border-radius: 2px;
}

.dinero {
  color: #fcc766;
}

.posibilidad{
  color: #25c283;
}





.tooltip-tipo {
  margin-top: 5px;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  color: white;
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  
}

/* ===== TEXTO CON OLA ===== */
.wave span {
  display: inline-block;
  animation: wave 1.2s ease-in-out infinite;

  text-shadow: 
    1px 1px 0 #000,
    2px 2px 0 #000;
}


.wave span:nth-child(1) { animation-delay: 0s; }
.wave span:nth-child(2) { animation-delay: 0.1s; }
.wave span:nth-child(3) { animation-delay: 0.2s; }
.wave span:nth-child(4) { animation-delay: 0.3s; }
.wave span:nth-child(5) { animation-delay: 0.4s; }
.wave span:nth-child(6) { animation-delay: 0.5s; }
.wave span:nth-child(7) { animation-delay: 0.6s; }
.wave span:nth-child(8) { animation-delay: 0.7s; }
.wave span:nth-child(9) { animation-delay: 0.8s; }
.wave span:nth-child(10){ animation-delay: 0.9s; }

@keyframes wave {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}







/* ANIMACIÓN TOOLTIP */
@keyframes aparecer {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}



/* ===== PAGINACIÓN ESTILO JUEGO ===== */
.paginacion {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* BOTONES IZQ Y DER */
.paginacion button {
  background: #ff4b4b;
  border: 3px solid #ff4b4b;
  color: white;
  font-size: 18px;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
  transition: transform 0.1s;
}

.paginacion button:hover {
  transform: scale(1.05);
}

/* TEXTO CENTRAL */
#paginaTexto {
  background: #ff4b4b;
  border: 3px solid #ff4b4b;
  color: white;
  padding: 8px 25px;
  border-radius: 10px;
  box-shadow: 3px 3px 0 #000;
  font-size: 20px;
  font-family: "balatro", fantasy;
}



/* ===== CARTAS VIVAS ===== */
/* ===== CARTAS VIVAS (UN POCO MÁS VISIBLES) ===== */
.card {
  animation: latido1 5s ease-in-out infinite;
}

/* VARIACIONES */
.card:nth-child(2n) {
  animation: latido2 6s ease-in-out infinite;
}

.card:nth-child(3n) {
  animation: latido3 4.5s ease-in-out infinite;
}

.card:nth-child(4n) {
  animation: latido4 5.5s ease-in-out infinite;
}

/* delays (caos natural) */
.card:nth-child(odd) {
  animation-delay: 0.8s;
}

.card:nth-child(5n) {
  animation-delay: 1.5s;
}

/* ===== ANIMACIONES ===== */

@keyframes latido1 {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(1.5deg) scale(0.96); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes latido2 {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(-1.5deg) scale(0.965); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes latido3 {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(1.2deg) scale(0.97); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes latido4 {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(-1.2deg) scale(0.965); }
  100% { transform: rotate(0deg) scale(1); }
}









/* ===== COLORES POR CATEGORÍA ===== */

.tipo-comun {
  background: #0093ff;
  border: 2px solid #0475c5;
}

.tipo-rara {
  background: #ff4c40;
  border: 2px solid #ff4c40;
}

.tipo-inusual {
  background: #35bd86;
  border: 2px solid #207c57;
}

.tipo-legendario {
  background: #b05cff;
  border: 2px solid #6a2db5;
}

/* estilo base (se mantiene) */
.tooltip-tipo {
  margin-top: 5px;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 16px;
  color: rgb(221, 218, 218);
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto; 
}









/* ===== TÍTULO OLA SUAVE ===== */
.titulo-animado span {
  display: inline-block;
  animation: olaSuave 2.4s ease-in-out infinite;
}

/* desfase más pequeño = más fluido */
.titulo-animado span:nth-child(1){animation-delay:0s;}
.titulo-animado span:nth-child(2){animation-delay:0.06s;}
.titulo-animado span:nth-child(3){animation-delay:0.12s;}
.titulo-animado span:nth-child(4){animation-delay:0.18s;}
.titulo-animado span:nth-child(5){animation-delay:0.24s;}
.titulo-animado span:nth-child(6){animation-delay:0.30s;}
.titulo-animado span:nth-child(7){animation-delay:0.36s;}
.titulo-animado span:nth-child(8){animation-delay:0.42s;}
.titulo-animado span:nth-child(9){animation-delay:0.48s;}
.titulo-animado span:nth-child(10){animation-delay:0.54s;}

/* movimiento MUY sutil */
@keyframes olaSuave {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-2px); } /* 👈 más suave */
  100% { transform: translateY(0); }
}