html {
  height: 100%;
}

body {
  margin: 0;
  background: #fdfbfb;

  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: left;
  
}

header {
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-around;
}

img {
  height: 60px;
  padding-top: 25px;
  padding-bottom: 15px;
  user-select: none;
}

main {
  width: 100%;
}

footer {

  height: 50px;
}

.container {
  width: 98%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.section {
  background: #eaeaea;
  width: 100%;
  border-radius: 5px;
  border-bottom: 2px solid #cccccc;
  margin-top: 10px;
}

.section-one {
  order: 1;
}

.section-two {
  order: 2;
}

.section-three {
  order: 3;
}

.section-four {
  order: 4;
}

.section-header {
  background: #268c57;
  border-top: 2px solid #27523a;
  border-bottom: 2px solid #cccccc;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.section-body {
  padding: 10px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  margin-bottom: 5px;
}

.section-header h3 {
  color: white;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.2em;
  font-style: italic;
  text-align: center;
  padding: 5px;
  margin: 0;
  user-select: none;
}

.input-data {
  max-width: 100%;
  margin-top: 5px;
  display: grid;
  grid-template-columns: 3fr 1fr 1fr;
  grid-template-rows: auto auto auto auto auto auto auto auto auto;
  /* border: 1px solid black; */
}

.input-data input[type="text"] {
  width: 40px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.6em;
  text-align: right;
}

.input-data input[type="text"]::selection {
  color: white;
  background: #268c57;
}

.input-data input[type="text"]:focus {
  outline-color: #268c57;
}

.input-data input[type="text"]:disabled {
  background: #cccccc;
  user-select: none;
}


.checkbox-container {
  display: block;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  position: relative;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 19px;
  width: 19px;
  background: #c2bbb7;
}

.checkbox-container:hover input ~ .checkmark {
  background: #999491;
}

.checkbox-container input:checked ~ .checkmark {
  background: #268c57;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

label {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.6em;
  user-select: none;
}

span {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.6em;
  opacity: 0.7;
  user-select: none;
}

button {
  font-size: 0.7em;
  color: white;
  background: #268c57;
  border: 1px solid #268c57;
  border-top: 2px solid #27523a;
  border-radius: 5px;
  padding: 5px 10px 5px 10px;
  user-select: none;
}

#btn-calculate {
  /* font-family: 'Times New Roman', Times, serif;
  font-weight: bold;
  font-style: italic; */
}


button:hover {
  cursor: pointer;
}

button:disabled {
  cursor: auto;
  background: #999491;
  border: 1px solid #999491;
}

p::selection {
  color: white;
  background: #268c57;
}
br::selection {
  color: white;
  background: #268c57;
}

.nspt-label {
  width: 100%;
  text-align: left;
  grid-row: 1 / 2;
  grid-column: 1 / 1;
}

.nspt-span {
  width: 100%;
  text-align: right;
}

.nspt-box {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  grid-row: 1 / 2;
  grid-column: 3 / 4;
}

.sv0-label {
  width: 100%;
  text-align: left;
  grid-row: 2 / 3;
  grid-column: 1 / 2;
}

.sv0-span {
  width: 100%;
  text-align: right;
  grid-row: 2 / 3;
  grid-column: 2 / 3;
}

.sv0-box {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  grid-row: 2 / 3;
  grid-column: 3 / 4;
}

.sprimov0-label {
  width: 100%;
  text-align: left;
  grid-row: 3 / 4;
  grid-column: 1 / 2;
}

.sprimov0-span {
  width: 100%;
  text-align: right;
  grid-row: 3 / 4;
  grid-column: 2 / 3;
}

.sprimov0-box {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  grid-row: 3 / 4;
  grid-column: 3 / 4;
}

.dr-label {
  width: 100%;
  text-align: left;
  grid-row: 4 / 5;
  grid-column: 1 / 2;
}

.dr-span {
  width: 100%;
  text-align: right;
  grid-row: 4 / 5;
  grid-column: 2 / 3;
}

.dr-box {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  grid-row: 4 / 5;
  grid-column: 3 / 4;
}

.accsism-label {
  width: 100%;
  text-align: left;
  grid-row: 5 / 6;
  grid-column: 1 / 2;
}

.accsism-span {
  width: 100%;
  text-align: right;
  grid-row: 5 / 6;
  grid-column: 2 / 3;
}

.accsism-box {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  grid-row: 5 / 6;
  grid-column: 3 / 4;
}

.percarg-label {
  width: 100%;
  text-align: left;
  grid-row: 6 / 7;
  grid-column: 1 / 2;
}

.percarg-span {
  width: 100%;
  text-align: right;
  grid-row: 6 / 7;
  grid-column: 2 / 3;
}

.percarg-box {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  grid-row: 6 / 7;
  grid-column: 3 / 4;
}

.profsond-label {
  width: 100%;
  text-align: left;
  grid-row: 7 / 8;
  grid-column: 1 / 2;
}

.profsond-span {
  width: 100%;
  text-align: right;
  grid-row: 7 / 8;
  grid-column: 2 / 3;
}

.profsond-box {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  grid-row: 7 / 8;
  grid-column: 3 / 4;
}

.falda-label {
  width: 100%;
  text-align: left;
  grid-row: 8 / 9;
  grid-column: 1 / 2;
}

.falda-span {
  width: 100%;
  text-align: center;
  grid-row: 8 / 9;
  grid-column: 2 / 3;
}

.falda-box {
  margin-top: 3px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  grid-row: 8 / 9;
  grid-column: 3 / 4;
}

.refresh-button, .open-button, .save-button, .calculate-button {
  /* border: 1px solid black; */
}

.io-buttons {
  display: flex;
  justify-content: flex-start;
  padding-top: 5px;
  grid-row: 9 / 10;
  grid-column: 1 / 2;
}


.op-buttons {
  display: flex;
  justify-content: flex-end;
  padding-top: 5px;
  grid-row: 9 / 10;
  grid-column: 2 / 4;
}

#btn-refresh {
  margin-right: 5px;
}

#btn-save {
  margin-left: 5px;
}

#file-input {
  display: none;
}

/* -------------------------------------------------------------------------- */

.output-data-one {
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto;
}

.results-heading {
  margin-top: 5px;
}

.results-body {
  margin-top: 5px;
  border-radius: 5px;
}

.results-body p {
  margin: 0;
  padding: 5px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.6em;
}

.results-body {
  border-top: 1px solid black;
  background: #ffffff;
}

.densita-relativa-label {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
}

.densita-relativa-span {
  text-align: right;
  grid-row: 1 / 2;
  grid-column: 2 / 3;
}

.densita-relativa-results {
  grid-row: 2 / 3;
  grid-column: 1 / 3;
}

.angolo-resistenza-label {
  grid-row: 3 / 4;
  grid-column: 1 / 2;
}

.angolo-resistenza-span {
  text-align: right;
  grid-row: 3 / 4;
  grid-column: 2 / 3;
}

.angolo-resistenza-results {
  grid-row: 4 / 5;
  grid-column: 1 / 3;
}

.velocita-onde-taglio-label {
  grid-row: 5 / 6;
  grid-column: 1 / 2;
}

.velocita-onde-taglio-span {
  text-align: right;
  grid-row: 5 / 6;
  grid-column: 2 / 3;
}

.velocita-onde-taglio-results {
  grid-row: 6 / 7;
  grid-column: 1 / 3;
}

.peso-unita-volume-label {
  grid-row: 7 / 8;
  grid-column: 1 / 2;
}

.peso-unita-volume-span {
  text-align: right;
  grid-row: 7 / 8;
  grid-column: 2 / 3;
}

.peso-unita-volume-results {
  grid-row: 8 / 9;
  grid-column: 1 / 3;
}

.modulo-edometrico-label {
  grid-row: 9 / 10;
  grid-column: 1 / 2;
}

.modulo-edometrico-span {
  text-align: right;
  grid-row: 9 / 10;
  grid-column: 2 / 3;
}

.modulo-edometrico-results {
  grid-row: 10 / 11;
  grid-column: 1 / 3;
}

.modulo-elasticita-label {
  grid-row: 11 / 12;
  grid-column: 1 / 2;
}

.modulo-elasticita-span {
  text-align: right;
  grid-row: 11 / 12;
  grid-column: 2 / 3;
}

.modulo-elasticita-results {
  grid-row: 12 / 13;
  grid-column: 1 / 3;
}

.modulo-taglio-label {
  grid-row: 13 / 14;
  grid-column: 1 / 2;
}

.modulo-taglio-span {
  text-align: right;
  grid-row: 13 / 14;
  grid-column: 2 / 3;
}

.modulo-taglio-results {
  grid-row: 14 / 15;
  grid-column: 1 / 3;
}

.coefficiente-poisson-label {
  grid-row: 15 / 16;
  grid-column: 1 / 2;
}

.coefficiente-poisson-span {
  text-align: right;
  grid-row: 15 / 16;
  grid-column: 2 / 3;
}

.coefficiente-poisson-results {
  grid-row: 16 / 17;
  grid-column: 1 / 3;
}

.liquefazione-label {
  grid-row: 17 / 18;
  grid-column: 1 / 2;
}

.liquefazione-span {
  text-align: right;
  grid-row: 17 / 18;
  grid-column: 2 / 3;
}

.liquefazione-results {
  grid-row: 18 / 19;
  grid-column: 1 / 3;
}

/* -------------------------------------------------------------------------- */

.output-data-two {
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto auto auto auto auto auto auto;
}

.results-heading {
  margin-top: 5px;
}

.results-body {
  margin-top: 5px;
  border-radius: 5px;
}

.results-body p {
  margin: 0;
  padding: 5px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.6em;
}

.results-body {
  border-top: 1px solid black;
  background: #ffffff;
}

.coesione-non-drenante-label {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
}

.coesione-non-drenante-span {
  text-align: right;
  grid-row: 1 / 2;
  grid-column: 2 / 3;
}

.coesione-non-drenante-results {
  grid-row: 2 / 3;
  grid-column: 1 / 3;
}

.peso-unita-volume2-label {
  grid-row: 3 / 4;
  grid-column: 1 / 2;
}

.peso-unita-volume2-span {
  text-align: right;
  grid-row: 3 / 4;
  grid-column: 2 / 3;
}

.peso-unita-volume2-results {
  grid-row: 4 / 5;
  grid-column: 1 / 3;
}

.modulo-edometrico2-label {
  grid-row: 5 / 6;
  grid-column: 1 / 2;
}

.modulo-edometrico2-span {
  text-align: right;
  grid-row: 5 / 6;
  grid-column: 2 / 3;
}

.modulo-edometrico2-results {
  grid-row: 6 / 7;
  grid-column: 1 / 3;
}

.modulo-elasticita2-label {
  grid-row: 7 / 8;
  grid-column: 1 / 2;
}

.modulo-elasticita2-span {
  text-align: right;
  grid-row: 7 / 8;
  grid-column: 2 / 3;
}

.modulo-elasticita2-results {
  grid-row: 8 / 9;
  grid-column: 1 / 3;
}

/* -------------------------------------------------------------------------- */

.output-data-three {
  background: white;
  border-top: 1px solid black;
  border-radius: 5px;
  padding: 10px;
  overflow-x: auto;
  user-select: none;
}

.output-data-three h3 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1em;
  font-style: italic;
  text-align: center;
  text-decoration: underline;
  padding: 5px;
  margin: 0;
  user-select: none;
}

.img-height-50 {
  height: 45px;
}

.img-height-100 {
  height: 80px;
}

.img-height-150 {
  height: 130px;
}

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030
}

.card-header {
  padding: .75rem 1.25rem;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, .03);
  border-bottom: 1px solid rgba(0, 0, 0, .125)
}

.card-header:first-child {
  border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0
}

.card-header+.list-group .list-group-item:first-child {
  border-top: 0
}

.card-header-tabs {
  margin-right: -.625rem;
  margin-bottom: -.75rem;
  margin-left: -.625rem;
  border-bottom: 0
}

.card-header-pills {
  margin-right: -.625rem;
  margin-left: -.625rem
}

.accordion>.card:not(:first-of-type) .card-header:first-child {
  border-radius: 0
}

.accordion>.card .card-header {
  margin-bottom: -1px
}

.card-body {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 1.25rem
}

.card-header+.list-group .list-group-item:first-child {
  border-top: 0
}

.card {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, .125);
  border-radius: .25rem
}

.card>hr {
  margin-right: 0;
  margin-left: 0
}

.card>.list-group:first-child .list-group-item:first-child {
  border-top-left-radius: .25rem;
  border-top-right-radius: .25rem
}

.card>.list-group:last-child .list-group-item:last-child {
  border-bottom-right-radius: .25rem;
  border-bottom-left-radius: .25rem
}

.card-body {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 1.25rem
}

.card-title {
  margin-bottom: .75rem
}

.card-subtitle {
  margin-top: -.375rem;
  margin-bottom: 0
}

.card-text:last-child {
  margin-bottom: 0
}

.card-link:hover {
  text-decoration: none
}

.card-link+.card-link {
  margin-left: 1.25rem
}

@-webkit-keyframes spinner-border {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg)
  }
}

@keyframes spinner-border {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg)
  }
}

.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: text-bottom;
  border: .25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  -webkit-animation: spinner-border .75s linear infinite;
  animation: spinner-border .75s linear infinite
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: .2em
}

/* -------------------------------------------------------------------------- */

@media screen and (min-width: 640px) {
  img {
    height: 80px;
  }

  button {
    font-size: 0.6em;
  }

  span {
    margin-right: 5px;
  }

  .section {
    width: 33%;
  }

  .section-one {
    order: 1;
    background: none;
    border: none;
  }

  .section-one-body {
    background: #eaeaea;
    border-bottom: 2px solid #cccccc;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
  }

  .section-two {
    order: 2;
  }

  .section-three {
    order: 3;
    background: none;
    border: none;
  }

  .section-three-body {
    background: #eaeaea;
    border-bottom: 2px solid #cccccc;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
  }

  .section-four {
    order: 4;
    width: 100%;
  }

  /* label {
    font-size: 0.6em;
  }

  span {
    font-size: 0.6em;
  } */
}

@media screen and (min-width: 960px) {
  label {
    font-size: 0.7em;
  }

  span {
    font-size: 0.7em;
  }

  button {
    font-size: 0.7em;
  }

  .input-data input[type="text"] {
    font-size: 0.7em;
  }

  .results-body p {
    font-size: 0.7em;
  }

  .container {
    width: 960px;
  }
}
