@import url('https://fonts.googleapis.com/css2?family=Asap:ital,wght@0,100..900;1,100..900&display=swap');

body,
html {
  	margin: 0;
}
/*
html, body, iframe, iframe > div, div, div > img, img  {
   -webkit-backface-visibility: hidden !important;
   backface-visibility: hidden;
}
*/
html {
    height: 100%;
}
.attempt-counter {
    display: none;
}
body {
    width: -webkit-fill-available;
 	height: -webkit-fill-available;
	overflow: hidden; 
	font-family: "Asap", "Century Gothic", sans-serif !important;
}

div#wrapper {
	width: -webkit-fill-available;
	height: -webkit-fill-available;
}

.instruccion h1,
.instruccion p {
  	font-family: "Asap", "Century Gothic", sans-serif !important; 
  	text-align: left;
}

.instruccion h1 {
	margin-block-start: 0.15em !important;
	margin-block-end: 0.15em !important;
}

h2 {
	margin-block-start: 0.4em !important;
	margin-block-end: 0.2em !important;
}

div p {
  	padding: 5px 0;
	margin: 0;
	font-family: "Asap", "Century Gothic", sans-serif !important;
}

div { 
  	right: 0;
  	left: 0; 
}

button.boton-comenzar {
    margin: 0; 
    display: flex; 
	justify-content: center;
	align-content: center;
	align-items: center;  
	height: 50px;
    line-height: 2; 
    background-color: #A15FF6;
    color: white;
    font-weight: bold;
	border: none !important;
	cursor: pointer;
	font-family: "Asap", "Century Gothic", sans-serif !important;  
	border-radius: 8px;
	opacity: .7;
    transform: scale(0.97);
    transition: .3s ease-in-out;
	font-size: 14px; 
	white-space: pre-line;
    box-shadow: 3px 3px 0px #1b3bc1;
      flex-flow: column;   
    width: 400px;
    padding: 0px 25px 0px 25px; 
}

button.boton-comenzar, button.boton-comenzar p { 
	text-align: center;
	line-height: normal !important;
}

img.microfono {
    max-height: 55px;
    padding: 0px 0 3px 0;
}
 
p.recuerda {
    color: #A15FF6 !important;
	font-size: 10pt !important;
	padding: 0 !important; 
	text-align: center;   
    margin-inline: auto;  
}


div#wrapper-comenzar {
    display: flex;
    align-items: center;
    flex-flow: column;
    width: 100%; 
}

div#wrapper-comenzar {
    background-color: #e9d7bf;
    width: 440px;
    padding-top: 20px;
    height: 70px;
    border-radius: 12px;
    margin-left: 425px;
    position: absolute !important;
    border-bottom: 8px solid #ad5337;
}

button.boton-comenzar[disabled] {
    background-color: red !important;
    transition: 0.5s ease-in-out;
    box-shadow: 3px 3px 0px #bd1d1d;
}

.caja { 
	align-items: center; 
    margin-top: 80px;
}

.caja2 {
    width: -webkit-fill-available;
	height: -webkit-fill-available; 
    margin-top: 80px;
}

.caja2 > p:first-of-type {
    padding-top: 0 !important; 
}

.voz-imagen1 {
    width: 100%;     
	height: fit-content;
	display: flex; 
    justify-content: center;
	align-items: center;  
}

.voz-imagen1 > img {
	display: flex; 
    max-width: -webkit-fill-available;
    max-height: 220px;
    justify-content: center;
	align-items: center; 
}

testBtn {
    white-space: pre-line; /* Esto asegura que se respeten los saltos de línea */
    word-wrap: break-word; /* Asegura que el texto se ajuste bien */
}


@media all and (max-height: 410px) {
  div {
    position: static;
  }
}

.phrase {
  	font-weight: bold;
	background-color: #ffffbd;
	margin-bottom: 1rem;
	padding: 10px;
	font-family: "Asap", "Century Gothic", sans-serif !important;
	font-size: 21px;
    text-align: center;
}

p.phrase {
    display: none;
}

.phrase::first-letter, div:has(.result) > textarea.output::first-letter {
	text-transform: capitalize;
}

.output {    
    padding: 0.5rem 0.5rem 0.2rem;
    border-radius: 5px;
    margin: 7rem 0 0 0;
    font-family: "Asap", "Century Gothic", sans-serif !important;
    background-color: #ffffffe6;
    border: none;
    pointer-events: none; 
   resize: none;
    height: 20px !important;
    font-size: 10pt;
    text-align: center;
    width: 100%;
    position: absolute;
    left: 0;
}

textarea.output:focus-visible {
    outline-color: #A15FF6;
}
 

div:has(.result[style="background: red;"]) > textarea.output {
    border-color: orange !important;
}

div:has(.result[style="background: lime;"]) > textarea.output {
    border-color: lime !important;
	pointer-events: none !important;
}


.instruccion {
	display: flex;
	flex-flow: column;
	align-content: center;
	width: 100%;
	font-family: "Asap", "Century Gothic", sans-serif !important;
}

p.result {       
-webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-family: "Asap", "Century Gothic", sans-serif !important;
    border-radius: 5px;
    font-size: 14pt !important;
    justify-content: center;
    display: flex
;
    padding: 10px 20px;
    font-weight: bold;
    color: gray;
    margin-top: -40px;
    text-shadow: 0px 1px 3px #ffffffb8 !important;
    z-index: 9999999 !important;
    position: absolute;
    width: 417px;
    margin-left: 0px;
    top: 217px;
}
div#wrapper-comenzar:before {
    content: "";
    width: 38px;
    background-color: #834d38;
    height: 169px;
    position: absolute;
    z-index: -2;
    border-radius: 8px;
}
p.result[style="background: rgba(0, 0, 0, 0.2);"] { 
    visibility: hidden;
}


/* Animación suave cuando la imagen de voz se activa */
.voz-imagen1 {
  opacity: 1; /* La imagen comienza invisible */
  transform: scale(1); /* Comienza con escala 1 */
  animation: animacionEscala 3s ease-in-out 0.6s forwards; /* Añadimos el retraso de 1 segundo */
}

/* La animación se realiza cuando la clase 'cargada' es agregada */
.voz-imagen1.cargada {
  opacity: 1;  /* La imagen se hace completamente visible */
}

/* Definición de la animación 'animacionEscala' */
@keyframes animacionEscala {
  0% {
    transform: scale(1); /* Empieza en tamaño normal */
  }
  50% {
    transform: scale(1.15); /* Aumenta hasta 1.2 */
  }
  100% {
    transform: scale(1); /* Vuelve al tamaño original */
  }
}

.modal-overlay > .modal {
	display: flex;
    padding: 0 !important;
    border: none;
    border-radius: 30px !important;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2) !important;
    background-color: #C358F0 !important;
    color: white;
    transition: .3s ease-in-out;
}

.modal-overlay > .modal > button {
	display: flex;
	align-items: center;
    justify-content: center;
	color: #fff;
	cursor: pointer;
	padding: 12px 20px !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    font-weight: bold !important;
} 

 .info 
 {
    width: 100%;
}