* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
body {
  display: flex;
  background-color: rgb(232, 232, 232);
  height: 100vh;
  justify-content: center;
  align-items: center;
}
.main {
  display: flex;
  margin-top: 30px;
  height: 100%;
  width: 90vw;
  justify-content: space-between;
  align-items: center;
  /* border: 2px solid black; */
}
.left {
  background-color: rgb(255, 255, 255);
  height: 100%;
  width: 30%;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.head {
  border-radius: 4px;
  min-height: 80px;
  background-color: #4caf50;
  border-color: #4caf50;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 6px -3px rgba(0, 0, 0, 0.2),
    0 10px 14px 1px rgba(0, 0, 0, 0.14), 0 4px 18px 3px rgba(0, 0, 0, 0.12);
  outline: none;
  overflow-wrap: break-word;
  position: relative;
  white-space: normal;
  font-size: 30px;
  margin-top: 10px;
  /* top: -30px; */
  width: 95%;
  /* left: 10px; */
}
.inputsection {
  /* background-color: aqua; */
  width: 100%;
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  /* align-items: center; */
}
.inputsection div {
  margin: 15px;
  padding: 15px;
  display: flex;
  justify-content: center;
  font-size: 20px;
}
.inputsection button {
  background-color: #4caf50 !important;
  border-color: #4caf50;
  color: #fff;
  height: 36px;
  min-width: 64px;
  padding: 0 16px;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
}
.inputsection .btndiv {
  display: flex;
  justify-content: center;
}
#high {
  font-weight: bold;
  margin: 2px;
}
/* right section */
.right {
  background-color: rgb(255, 255, 255);
  height: 100%;
  width: 60%;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.output {
  border-radius: 4px;
  min-height: 80px;
  background-color: #2196f3;
  border-color: #2196f3;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 6px -3px rgba(0, 0, 0, 0.2),
    0 10px 14px 1px rgba(0, 0, 0, 0.14), 0 4px 18px 3px rgba(0, 0, 0, 0.12);
  outline: none;
  /* overflow-wrap: break-word; */
  position: relative;
  white-space: normal;
  font-size: 30px;
  /* top: -30px; */
  margin-top: 10px;
  width: 95%;
  /* left: 8px; */
}
.solution {
  display: flex;
  flex-direction: column;
  width: 90%;
  height: 100%;
  justify-content: space-evenly;
  font-size: 1rem;
}
.part2 table,
td,
tr {
  border: 2px solid black;
  padding: 5px;
  font-size: 1rem;
}
table .c0,
.r1 {
  background-color: #ddd;
  font-weight: bold;
}
.✗ {
  background-color: rgb(255, 17, 0);
}
.✓ {
  background-color: #55ff00;
}
.opt {
  font-weight: 500;
  font-size: 3rem;
}
@media (max-width: 1040px) {
  /* body {
    background-color: red;
  } */
  .head {
    font-size: 20px;
  }
  #high {
    font-size: 15px;
  }
  .dd {
    display: flex;
    flex-direction: column;
  }
}
@media (max-width: 1060px) {
  /* body {
    background-color: red;
  } */
  .head {
    font-size: 18px;
  }
  #high {
    font-size: 12px;
  }
  .dd {
    display: flex;
    flex-direction: column;
  }
}
@media (max-width: 922px) {
  /* body {
    background-color: rgb(121, 90, 90);
  } */
  .head {
    font-size: 15px;
  }
  #high {
    font-size: 10px;
  }
  .dd {
    display: flex;
    flex-direction: column;
  }
  .base {
    font-size: 10px;
  }
  .part2 table,
  td,
  tr {
    font-size: 20px;
    border: 1px solid black;
    padding: 1px;
  }
  .part1,
  .part3 {
    margin: 10px;
    font-size: 17px;
  }
}
@media (max-width: 672px) {
  /* body {
    background-color: rgb(146, 140, 205);
  } */
  .head {
    font-size: 12px;
  }
  #high {
    font-size: 10px;
  }
  .dd {
    display: flex;
    flex-direction: column;
  }
  .base {
    font-size: 10px;
  }
}
@media (max-width: 672px) {
  /* body {
    background-color: rgb(49, 45, 81);
  } */
  .head {
    font-size: 0.65rem;
  }
  .main {
    display: flex;
    flex-direction: column;
  }
  .left,
  .right {
    width: 90%;
    margin: 1rem;
  }
  .dd {
    display: flex;
    flex-direction: column;
  }
  .solution {
    font-size: 21px;
  }
  .part2 table,
  td,
  tr {
    font-size: 10px;
    border: 1px solid black;
    padding: 1px;
  }
  .part1,
  .part3 {
    margin: 10px;
    font-size: 10px;
  }
}
@media (max-width: 672px) {
  /* body {
    background-color: rgb(49, 45, 81);
  } */
  .head {
    font-size: 0.65rem;
  }
  .main {
    display: flex;
    flex-direction: column;
  }
  .left,
  .right {
    width: 90%;
    margin: 1rem;
  }
  .dd {
    display: flex;
    flex-direction: column;
  }
  .solution {
    font-size: 21px;
  }
  .part2 table,
  td,
  tr {
    font-size: 8px;
    border: 0.6px solid black;
    padding: 0.6px;
  }
  .part1,
  .part3 {
    margin: 10px;
    font-size: 10px;
  }
}
