*{
  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;
}

.left {
  background: hsl(0, 0%, 95%, 0.7);
  padding: 3em 0 3em 0;
  flex: 1 1 100%;
  border-radius: 15px;
  height: fit-content;
}

.main {
  display: flex;
  padding: 2rem;
  margin: 0 auto;
  flex-direction: column;
}
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;
}

.right {
  background: hsl(0, 0%, 95%, 0.7);
  padding: 3em 0 3em 0;
  flex: 1 1 100%;
  border-radius: 15px;
  height: fit-content;
}

/* De Aqui Para Abajo Del indeg.html */

/*Iconos*/
#checkResultado1 {
  display: none;
  color: greenyellow;
  font-size: 2rem;
  position: relative;
  grid-column: 6;
  text-align: left;
}
#wrongResultado1 {
  display: none;
  color: hsl(7, 100%, 50%);
  font-size: 2rem;
  font-family: cursive;
  position: relative;
  grid-column: 6;
  text-align: left;
}


/*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);
}
.popup-congrats {
    margin: 0.25rem;
    font-size: 1.75rem;
}
.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;
}

/*Label Signo POR "X"*/
label#labelx {
  font-size: 28px;
  font-weight: bold;
  font-family: cursive;
  text-align: center;
}

.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*/
#carryMultiplicacion {
  grid-column: 2;
  grid-row: 1;
  padding-left: 10px;
  grid-template-columns: repeat(3, 3.5rem);
}
.carryinput {
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  text-align: center;
  font-size: 1.5rem;
  outline: none;
  border: none;
  font-weight: bold;
  background-color: rgba(78, 78, 78, 0.527);
}
.inputshape {
  height: 2.4rem;
  width: 3.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;
}
#inputsElements {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: repeat(6, 3.5rem);
  grid-template-rows: 2.4rem 2.5rem repeat(2, 2.5rem);
  align-content: center;
  padding: 10px;
  row-gap: .2rem;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.grid {
  display: grid;
}
.bordertop {
  border-top: 2px solid rgb(7, 7, 7);
  width: calc(3.5rem * 5);
}

/*Contenedor Arriba*/
#divarriba {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: repeat(6, 3.5rem);
  row-gap: .2rem;
}
.arriba::placeholder {
  color: rgb(158, 145, 202);
}

/*Contenedor Abajo*/
#divabajo {
  grid-column: 4;
  grid-row: 3;
  grid-template-columns: repeat(6, 3.5rem);
}
.abajo::placeholder {
  color: rgb(158, 145, 202);
}

/*Contenedor Resultado1*/
#resultado1 {
  grid-column: 1;
  grid-row: 4;
  grid-template-columns: repeat(6, 3.5rem);
  /* 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: "Tables ⇩";
}
#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: "Hide⇧";
}
#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       */

/*       Medias For Responsive Design       */
@media all and (max-width: 875px) {
  main {
    grid-template-columns:55% 25%;
    grid-template-rows: 59px 280px;
  }
  label#labelx {
    font-size: 1.75rem;
  }
  #inputsElements {
    grid-column: 1;
    margin: 0 auto;
    row-gap: 7px;
    align-content: center;
    align-items: normal;
    grid-row: 2;
    grid-template-columns: repeat(6, 3.5rem);
    grid-template-rows: 2.25rem repeat(3, 2.25rem);
  }
  #divarriba {
    grid-template-columns: repeat(4, 3.5rem);
  }
  #divabajo {
    grid-template-columns: repeat(2, 3.5rem);
  }
  #resultado1 {
    grid-template-columns: repeat(6, 3.5rem);
  }
  #checkResultado1,
  #wrongResultado1 {
    font-size: 2rem;
  }
  .carryinput{
    height: 1.7rem;
    width: 1.7rem;
    font-size: 1rem;
  }
}
@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;
  }
  .inputshape {
    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(3, 3.2rem);
  }
#botones{
  gap: 7px;
}

  #inputsElements {
    grid-template-columns: repeat(6, 3.2rem);
    grid-template-rows: 2.1rem repeat(3, 2.4rem);
    row-gap: .1rem;
  }

  .bordertop {
    width: calc(3.2rem * 5);
  }

  #divarriba {
    grid-template-columns: repeat(6, 3.2rem);

  }
  #divabajo {

    grid-template-columns: repeat(6, 3.2rem);

  }
  #resultado1 {
    grid-template-columns: repeat(6, 3.2rem);

  }
}
@media all and (max-width: 600px) {
  .test_btn{
    height: 70px;
}
  .test_lb{
      font-size: 1.25rem;
  }
  #inputsElements {
    grid-template-columns: repeat(6, 3.75rem);
    grid-template-rows: 2.1rem repeat(3, 2.5rem);
    row-gap: .2rem;
  }
  .bordertop {
    width: calc(3.75rem * 5);
  }
  #divarriba {
    grid-template-columns: repeat(5, 3.75rem);

  }
  #divabajo {

    grid-template-columns: repeat(6, 3.75rem);

  }
  #resultado1 {
    grid-template-columns: repeat(6, 3.75rem);

  }
  .inputshape{
    height: 2.5rem;
    width: 3.5rem;
    font-size: 1.2rem;
    background-color: white;
  }
  .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;
  }
}