*{
  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;
}
.main {
  display: flex;
}
.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: grid;
  background-image: url(/imgs/myboard_svg.svg);
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-color: rgb(141, 202, 255);
  background-size: contain;
  background-position: center;
  position: relative;
  grid-template-columns: 50% 26%;
  grid-template-rows: 60px 400px;
  border-radius: 15px;
  width: 750px;
  margin: 2rem auto;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

/*Iconos*/
#checkResultado1,
#checkResultado2,
#checkResultado3 {
  display: none;
  color: greenyellow;
  font-size: 2rem;

  text-align: center;
}

#wrongResultado1,
#wrongResultado2,
#wrongResultado3 {
  display: none;
  color: #fa0808;
  font-size: 2rem;
  font-family: cursive;
  text-align: center;
}
/*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;
}

.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;
}

/*Label Signo POR "X"*/
label#labelx {
  font-size: 2rem;
  font-weight: bold;
  font-family: cursive;
  text-align: center;
}
/*Label Signo MAS "+"*/
label#labelMas {
  font-size: 2rem;
  text-align: center;
  font-weight: bolder;
}


/*Llevadas Inputs*/
#carryMultiplicacion {
  display: grid;
  grid-column: 4;
  grid-row: 1;
  margin-left: 15px;
}
.carryinput {
  grid-area: 1;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  text-align: center;
  font-size: 1.75rem;
  border: none;
  outline: none;
  font-weight: bold;
  background-color: hsl(0, 0%, 80%);
}
#carrySuma {
  display: grid;
  grid-column: 2;
  grid-row: 4;
  margin-left: 15px;
}
/*Llevadas inputs*/

.grid {
  display: grid;
  grid-template-columns: repeat(8, 56px);
}
.topline {
  border-top: 2px rgb(0, 0, 0) solid;
  width: calc(55px * 6);
}
#inputsElements {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: repeat(8, 55px);
  grid-template-rows: 32px repeat(2, 55px) 32px repeat(3, 55px);
  row-gap: 2px;
  justify-content: center;
  align-items: center;
  align-content: center;
}
.inputshape {
  height: 55px;
  width: 55px;
  background-color: rgb(208, 242, 255);
  font-size: 2.25rem;
  box-shadow: 2px 2px 0.5px hsl(0, 0%, 45%, 0.7);
  border-radius: 15px;
  align-items: center;
  font-weight: bolder;
  outline: none;
  border: none;
  text-align: center;
}

/*Contenedor Arriba*/
#divarriba {
  grid-column: 4;
  grid-row: 2;
}
.arriba::placeholder {
  color: rgb(158, 145, 202);
}

/*Contenedor Abajo*/
#divabajo {
  grid-column: 5;
  grid-row: 3;
}
.abajo::placeholder {
  color: rgb(158, 145, 202);
}

/*Contenedor Resultado1*/
#resultado1 {
  grid-column: 3;
  grid-row: 5;
}

/*Contenedor Resultado2*/
#resultado2 {
  grid-column: 1;
  grid-row: 6;
}
#segundoresultado5 {
  opacity: 0;
}

/*Contenedor UltimoResultado*/
#resultadofinal {
  grid-column: 2;
  grid-row: 7;
}

/*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 {
  background-color: hsl(250, 10%, 90%);

  cursor: pointer;
}
#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: "Tables ⇧";
}
#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: 210%;
  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*/

#EnterValues {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  display: grid;
  grid-column: 1;
  grid-row: 1;
}

/* Arrow */
.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);
}
/* Arrow */
/*       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_decena.label_tablas {
  display: none;
  position: absolute;
  margin-top: 0;
  margin-right: 85px;
  min-width: 115px;
  height: 42px;
  font-size: 1rem;
  font-style: italic;
  font-weight: bold;
  box-shadow: 5px 5px 2px hsla(250, 10%, 50%, 0.7);
  background-color: hsl(250, 10%, 80%);
  border-radius: 15%;
  justify-content: center;
  justify-items:center;
}
h5#tabla_unidad.label_tablas {
  display: none;
  position: absolute;
  margin-top: 0;
  margin-right: -150px;
  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;
}

.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%);
}

.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;
}

/* 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 */


/*       Funcion Dropdown De Tablas       */

@media all and (max-width: 1024px) {
  main {
    grid-template-rows: 50px 350px;
  }
  label#labelx {
    font-size: 29px;
  }
  #carryMultiplicacion,
  #carrySuma {
    margin-left: 10px;
  }
  label#labelMas {
    font-size: 2rem;
  }
  #carryinput {
    width: 26px;
    height: 26px;
    font-size: 1rem;
  }
  .grid {
    grid-template-columns: repeat(8, 46px);
  }
  .inputshape {
    height: 45px;
    width: 45px;
    font-size: 1.5rem;
    border: none;
  }
  #inputsElements {
    grid-template-columns: repeat(8, 46px);
    grid-template-rows: 26px repeat(2, 46px) 26px repeat(3, 48px);
  }
  .topline {
    border-top: 2px rgb(0, 0, 0) solid;
    width: calc(45px * 6);
  }
  #checkResultado1,
  #checkResultado2,
  #checkResultado3 {
    font-size: 29px;
  }
  #wrongResultado1,
  #wrongResultado2,
  #wrongResultado3 {
    font-size: 29px;
  }
}
@media all and (max-width: 875px) {
  main {
    grid-template-rows: 50px 350px;
  }
}
@media all and (max-width: 600px) {
  
  .test_section{
    flex-direction: column;
  }
  .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;
  }
  #botones {
    grid-row: 3;
    grid-column: 1;
    gap: 10px;
  }
  .botonesShape {
    width: 105px;
    height: 42px;
    font-size: 1rem;
  }
  main {
    grid-template-columns: 1fr;
    background-image: none;
    background: linear-gradient(hsl(249, 58%, 75%, 0.7), hsl(327, 100%, 87%));
    width: 100%;
    grid-template-rows: 42px 400px 270px 60px;
  }
  .main {
    width: 100%;
  }
  .sectionArrow {
    grid-column: 1;
    grid-row: 4;
  }
  label#labelx {
    font-size: 2.1rem;
  }
  #carryMultiplicacion,
  #carrySuma {
    margin-left: 10px;
  }
  label#labelMas {
    font-size: 50px;
  }
  #carryinput {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    outline: none;
    border: none;
  }
  .grid {
    grid-template-columns: repeat(8, 52px);
  }
  .inputshape {
    height: 50px;
    width: 50px;
    font-size: 1.7rem;
    outline: none;
    border: none;
  }
  #inputsElements {
    grid-template-columns: repeat(8, 52px);
    grid-template-rows: 35px repeat(2, 52px) 42px repeat(3, 55px);
    row-gap: 2px;
  }
  .topline {
    width: calc(50px * 6);
  }
  #checkResultado1,
  #checkResultado2,
  #checkResultado3 {
    font-size: 2.1rem;
  }
  #wrongResultado1,
  #wrongResultado2,
  #wrongResultado3 {
    font-size: 2.1rem;
  }
  .popup{
    padding: 0 10px 18px;
    max-width: 310px;
}
}
@media all and (max-width: 425px) {

  label#labelx {
    font-size: 29px;
  }
  #carryMultiplicacion,
  #carrySuma {
    margin-left: 7px;
  }
  label#labelMas {
    font-size: 34px;
  }
  #carryinput {
    width: 1.4rem;
    height: 1.4rem;
    font-size: 1rem;
  }
  .grid {
    grid-template-columns: repeat(8, 39px);
  }
  .inputshape {
    height: 37px;
    width: 37px;
    font-size: 1.45rem;
    box-shadow: 1px 1px 0.5px hsl(0, 0%, 45%, 0.7);
    outline: none;
  }
  #inputsElements {
    grid-template-columns: repeat(8, 39px);
    grid-template-rows: 25px repeat(2, 39px) 27px repeat(3, 42px);
    row-gap: 1.5px;
  }
  .topline {
    border-top: 2.99px rgb(0, 0, 0) solid;
    width: calc(37px * 6);
  }
  #checkResultado1,
  #checkResultado2,
  #checkResultado3 {
    font-size: 1.45rem;
  }
  #wrongResultado1,
  #wrongResultado2,
  #wrongResultado3 {
    font-size: 1.45rem;
  }
  .test_lb {
    font-size: 1.5rem;
  }
  .test_btn {
    height: 70px;
  }
}
@media all and (max-width: 355px) {
  main {
    overflow: scroll;
  }
}
