html {
  scroll-behavior: smooth;
  --dark-grey: #333f4f;
  --font-color: #333;
}

body {
  color: var(--font-color);
  font-family: "Nunito Sans", sans-serif;
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
  padding: 0;
}

h1 {
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 28px;
  margin: 0;
  padding: 0;
}

h2 {
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 33px;
  margin: 0;
  padding: 0;
}

h3 {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 20px;
  line-height: 27px;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  margin: 0.3em 0;
}

a:link {
  color: var(--font-color);
  text-decoration: none;
}

a:visited {
  color: var(--font-color);
}

a:hover {
  color: #63686e;
}

iframe {
  border: none;
  outline: none;
}

button:focus {
  outline: none;
}

input,
select,
textarea {
  font-size: 14px;
  font-weight: 600;
}

table {
  border: 2px solid grey;
  border-collapse: collapse;
  max-width: 100%;
  margin: 1em 0;
}

th,
td {
  border: 1px solid grey;
}

th {
  background-color: #ddebf7;
  font-size: 14px;
  padding: 0.5em;
}

td {
  background-color: #fff;
  font-style: normal;
  font-weight: normal;
  font-size: 12px;
  line-height: 15px;
  padding: 0.2em 0.5em;
  text-align: center;
}

#content {
  display: flex;
}

.navbar {
  width: 260px;
}

.navbar__logo {
  margin: 20px 10px 25px 20px;
  height: auto;
  padding: 0.5em;
  width: 200px;
}

.navbar__links {
  display: flex;
  flex-direction: column;
}

.navbar__link {
  display: block;
  font-style: normal;
  font-weight: normal;
  font-size: 24px;
  line-height: 29px;
  padding: 0 0 22px 40px;
}

.auth_user {
  font-weight: 600;
  position: absolute;
  right: 2em;
  top: 1em;
}

.main-area {
  background-color: #d6dde4;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 60px);
  padding: 40px 60px 20px 60px;
  width: 100%;
}

.main-area__content {
  min-height: calc(100vh - 120px - 3em);
}

.button {
  background-color: #333f4f;
  border: none;
  border-radius: 7px;
  color: #fff;
  font-family: Montserrat;
  font-style: normal;
  font-weight: bold;
  font-size: 20px;
  line-height: 24px;
  margin-top: 1em;
  padding: 10px 20px;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
}

.right-margin {
  margin-right: 0.7em;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
}

.page-nav-container {
  display: flex;
  padding: 0.5em 0 1em;
}

.page-nav {
  /* border: 1px solid #aaa; */
  box-shadow: 0px 0px 4px #aaa;
  border-radius: 5px;
  color: #aaa;
  cursor: default;
  margin-right: 0.5em;
  padding: 0.5em 1em;
}

.page-nav__visited {
  box-shadow: 0px 0px 4px #9fa6af;
  background-color: #9fa6af;
  color: #fff;
}

.page-nav__active {
  background-color: var(--dark-grey);
  box-shadow: 0px 0px 4px var(--dark-grey);
  color: #fff;
  font-weight: 700;
}

.page-nav__visited:hover {
  background-color: var(--dark-grey);
  color: white;
  cursor: pointer;
}

.input__tubing-fluid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.5em;
}

.input__tubing {
  margin-right: 4em;
}

.field-block label {
  display: grid;
  grid-template-columns: 1fr 100px 1em;
  margin: 0.7em 0;
  padding: 0 1.5em 0 10px;
}

.two-fields-block label {
  display: grid;
  grid-template-columns: 12em 100px;
  padding: 0.3em 10px;
}

.three-fields-block label {
  display: grid;
  grid-template-columns: 11em 100px 1fr;
  margin: 0.7em 0;
  padding-left: 10px;
}

.field-block__name {
  align-self: center;
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 20px;
  margin-right: 1em;
  min-width: 7em;
}

.field-block__input {
  align-self: left;
  background-color: #fff;
  border: none;
  box-shadow: 0px 0px 6px #acb9ca;
  border-radius: 5px;
  height: 2em;
  margin-right: 0.7em;
  max-width: 100px;
  text-align: right;
}

.field-block__select {
  justify-self: start;
  align-self: left;
  background-color: #fff;
  border: none;
  box-shadow: 0px 0px 6px #acb9ca;
  border-radius: 5px;
  height: 2em;
  margin-right: 0.7em;
  width: 160px;
  /* text-align-last: right; */
}

.field-block__invalid-input {
  background-color: #ffeaea;
  box-shadow: 0px 0px 6px #f66;
}

.field-block__input:focus,
.field-block__select:focus {
  box-shadow: 0px 0px 6px #333f4f;
  outline: none;
}

.field-block__units {
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 18px;
  align-self: center;
}

.field-block__textarea {
  height: 180px;
  width: 100px;
  text-align: left;
  margin-left: 10px;
}

.hydrodynamic-container-item,
.gas-velocity-container-item {
  margin-right: 2em;
}

.well-survey-form__container {
  display: flex;
}

.well-survey__container {
  display: flex;
}

.well-survey__container-fields {
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
}

.well-survey__container-label {
  padding: 0.5em 32px;
  min-width: 0;
}

.well-results__tbl th {
  background-color: #d0cece;
}

.well-results,
.hydro-results {
  margin-left: 2em;
}

.hydrodynamic-form__container {
  display: flex;
}

.hydrodynamic-profile {
  margin-top: 1em;
}

.hydro-results__tbl th {
  background-color: #99afc2;
}

.fall-stage {
  margin-top: 1em;
  margin-bottom: 1em;
}

.fall-stage-content-container {
  display: flex;
}

.fall-stage__plunger {
  display: flex;
  flex-direction: column;
  margin-right: 7em;
}

.fall__two-fields-block label {
  display: grid;
  grid-template-columns: 1fr 100px;
  padding: 0.3em 10px;
}

.fall-stage-results-sum {
  display: flex;
  flex-direction: column;
  margin-top: 1em;
}

.fall-ball-results th,
.fall-ball-results td,
.fall-comments th,
.fall-comments td {
  font-size: 20px;
  line-height: 24px;
}

.fall-ball-results td:first-child,
.fall-ball-results td:nth-child(3),
.fall-ball-results td:nth-child(5) {
  background-color: #dfdfdf;
  text-align: left;
}

.fall-ball-results td:nth-child(2),
.fall-ball-results td:nth-child(4) {
  text-align: right;
}

.fall-comments td {
  text-align: left;
}

#fallChart {
  z-index: 1;
}

.shut-afterflow__field-block label {
  display: grid;
  grid-template-columns: 8em 100px 1em;
  margin: 0.7em 0;
  padding: 0 1.5em 0 10px;
}

.error-msg {
  background-color: #ffeaea;
  border-left: solid 5px #f66;
  color: #f66;
  display: flex;
  align-items: center;
  font-size: larger;
  font-weight: 700;
  height: 2em;
  margin-top: 1em;
  padding: 0 0.7em;
  width: max-content;
}

.white-font,
.white-font:hover,
.white-font:link,
.white-font:visited {
  color: #fff;
}

.message-success {
  background-color: #eee;
  border-left: 5px solid var(--main-green-color);
  display: flex;
  height: 2em;
  padding: 0.5em;
  width: max-content;
  align-items: center;
}

.message-error {
  background-color: #ff5233;
  color: white;
  display: flex;
  font-weight: bold;
  height: 2em;
  padding: 0.5em;
  width: max-content;
  align-items: center;
}

.spinner-container {
  background-color: #333f4f66;
  position: absolute;
  top: 0;
  left: 0;
  height: 101%;
  width: 100%;
  z-index: 2;
}

.spinner {
  position: absolute;
  top: 50vh;
  left: 50vw;
  display: inline-block;
  width: 60px;
  height: 60px;
}
.spinner:after {
  content: " ";
  display: block;
  width: 45px;
  height: 45px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid #fff;
  border-color: #fff transparent #fff transparent;
  animation: spinner 1.2s linear infinite;
}
@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.footer__logo {
  margin-top: 3em;
  height: auto;
  width: 140px;
}

.display-none {
  display: none;
}
