*{
  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;
}
::placeholder {
  color: rgba(148, 148, 148, 0.74);
}
.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, 255, 0.5);
    box-shadow: 7px 5px 2px rgba(0, 72, 255, 0.711);
  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;
  flex: 1 1;
  width: 100%;
  margin: 0 auto;
  max-height: fit-content;
  font-family: sans-serif;
}
main {
  background: hsla(290, 100%, 88%, 0.77);
  padding: 2em 0 2em 0;
  display: grid;
  margin: 0 auto;
  grid-template-columns: 1fr;
  grid-template-rows: 28px 75px 750px 100px;
  position: relative;
  border-radius: 15px;
  max-width: 100%;
  width: 750px;
  border: 1px solid rgb(100, 100, 255);
  scroll-behavior: smooth;
  scroll-snap-align: start;
  scroll-snap-type: y mandatory;
}

/*Popup*/
.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;
}
/*Popup*/

/*inputs models*/
.inputs {
  width: 70px;
  height: 55px;
  border-radius: 15px;
  background-color: hsla(250, 100%, 85%, 0.77);
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
  outline: none;
  color: #070707da;
  border: none;
  font-family: cursive;
  box-shadow: 2px 2px 0.5px hsla(0, 0%, 45%, 0.7);
}
/* Buttons */
.buttons {
  display: grid;
  height: 70px;
  width: 100px;
  font-size: 1.45rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bolder;
  color: rgb(59, 124, 124);
  letter-spacing: 1px;
  line-height: 1;
  border-radius: 18px;
  cursor: pointer;
  border: none;
  box-shadow: 4px 4px 2px#919090;
  align-items: center;
}

#tryit-btn {
  color: #D5CCFF;
  background-color: #7E1111;
}
#tryit-btn:hover,
#tryit-btn:focus {
  color: rgb(250, 245, 245);
  background-color: #5e5e5e;
}
#tryit-btn:active {
  background-color: #292929;
}

#verify-btn {
  color: #272727;
  background-color: hwb(100 42% 0%);
}

#verify-btn:hover {
  color: #070707;
  background-color: hwb(100 18% 0%);
}
#verify-btn:active,
#verify-btn:focus {
  background-color: hwb(110 0% 0%);
}

#delete-btn {
  color: #292929;
  background-color: hsl(7, 7%, 75%);
}
#delete-btn:hover {
  color: #080808;
  background-color: hsl(0, 0%, 58%);
}
#delete-btn:active,
#delete-btn:focus {
  background-color: hsl(0, 0%, 28%);
}

#show-result {
  background-color: rgb(245, 245, 245);
}
#show-result:hover,
#show-result:focus {
  color: rgb(70, 145, 145);
  background-color: hwb(0 84% 10%);
}
#show-result:active {
  color: rgb(70, 145, 145);
  background-color: hwb(0 100% 28%);
}

.arrow_section {
  grid-row: 4;
  display: grid;
  grid-template-rows: 0.8rem, 2.1rem;
  justify-content: space-evenly;
  align-items: center;
  align-content: center;
}
.arrow_buttons {
  grid-row: 2;
  width: 2.5rem;
  display: grid;
  align-content: center;
  justify-content: center;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  height: 1.8rem;
}
.arrow_labl {
  font-size: 1rem;
  display: grid;
  align-content: center;
  justify-content: center;
  font-weight: bolder;
  grid-row: 1;
}
.test_section {
  padding: 2rem;
  background-color: #9E009C;
  box-shadow: 7px 5px 2px rgba(0, 72, 255, 0.711);
  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;
}
.board-title{
  text-align: center;
  color: rgb(24,24,24);
  font-size: 1.5rem;
  margin: 1rem;
  text-shadow: 0px 0px 7px green;
  font-weight: bold;
}

/* Choose Mode Container Elements */
.choosemode {
  display: grid;
  align-content: center;
  grid-row: 1;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 1px;
  font-family: monospace;
  text-align: center;
}
.divisionmode {
  display: grid;
  /*   font-size: 0.75rem; */
  font-weight: bold;
  font-family: "Courier New", Courier, monospace;
  grid-row: 2;
  align-items: center;
  justify-content: center;
  gap: 0rem 5rem;
  align-content: center;
}
.buttonmode {
  display: grid;
  align-content: center;
  justify-content: center;
  width: fit-content;
  background-color: hsla(0, 0%, 100%, 0.7);
  height: fit-content;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  justify-items: center;
}
.activemode {
  background-color: hsla(0, 0%, 85%, 0.5);
  transform: scale(1.1);
  border: 1px solid rgb(10, 10, 10);
  font-size: bolder;
}
.btn1 {
  grid-row: 1;
  transition: 0.1s;
}
.btn1:hover,
.btn2:hover {
  transform: scale(1.1);
}
.btn2 {
  grid-row: 1;
  transition: 0.1s;
}

#labelam {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  font-family: "Courier New", Courier, monospace;
}
#labeleu {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  font-family: "Courier New", Courier, monospace;
}

/*       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%);
}
/*       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: 142px;
  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%);
}

/* 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: #4D4D4D; 
  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(24,24,24);
  text-shadow: 0px 0px 7px grey;
}
/* Section 2 */

/* Choose Mode Container Elements */
@media all and (max-width: 850px) {
  main {
    width: 100%;
    grid-template-columns: 100%;
    grid-template-rows: 28px 75px 750px 100px;
    grid-column: 1;
    grid-row: 2;
    margin: 0 auto;
    padding-top: 1em;
    border: none;
  }
}
@media all and (max-width: 716px) {
  .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-rows: 28px 75px 550px 100px;
  }
  .main {
    height: 800px;
  }
  .inputs {
    width: 55px;
    height: 45px;
    font-size: 2em;
  }
  .checkbox-input {
    width: 1.1rem;
    height: 1.1rem;
  }
  .buttons {
    height: 70px;
    width: auto;
    border: 2.5px solid rgb(134, 134, 255);
    font-size: 1.5em;
    color: rgb(100, 100, 100);
  }
  .lineminus {
    align-items: end;
    font-weight: 400px;
    font-size: 2em;
    color: rgba(250, 56, 56, 0.712);
  }
}
@media all and (max-width: 600px) {
  .checkbox-input {
    width: 0.9rem;
    height: 0.9rem;
  }
  .inputsContainer {
    width: 100%;
  }
}
@media all and (max-width: 575px) {
  main {
    grid-template-rows: 28px 75px 480px 100px;
  }
  .main {
    height: 750px;
  }
  .inputs {
    width: 45px;
    height: 42px;
    font-size: 1.5em;
  }
  .checkbox-input {
    width: 0.7rem;
    height: 0.7rem;
  }
  .buttons {
    height: 58px;
    width: auto;
    border: 2px solid rgb(134, 134, 255);
    font-size: 1.2em;
    color: rgb(100, 100, 100);
  }
  .lineminus {
    font-weight: 200px;
    font-size: 2em;
  }
}
@media all and (max-width: 500px) {
  main {
    grid-template-rows: 28px 75px 410px 100px;
  }
  .main {
    height: 650px;
  }
  .popup {
    padding: 0 15px 28px;
    max-width: 390px;
  }
  .inputs {
    width: 2.2rem;
    height: 2.1rem;
    font-size: 1.2em;
  }
  .test_section {
    flex-direction: column;
    width: 100%;
  }
  .buttons {
    height: 50px;
    width: auto;
    border: 2px solid rgb(134, 134, 255);
    font-size: 1em;
    color: rgb(100, 100, 100);
  }
  .lineminus {
    font-weight: 100;
    font-size: 2em;
  }
  .head_section_li_n {
    font-size: 1.2rem;
  }
  .head_title {
    font-size: 2rem;
  }
}
@media all and (max-width: 400px) {
  main {
    grid-template-rows: 28px 75px 400px 100px;
  }
  .popup {
    padding: 0 10px 18px;
    max-width: 310px;
  }
  .inputs {
    width: 2rem;
    height: 1.9rem;
    font-size: 1rem;
  }
  .buttons {
    height: 50px;
    width: auto;
    border: none;
    font-size: 1em;
    color: rgb(100, 100, 100);
  }
  .lineminus {
    font-weight: 100;
    font-size: 2em;
  }
  .buttonmode {
    width: 5.5rem;
  }
  .choosemode {
    font-size: 1rem;
  }
  .test_lb {
    font-size: 1.5rem;
  }

  .test_btn {
    height: 70px;
  }
}
@media all and (max-width: 359px) {
  main {
    grid-template-rows: 28px 75px 350px 100px;
  }
  .main {
    height: 600px;
  }
  .inputs {
    width: 1.8rem;
    height: 1.6rem;
    font-size: 0.8em;
  }
  .buttons {
    height: 2rem;
    width: 55px;
    font-size: 0.7em;
    border-radius: 15px;
  }
  .lineminus {
    font-weight: 100;
    font-size: 1.5em;
  }
}
@media all and (max-width: 310px) {
  main {
    overflow-x: scroll;
  }
  .main {
    height: 400px;
  }
}
