*{
  box-sizing: border-box;
  margin: 0;
}
body{
  background: hsla(245, 75%, 80%, 0.25);
  color:#070707;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.head_title {
  font-size: 4rem;
  text-align: center;
  background: hsla(290, 100%, 88%, 0.77);
  color: #3fa9f5;
  border-radius: 10px;
  padding: 2rem;
  font-family: cursive;
}
.title {
  margin: 2rem 0;
}
.paragraph_text {
  padding: 1px 0;
  max-width: 1024px;
  margin-top: 20px;
  margin: 2rem auto;
  font-size: 1.25rem;
  border-bottom: 1px solid grey;
  text-align: left;
  line-height: 1.5;
  display: flex;
  align-items: center;
}
.head_text {
  margin: 1rem;
}
.paragraph_text p {
  text-wrap: balance;
}
.head_section {
  margin: 0;
}
.head_subtitle {
  text-align: left;
  font-size: 2.5rem;
  margin-bottom: 1.1rem;
  color: green;
  line-height: 1.25;
}
.head_subtitle2 {
  text-align: left;
  margin-bottom: 1.1rem;
}
.image-section {
  width: 42%;
  background-color: rgba(255, 0, 0, 0.7);
  box-shadow: 7px 5px 2px rgba(255, 0, 0, 0.5);
  margin: 1rem 0;
  border-radius: 28%;
  display: flex;
  padding: 1.5rem;
}

.head_section_li_n {
  line-height: 1.1;
}
.head_section_li_span {
  color: green;
  font-weight: 700;
}

.main {
  display: flex;
  padding: 2rem;
  margin: 0 auto;
  flex-direction: column;
}
.btn_tour{
  width: 85px;
  height: 29px;
  border-radius: 15px;
  background-color: rgb(50, 118, 67);
  color: rgb(249, 250, 255);
  border: none;
  font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer ;
  position: absolute;
  bottom: 100%;
  right: 0%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.btn_tour:hover{
  transform: scale(1.1);
}
main {
  display: grid;
  margin: 0 auto;
  max-width: 70%;
  background-image: url(/imgs/myboard_svg.svg);
  background-repeat:no-repeat;
  background-position:center;
  background-attachment:scroll;
  background-color: rgb(141, 202, 255);
  width: 650px;
  position: relative;
  padding: 1rem;
  grid-template-columns: 50% 26%;
  grid-template-rows: 45px 299px;
  align-items: center;
  justify-content: center;
  cursor: url(/imgs/chalk.png), auto;
  border-radius: 15px;
}

/*Iconos*/
#checkResultado1 {
  display: none;
  color: greenyellow;
  font-size: 2.15rem;
  width: 37px;
}

#wrongResultado1 {
  display: none;
  color: hsl(7, 100%, 50%);
  font-size: 2.15rem;
  font-family: cursive;
}
/*Iconos*/

.popup{
  max-width:400px;
  width: 400px;
  min-width: 300px;
  background: #fff;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
  position: absolute;
  top:0;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.1);
  text-align: center;
  padding: 0 30px 60px;
  color: hsl(126, 100%, 29%);
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  z-index: 1;
  box-shadow: 5px 5px 2px hsl(0, 0%, 45%, 0.7);
}

.open-popup{
  visibility: visible;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
}

.popup img{
  max-width: 100px;
  margin-top: -50px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  background-color: hsl(126, 100%, 42%);
}

.popup h2{
  font-size: 1.7rem;
  font-weight: 500;
  margin: 30px 0 10px;
  text-shadow: none;
}

.popup button{
  width: 100%;
  margin-top: 50px;
  padding: 10px 0;
  background-color:hsl(126, 100%, 46%);
  color: #fff;
  border: 0;
  outline: none;
  font-size: 1.2rem;
  border-radius: 4px;
  box-shadow: 5px 5px 2px hsl(0, 0%, 45%, 0.7);
  cursor: pointer;
}

/*    Contenedor Animacion       */
#circles.container {
  display: none;
  justify-items: end;
  position: absolute;
}
/*Circulo Base*/
.circle {
  position: absolute;
  width: 29vh;
  height: 29vh;
  background: transparent;
  border-radius: 50%;
  animation: animate 4.5s linear infinite;
  overflow: visible;
}
@keyframes animate {
  0% {
    background: hsl(0deg 0% 100% / 50%);
  }
  50% {
    background: hsl(0deg 0% 50% / 75%);
  }
  100% {
    background: hsl(0deg 13.73% 50% / 70%);
  }
}
/*Circulo Before*/
.circle::before {
  position: absolute;
  content: "";
  top: 100px;
  bottom: 100px;
  left: 100px;
  background: hsl(119.22deg 92% 49.02% / 10%);
  right: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  animation: animatebefore 4.5s linear infinite;
}
@keyframes animatebefore {
  0% {
    top: -10%;
    bottom: -10%;
    left: -10%;
    right: -10%;
    background: hsl(119.22deg 100% 50% / 40%);
  }
  75% {
    background: hsl(119.22deg 92% 50%);
    top: 50%;
    bottom: 50%;
    left: 50%;
    right: 50%;
  }
  100% {
    background: hsl(119.22deg 92% 50%);
    top: 50%;
    bottom: 50%;
    left: 50%;
    right: 50%;
    align-items: unset;
  }
}
/*Circulo After*/
.circle::after {
  position: absolute;
  top: 175px;
  bottom: 175px;
  left: 175px;
  right: 175px;
  content: "¡Bien Hecho!";
  border-radius: 50%;
  background: #8700a96b;
  animation: animateafter 4.5s linear infinite;
  display: flex;
  font-size: 0rem;
  justify-content: center;
  align-items: center;
  color: #00800000;
}
@keyframes animateafter {
  10% {
    top: 1%;
    bottom: 1%;
    left: 1%;
    right: 1%;
    background: hsl(287.93deg 100% 35% / 10%);
  }
  27% {
    top: -29%;
    right: -29%;
    bottom: -29%;
    left: -29%;
    background: hsl(287.93deg 100% 35% / 40%);
    font-size: 2.9rem;
    color: #00ff18;
  }
  100% {
    top: -42%;
    right: -42%;
    bottom: -42%;
    left: -42%;
    background: hsl(0deg 0% 100% / 0%);
    font-size: 4.5rem;
    color: #00ff18;
  }
}

/*Icono De Visto O Check*/
.checkIcon {
  content: url(https://i.cloudup.com/2ZAX3hVsBE-3000x3000.png);
  position: absolute;
  width: 27vh;
  height: 27vh;
}

/*Contenedor Del Icono De Check*/
div.containerIcon {
  display: grid;
  justify-items: end;
}
/*       Contenedor Animacion       */

/*Label Signo POR "X"*/
label#labelx {
  font-size: 28px;
  font-weight: bold;
  font-family: cursive;
  text-align: center;
}

/*Llevadas Inputs*/
#carryMultiplicacion {
  grid-column: 2;
  grid-row: 1;
  padding-left: 10px;
  grid-template-columns: repeat(2, 4.2rem);
}
.carryinput {
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  text-align: center;
  font-size: 1.5rem;
  outline: none;
  border: none;
  font-weight: bold;
  background-color: rgba(78, 78, 78, 0.527);
}

.inputsShape {
  height: 2.9rem;
  width: 4rem;
  font-size: 29px;
  font-weight: bolder;
  background-color: hsl(0, 0%, 100%);
  align-items: center;
  border-radius: 10px;
  background-color: rgb(208, 242, 255);
  justify-content: center;
  text-align: center;
  outline: none;
  border: none;
}

.board-title{
  text-align: center;
  color: rgb(255, 7, 7);
  font-size: 1.5rem;
  margin: 1rem;
  text-shadow: 0px 0px 7px green;
  font-weight: bold;
}
/*Llevadas inputs*/
#inputsElements {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: repeat(5, 4.2rem);
  grid-template-rows: 2.4rem 2.99rem repeat(2, 2.99rem);
  align-content: center;
  padding: 10px;
  row-gap: .2rem;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.bordertop {
  border-top: 2px solid rgb(7, 7, 7);
  width: calc(4.2rem * 4);
}
.grid {
  display: grid;
}

/*Contenedor Arriba*/
#divarriba {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: repeat(5, 4.2rem);
  row-gap: .2rem;
  /* display: flex; */
}
.arriba::placeholder {
  color: rgb(158, 145, 202);
}

/*Contenedor Abajo*/
#divabajo {
  grid-column: 3;
  grid-row: 3;
  grid-template-columns: repeat(5, 4.2rem);
  /* display: flex; */
}
.abajo::placeholder {
  color: rgb(158, 145, 202);
}

/*Contenedor Resultado1*/
#resultado1 {
  grid-column: 1;
  grid-row: 4;
  grid-template-columns: repeat(5, 4.2rem);
  /* display: flex; */
}

/* Section 2 */
.section_2{
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
  /* margin-top: 1rem;
  padding-top: 1rem; */
  padding-bottom: 1rem;

  text-align: center;
  display: flex;
  justify-content: center;
}  
.row{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 1rem;
}
.column-title h2{
  margin: 1rem 0rem;
  font-size: 1.75rem;
  font-weight: 700;
}
.row #column1, 
.row #column2,
.row #column3{
  width: 325px;
  height: auto;
  padding: 10px 0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: rgba(100, 250, 250, 0.252);
  box-shadow: 5px 5px 5px grey;
  gap: 7px;
}
.train_button {
  text-decoration: none;
  text-align: center;
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 1px;
  background-color: #4CAF50; 
  color: white; 
  border: 2px solid #4CAF50;
  border-radius: 10px;
  padding: 16px 32px;
  margin: 4px  2px 1rem 2px;
  -webkit-transition-duration: 0.2s; /* Safari */
  transition-duration: 0.2s;
  cursor: pointer;
  margin-top: auto;
  align-self: center;
  box-shadow: 0px 0px 10px grey;
}
.train_button:hover {
  background-color: rgb(255, 255, 255);
  color: #4CAF50;
  transform: scale(1.1);
}
.img_boards{
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}
.column_paragraph_for_columns{
  text-align: left;
  padding: 1rem 1rem;
}
.more{
  border-top: 1px solid grey;
  margin: .5rem;
  font-size: 1.5rem;
  text-align: center;
  font-weight: bold;
  padding:1rem;
  color: rgb(255, 7, 7);
  text-shadow: 0px 0px 7px grey;
}
/* Section 2 */

/*Botones*/
#botones {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  align-content: center;
  gap: 10px;
  justify-items: center;
  position: relative;
}
.botonesShape {
  width: 80px;
  height: 45px;
  font-size: 1rem;
  letter-spacing: 1px;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  display: grid;
  border-radius: 15px;
  font-weight: bolder;
  align-items: center;
  justify-content: center;
  border: none;
}
/*       Boton Verificar       */
#boton {
  background-color: hsl(113, 81%, 60%);
  cursor: pointer;
}
#boton:hover {
  background-color: hsl(113, 81%, 46%);
  border-bottom-style: solid;
}
#boton:active {
  background-color: hsl(113, 81%, 42%);
  border-bottom-style: solid;
}
/*       Boton Reintentar       */
#botonreset {
  background-color: hsl(7, 100%, 60%);
  cursor: pointer;
}
#botonreset:hover {
  background-color: hsl(7, 100%, 50%);
  border-bottom-style: solid;
}
#botonreset:active {
  background-color: hsl(7, 100%, 42%);
  border-bottom-style: solid;
}
/*       Boton Resultado       */
#resultado_Correcto {
  background-color: hsl(180, 80%, 70%);
  cursor: pointer;
}
#resultado_Correcto:hover {
  background-color: hsl(180, 80%, 60%);
  border-bottom-style: solid;
}
#resultado_Correcto:active {
  background-color: hsl(180, 80%, 50%);
  border-bottom-style: solid;
}
/*       Boton Numeros Al Azar       */
#intentarBtn {
  background-color: hsl(245, 80%, 70%);
  cursor: pointer;
}
#intentarBtn:hover {
  background-color: hsl(245, 80%, 60%);
  border-bottom-style: solid;
}
#intentarBtn:active {
  background-color: hsl(245, 80%, 55%);
  border-bottom-style: solid;
}
/*       Boton Dropdown De Tablas       */
#dropdown_boton {
  cursor: pointer;
  color: hsla(0, 10%, 10%);
  background-color: hsl(250, 10%, 90%);
  display: grid;
}

#dropdown_boton::before {
  content: "Tablas ⇩";
}
#dropdown_boton:hover {
  background-color: hsl(250, 10%, 85%);
  box-shadow: 5px 5px 2px hsl(250, 10%, 45%, 0.7);
}
#dropdown_boton:active::before {
  content: "Esconder";
}
#dropdown_boton:active {
  background-color: hsl(250, 10%, 95%);
  box-shadow: 5px 5px 2px hsl(250, 10%, 55%, 0.7);
}

/*       Boton Cerrar Contenedor De Tablas       */
.close-btn {
  width: 70%;
  height: 2rem;
  margin: 0 auto;
  background-color: rgb(70, 70, 70);
  color: silver;
  font-size: 1em;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.close-btn:hover,
.close-btn:focus {
  background-color: hsl(0, 0%, 50%);
}
/*Botones*/

.sectionArrow {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
justify-items: center;
padding: 1.8rem;
}
.arrow_labl {
  display: grid;
  font-size: 1rem;
  font-weight: bolder;
  align-items: center;
  align-content: center;
  grid-row: 1;
}
.arrow_buttons {
  display: grid;
  width: 42px;
  grid-row: 2;
  justify-content: center;
  height: 1.6rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background-color: rgb(170, 251, 170);
}
.enterValues {
  text-align: center;
 font-size: 1.5rem;
  font-weight: bold;
  display: grid;
  grid-column: 1;
  grid-row: 1;
}

.test_section {
  padding: 2rem;
  background-color: rgba(255, 0, 0, 0.7);
  box-shadow: 7px 5px 2px rgba(255, 0, 0, 0.5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  border: 1px solid grey;
  margin: 1rem auto;
  max-width: 750px;
}
.test_btn {
  height: 100px;
  width: 250px;
  font-size: 2rem;
  font-weight: 900;
  font-family: cursive;
  border-radius: 18px;
  background-color: #b4ffff;
  letter-spacing: 1px;
  cursor: pointer;
}
.test_btn:hover {
  transform: scale(1.1);
}
.test_lb {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  color: white;
}

/*       Funcion Dropdown De Tablas       */
#tablas_Dropdown {
  display: flex;
  justify-content: center;
  position: absolute;
  max-width: 500px;
  top: 20%;
  right: 50%;
  cursor: move;
  z-index: 1;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.div_dropdown {
  color: silver;
  border-style: 1px solid rgb(0, 0, 0);
  background: hsl(250, 10%, 80%);
  position: absolute;
  border-top-width: 5px;
  margin-top: 50px;
  min-width: 110px;
  font-style: italic;
  display: grid;
  box-shadow: 5px 5px 2px hsl(250, 10%, 50%, 0.7);
  border-radius: 15%;
  justify-items:center;
}

h5#tabla_unidad.label_tablas {
  display: none;
  position: absolute;
  margin-top: 0;
  margin-right: 0px;
  width: 115px;
  height: 42px;
  font-size: 1rem;
  font-style: italic;
  font-weight: bold;
  box-shadow: 5px 5px 2px hsl(250, 10%, 50%, 0.7);
  background-color: hsl(250, 10%, 80%);
  border-radius: 15%;
  justify-content: center;
  justify-items:center;
}

.numero_tabla {
  color: hsl(0, 0%, 1%);
}

.numero_tabla2 {
  color: hsl(0, 0%, 1%);
}

.decenas_resultado {
  color: hsl(0, 0%, 1%);
}

.unidad_resultado {
  color: hsl(0, 0%, 1%);
}

.aPora {
  color: hsl(0, 0%, 10%);
}

.bPorb {
  color: hsl(0, 0%, 10%);
}
/*       Funcion Dropdown De Tablas       */
@media all and (max-width: 875px) {
  main {
    grid-template-columns:55% 25%;
    grid-template-rows: 59px 280px;
  }
  .carryinput {
    height: 1.7rem;
    width: 1.7rem;
    font-size: 1rem;
  }
  #checkResultado1 {
    font-size: 2rem;
  }
  #wrongResultado1 {
    font-size: 2rem;
  }
  label#labelx {
    font-size: 1.75rem;
  }
  .bordertop {
    width: calc(3.75rem * 4);
  }
  #carryMultiplicacion {
    grid-template-columns: repeat(2, 3.75rem);
  }
  .inputsShape {
    height: 2.5rem;
    width: 3.5rem;
    font-size: 1.2rem;
  }
  #inputsElements {
    grid-template-columns: repeat(5, 3.75rem);
    grid-template-rows: 1.8rem repeat(3, 2.5rem);
  }
  #divabajo {
    grid-template-columns: repeat(5, 3.75rem);
  }
  #divarriba {
    grid-template-columns: repeat(5, 3.75rem);
  }
  #resultado1 {
    grid-template-columns: repeat(5, 3.75rem);
  }
}
@media all and (max-width: 975px) {
  main {
    max-width: 100%;
    grid-template-columns: 55% 25%;
    grid-template-rows: 59px 280px;
  }
  .botonesShape {
    width: 75px;
    height: 42px;
    font-size: .9rem;
  }
}
@media all and (max-width: 650px) {
  .paragraph_text {
    flex-direction: column;
    margin: 1rem auto;
  }
  .head_section_li_n {
    line-height: 1.25;
  }
  .image-section {
    width: auto;
    padding: 1rem;
    margin: 1rem;
  }
  .img {
    display: none;
  }
  .head_title {
    font-size: 2rem;
    padding: 1rem;
  }
  .paragraph_text p {
    text-align: center;
  }
  .head_subtitle2 {
    text-align: center;
    margin-bottom: 1rem;
  }
  .head_subtitle {
    line-height: 1;
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  .head_text {
    margin: 1rem;
  }
  main {

    grid-template-columns: 55% 29%;
    grid-template-rows: 42px 260px;
  }
  .inputsShape {
    height: 2.4rem;
    width: 2.99rem;
    font-size: 24px;
}

  #checkResultado1 {
    display: none;
    color: greenyellow;
    font-size: 1.7em;
    width: 37px;
  }

  #wrongResultado1 {
    display: none;
    color: hsl(7, 100%, 50%);
    font-size: 1.7em;
    font-family: cursive;
  }
  label#labelx {
    font-size: 1.75rem;
    font-weight: bold;
    font-family: cursive;
  }
  #carryMultiplicacion {
    grid-column: 2;
    grid-row: 1;
    padding-left: 10px;
    grid-template-columns: repeat(2, 3.2rem);
  }
#botones{
  gap: 7px;
}

  #inputsElements {
    grid-template-columns: repeat(5, 3.2rem);
    grid-template-rows: 2.1rem repeat(3, 2.4rem);
    row-gap: .1rem;
  }

  .bordertop {
    width: calc(3.2rem * 4);
  }
  #divarriba {
    grid-template-columns: repeat(5, 3.2rem);

  }
  #divabajo {

    grid-template-columns: repeat(5, 3.2rem);

  }
  #resultado1 {
    grid-template-columns: repeat(5, 3.2rem);

  }
}
@media all and (max-width: 600px) {
  #inputsElements {
    grid-template-columns: repeat(5, 3.75rem);
    grid-template-rows: 2.1rem repeat(3, 2.5rem);
    row-gap: .2rem;
  }
  .bordertop {
    width: calc(3.75rem * 4);
  }
  #divarriba {
    grid-template-columns: repeat(5, 3.75rem);

  }
  #divabajo {

    grid-template-columns: repeat(5, 3.75rem);

  }
  #resultado1 {
    grid-template-columns: repeat(5, 3.75rem);

  }
  .inputsShape{
    height: 2.5rem;
    width: 3.5rem;
    font-size: 1.2rem;
    background-color: white;
  }
  .test_btn{
    height: 70px;
}
.test_lb{
    font-size: 1.25rem;
}
  .test_section {
    flex-direction: column;
    width: 100%;
  }
  .head_section_li_n {
    font-size: 1.2rem;
  }
  .head_title {
    font-size: 2rem;
  }
  .main{
    width: 100%;
    padding: .1rem;
  }
  main {
    max-width: 100%;
    width: 645px;
    padding: 1rem;
    background-image: none;
    background-color: rgb(155, 155, 255);
    grid-template-columns: 100%;
    grid-template-rows: 45px 250px 242px 50px;
  }
  #botones {
    grid-row: 3;
    grid-column: 1;
    gap: 10px;
  }
  .sectionArrow {
    grid-column: 1;
    grid-row: 4;
  }
  .botonesShape {
    width: 105px;
    height: 42px;
    font-size: 1rem;
  }
  .popup{
    padding: 0 10px 18px;
    max-width: 310px;
}

}
@media all and (max-width:300px){
  .main{
      overflow: scroll;
  }
}