:root {
  --col: rgb(240, 240, 240);
}
* {
  margin: 0;
  padding: 0;
}
#cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  transition: 2s;
}
.allbtn {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  gap: 5px;
  padding: 10px 10px 10px;
  transition: 1.5s ease;
}
.btn,
.operators {
  border: none;
  border-radius: 10px;
  font-size: 30px;
  padding: 20px 10% 30px 10%;
  background: linear-gradient(
    135deg,
    rgba(240, 240, 240, 0.9),
    rgba(255, 255, 255, 0.6)
  );
  font-weight: bolder;
}
.btn:hover,
.operators:hover {
  background-color: rgb(144, 144, 144);
  transition-duration: 0.5s;
}
.btn:active,
.operators:active {
  transform: scale(0.97);
}
body {
  width: 100%;
  height: fit-content;
  background: url("./img/pexels-pixabay-259698.jpg");
  background-position: center;
  background-size: cover;
}
main {
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  display: flex;
  gap: 1%;
  height: inherit;
  /* background: linear-gradient(135deg, rgba(240, 240, 240, 0.9), rgba(255, 255, 255, 0.6)); */
}
#mem {
  max-height: inherit;
  flex-direction: column;
  justify-content: space-between;
  overflow: auto;
  background: linear-gradient(
    135deg,
    rgba(240, 240, 240, 0.4),
    rgba(255, 255, 255, 0.1)
  );
  transition: 2s;
}
#list {
  padding: 40px 50px 50px 50px;
}
.top {
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: center;
}
.header_coat {
  position: sticky 1px;
}
#clearmem {
  padding: 15px 20px 15px 20px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(240, 240, 240, 0.9),
    rgba(255, 255, 255, 0.6)
  );
  border: none;
  position: sticky;
  color: #696969;
  font-weight: 700;
}
#clearmem:active {
  transform: scale(0.97);
}
#clearmem:hover {
  background: linear-gradient(
    135deg,
    rgba(240, 240, 240, 0.5),
    rgba(255, 255, 255, 0.3)
  );
}

.display {
  width: 100%;
  height: fit-content;
  font-size: 50px;
  padding: 20px 0 20px 0;
  text-align: end;
  border: none;
  color: #000000;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(240, 240, 240, 0.7),
    rgba(255, 255, 255, 0.4)
  );
}
.display:focus {
  border: none;
  outline: none;
}
.his {
  text-align: center;
}
.nav {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
}
.error {
  color: rgb(255, 255, 255);
  font-size: 12px;
}
.nav-a,
.nav-b,
.nav-c {
  color: #d7d7d7;
  text-decoration: none;
  padding: 20px;
  font-weight: 800;
}
.active {
  border-bottom: 1px solid #9b9b9b;
}
#membtn {
  opacity: 1;
  background: linear-gradient(
    135deg,
    rgba(240, 240, 240, 0.9),
    rgba(255, 255, 255, 0.6)
  );
  color: black;
}

@media screen and (min-width: 700px) {
  #mem {
    display: flex;
  }
  .hide {
    display: none;
  }
  #membtn {
    display: inline-block;
    opacity: 0.9;
    background-color: rgb(255, 255, 255, 0.1);
    color: aliceblue;
  }
}
@media screen and (max-width: 699px) {
  #mem {
    display: none;
  }
  .hide {
    display: inline-block;
  }
}
@media screen and (min-width: 870px) {
  #mem {
    width: 24%;
  }
  main {
    gap: 1%;
  }
  .cover {
    width: 75%;
  }
}
@media screen and (max-width: 700px) {
  #cover {
    justify-content: space-between;
  }
  main {
    flex-direction: column;
    justify-content: space-between;
  }
  #mem {
    height: 40vh;
    position: absolute;
    bottom: 0;
    background-color: #bfbfbf;
    width: inherit;
  }
}
@media screen and (max-width: 310px) {
  .cover {
    width: fit-content;
  }
}
@media screen and (min-height: 1000px) {
  .top {
    margin-top: 70px;
  }
}
@media screen and (min-height: 1100px) {
  .btn,
  .operators {
    padding: 50px 10% 50px 10%;
  }
}
@media screen and (min-height: 900px) and (min-width: 600px) {
  .nav {
    font-size: 25px;
  }
}
@media screen and (max-width: 305px) {
  body {
    background-repeat: repeat;
    height: fit-content;
  }
  html {
    background-color: black;
  }
}
/*  */

.equation_mode {
  display: flex;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9),
    rgba(170, 170, 170, 0.6)
  );

  justify-self: center;
  border-radius: 10px;

  position: absolute;
  opacity: 0;
  width: 70%;
  z-index: -1;
  transition: 1.5s ease;
  min-height: fit-content;
  align-self: baseline;
}
@media screen and (max-width: 700px) {
  .equation_mode {
    flex-direction: column;
    gap: 20px;
  }
}
.equation_mode > h1 {
  color: #dfdfdf;
  padding: 20px;
}
.equation_opts {
  display: flex;
  flex-direction: column;
  padding: 10px;
}
.equation-opts > span > p {
  background: linear-gradient(
    135deg,
    rgba(240, 240, 240, 0.9),
    rgba(255, 255, 255, 0.6)
  );
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: center;
  color: rgb(55, 55, 160);
}
.opts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding-top: 10px;
}
.opts > a {
  text-decoration: none;
  color: #696969;
  background: linear-gradient(
    135deg,
    rgba(240, 240, 240, 0.9),
    rgba(255, 255, 255, 0.6)
  );
  font-size: 1.5rem;
  padding: 20px 20px;
  text-align: center;
  border-radius: 10px;
}
.opts > a:hover,
.equation-opts > span > p:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9),
    rgba(170, 170, 170, 0.6)
  );
  color: white;
}
.opts > a:active,
.equation-opts > span > p:active {
  transform: scale(0.95);
}
/*  */
.equation_input {
  color: #dfdfdf;
  width: fit-content;
  align-self: baseline;
  justify-self: center;
  border-radius: 15px;
  position: absolute;
  z-index: -3;
  opacity: 0;
  transition: 2s ease;
}
.equation_in {
  display: flex;
  flex-direction: column;
  align-self: center;
  padding: 20px;
}
.equation_in > span {
  text-align: center;
  margin: 20px 0;
}
.equation_in > h1 {
  align-self: center;
}
.input {
  display: flex;
  flex-direction: column;
  align-self: center;
}
#eqinox {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
input {
  padding: 10px;
  border: none;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9),
    rgba(170, 170, 170, 0.6)
  );
  border-radius: 10px;
  color: #dfdfdf;
}

.eval {
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9),
    rgba(170, 170, 170, 0.6)
  );
  color: white;
}

/*  */
h4 {
  text-align: center;
  margin: 10px;
}

.equ-1 {
  color: white;
}
.equ-2 {
  color: white;
}
.sil_input > .equation_in > span {
  color: white;
  margin: 0;
  font-size: 0.8rem;
}

.q-ul {
  display: inline-block;
}
.equ-1,
.equ-2 {
  display: flex;
  flex-direction: column;
}
.ql {
  display: flex;
}
@media screen and (max-width: 600px) {
  .ql {
    flex-direction: column;
    gap: 5px;
  }
}
.sil_input {
  position: absolute;
  opacity: 0;
  z-index: -4;
  display: none;
  align-self: baseline;
  justify-self: center;
}

/* Scientific Mode */
.scientific_mode {
  display: grid;
  grid-template-columns: auto auto auto auto auto auto;
  gap: 5px;
  padding: 10px 10px 10px;
  transition: 1.5s ease;
}

.log_opts {
  z-index: 4;
  gap: 10px;
  padding: 20px;
  width: fit-content;
  position: absolute;
  left: calc(50%);
  top: calc(50%);
  display: flex;
}
