

/* Grid de Mimebros */
.member-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 20PX));
  max-width: calc(270px * 9 + 20px * 8);
  margin-left: auto;
  margin-right: auto;
  row-gap: 1rem;
  column-gap: 20px;
  justify-content: center;
}


/* Tarjeta */

/* Objeto tarjeta */
.card {
  font-family: 'Retro';
  color: rgba(255, 255, 255, 0.895);
  width: 250px;
  height: 280px;
  background-image: url("../img/Cards/card2.png");
  background-position: center;
  background-blend-mode: overlay;
  padding: 1rem;
  cursor: pointer;
  text-align: center;
  align-items: center;
  vertical-align: text-bottom;
  transition: background-image 0.3s ease, filter 0.3s ease;
  position: relative;
}

.card-gold {
  font-family: 'Retro';
  color: rgba(255, 255, 255, 0.895);
  width: 250px;
  height: 280px;
  background-image: url("../img/Cards/card_gold2.png");
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  padding: 1rem;
  cursor: pointer;
  text-align: center;
  align-items: center;
  vertical-align: text-bottom;
  transition: background-image 0.3s ease, filter 0.3s ease;
  position: relative;
}

.card:hover {
  background-image: url("../img/Cards/card_hover2.png");
  filter: drop-shadow(rgb(124, 186, 238,0.9) 0 0 0.75rem);
}

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

.card:hover .card-title {
  transform: translateY(-12px);
}

.card:hover .card-role {
  transform: translateY(-12px);
}

.card-gold:hover {
  background-image: url("../img/Cards/card_gold_hover2.png");
  filter: drop-shadow(rgb(217, 187, 65,1) 0 0 0.75rem);
}

.card-gold:hover .card-title {
  transform: translateY(-12px);
}

.card-gold:hover .card-role {
  transform: translateY(-12px);
}

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

/* Medalla en tarjeta */
.card-icon-container {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 2px;
  z-index: 2;
}
.card-icon {
  width: 32px;
  height: 32px;
  pointer-events: none;
}

/* Imagen miembro */
.card-img {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.5rem;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.card-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
}

/* Nombre Miembro */
.card-title {
  font-size: 1.8rem;
  font-weight: 400;
  bottom: 0;
  vertical-align: text-bottom;
  text-align: center;
  transform: translateY(-10px);
  transition: transform 0.3s ease;
}

/* Rol Miembro */
.card-role {
  color: #ffffff98;
  bottom: 10;
  vertical-align: text-bottom;
  text-align: center;
  transform: translateY(-10px);
  transition: transform 0.3s ease;
}


.icon-container{
  display: grid;
  justify-content: center;
  background-color: #101821;
  border-color: rgb(203, 193, 193);
  border-width: 2px;
  border-radius: 0.5rem;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  font-family: "Retro";
  color: #fff;
}


/* Info */

/* Fondo oscuro */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  visibility: hidden;
  opacity: 0;
  flex-direction: column;
  transition: visibility 0.4s, opacity 0.35s;
}


/* Fondo Info */
.modal-content {
  background-image: url("../img/Background/showcasebackground.gif");
  border-radius: 0.5rem;
  border-color: rgb(203, 193, 193);
  border-width: 2px;
  padding: 5px;
  width: 90%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(9, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
}

/* Titulos */
.modal-title {
  grid-area: 1 / 3 / 2 / 6;
  font-size: 1.25rem;
  height: 30px;
  font-family: "Retro";
  font-size: 20px;
  color: #fff;
  font-weight: normal;
}

.modal1 { 
  grid-area: 1 / 1 / 9 / 3;
  padding: 15px;
  text-align: center;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
}
.modal2 {
  grid-area: 9 / 1 / 10 / 3;
}
.modal3 { 
  grid-area: 2 / 3 / 9 / 6;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateY(-30px);
}
.modal4 {
  grid-area: 9 / 3 / 10 / 6;
}


/* Nombre */
.modal-name {
  font-size: 1.5rem;
  text-align: center; 
  bottom: 0;
  vertical-align: text-bottom;
  text-align: center;
  font-family: "Retro";
  font-size: 30px;
  color: #fff;
}

/* Personaje */
.modal-img {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.2rem;
  object-fit: contain;
  display: block;
}

/* Wrapper (usada tambien en la tarjeta)*/
.modal-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 20%;
}

/* Gif Shiny*/
.shiny-img {
  max-width: none;
  height: auto; 
  width: auto;
  display: block;
}

.shiny-img-alpha {
  max-width: none;
  height: auto; 
  width: auto;
  display: block;
  filter: drop-shadow(rgba(232, 238, 124, 0.6) 0px 4px 12px);
}

.shiny-img-wrap {
  max-width: none;
  height: auto; 
  width: auto;
  display: block;
}

.overlay-gif {
  position: absolute;
  display: block;
  height: auto; 
  width: auto;
  pointer-events: none;
  transform: translate(10px,-60px);
  object-fit: cover;
}



/* Grid Shinys */
.shiny-img-container {
  display: grid;
  grid-template-columns :repeat(auto-fit, minmax(100px, 10PX));
  gap: 0.5rem;
  place-items: center;
}

/* En caso de que no haya shinys*/
.shiny-img-container-false {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
}
.medalla2 {
  color: rgba(255, 176, 176, 0.815);
  font-size: 0.875rem;
  padding: 5px 3px 5px 0px;
  border-width: 0px 5px 0px 5px;
  border-style: solid;
  border-image-source: url("../img/button/medal-container2.png");
  border-image-slice: 0 5 0 5 fill;
  transition: border-image-source 0.2s ease;
}

/* Botón de cerrar */
.close-btn {
  font-family: "Retro";
  font-size: 27px;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.815);
  border-width: 0px 10px 0px 10px;
  border-style: solid;
  border-image-source: url("../img/button/button-showcase.png");
  border-image-slice: 0 10 0 10 fill;
  transition: border-image-source 0.2s ease;
}
.close-btn:hover {
  border-image-source: url("../img/button/button-showcase-hover.png");
}

/* Botón de Shinys */
.shiny-btn {
  font-family: "Retro";
  font-size: 27px;
  margin-top: 0.5rem;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.815);
  border-width: 0px 10px 0px 10px;
  border-style: solid;
  border-image-source: url("../img/button/button-showcase.png");
  border-image-slice: 0 10 0 10 fill;
  transition: border-image-source 0.2s ease;
}
.shiny-btn:hover {
  border-image-source: url("../img/button/button-showcase-hover.png");
}
.shiny-btn:disabled{
  border-image-source: url("../img/button/button-showcase-disabled.png");
}

/* Botón de Vendidos */
.sell-btn {
  font-family: "Retro";
  font-size: 27px;
  margin-top: 0.5rem;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.815);
  border-width: 0px 10px 0px 10px;
  border-style: solid;
  border-image-source: url("../img/button/button-showcase.png");
  border-image-slice: 0 10 0 10 fill;
  transition: border-image-source 0.2s ease;
}
.sell-btn:hover {
  border-image-source: url("../img/button/button-showcase-hover.png");
}

.sell-btn:disabled{
  border-image-source: url("../img/button/button-showcase-disabled.png");
}

/* Contenedor de MeDallas */
.medalla-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Medalla */
.medalla {
  color: rgba(255, 255, 255, 0.815);
  font-size: 0.875rem;
  padding: 5px 3px 5px 0px;
  border-width: 0px 5px 0px 5px;
  border-style: solid;
  border-image-source: url("../img/button/medal-container.png");
  border-image-slice: 0 5 0 5 fill;
  transition: border-image-source 0.2s ease;
}

.medalla:hover{
  border-image-source: url("../img/button/medal-container-hover.png");
}

/* Desc Medalla */
.tooltip {
  position: relative;
  display: inline-block;
  cursor:   help;
  z-index: 9999;
}

/* Desc Medalla Texto */
.tooltiptext {
  visibility: hidden;
  width: max-content;
  max-width: 120px;
  background-color: #1f2937;
  color: #fff;
  text-align: center;
  border-radius: 0.375rem;
  padding: 0.5rem;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  z-index: 9999;
  font-size: 1rem;
  font-family: "Retro";
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
  z-index: 9999;
}

.hidden {
  display: none;
}

.icon-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 25px;
}