@import url("https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap");
body {
  font-family: "Montserrat", Arial, sans-serif;
  background: #222;
  color: #fff;
  text-align: center;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Impact", "Montserrat", Arial, sans-serif;
  letter-spacing: 1px;
}
body {
  font-family: Arial, sans-serif;
  background: #292638;
  color: #fff;
  text-align: center;
  margin: 0 !important;
  padding: 0 !important;
}
#screen-instrucciones {
  background-image: url(images/fondo-1.png);
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 98vh;
}
#screen-instrucciones .flex-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  max-width: 90%;
  margin: 0 auto;
  height: 70vh;
}
#screen-instrucciones .col-1,
#screen-instrucciones .col-2 {
  width: 50%;
  box-sizing: border-box;
  padding: 2vw;
}
#screen-instrucciones .col-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8rem;
}
#go-to-personajes {
  bottom: 184px;
  right: 170px;
  position: absolute;
  width: 150px;
}
@media (max-width: 800px) {
  #screen-instrucciones .flex-row {
    flex-direction: column;
    height: auto;
  }
  #screen-instrucciones .col-1,
  #screen-instrucciones .col-2 {
    width: 100%;
    padding: 10px 0;
  }
}
.comosejuega {
  color: #ff8650;
  font-size: 5rem;
  text-align: left;
}
.light {
  color: #fff;
}
.personaje-1 {
  max-width: 570px !important;
  height: auto;
  width: 450px;
}
.instrucciones-texto {
  width: 100%;
  text-align: left;
  font-size: 2.3rem;
}
.texto-lista-personajes {
  font-size: 1.7rem;
  max-width: 75%;
  margin: 0 auto;
  text-align: center;
  padding: 25px;
  font-weight: 600;
}
#personajes-scroll-area {
  position: relative;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 10px 0px 0px 0px;
  background: #292638; /* Asegura el fondo sólido */
}

#personajes-scroll-area::before,
#personajes-scroll-area::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 20; /* Asegura que esté sobre las tarjetas */
  pointer-events: none;
}

#personajes-scroll-area::before {
  left: 0;
  background: linear-gradient(to right, #292638 90%, transparent 100%);
}

#personajes-scroll-area::after {
  right: 0;
  background: linear-gradient(to left, #292638 90%, transparent 100%);
}
#personajes-grid-1,
#personajes-grid-2 {
  display: flex;
  flex-wrap: nowrap;
  gap: 32px;
  justify-content: center;
  margin-bottom: 24px;
}
#personajes-grid-2 {
  margin-bottom: 10px;
}
.personaje-card {
  background: #444;
  border-radius: 16px;
  padding: 18px;
  width: 220px;
  min-width: 220px;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 2px 12px #0006;
  height: 350px;
  color: #e1d9c9;
}
@media (max-width: 1200px) {
  #personajes-grid-1,
  #personajes-grid-2 {
    gap: 16px;
  }
  .personaje-card {
    width: 180px;
    min-width: 180px;
  }
  #personajes-grid-2 {
    margin-left: 90px !important;
  }
}
@media (max-width: 800px) {
  #personajes-grid-1,
  #personajes-grid-2 {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  #personajes-grid-2 {
    margin-left: 0 !important;
  }
}

/* Animación para transición de página en el carrusel */
#personajes-scroll-area.animating-left {
  animation: slideLeft 0.4s cubic-bezier(0.77, 0, 0.18, 1);
}
#personajes-scroll-area.animating-right {
  animation: slideRight 0.4s cubic-bezier(0.77, 0, 0.18, 1);
}
@keyframes slideLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-80px);
    opacity: 0.7;
  }
}
@keyframes slideRight {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(80px);
    opacity: 0.7;
  }
}
#go-to-intro {
  display: block;
  background: transparent;
  background-image: url(images/boton.png);
  background-size: cover;
  width: 307px;
  height: 66px;
  background-repeat: no-repeat;
  margin: 0 auto;
  border: 0;
  color: #ffffff;
  font-size: 2.1rem;
}

#screen-intro,
#screen-game,
#screen-result {
  background-image: url(images/fondo-2.png);
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 100vh;
  margin: 0 auto;
}
.img-intro-personaje {
  margin-top: 6rem;
  max-width: 300px;
}
.texto-intro {
  font-size: 2.5rem;
  max-width: 50%;
  margin: 0 auto;
  margin-top: 5rem;
}
#start-button {
  display: block;
  background: transparent;
  background-image: url(images/boton.png);
  background-size: cover;
  width: 307px;
  height: 66px;
  background-repeat: no-repeat;
  margin: 0 auto;
  border: 0;
  color: #ffffff;
  font-size: 2.1rem;
  margin-top: 6rem;
}
button {
  margin: 10px;
  padding: 10px 35px;
  font-size: 3rem;
  cursor: pointer;
  border-radius: 20px;
  border: solid 1px #ffffff;
  text-transform: uppercase;
  font-weight: 600;
}

#yes-button {
  background: #28a745;
  color: white;
}

#no-button {
  background: #dc3545;
  color: white;
}

#maybe-button {
  background: #ffc107;
  color: white;
  font-size: 2rem;
  height: 77px;
  top: -7px;
  position: relative;
}

#dontknow-button {
  background: #17a2b8;
  color: white;
}

#question-text {
  font-size: 4.5rem;
  font-weight: 100;
}
#reset-button {
  background: transparent;
  border: solid 2px #7b7777;
  border-radius: 20px;
  font-size: 2rem;
  color: #9f9f9f;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 3rem;
  font-weight: 600;
  margin-top: 5rem;
  position: relative;
  top: 3rem;
}
.result-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 70vh;
  gap: 2vw;
}
.result-col-1 {
  width: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.result-img-container {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.result-star {
  position: absolute;
  left: 0;
  top: 50px;
  width: 310px;
  height: 260px;
  z-index: 1;
  opacity: 0.85;
}
.result-personaje-img {
  position: relative;
  object-fit: contain;
  z-index: 2;
  width: 300px;
  height: auto;
}
.result-col-2 {
  width: 70%;
  text-align: left;
  padding-left: 2vw;
}
.result-title {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 2.7rem;
  color: #fff;
  margin-bottom: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.result-pregunta {
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 3rem;
  font-weight: 700;
}
#result-nombre {
  color: #ff8650;
  font-family: Impact, "Montserrat", Arial, sans-serif;
  font-size: 5.2rem;
  font-weight: 700;
  margin: 0 0.5rem;
  letter-spacing: 1px;
  display: inline-block;
}
.result-orange {
  color: #ff8650;
  font-family: Impact, "Montserrat", Arial, sans-serif;
  font-size: 5.2rem;
  font-weight: 700;
}
.result-descripcion {
  font-size: 1.6rem;
  color: #e1d9c9;
  margin-top: 2rem;
  max-width: 70%;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .result-flex {
    flex-direction: column;
    gap: 0;
  }
  .result-col-1,
  .result-col-2 {
    width: 100%;
    padding: 0;
    text-align: center;
  }
  .result-col-2 {
    padding-left: 0;
  }
  .result-title {
    text-align: center;
  }
}
button#btn-si {
  display: flex;
  background: transparent;
  background-image: url(images/boton.png);
  background-size: cover;
  width: 307px;
  height: 66px;
  background-repeat: no-repeat;
  /* margin: 0 auto; */
  border: 0;
  color: #ffffff;
  font-size: 2.1rem;
  flex-flow: column;
  float: left;
  padding-top: 15px;
}
button#btn-no {
  display: block;
  background: transparent;
  /* background-image: url(images/boton.png); */
  background-size: cover;
  width: 450px;
  height: 66px;
  background-repeat: no-repeat;
  /* margin: 0 auto; */
  border: 0;
  color: #ffffff;
  font-size: 1.8rem;
  float: left;
  font-weight: 100;
  border-radius: 19px;
  border: solid 2px #ffffff;
}
#play-again-button {
  background: transparent;
  background-image: url(images/boton.png);
  background-size: cover;
  width: 350px;
  height: 66px;
  background-repeat: no-repeat;
  border: 0;
  color: #ffffff;
  font-size: 1.8rem;
  flex-flow: column;
  padding-top: 15px;
  position: relative;
  left: 12%;
  font-weight: 400;
}
#scroll-left:hover {
  transform: scale(1.1);
  transition: ease-in 0.5s;
}
#scroll-right:hover {
  transform: scale(1.1);
  transition: ease-in 0.5s;
}
#connect-button {
  position: absolute; /* Posicionamiento fijo dentro de su contenedor padre */
  bottom: 20px; /* 20px desde el borde inferior */
  left: 20px; /* 20px desde el borde izquierdo */

  background: #6f42c1;
  color: white;
  padding: 10px 25px;
  font-size: 1.5rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  transition: background-color 0.3s;
  z-index: 10; /* Se asegura de que esté por encima de otros elementos */
}

#connect-button:hover {
  background-color: #8358d1;
}

#connect-button.connected {
  background-color: #28a745; /* Verde */
}

#connect-button.error {
  background-color: #dc3545; /* Rojo */
}
#screen-intro #connect-button {
  display: none !important;
}