* {
  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;
  font-family: "Bubblegum Sans","Comic Sans MS",sans-serif;
  flex-direction: column;
}

.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 {
    font-family: "Bubblegum Sans","Comic Sans MS",sans-serif;
  padding: 1px 0;
  max-width: 1024px;
  margin-top: 20px;
  margin: 1rem 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: auto;
  background-color: #98f8f8;
  box-shadow: 7px 5px 2px rgba(0, 255, 38, 0.711);
  margin: 1rem 0;
  border-radius: 10px;
  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;
  max-width: 100%;
  width: 750px;
  margin: 2rem auto;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.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;
}

.board-title {
 text-align: center;
    color: #0e2f77;
    font-size: 2rem;
    margin: 1rem;
    text-shadow: 2px 2px #aca6f2;
    font-weight: bold;
}

/* Inputs */
.fractions-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  align-items: center;
}

.fraction1,
.fraction2,
.fraction3 {
  display: grid;
  position: relative;
  gap: 7px;
  justify-items: center;
}

.column1 {
  display: flex;
  gap: 7px;
  align-items: center;
}

/* Improper to mixed fraction */
.text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.fraction-numbers {
  display: flex;
  gap: 7px;
  align-items: center;
}

.whole-number {
  font-size: 1.5rem;
  color: red;
}

.mixed-fraction-result-container {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
}

.arrow {
  font-size: 2rem;
  font-style: oblique;
  font-family: serif;
  font-weight: bold;
  color: green;
  text-shadow: 0px 0px 7px grey;
}

.fraction {
  display: grid;
  padding: 0.25rem;
  border-radius: 10px;
  background-color: yellow;
  justify-items: center;
}

.open-mixed-fraction-container {
  position: absolute;
  background-color: yellow;
  padding: 0.5rem .75rem;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  left: 0px;
  top: -50px;
  font-weight: bold;
  display: none;
}

.open-mixed-fraction-container:hover {
  transform: scale(1.1);
}

.textSelection{
    /* Disable Text Selection for this Container */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Disable Text Selection for this Container */
}

.mixed-fraction {
  box-shadow: 0px 0px 7px white;
  background-color: white;
  padding: 1rem;
  border-radius: 10px;
  z-index: 1;
  display: none;
  text-shadow: 0px 0px 7px violet;
  flex-direction: column;
  font-family: cursive;
  font-weight: bold;
  font-size: 1.25rem;
  justify-content: space-evenly;
  align-items: center;
  position: absolute;
  height: 100%;
  width: 100%;
  cursor: move;
}

.close-improper-fraction {
  cursor: pointer;
  border-radius: 7px;
  font-weight: bold;
  right: 0;
  top: 0;
  position: absolute;
  padding: 0.5rem 0.75rem;
  display: flex;
  background-color: red;
  border: none;
}

/* Improper to mixed fraction */

.column2 {
  display: flex;
  gap: 7px;
  align-items: center;
}

.Least-CF, .Least-CF2 {
  font-family: serif;
  display: none;
  text-shadow: 1px 1px 5px rgb(7, 7, 7);
  font-size: 1rem;
  color: white;
  justify-content: flex-end;
  width: 100%;
  position: absolute;
  left: 22.15px;
  gap: 2px;
}

.n1d1 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.n2d2 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.topborder {
  border-top: 4px solid rgb(7, 7, 7);
  width: calc(2.75rem);
}

.topborder2 {
  border-top: 4px solid rgb(7, 7, 7);
  width: calc(8rem);
}

.addition-container {
  width: 100%;
  justify-content: space-evenly;
  display: flex;
  align-items: center;
  flex-direction: row;
}

.slash-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.equalsign {
  text-shadow: 0px 0px 7px rgb(255, 255, 255);
}

.hcf-sign {
  font-family: serif;
  display: none;
  text-shadow: 0px 0px 7px red;
  font-size: 1.25rem;
  color: rgb(47, 255, 0);
  justify-content: flex-end;
  width: 100%;
  position: absolute;
  margin-left: 70px;
  gap: 2px;
}

.slash:hover {
  opacity: 0.1;
}

.slash {
  display: none;
  transition: 1s;
  transform: rotate(42deg);
  font-family: cursive;
  position: absolute;
  color: red;
  font-size: 2.5rem;
}

.simplifying-inputs {
  width: 35px;
  height: 35px;
  outline: none;
  border: none;
  background-color: white;
  cursor: url(/imgs/chalk.png), auto;
  text-align: center;
  font-size: 1rem;
  border-radius: 7px;
  font-weight: bold;
}

.little-inputs {
  height: 45px;
  width: 45px;
  background-color: rgb(208, 242, 255);
  font-size: 1.5rem;
  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;
  cursor: url(/imgs/chalk.png), auto;
}

.inputs {
  height: 50px;
  width: 50px;
  background-color: rgb(208, 242, 255);
  font-size: 1.75rem;
  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;
  font-weight: bold;
  cursor: url(/imgs/chalk.png), auto;
}

/* Inputs */

/*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;
  cursor: pointer;
}

/*       Boton Verificar       */
#verify_btn {
  background-color: hsl(113, 81%, 60%);
  cursor: pointer;
}

#verify_btn:hover {
  background-color: hsl(113, 81%, 46%);
  border-bottom-style: solid;
}

#verify_btn:active {
  background-color: hsl(113, 81%, 42%);
  border-bottom-style: solid;
}

/*       Boton Reintentar       */
#delete_btn {
  background-color: hsl(7, 100%, 60%);
  cursor: pointer;
}

#delete_btn:hover {
  background-color: hsl(7, 100%, 50%);
  border-bottom-style: solid;
}

#delete_btn:active {
  background-color: hsl(7, 100%, 42%);
  border-bottom-style: solid;
}

/*       Boton Resultado       */
#showresults_btn {
  background-color: hsl(180, 80%, 70%);
  cursor: pointer;
}

#showresults_btn:hover {
  background-color: hsl(180, 80%, 60%);
  border-bottom-style: solid;
}

#showresults_btn:active {
  background-color: hsl(180, 80%, 50%);
  border-bottom-style: solid;
}

/*       Boton Numeros Al Azar       */
#tryit_btn {
  background-color: hsl(245, 80%, 70%);
  cursor: pointer;
}

#tryit_btn:hover {
  background-color: hsl(245, 80%, 60%);
  border-bottom-style: solid;
}

#tryit_btn:active {
  background-color: hsl(245, 80%, 55%);
  border-bottom-style: solid;
}

/*Botones*/

#EnterValues {
    font-weight: bold;
    font-size: 24px;
    display: grid;
    text-shadow: 1px 1px grey;
    text-align: center;
    grid-column: 1;
    grid-row: 1;
    cursor:default;
}

/* 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 */

.test_section {
  padding: 2rem;
  background-color: #3fa9f5;
  box-shadow: 7px 5px 2px rgba(0, 255, 38, 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;
}

/* 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 {
font-weight: bolder;
    text-shadow: 1px 1px #fff;
    color: #2196f3;
    margin: 1rem 0rem;
    font-size: 1.5rem;
}

.row #column1,
.row #column2,
.row #column3 {
    border: 4px solid #aca6f2;
    width: 325px;
    height: auto;
    padding: 10px 0;
    padding-top: 0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg,#fff,#e4b0e140);
    box-shadow: 5px 5px 5px grey;
    gap: 7px;
}

.row #column3 {
  background-color: rgba(255, 50, 50, 0.717);
}

.train_button {
    text-decoration: none;
    text-align: center;
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(135deg,#0e2f77,#1a4ab9); 
    color: white; 
    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: linear-gradient(135deg,#0a1f4d,#0e2f77);
    transform: scale(1.05);
}

.img_boards {
  width: 100%;
    border-bottom: 2px solid #aca6f2;
  object-fit: cover;
}

.column_paragraph_for_columns {
  text-align: left;
  padding: 1rem 1rem;
}

.more {
  border-top: 1px solid grey;
  margin: 0.5rem;
  font-size: 1.5rem;
  text-align: center;
  font-weight: bold;
  padding: 1rem;
  color: #0e2f77;
  text-shadow: 0px 0px 7px grey;
}

/* Section 2 */

@media all and (max-width: 1024px) {
  main {
    grid-template-rows: 50px 350px;
  }

  .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);
  }
}

@media all and (max-width: 875px) {
  main {
    grid-template-rows: 50px 315px;
  }
    .main{
    padding: .5rem;
  }
}

@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 {
    justify-items: center;
    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;
  }

  .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);
  }

  .popup {
    padding: 0 10px 18px;
    max-width: 310px;
  }
}

@media all and (max-width: 425px) {
  .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);
  }

  .test_lb {
    font-size: 1.5rem;
  }

  .test_btn {
    height: 70px;
  }
}

@media all and (max-width: 355px) {
  main {
    overflow: scroll;
  }
}