/* #region general */

body {
  font-size: 2rem;
  line-height: 2;
  font-family: "Roboto", sans-serif;
  background-color: burlywood;
}

header {
  text-align: center;
  margin: 0;
  padding: 0;
}

/* #endregion general */

/* #region headers */
h1 {
  color: seashell;
}

h1,
h2 {
  margin: 0;
  padding: 0;
}

/* #endregion headers */

/* #region main */
main {
  width: 85%;
  max-width: 1000px;
  margin: 0 auto;
}

.equation-container {
  margin: 0;
  padding: 0;
}

.solution-container {
  width: 60%;
  margin: 0 auto;
}

.solution-container h2 {
  margin: 0;
  padding: 0;
  text-align: center;
  visibility: hidden;
}

/* #endregion main */

/* #region form */

form {
  text-align: center;
}

input {
  width: 10%;
  text-align: center;
}

button {
  margin-left: 1rem;
}

/* #endregion form */

/* #region solution design */
.text-center {
  text-align: center;
}

.bordered {
  border: 1px solid blue;
}

.coeff-display {
  border: 1px solid black;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.flex-d {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.flex-c {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-border {
  border-top: 1px solid black;
}

.bottom-border {
  border-bottom: 1px solid black;
}

.final-solutions {
  width: 50%;
  text-align: center;
  margin: 1rem auto 1rem;
  border: 1px solid blue;
}

/* #endregion solution design */

/* #region footer */
footer {
  text-align: center;
}

/* #endregion footer */

@media (max-width: 880px) {
  main {
    width: 90%;
  }

  .solution-container {
    width: 90%;
  }

  .final-solutions {
    width: 80%;
  }
}
