/* VARS */
:root {
  --title-font: "Anton", sans-serif;
  --txt-font: "RobotoMono";

  --main-color: #211f1c;
  --sec-color: #f1f1f1;
  --alt-color: #f1f1f1;
}

html {
  font-size: 10px;
}

body {
  font-family: var(--txt-font);
  background-color: var(--sec-color);
  background-image: url("../img/squared.png");
  background-repeat: no-repeat;
  /* background-size: cover; */
}

.nav__items {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 3rem;
  position: relative;
}

.items__item {
  margin-top: 1rem;
  width: 200px;
  height: 100px;
}

.items__item--title {
  font-family: var(--title-font);
  font-size: 7rem;
}

.beta--reference {
  position: relative;
}

.beta--reference::after {
  content: "BETA";
  position: absolute;
  font-family: var(--txt-font);
  font-size: 2rem;
  font-weight: 600;
  color: var(--sec-color);
  background-color: var(--main-color);
  padding-block: 0.3rem;
  padding-inline: 1.5rem;
  letter-spacing: 2px;
  transform: rotate(-40deg);
  top: 70px;
  right: -50px;
}

.calculator__box {
  display: flex;
  height: 85vh;
  padding-top: 3rem;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: auto auto;
}

/* BOX STYLE */
.box__items {
  background-color: var(--sec-color);
  border: 1px solid var(--main-color);
  border-radius: 2rem;
  padding: 1.5rem;
  max-width: 55rem;
  width: 100%;
  height: 200px;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: row;
  position: relative;
}

.items__symbols {
  flex-basis: 30%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  overflow: auto;
  gap: 1rem;
}

.symbols--btn {
  border: 1px solid var(--main-color);
  border-radius: 2rem;
  font-size: 1.3rem;
  cursor: pointer;
}

.items__methods {
  flex-basis: 70%;
  margin-left: 3rem;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 1rem;
  overflow: auto;
}
.items__methods::before {
  position: absolute;
  content: "";
  top: 6%;
  bottom: 6%;
  left: 32%;
  width: 1px;
  background-image: linear-gradient(
    to bottom,
    transparent 50%,
    var(--main-color) 50%
  );
  background-size: 1px 2rem;
}

.methods--btn {
  border: 1px solid var(--main-color);
  padding: 1.3rem;
  border-radius: 1.7rem;
  width: 100%;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.4s ease-in-out;
  cursor: pointer;
}

.methods--btn.active {
  background-color: var(--main-color);
  color: var(--sec-color);
}

/* MATHFIELDS STYLE */

.box__equation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  max-width: 60rem;
  width: 100%;
}

.equation {
  border: 1px solid var(--main-color);
  background-color: var(--sec-color);
  border-radius: 1.7rem;
  padding: 1.3rem;
  width: 60rem;
  padding-left: 2rem;
  font-size: 15px;
}

.instructor {
  padding-top: 0.6rem;
  text-align: center;
  color: #e04242;
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.mq-editable-field.mq-focused {
  border-radius: 1.7rem;
  border-color: var(--main-color);
  box-shadow: var(--main-color) 0 0 1px 1px, inset var(--main-color) 0 0 1px 0;
}

.box__sub {
  display: flex;
  max-width: 60rem;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 7.5rem;
  text-align: center;
}

.tol {
  display: flex;
  margin-top: 1.7rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--main-color);
  background-color: var(--sec-color);
  border-radius: 1.7rem;
  padding: 1.3rem;
  width: 13rem;
  padding-left: 2rem;
  font-size: 15px;
}

.sub__container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.range__container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.container--lil {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.range {
  border: 1px solid var(--main-color);
  border-radius: 1.7rem;
  width: 5.5rem;
  padding: 1.3rem;
  padding-left: 2rem;
  font-size: 15px;
  text-align: left;
}

.box__calc {
  margin-top: 2rem;
  max-width: 18rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.calc--btn {
  padding: 1.3rem;
  border-radius: 1.7rem;
  width: 100%;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sec-color);
  background-color: var(--main-color);
  font-weight: 600;
  transition: 0.3s ease;
  cursor: pointer;
}

.calc--btn:hover {
  color: var(--main-color);
  background-color: var(--sec-color);
  letter-spacing: 4px;
}

.hidden {
  display: none;
}

/* ABOUT SECTION */

.about__box {
  height: 100vh;
  transition: opacity 0.3s ease;
  background-color: var(--alt-color);
  margin-bottom: 10rem;
}

.about__title {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding-top: 7.4rem;
}

.title--h1 {
  font-family: var(--title-font);
  font-size: 7.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 100;
}

.title--p {
  text-align: center;
  padding: 10px;
  margin: 0 300px;
  font-size: 1.35rem;
}

.about__steps {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  flex-flow: row wrap;
}

.steps {
  background-color: var(--sec-color);
  border-radius: 1.5rem;
  border: 1px solid var(--main-color);
  width: 30rem;
  height: 30rem;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 1.5rem;
  color: var(--main-color);
}

.icons {
  font-size: 9.5rem;
  margin-bottom: 2rem;
}

.steps--title {
  font-size: 2rem;
  font-family: var(--title-font);
  letter-spacing: 2px;
  font-weight: 100;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1rem;
}

.steps--p {
  font-size: 1.22rem;
  text-align: center;
  margin: 0 2.5rem;
}
/* TABLE SECTION */

.result__box {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: start;
  background-color: var(--sec-color);
  transition: opacity 0.3s ease;
}

.result__box.hidden {
  display: none;
}

.box__container {
  background-color: var(--sec-color);
  border: 1px solid var(--main-color);
  border-radius: 2rem;
  padding: 2rem;
  max-width: 70rem;
  width: 100%;
  height: auto;
  margin-top: 8rem;
  margin-bottom: 2.5rem;
}

.container__function {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 1.5rem;
}

.function__equation {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.function__derivative {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.subtitle {
  text-align: center;
  letter-spacing: 1px;
  line-height: 15px;
}

.static {
  display: flex;
  font-size: 1.5rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.container__solution {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 80%;
  margin: 0 auto;
  margin-bottom: 2rem;
}

.solution--subtitle {
  flex-basis: 16%;
}

.solution__txt {
  flex-basis: 84%;
  font-size: 1.2rem;
  text-align: justify;
  letter-spacing: 1px;
}

.container__table {
  display: flex;
  flex-direction: column;
  margin-inline: 2.5rem;
  overflow: auto;
  max-height: 70vh;
  height: auto;
}

.table--subtitle {
  letter-spacing: 2px;
  text-align: center;
  font-size: 1.8rem;
}

.table--iteration {
  width: 100%;
  border-collapse: collapse;
}

.table--head {
  background-color: var(--main-color);
  padding: 8px;
}

th {
  color: var(--sec-color);
}

/* .table--body {
} */

th,
td {
  padding: 8px;
  border: 1px solid var(--main-color);
}

th {
  text-align: center;
}

th:first-child,
td:first-child {
  width: 50px;
  text-align: center;
}

td {
  text-align: left;
}

/* tr:nth-child(even) {
  background-color: var(--alt-color);
} */

/* FOOTER */
footer {
  position: relative;
  width: 100%;
  background-color: black;
  min-height: 150px;
  padding: 20px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  margin-top: 10rem;
}

.footer--title {
  font-family: var(--title-font);
  color: var(--sec-color);
  letter-spacing: 1px;
  font-size: 4rem;
  font-weight: 100;
}

.credits {
  color: var(--sec-color);
  font-weight: bold;
  font-size: 1.5rem;
}

.social--container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  color: var(--sec-color);
}

.container--links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 2rem;
  cursor: pointer;
}

.item {
  transition: all 0.3s ease-in;
  opacity: 0.5;
}

.item:hover {
  opacity: 1;
}

footer .wave {
  position: absolute;
  top: -90px;
  left: 0;
  height: 100px;
  width: 100%;
  background: url("../img/wave.png");
  filter: brightness(0);
  background-size: 1000px 100px;
}
footer .wave#wave1 {
  z-index: 1000;
  opacity: 1;
  bottom: 0;
  animation: animateWave 4s linear infinite;
}

footer .wave#wave2 {
  z-index: 999;
  opacity: 0.5;
  bottom: 0;
  animation: animateWave_2 4s linear infinite;
}

footer .wave#wave3 {
  z-index: 1000;
  opacity: 0.25;
  bottom: 0;
  animation: animateWave 4s linear infinite;
}

footer .wave#wave4 {
  z-index: 999;
  opacity: 0.7;
  bottom: 0;
  animation: animateWave_2 5s linear infinite;
}

@keyframes animateWave {
  0% {
    background-position-x: 1000px;
  }
  100% {
    background-position-x: 0px;
  }
}

@keyframes animateWave_2 {
  0% {
    background-position-x: 0px;
  }
  100% {
    background-position-x: 1000px;
  }
}
