:root {
  --color__brand1: #ffac00;
  --color__brand2: #360E59;
  --color__brand3: #cbd1d3;
  --color__brand4: #52bab6;
  --color__brand5: #fd5b47;
}

.contenedorJuego {
  --preguntas__fondoColor1: #572B99;
  --preguntas__fondoColor2: #7C367F;
  --preguntas__fondoColor: var(--preguntas__fondoColor1);

  --pregunta__fondoColor: hsla(0, 0%, 0%, 0.4);
  --pregunta__texto__color: #fff;
  --pregunta__colorBorde: transparent;
  --pregunta__estiloBorde: dashed;
  --pregunta__sizeBorde: 2px;
  --pregunta__contador__fondoColor: #1EAE98;
  --pregunta__contador__titulo: #fff;
  --pregunta__contador__numero: #360E59;

  --respuestas__espacioEntreColumnas: 10px;
  --respuesta__colorFondo: #FFFFFF;

  --respuestas__fontSize: 18px;
  --respuestas__fontWeight: normal;
  --respuestas__color: var(--color__brand2);

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-align: center;

  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;

}

@media (max-width: 992px) {
  .contenedorJuego {
    padding-top: 30px;
  }
}

.contadorPuntos {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.pregunta__contador {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 1.3rem;
  font-family: var(--fuente__titulo);
  font-weight: bold;
}

.pregunta__contador--titulo {
  color: var(--pregunta__contador__titulo);
}

.pregunta__contador--1,
.pregunta__contador--2,
.pregunta__contador--3 {
  color: var(--pregunta__contador__numero);
  background-image: linear-gradient(to right, #0CEBBE 0%, #00C4B5 66%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -8px 0 0 rgba(0, 0, 0, .05), -2px 0px 0 2px #2EC4FB, 2px 0px 0 2px #ff29ff, 0px 2px 0 2px #6600ff, 0px -2px 0 2px #b100ff, inset 0 3px 0 0 rgba(255, 255, 255, 0.20);
  position: relative;
}

.pregunta__contador--locked {
  filter: grayscale(1);
}

.pregunta__puntos {
  position: absolute;
  bottom: calc(100% + 8px);
  width: 40px;
  height: auto;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1;
  color: var(--color__brand1);
  z-index: 0;
}

.pregunta__puntos--show {
  z-index: 2;
  animation: puntosPregunta 1s .5s cubic-bezier(0, 0.45, 0.25, 1) backwards;
  -webkit-animation: puntosPregunta 1s .5s cubic-bezier(0, 0.45, 0.25, 1) backwards;
}

.puntos {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 1.3rem;
  font-family: var(--fuente__titulo);
  font-weight: bold;
}

.puntos--titulo {
  color: var(--pregunta__contador__titulo);
}

.puntos--valor {
  display: inline-flex;
  color: var(--pregunta__contador__titulo);
  box-shadow: -2px 0px 0 2px #ADB6D4, 2px 0px 0 2px #CCD3EA;
  padding: 5px 25px;
  border-radius: 10px;
  position: relative;
  background-color: rgba(0, 0, 0, .5);
  min-width: 100px;
  justify-content: center;
}

@media (max-width: 767px) {
  .puntos--valor {
    padding: 3px 20px;
    min-width: 80px;
  }
}

.quiz {
  max-width: 100%;
  margin-top: 30px;
  margin-bottom: 10px;
  padding: 110px 40px 20px;
  position: relative;
}

@media (max-width: 992px) {
  .quiz {
    margin-top: 100px;
    padding: 110px 20px 60px;
  }
}

.quiz::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(var(--preguntas__fondoColor1) 0%, var(--preguntas__fondoColor2) 100%);
  border-radius: 30px;
  box-shadow: -2px 0px 0 2px #2EC4FB, 2px 0px 0 2px #ff29ff, 0px 2px 0 2px #6600ff, 0px -2px 0 2px #b100ff;
  mix-blend-mode: lighten;
  z-index: 0;
}

.quiz::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -100px;
  margin-left: auto;
  margin-right: auto;
  width: 200px;
  height: 180px;
  background-image: url(../img/tierra.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.quiz .preguntas {
  position: relative;
  width: 100%;
  display: inline-block;
  mix-blend-mode: normal;
}

.quiz .pregunta {
  position: relative;
  text-align: center;
  width: 100%;
  background-color: var(--pregunta__fondoColor);
  box-shadow: 0 -5px 0 0 rgba(0, 0, 0, .6);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.quiz .categoria {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  max-width: 90%;
  background-color: rgba(0, 0, 0, .6);
  color: #fff;
  box-shadow: 0 -5px 0 0 rgba(0, 0, 0, .8);
  padding: 5px 20px 10px;
  border-radius: 20px 20px 0 0;
  background-blend-mode: initial;
  font-size: 1rem;
  line-height: 1;
}

.quiz .categoria__nombre {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color__brand1);
}

@media (max-width: 992px) {
  .quiz .categoria__nombre {
    display: flex;
  }
}

.quiz .pregunta__texto {
  line-height: normal;
  font-size: 1rem;
  margin-bottom: 0;
  text-align: center;
  color: var(--pregunta__texto__color);
}

.quiz .respuestas {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 50px;
}

@media (max-width: 992px) {
  .quiz .respuestas {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-bottom: 0;
  }
}

.quiz .respuestaItem {
  display: flex;
  flex-direction: column;
  margin-left: var(--respuestas__espacioEntreColumnas);
  margin-right: var(--respuestas__espacioEntreColumnas);
  text-align: center;
  border-radius: 20px;
  cursor: url(../img/pointer.png), pointer;
  background-color: var(--respuesta__colorFondo);
  transform: scale(1);
  box-shadow: inset 0 -8px 0 0 rgba(0, 0, 0, .05), -2px 0px 0 2px #ADB6D4, 2px 0px 0 2px #CCD3EA, inset 0 3px 0 0 rgba(255, 255, 255, 0.20);
}

@media (max-width: 992px) {
  .quiz .respuestaItem {
    width: 300px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 576px) {
  .quiz .respuestaItem {
    min-width: 250px;
    max-width: 300px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

.quiz .respuestas__tamanoOpcion {
  display: inline-flex;
  padding: 5px 5px 0;
}

.quiz .respuestas__opcion {
  width: 100%;
  text-align: center;
  color: var(--color__brand2);
  overflow: hidden;
  position: relative;
  background-blend-mode: luminosity;
  transition: box-shadow 100ms;
}

.quiz .respuestas__imagen {
  max-width: 100%;
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}

@keyframes mostrar {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.modal__buttons {
  animation: mostrar 1s 1s backwards;
}

.quiz .respuestas__texto {
  color: #ccc;
  text-align: center;
  background-image: linear-gradient(to right, #FFAC00 0%, #EDD300 100%);
  box-shadow: inset 0 -8px 0 0 rgba(0, 0, 0, .05), -2px 0px 0 2px #ADB6D4, 2px 0px 0 2px #CCD3EA, inset 0 3px 0 0 rgba(255, 255, 255, 0.20);
  font-size: var(--respuestas__fontSize);
  font-weight: var(--respuestas__fontWeight);
  line-height: 1.2;
  padding: 10px 15px;
  border-radius: 25px;
  color: var(--respuestas__color);
  margin-bottom: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  margin-bottom: -40px;
}

@media (max-width: 992px) {
  .quiz .respuestas__texto {
    min-height: 60px;
    border-radius: 20px;
    margin-bottom: -30px;
  }
}

.quiz .imagen-respuesta {
  background-size: cover;
  background-position: center;
}

.quiz .imagen-respuesta:hover {
  cursor: url(../img/pointer.png), pointer;
}


@keyframes correcto {
  0% {
    bottom: 2%;
    opacity: 0;
  }

  40%,
  60% {
    opacity: 1;
  }

  100% {
    bottom: 90%;
    opacity: 0;
  }
}


@keyframes correctoMovil {
  0% {
    bottom: 0%;
    opacity: 0;
  }

  40%,
  60% {
    opacity: 1;
  }

  100% {
    bottom: 80%;
    opacity: 0;
  }
}

@keyframes incorrecto {
  0% {
    bottom: 90%;
    opacity: 0;
  }

  40%,
  60% {
    opacity: 1;
  }

  100% {
    bottom: 5%;
    opacity: 0;
  }
}

@keyframes puntosPregunta {
  0% {
    opacity: 0;
    transform: scale(2) translateX(100%);
  }

  20% {
    transform: scale(2) translateX(100%);
    opacity: 1;
  }

  100% {
    transform: scale(1) translateX(0%);
    opacity: 1;
  }
}

.quiz .puntosCorrecto--40,
.quiz .puntosCorrecto--80,
.quiz .puntosCorrecto--100 {
  max-width: 250px;
  width: 33%;
  position: absolute;
  display: none;
  left: 50%;
  transform: translateX(-50%);
}

.quiz .correcto .puntosCorrecto--show.puntosCorrecto--40,
.quiz .correcto .puntosCorrecto--show.puntosCorrecto--80,
.quiz .correcto .puntosCorrecto--show.puntosCorrecto--100,
.quiz .incorrecto .caraIncorrecto {
  display: block;
  z-index: 1;
}

.quiz .correcto .puntosCorrecto--40,
.quiz .correcto .puntosCorrecto--80,
.quiz .correcto .puntosCorrecto--100 {
  animation: correcto 2s ease-out;
  -webkit-animation: correcto 2s ease-out;
}

@media (max-width: 992px) {

  .quiz .correcto .puntosCorrecto--40,
  .quiz .correcto .puntosCorrecto--80,
  .quiz .correcto .puntosCorrecto--100 {
    width: 80%;
    animation: correctoMovil 3s ease-out;
    -webkit-animation: correctoMovil 3s ease-out;
  }

}

.quiz .incorrecto .caraIncorrecto {
  animation: incorrecto 1.3s ease-in;
  -webkit-animation: incorrecto 1.3s ease-in;
}

.quiz .caraPiel {
  fill: #F2D031;
}

.quiz .caraOjos {
  fill: #40340C;
}

.quiz .caraBoca,
.quiz .caraCejas {
  fill: none;
  stroke: #40340C;
  stroke-linecap: round;
  stroke-miterlimit: 10;
}

.quiz .caraBoca {
  stroke-width: 7;
}

.quiz .caraCejas {
  stroke-width: 4;
}

.quiz .caraIncorrecto .caraBoca {
  stroke-width: 6;
}

@keyframes entradaElementos {

  0%,
  20%,
  40%,
  60%,
  80%,
  100% {
    -webkit-animation-timing-function: cubic-bezier(.215, .61, .355, 1);
    animation-timing-function: cubic-bezier(.215, .61, .355, 1);
  }

  0% {
    -webkit-transform: scale3d(.3, .3, .3);
    opacity: 1;
    transform: scale3d(.3, .3, .3);
  }

  20% {
    -webkit-transform: scale3d(0.1, 0.1, 0.1);
    transform: scale3d(0.1, 0.1, 0.1);
  }

  40% {
    -webkit-transform: scale3d(.9, .9, .9);
    transform: scale3d(.9, .9, .9);
  }

  60% {
    -webkit-transform: scale3d(1.03, 1.03, 1.03);
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }

  80% {
    -webkit-transform: scale3d(.97, .97, .97);
    transform: scale3d(.97, .97, .97);
  }

  100% {
    -webkit-transform: scaleX(1);
    opacity: 1;
    transform: scaleX(1);
  }
}

.entradaElementos {
  animation-duration: .75s;
  animation-name: entradaElementos;
  animation-fill-mode: backwards;
}

.disabled {
  pointer-events: none;
}