/* ----------------------------------------------------------- */
/* -----------------------esidioma.com------------------------ */
/* ----------------------------------------------------------- */



/* General */
.hueco-juego-vocabulario {
	background-color: #fafafa;
    border-radius: 8px;
    margin-top: 2em;
    padding: 2em 0;
}

#mi-juego-vocabulario .row {
	text-align: center;
}

/* El contenedor de botones */
#contenedor-de-botones {
	margin: 0 auto;
    max-width: 28em;
    text-align: center;
}

/* Botones/teclado con letras */
#mi-juego-vocabulario table {
	margin-top: 1em;
	margin-left: auto;
	margin-right: auto;
}
#mi-juego-vocabulario .mis-botones {
	display: flex;
}
#mi-juego-vocabulario .mis-botones span {
	background-color: beige;
	border-radius: 5px;
	border: none;
	cursor: pointer;
	border: solid 1px rgb(204, 204, 204);
	font-size: 1.2em;
	font-weight: 600;
	transition: transform .3s;
}
#mi-juego-vocabulario .mis-botones span:hover {
	transform: scale(1.2);
}
#mi-juego-vocabulario span.mi-boton {
	display: inline-block;
	padding: 6px;
	min-width: 4ch;
	min-height: 4ch;
	margin: 0.5em;
	text-align: center;
	font-size: 1.25em !important;

}


/* Zona de pregunta */
@media (max-width: 768px) {
	#hueco-para-pregunta {
		font-size: 1.5em !important;
		font-weight: 600 !important;
	}
}
@media (min-width: 768px) {
	#hueco-para-pregunta {
		font-size: 2em;
		font-weight: 600;
	}
}


/* Input (caja de texto) donde se escribe */
#mi-textarea-solucion {
    width: 18ch; /* Si ponemos más, vamos a tener problemas con los móviles */
	font-weight: 600 !important;
	border: solid 1px lightsteelblue !important;
	border-radius: 4px;
	text-align: center;
	padding: 8px;
	resize: none;
}
/* --> ahora, el font-size*/
@media (max-width: 768px) {
	#mi-textarea-solucion {
		font-size: 1.5em !important;
	}
}
@media (min-width: 768px) {
	#mi-textarea-solucion {
		font-size: 2em;
	}
}
/* --> y ahora, inutilizar la caja de texto para móviles y tablets para que no se puede teclear con el teclado emergente, porque da problemas */
@media (max-width: 1181px) {
	#mi-textarea-solucion {
		pointer-events: none;
		background: none;
    	border: solid 0px black !important;
    	border-bottom: solid 18px #ffd715 !important;
	}
}



/* Zona "fin de juego" */
/* --> Acordeón que abre la zona "fin de juego": es un acordeón que se abré a través del js del juego */
.mi-acordeon {
	max-height: 0;
	/* Esto es importante para la animación de apertura del acordeón */
	overflow: hidden;
	transition: max-height 0.2s ease-out;
}

#fin-del-juego p {
	text-align: center;
	margin-top: 1em;
}
#fin-del-juego * {
	font-size: 2rem;
}
#fin-del-juego .repetir {
	margin-left: 1em;
	padding: 8px;
	font-weight: 600;
	background: #ffd517;
	/* Mismo fondo que la bombilla */
	cursor: pointer;
	border: solid 1px orange;
	border-radius: 8px;
	transition: all .3s;
	display: inline-block;
}
#fin-del-juego .repetir:hover {
  background-color: #e3ff8c;
	transform: scale(1.05);
}
#fin-del-juego .repetir:active {
  background-color: #e3ff8c;
	transform: scale(1.15);
}
/* Bombilla - pista */
#pista-letra {
	transition: transform 0.3s;
}
#pista-letra:hover {
	transform: scale(1.2);
	cursor: pointer;
}
#pista-letra:active {
	transform: scale(1.4);
}

/* EL SWITCH - INTERRUPTOR */
/* --> The switch - the box around the slider */
.switch {
	position: relative;
	display: inline-block;
	width: 52px;
	height: 26px;
}
/* --> Hide default HTML checkbox */
.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
/* --> The slider */
.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: .4s;
	transition: .4s;
}
.slider:before {
	position: absolute;
	content: "";
	height: 19px;
	width: 19px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	-webkit-transition: .4s;
	transition: .4s;
}
input:checked+.slider {
	background-color: #2196F3;
}
input:focus+.slider {
	box-shadow: 0 0 1px #2196F3;
}
input:checked+.slider:before {
	-webkit-transform: translateX(26px);
	-ms-transform: translateX(26px);
	transform: translateX(26px);
}
/* --> Rounded sliders */
.slider.round {
	border-radius: 34px;
}
.slider.round:before {
	border-radius: 50%;
}


/* Marcador de resultados */
/* --> Este reset sobre escribe el estilo general que hay las lecciones del curso  */
#marcador-resultados {
  font-weight: 300 !important;
  padding: 0;
}
.test-marcador-tipo2-EN,
.test-marcador-tipo2-ES {
	/* border: solid 1px lightgray; */
	/* border-radius: 8px; */
	padding: 1em;
	width: fit-content;
}
p.test-marcador-tipo2-EN,
p.test-marcador-tipo2-ES {
	margin: 0 auto;
}
.test-marcador-tipo2-EN span,
.test-marcador-tipo2-ES span {
	display: inline-block;
	margin: 0.25em;
	font-size: 1.5em;
}
.cuadrado-marcador-correctas {
  color: var(--color-correcto-fuente);
  padding: 0.25em;
  border-radius: 8px;
}
.cuadrado-marcador-incorrectas {
	color: var(--color-incorrecto-fuente);
  padding: 0.25em;
  border-radius: 8px;
}
.test-marcador-porcentaje {}


/* Animaciones */
.test-hueco-correcto {
	animation: test-hueco-correcto-animation .3s;
	background-color: var(--color-correcto-fondo);
	color: var(--color-correcto-fuente);
}
@keyframes test-hueco-correcto-animation {
	30% {
		transform: scale(1.1);
	}
	70% {
		transform: scale(1.1);
	}
}

.test-hueco-incorrecto {
	animation: test-hueco-incorrecto-animation .3s;
	background-color: var(--color-incorrecto-fondo);
	color: var(--color-incorrecto-fuente);
}
@keyframes test-hueco-incorrecto-animation {
	30% {
		transform: scale(1.1);
	}
	70% {
		transform: scale(1.1);
	}
}

.error-letra-incorrecta {
	animation: error-letra-incorrecta-animation .3s;
}
@keyframes error-letra-incorrecta-animation {
	30% {
		background: rgb(128, 19, 19);
	}
	70% {}
}

.acierto-letra-correcta {
	animation: acierto-letra-correcta-animation .3s;
	animation-fill-mode: forwards;
}
@keyframes acierto-letra-correcta-animation {
	30% {
		background: green;
		transform: scale(1.25);
	}
	70% {
		background: green;
		transform: scale(1.25);
	}
	100% {
		opacity: 0;
		pointer-events: none;
		/* Si no pones esto, el botón, aunque invisible, seguiría siendo cliqueable */
	}
}

.error-letra-incorrecta-desaparecer {
	animation: error-letra-incorrecta-desaparecer-animation .3s;
	animation-fill-mode: forwards;
}
@keyframes error-letra-incorrecta-desaparecer-animation {
	30% {
		background: rgb(128, 19, 19);
		transform: scale(1.25);
	}
	70% {
		background: rgb(128, 19, 19);
		transform: scale(1.25);
	}
	100% {
		opacity: 0;
		pointer-events: none;
		/* Si no pones esto, el botón, aunque invisible, seguiría siendo cliqueable */
	}
}

.marcador-palabra-imperfecta {
	animation: marcador-palabra-imperfecta-animation .3s;
}
@keyframes marcador-palabra-imperfecta-animation {
	30% {
		color: rgb(128, 19, 19);
		transform: scale(1.5);
	}
	70% {
		color: rgb(128, 19, 19);
		transform: scale(1.5);
	}
}

.marcador-palabra-perfecta {
	animation: marcador-palabra-perfecta-animation .3s;
}
@keyframes marcador-palabra-perfecta-animation {
	30% {
		color: green;
		transform: scale(1.5);
	}
	70% {
		color: green;
		transform: scale(1.5);
	}
}

