@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap');

/* General styles */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Ubuntu', sans-serif;
}

body {
  display: flex;
  background-color: rgb(232, 232, 232);
  height: 100vh;
  justify-content: center;
  align-items: center;
}


.main-heading {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  /* margin: 20px; */
}

.main {
  display: flex;
  margin-top: 30px;
  height: 100%;
  width: 90vw;
  justify-content: space-between;
  align-items: center;
  /* flex-direction: column; */
}

.left {
  background-color: rgb(255, 255, 255);
  height: 90%;
  width: 38%;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.info-algos{

  font-size: 8px;
}

.output-heading {
  font-size: 2rem;
  margin: 10px;
  color: #d3d3d3;
}

.headings {
  color: black;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 10px;
}

.frmdiv {
  display: flex;
  align-items: center;
}

.frmdiv label {
  margin-right: 10px;
}

.algodiv select {
  width: 200px;
  font-size: 1rem; 
  padding: 2px; 
}


.noofframes{
  font-size: 1rem;
  margin: 10px;
  padding: 10px;
  width: 80px;
  height: 30px;
}

.head {
  border-radius: 4px;
  background-color: #65B741;
  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;
  width: 90%;
  height: 10%;
}

.inputsection {
  width: 100%;
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.inputsection div {
  margin: 15px;
  padding: 15px;
  display: flex;
  font-size: 20px;
}
.inputsection .btndiv{
  margin-top: 0;
  justify-content: center;
}

.inputsection button {
  background-color: #4caf50; /* Removed !important */
  border-color: #4caf50;
  color: #fff;
  height: 36px;
  min-width: 64px;
  padding: 0 16px;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
}

.inputsection button:hover {
  background-color: #35407a;
  transition: ease-in-out 0.3s;
}


#high {
  /* font-size: 1rem; */
  font-weight: bold;
  margin: 2px;
}

/* right section */
.right {
  background-color: rgb(255, 255, 255);
  height: 90%;
  width: 60%;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.output {
  border-radius: 4px;
  min-height: 50px;
  background-color: #112D4E;
  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;
  /* position: relative; */
  white-space: normal;
  font-size: 20px;
  margin-top: 20px;
  width: 90%;
  height: 10%;
}

.solution {
  display: flex;
  flex-direction: column;
  width: 90%;
  height: 100%;
  justify-content: space-evenly;
  font-size: 1rem;
}

.part2 table,
.part2 td,
.part2 tr {
  border: 2px solid black;
  padding: 5px;
  font-size: 1rem;
}

table .c0,
.r1 {
  background-color: #ddd;
  font-weight: bold;
}

.✗ {
  background-color: rgba(255, 36, 36, 0.799);
}

.✓ {
  background-color: #0dff00;
}

.opt {
  font-weight: 500;
  font-size: 10rem;
}

@media (max-width: 1040px) {
  .head {
    font-size: 20px;
  }
  #high {
    font-size: 15px;
  }
  .dd {
    display: flex;
    flex-direction: column;
  }
  .output{
    font-size: 50px;
  }
}

@media (max-width: 1060px) {
  .head {
    font-size: 18px;
  }
  #high {
    font-size: 12px;
  }
  .dd {
    display: flex;
    flex-direction: column;
  }
  .output{
    font-size: 25px;
  }
}

@media (max-width: 922px) {
  .head {
    font-size: 15px;
  }
  #high {
    font-size: 10px;
  }
  .dd {
    display: flex;
    flex-direction: column;
  }
  .base {
    font-size: 10px;
  }
  .part2 table,
  .part2 td,
  .part2 tr {
    font-size: 20px;
    border: 1px solid black;
    padding: 1px;
  }
  .part1,
  .part3 {
    margin: 10px;
    font-size: 17px;
  }
  .output{
    font-size: 20px;
  }
}

@media (max-width: 672px) {
  .head {
    font-size: 12px;
  }
  #high {
    font-size: 10px;
  }
  .dd {
    display: flex;
    flex-direction: column;
  }
  .base {
    font-size: 10px;
  }
  .output{
    font-size: 20px;
  }
}