:root {
  --border-radius: 5px;
  --first-color: #f2f2f2;
  --second-color: #080808;
  --third-color: #ffc107;
  --fourth-color: #7f07ff;
}

body {
  background-color: var(--first-color);
  font-size: 1.25rem;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.container {
  margin: 0.625rem;
  padding: 0.625rem;
  text-align: center;
}

.btn {
  margin: 0.5rem;
  padding: 0.5rem;
  background-color: var(--third-color);
  box-shadow: 2px 2px 3px var(--fourth-color);
  border: none;
  border-radius: var(--border-radius);
  font-family: cursive;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--first-color);
  box-shadow: 3px 3px 4px var(--fourth-color);
}

#titulo {
  color: var(--fourth-color);
  padding: 0.625rem;
}

.dialogo {
  font-family: cursive;
  font-size: 1.125rem;
}

#pregunta, #word {
  color: var(--fourth-color);
}

.guardian {
  padding-right: 0.9375rem;
}

#gameInfo {
  display: block;
}

#gameScreen {
  display: none;
  border-style: double;
  margin: 0.625rem 0.3125rem;
  padding: 0.94rem;
}

img {
  width: 9.375rem;
}

#jugando {
  max-width: 25rem;
  margin: 0 auto;
  display: block;
}

#riskForm {
  display: none;
  max-width: 25rem;
  margin: 0 auto;
}

/* Estilo para el contenedor de cada conjunto de campos */
.sino {
  padding: 0.625rem;
  margin-bottom: 1.25rem;
}

/* Estilo para las etiquetas de cada campo */
label {
  display: block;
  margin-bottom: 0.3125rem;
  font-weight: bold;
}

/* Estilo para los campos de entrada de texto */
input[type="text"] {
  display: block;
  width: 100%;
  padding: 0.625rem;
  border: 0.0625rem solid #ccc;
  border-radius: 0.25rem;
  box-sizing: border-box;
}

@media (max-width: 37.5rem) {
  #riskForm {
    padding: 0 0.625rem;
  }
}

.mensaje-ganador {
  background-image: linear-gradient(to top, #d05116 0%, #d70d90 100%);
  color: white;
  padding: 1rem;
}

.mensaje-perdedor {
  background-image: linear-gradient(to top, #051b9b 0%, #1355c0 100%);;
  color: white;
  padding: 1rem;
}

/*FESTEJO*/
.confetti-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.confetti {
  position: absolute;
  left: calc(50% - 600px);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 70%;
  animation: confetti-fall 2s linear infinite, confetti-color 5s ease-in-out infinite;
}

@keyframes confetti-fall {
  0% {
    transform: translate(0, -400px) rotate(0deg);
  }
  100% {
    transform: translate(random(-200px, 200px), 100%) rotate(360deg) rotateZ(random(360deg));
  }
}


@keyframes confetti-color {
  0% {
    background-color: yellow;
  }
  100% {
    background-color: rgb(192, 157, 19);
  }
}

