html,body{
	-webkit-overflow-scrolling : touch !important;
   overflow: auto !important;
   height: 100% !important;
	
}
html {
  height: 100%;
  box-sizing: border-box;
font-family: 'Nunito', sans-serif;


}

body {
	font-family: 'Nunito', sans-serif;

	font-size: 20px;
	width:100%;

 /* Location of the image */
  background-image: url(../images/fondo.jpg);
  
  /* Background image is centered vertically and horizontally at all times */
  background-position: center center;
  
  /* Background image doesn't tile */
  background-repeat: no-repeat;
  
  /* Background image is fixed in the viewport so that it doesn't move when 
     the content's height is greater than the image's height */
  background-attachment: fixed;
  
  /* This is what makes the background image rescale based
     on the container's size */
  background-size: cover;
  
  /* Set a background color that will be displayed
     while the background image is loading */
  background-color: #464646;
  
}

#muyBienDivId
{
	
font-family: 'Nunito', sans-serif;
	 font-size: 80px;
}
h1, h2, h3, h4, h5, h6 {

font-family: 'Nunito', sans-serif;

 
  letter-spacing: 5px;
 position: relative;
  margin: 0;
  padding-bottom: 3rem;
  height: 100%;
  
  text-align: center;
  text-justify: inter-word;
}
h1{
	 font-size: 65px;
}
h2{
	 font-size: 40px;
}


.backgroundInformation
{
	
    top: 0;
    width: 100%;
    min-height: 100%;
    padding: 0px;
    margin: 0px;
    /*display: flex;
    flex-flow: row nowrap;*/
	justify-content: center;
    align-items: center;
	background: url("../images/fondo.jpg");
	z-index:9999999;
	
  min-height: 95.5vh;
}

.backgroundInformationContent{
	position: relative;
    
}



#contentRespuesta
{
	
	 font-size: 45px;
}
input[readonly] {
  background-color: Gray;
}

.inputRespuesta[readonly] {
	background-color: rgba(255,255,255,0.65);
	border: 2px solid #B7C1C3;
	border-radius: 8px;
	padding: 0.2rem 0.35rem;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

@keyframes lineaInputActiva {
	0% {
		box-shadow: inset 0 -2px 0 #B7C1C3;
	}
	50% {
		box-shadow: inset 0 -5px 0 #B7C1C3;
	}
	100% {
		box-shadow: inset 0 -2px 0 #B7C1C3;
	}
}
#page-container {
	
  position: relative;
  min-height: 94.5vh;
  
/*background: rgb(203,252,255);
background: radial-gradient(circle, rgba(203,252,255,0.28895308123249297) 0%, rgba(95,243,255,0.0760679271708683) 48%, rgba(215,255,253,0.11808473389355745) 100%);
*/
  }

#content-wrap {
 /* padding-bottom: 1rem;     Footer height */
}

.containerTiempoFondo{
	  position: relative;
  text-align: center;
  color: white;
  
    background: transparent;
    border: none;
  
}
.texto-tiempo
{
	position:absolute;


     top:  15%;
  left: 65%;
  transform: translate(-50%, -75%);
  
  
	font-family: 'Paytone One', sans-serif;
  font-size: 30px;
  color: #ffffff;
  

}

.texto-puntuacion
{	  

	position:absolute;


     top:  18%;
  left: 70%;
  transform: translate(-50%, -75%);
  
  
	font-family: 'Paytone One', sans-serif;
  font-size: 30px;
  color: #ffffff;

}


.footerPage {
	position: relative;
	bottom: 1vh;
	font-size: 24px; 
	font-style: normal; 
	font-variant: normal; 
	font-weight: 700; 
	line-height: 26.4px; 
	margin-top:-5px;
	width: 100%;
  
	padding: 1rem;
	height: 3rem;
	/*
	background: rgb(203,252,255);
	background: radial-gradient(circle, rgba(203,252,255,0.28895308123249297) 0%, rgba(95,243,255,0.0760679271708683) 48%, rgba(215,255,253,0.11808473389355745) 100%);
	*/	
	text-align: center;
	z-index:10000000px;
}
#puntuacionFlotatenDivId
{
	
  display: flex;
  justify-content: center;
}
.tdPuntuacionFlotante
{
	width:33%;
}
#contentPantallaFloat
{
    position: fixed;
    bottom: 0;
    top:15px;
    left: 15px;
	border: 1px; 
	border-collapse: collapse;
  
	font-size: 20px; 
	font-style: normal; 
	font-variant: normal; 
	font-weight: 700; 
	line-height: 26.4px; 
}
#contentNumPantalla
{
	  position: relative;
  text-align: center;
  left:0;	
}
.numPantalla
{
	position:absolute;
	
	color:#FFFFFF;
	font-size: 50px; 

     top: 0%;
  left: 50%;
  transform: translate(-50%, -75%);
}
.cabecera {		
	background: rgb(203,252,255);
	background: radial-gradient(circle, rgba(203,252,255,0.28895308123249297) 0%, rgba(95,243,255,0.0760679271708683) 48%, rgba(215,255,253,0.11808473389355745) 100%);
}
.wrapper-beta {	
width: 15vh;
  position: absolute;
  bottom: 0;
  right: 0;  z-index:10000001px;
  }
.wrapper-pi {	
width: 13vh;

  position: absolute;
  bottom: 0;
  left: 0;  z-index:10000001px;
}
#contentText
{
	margin-left:2rem;
	margin-right:1rem;
}
#contentTextRespuesta
{
	margin-left:2rem;
	margin-right:1rem;
}
#respuesta
{
	
}

.imagePuntuacionHeader
{
	width:200px;
}


.imageElements
{
	max-height:300px;
}

.imageElementsUnits
{
	max-height:30px;
}

.imageButtonsCalculadora
{
	max-height:80px;
}

@media only screen and (max-width: 1550px) {

}
@media only screen and (max-width: 1370px) {

}

@media only screen and (max-width: 1145px) {

}
@media only screen and (max-width: 1023px) {
	.footer {
	}
	
	h2 {
		font-size: 20px!important;
	}
	
	h1{
		font-size: 30px!important;
	}

	h3 {
		font-size: 15px!important;
	}




/*
	#puntuacionHeader
	{
		display:block!important;
		font-size:16px!important;
		margin-left:-5px!important;
	}*/
	  
	#puntuacionFlotante
	{
		/*display:none;*/
		
	}
	#titlePageId {		
		display:none;}

}

.selectedInput
{
	background-color:#ffffff!important;
	border-color:#B7C1C3!important;
	 border-width: 2px!important;
	animation: lineaInputActiva 1s ease-in-out infinite;
}

@media only screen and (max-width: 800px) {
	.content-popup
	{
		width:700px!important;
	}
	
	.imageElements
	{
		max-height:280px!important;
	}
	


.imageElementsUnits
{
	max-height:28px;
}

	.imageButtonsCalculadora
	{
		max-height:70px!important;
	}
	.buttonCalculadoraWidth
	{
		max-width:70px!important;
	}
	.centeredImageTextCalculadora
	{
		font-size:45px!important;
	}
}

@media only screen and (max-width: 700px) {
	.content-popup
	{
		width:600px!important;
	}
}
@media only screen and (max-width: 600px) {
	.content-popup
	{
		width:500px!important;
	}
}
@media only screen and (max-width: 500px) {

#puntuacionFlotatenDivId
{
	
  display: flex!important;
  justify-content: left!important;
  width:76%;
}
.tdPuntuacionFlotante
{
	width:25%!important;
}

	.content-popup
	{
		width:400px!important;
		min-height: 600px!important;
	}
		.imageElements
	{
		max-height:250px!important;
	}


	.imageElementsUnits
	{
		max-height:25px;
	}
	
	.imageButtonsCalculadora
	{
		max-height:55px!important;
	}
	.buttonCalculadoraWidth
	{
		max-width:55px!important;
		padding: 5px;
	}
	.centeredImageTextCalculadora
	{
		font-size:35px!important;
	}
	#contentRespuesta
	{
		font-size:30px!important;
	}
	h1, h2, h3, h4, h5, h6 {
	padding-bottom: 0.5rem!important;
	}
}

@media only screen and (max-width: 815px) {
	.content-popup
	{
		
	
		width:600px!important;
		background-size: 600px 500px!important;
		min-height: 500px!important;
		margin-top: 30px!important;
		
	}
	.imagePuntuacion
	{
		height:40px!important;
	}
	
	.textoPopUp
	{
		font-size:25px;
	}
	
}

@media only screen and (max-width: 600px) {
	.content-popup
	{
		width:360px!important;
		background-size: 360px 600px!important;
		min-height: 600px!important;
		margin-top: 20px!important;
	}
	.imagePuntuacion
	{
		height:40px!important;
	}
	
	.textoPopUp
	{
		font-size:25px;
	}
	
}
@media only screen and (max-width: 500px) {
	.imagePuntuacionHeader
	{
		width:150px!important;
	}
	.imageNumPantalla
	{
		width:50px!important;
		
	}


	.numPantalla
	{
		position:absolute;
		
		color:#FFFFFF;
		font-size: 33px; 

		 top: 0%;
	  left: 50%;
	  transform: translate(-50%, -75%);
	}

	.texto-tiempo
	{
	  top:  15%;
	  left: 65%;
	  font-size: 25px;
	}

	.texto-puntuacion
	{	  
		position:absolute;
		top:  18%;
		left: 70%;
		font-size: 25px;
	}



}


@media only screen and (max-width: 400px) {
	.imagePuntuacionHeader
	{
		width:100px!important;
	}
	.imageNumPantalla
	{
		width:50px!important;
		
	}


	.numPantalla
	{
		position:absolute;
		
		color:#FFFFFF;
		font-size: 33px; 

		 top: 0%;
	  left: 50%;
	  transform: translate(-50%, -75%);
	}

	.texto-tiempo
	{
	  top:  15%;
	  left: 65%;
	  font-size: 20px;
	}

	.texto-puntuacion
	{	  
		position:absolute;
		top:  18%;
		left: 70%;
		font-size: 20px;
	}



}


#titlePageId
{
	font-size: 35px!important; 
	font-style: normal; 
	font-variant: normal; 
	font-weight: 700; 
	line-height: 26.4px; 
}
#puntuacionFlotante
{
	

	border-collapse: collapse;
  
	font-size: 20px; 
	font-style: normal; 
	font-variant: normal; 
	font-weight: 700; 
	line-height: 26.4px; 
	
	width:100%;
}

#puntuacionFlotante td, #puntuacionFlotante th {

  padding: 1px;
}


#puntuacionFlotante tr:nth-child(even){}

#puntuacionFlotante tr:hover {}

#puntuacionFlotante th {
  padding-top: 12px;
  padding-bottom: 12px;
  
  color: black;
}




#puntuacionHeader
{
	display:none;
	font-size: 24px; 
	font-style: normal; 
	font-variant: normal; 
	font-weight: 700; 
}

#puntuacionHeader td, #puntuacionHeader th {

  padding: 8px;
}


#puntuacionHeader tr:nth-child(even){background-color: #f2f2f2;}

#puntuacionHeader tr:hover {background-color: #ddd;}

#puntuacionHeader th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;background: rgb(203,252,255);
	background: radial-gradient(circle, rgba(203,252,255,0.28895308123249297) 0%, rgba(95,243,255,0.0760679271708683) 48%, rgba(215,255,253,0.11808473389355745) 100%);

  color: black;
}

.buttonCalculadora
{
	background: transparent;
	border: none;
}
.buttonCalculadoraWidth
{
	
	
	max-width:75px;
}
button:active {
outline: none;
border: none;
}
*:focus {
    outline: 0 !important;
}
button::before, button::after{
	
	border: none;
}
.buttonElementos
{
	background: transparent;
	border: none;
	cursor: pointer;
}
.buttonElementosSeleccionado
{
	background: #999999!important;
	border: none;
}


/* The grid: Four equal columns that floats next to each other */
.column {
  float: left;
	min-width:15%;
  padding: 10px;
}

/* Style the images inside the grid */
.column img {
  opacity: 0.8; 
  cursor: pointer; 
}

.column img:hover {
  opacity: 1;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Centered text */
.centeredImageText {
  position: absolute;
  top: 55%;
  left: 55%;
  transform: translate(-50%, -50%);
  font-size:55px;
}

.centeredImageTextUnits {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size:25px;
}

/* Centered text */
.centeredImageTextCalculadora {
  position: absolute;
  top: 45%;
  left: 70%;
  transform: translate(-50%, -50%);
  font-size:55px;
}


/* Container holding the image and the text */
.containerContImage {
  position: relative;
  text-align: center;
  color: white;
}

.ImageContar {

  filter:brightness(0.6);
}


/* Centered text */
.centeredImageTextButtons {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size:55px;
}


#popup {
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
}
 
.content-popup {
    margin:0px auto;
	font-size:30px;
    margin-top:120px;
    position:relative;
    padding:10px;
    width:790px;
    min-height:490px;
    border-radius:4px;
    background-color:#FFFFFF;
    /*box-shadow: 0 2px 5px #666666;*/
	background: url("../images/fondo_popup.png") no-repeat;
	background-repeat: no-repeat;
	background-size: 100%;
	
}
 
.content-popup h2 {
    color:#48484B;
    border-bottom: 1px solid #48484B;
    margin-top: 0;
    padding-bottom: 4px;
}

#textoFinal{
		margin:12px;
}
.popup-overlay {
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 999;
    display:none;
    background-color: #777777;
    cursor: pointer;
    opacity: 0.7;
}
 
#overlay {
   position: fixed;
   height: 100%; 
   width: 100%;
   top: 0;
   right: 0;  
   bottom: 0;
   left: 0;
   background: rgba(0,0,0,0.8);
   display: none;
}
.close {
    position: absolute;
    right: 15px;
}
.estrellas
{
	margin-top:25px;
	width:200px;
}

.puntuacionEstrellas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.containerPuntuacionEstrella
{
	  position: relative;
  text-align: center;
  color: white;
}
.imagePuntuacion{
	
  max-height:50px;
}
.botonesPopUp
{
	max-height:80px;
	margin-right:50px;
	margin-left:50px;
}

.popup-button {
	padding: 0.4rem;
	border: 0;
	border-radius: 12px;
	background: transparent;
	cursor: pointer;
}

/* Ajustes de la plantilla maestra de unidades y decenas */
body {
	margin: 0;
	color: #17243a;
}

.center-content {
	text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	letter-spacing: 1.5px;
	line-height: 1.25;
}

h1 {
	font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
	font-size: clamp(1.35rem, 3vw, 2.35rem);
}

h3 {
	font-size: clamp(1rem, 2vw, 1.35rem);
}

.intro-table {
	width: min(900px, calc(100% - 2rem));
	margin: 0 auto 1.5rem;
	border-spacing: 0 0.8rem;
}

.intro-table td:first-child {
	width: 180px;
}

.intro-table h3 {
	padding: 0 0 1rem !important;
}

#content {
	width: min(1200px, 100%);
	margin: 0 auto;
	padding-right: 1rem;
	padding-left: 1rem;
}

#descriptionTitle {
	padding-bottom: 1.25rem !important;
}

.exercise-question > h2 {
	max-width: 900px;
	margin: 0 auto;
	padding-bottom: 0.5rem;
}

.exercise-question > p {
	margin: 0 auto 1.25rem;
	font-size: clamp(1rem, 2vw, 1.35rem);
	font-weight: 700;
	text-align: center;
}

.blocks-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: flex-end;
	justify-content: center;
	max-width: 1050px;
	margin: 0 auto 1.5rem;
}

.buttonElementos {
	margin: 0;
	padding: 0.2rem;
	border-radius: 10px;
}

.buttonElementos:focus-visible,
.buttonCalculadora:focus-visible,
.popup-button:focus-visible,
.inputRespuesta:focus-visible,
a:focus-visible {
	outline: 4px solid #155eef !important;
	outline-offset: 3px;
}

.buttonElementosSeleccionado {
	background: rgba(21, 94, 239, 0.15) !important;
}

.imageElements {
	max-height: clamp(180px, 25vw, 280px);
}

.imageElementsUnits {
	max-height: clamp(24px, 4vw, 34px);
}

#contentRespuesta {
	max-width: 980px;
	margin: 0 auto;
	font-size: clamp(1.6rem, 4vw, 2.7rem);
	font-weight: 900;
	line-height: 1.7;
	text-align: center;
}

.inputRespuesta {
	width: 2.15em;
	min-height: 1.35em;
	box-sizing: border-box;
	border: 3px solid #718096;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.92);
	font: inherit;
	line-height: 1;
	text-align: center;
}

.keypad {
	display: grid;
	grid-template-columns: repeat(6, minmax(54px, 72px));
	gap: 0.4rem;
	justify-content: center;
	margin: 0 auto 0.75rem;
}

.buttonCalculadoraWidth {
	width: 100%;
	max-width: none;
	padding: 0;
	cursor: pointer;
}

.imageButtonsCalculadora {
	width: 100%;
	height: auto;
}

.centeredImageTextCalculadora {
	top: 47%;
	left: 50%;
	font-size: clamp(2rem, 5vw, 3.2rem);
}

.action-button {
	margin: 0.25rem auto 1rem;
	cursor: pointer;
}

.action-button img {
	width: min(330px, 82vw);
	max-height: 80px;
}

.centeredImageTextButtons {
	top: 47%;
	left: 50%;
	width: 90%;
	font-size: clamp(1.25rem, 4vw, 1.9rem);
	font-weight: 900;
}

.solution {
	max-width: 1050px;
	margin: 0 auto;
	padding: 0 1rem 2rem;
	text-align: center;
}

.solution-summary {
	padding-bottom: 1rem;
}

.solution-observation,
.didactic-steps p,
.visual-explanation p {
	font-size: clamp(1.1rem, 2.5vw, 1.8rem);
	line-height: 1.45;
}

.visual-explanation {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

.visual-explanation__item {
	padding: 1rem;
	border: 2px solid rgba(21, 94, 239, 0.2);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.65);
}

.visual-unit {
	max-height: 70px;
}

.didactic-steps {
	padding: 1rem;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.7);
	text-align: left;
}

.didactic-steps h2,
.continue-area {
	text-align: center;
}

.footerPage {
	position: relative;
	bottom: auto;
	min-height: 72px;
	box-sizing: border-box;
	margin-top: 1rem;
	padding: 1.3rem 6rem;
	z-index: 10;
}

.wrapper-beta,
.wrapper-pi {
	width: clamp(70px, 11vw, 120px);
	pointer-events: none;
}

#overlay {
	overflow-y: auto;
	padding: 1rem 0;
}

#popup {
	inset: 0;
	height: 100dvh;
	box-sizing: border-box;
	padding: clamp(0.5rem, 2vw, 1rem);
	overflow-y: auto;
}

.content-popup {
	width: min(790px, calc(100vw - 2rem)) !important;
	min-height: 0 !important;
	max-height: calc(100vh - 2rem);
	box-sizing: border-box;
	top: 50%;
	transform: translateY(-50%);
	margin: 0 auto !important;
	overflow-y: auto;
	border-radius: clamp(24px, 4vw, 58px);
	background-color: transparent !important;
	background-size: 100% 100% !important;
}

@media only screen and (max-width: 600px) {
	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		letter-spacing: 0.5px;
	}

	.backgroundInformationContent {
		padding: 1rem 0.75rem;
	}

	#explicationTitle,
	#textoExplicacionInicioId {
		padding-bottom: 1rem !important;
	}

	.intro-table {
		display: block;
		width: 100%;
	}

	.intro-table tbody,
	.intro-table tr,
	.intro-table td {
		display: block;
		width: 100% !important;
		text-align: center;
	}

	.intro-table img {
		float: none !important;
		margin: 0 auto !important;
	}

	.intro-table h3 {
		text-align: center !important;
	}

	#content {
		padding: 1rem 0.5rem 0;
	}

	.imageElements {
		max-height: 175px !important;
	}

	.imageElementsUnits {
		max-height: 24px !important;
	}

	.blocks-grid {
		gap: 0.2rem;
		margin-bottom: 0.75rem;
	}

	#contentRespuesta {
		font-size: 1.65rem !important;
		line-height: 1.8;
	}

	.inputRespuesta {
		min-height: 1.45em;
	}

	.keypad {
		grid-template-columns: repeat(4, 55px);
		gap: 0.3rem;
	}

	.imageButtonsCalculadora {
		max-height: none !important;
	}

	.buttonCalculadoraWidth {
		max-width: none !important;
		padding: 0 !important;
	}

	.visual-explanation {
		grid-template-columns: 1fr;
	}

	.solution {
		padding-right: 0.25rem;
		padding-left: 0.25rem;
	}

	.didactic-steps {
		padding: 0.75rem;
	}

	.footerPage {
		min-height: 58px;
		padding: 1rem 4.5rem;
		font-size: 1.05rem;
	}

	.wrapper-beta,
	.wrapper-pi {
		width: 68px;
	}
}
