/* style.css overrides */
.hero-image {
    background-image: url('../assets/images/Wolkenlandschap_dun.jpg');
}

.hero-logo img {
    width: 20%;
    max-width: 20%;
    height: auto;
}

.paddingSection {
    justify-content: start;
}

.footer {
    background-image: url('../assets/images/Wolkenlandschap.jpg');
}
/* END style.css overrides*/

table {
  margin-left: 0;
  margin-right: auto;
  width: 100%;
}

h1 {
  font-size: 22px;
}

h2 {
  font-size: 18px;
}

h1, h2 {
  padding-top: 10px;
  padding-bottom: 10px;
}

p {
  padding-top: 10px;
  padding-bottom: 10px;
}

.button {
  background-color: #D9D4CA;
  border-style: solid;
  border-width: 1px;
  border-radius: 5px;
  color: #522353;
  padding: 0px 0px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 40px;
}

.fill {
  width: 90px;
}

.unit {
  padding: 10px 5px;
  line-height: 18px;
  font-size: 30px;
  text-align: center;
}

.meta-text
{
  font-style: italic;
}

.input_element {
  padding: 10px 5px;
  line-height: 18px;
}

.input_element[readonly] {
  background-color: #D9D4CA;
}

/* big screen */

#content
{
  display: flex;
  background-color: #D9D4CA;
}

#mass_balance_inputs {
  width: 600px;
  margin-bottom: 10px;
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 10px;
  padding-bottom: 10px;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 10px;
}

.best_viewed_in_landscape {
  display: none;
  color: red;
  padding-top: 10px;
  font-size: 20px;
}

.not_working_on_an_tablet {
  display: none;
  color: red;
  padding-top: 10px;
  font-size: 20px;
}

#mass_balance_outcome {
  flex: 1;   /* Grow to rest of container */

  display: flex;
  flex-direction: column;

  text-align: center;
  margin-bottom: 10px;
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 80px;


}

#mass_balance_box {

  display: flex;
  flex-direction: column;

  border-style: solid;
  border-color: #522353;
  border-width: 6px;
}

#mass_balance_header {

  background-color: #522353;
  color: white;
}

#mass_balance_canvas {
  background-color: white;
}

#my_canvas {
  margin-left: auto;
  margin-right: auto;
  display: block;

  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

#mass_balance_text {
  background-color: #DC006B;
  color: white;
  font-size: 30px;
}

#mass_balance_footer {
  flex:1;
}

/* select */

.right-aligned-cell {
  text-align: right;
  max-width:100%;
  white-space:nowrap;
}


/* W3Schools */

/* The container must be positioned relative: */
.custom-select {
  position: relative;
  font-family: Arial;
}

.custom-select select {
  display: none; /*hide original SELECT element: */
}

.select-selected {
  background-color: #522353;
}

/* Style the arrow inside the select element: */
.select-selected:after {
  position: absolute;
  content: "";
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #fff transparent transparent transparent;
}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
  border-color: transparent transparent #fff transparent;
  top: 7px;
}

/* style the items (options), including the selected item: */
.select-items div,.select-selected {
  color: #ffffff;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  cursor: pointer;
}

/* Style items (options): */
.select-items {
  position: absolute;
  background-color: #522353;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}

/* Hide the items when the select box is closed: */
.select-hide {
  display: none;
}

.select-items div:hover, .same-as-selected {
  background-color: rgba(0, 0, 0, 0.3);
}

/* END W3Schools */

/* Mobiles */
 @media screen and (max-width: 540px) {

  .best_viewed_in_landscape {
    display: block;
  }

  .view {
    width: 400px;
  }

  #content
  {
    flex-direction: column;
  }


  #mass_balance_inputs {
    width: 400px;
    margin-bottom: 10px;
    margin-left: 1px;
    margin-right: 1px;
    margin-top: 1px;
    padding-bottom: 1px;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 1px;
  }

  .button {
    border-radius: 2px;
    font-size: 20px;
  }

}

/* Tablets and portrait mode */
@media screen and (min-width: 540px) and  (max-width: 780px) {
    /* all flex is removed */

    .best_viewed_in_landscape {
      display: none;
    }

    .view {
        width: 600px;
    }

    .button {
      border-radius: 2px;
      font-size: 20px;
    }

    #content
    {
      display: block;
      background-color: #D9D4CA;
    }

    #mass_balance_inputs {
      width: 600px;
      margin-bottom: 10px;
      margin-left: 5px;
      margin-right: 1px;
      margin-top: 1px;
      padding-bottom: 1px;
      padding-left: 2px;
      padding-right: 2px;
      padding-top: 1px;
    }

    .best_viewed_in_landscape {
      display: none;
      color: red;
      padding-top: 10px;
      font-size: 20px;
    }

    #mass_balance_outcome {
      flex: initial;   /* Grow to rest of container */

      display: block;
      flex-direction: initial;

      text-align: center;
      margin-bottom: 10px;
      margin-left: 20px;
      margin-right: 20px;
      margin-top: 10px;


    }

    #mass_balance_box {

      display: block;
      flex-direction: initial;

      border-style: solid;
      border-color: #522353;
      border-width: 6px;
    }

    #mass_balance_header {

      background-color: #522353;
      color: white;
    }

    #mass_balance_canvas {
      background-color: white;
    }

    #my_canvas {
      margin-left: auto;
      margin-right: auto;
      display: block;

      padding-left: 0;
      padding-right: 0;
      width: 100%;
    }

    #mass_balance_text {
      background-color: #DC006B;
      color: white;
      font-size: 30px;
    }

    #mass_balance_footer {
      flex:initial;
    }


}
