.range-calculator {
    display: grid;
    grid-column-gap: 0px; 
    align-items: center;
    color: white;
    letter-spacing: 2px;
  }
  
  .calculator {
    grid-column: 1 / span 1; 
    padding-top: 40px; /* MM */
    min-width: 700px;
  }
  
  
  .calculation {
    background-color: #f0f0f0;
    width: 100%;
    padding: 45px 50px 70px 50px; /* MM */
    color: black;
    margin: auto;
    white-space: nowrap;
  }
  .calc_inner { 
    width: 450px;
    margin: 0 auto;
  }
  .image-calculation {
    grid-column: 2 / span 1; 
    display: flex;
    margin:0 auto; /* MM */
    width: 100%;
  }

  
  form.calculator-form { margin-bottom: -13px !important; }

  .calculator-form {
    flex-direction: row;
    align-items: center;
  }
  
  #clear-button {
    margin-top: 10px;
    background-color: #c7c0b9; 
    color: black; 
    border: none;
    border-radius: 40px; 
    padding: 10px 20px; 
    cursor: pointer;
    font-weight: bold; 
    letter-spacing: 2px;
  }

  #calculate-button {
    margin-top: 10px;
    background-color: white; 
    color: black; 
    border: none;
    border-radius: 40px; 
    padding: 8px 20px 8px 20px; 
    cursor: pointer;
    font-weight: bold; 
    font-size: 12px;
    letter-spacing: 2px;
    line-height: 16px;
  }

  #calculate-button:hover {
    background-color: #f0f0f0; 
  }

#disclaimer{
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.1em;
  max-width: 100%; /* MM */
  color:#fff; /* MM */
  padding-top: 55px;
}

input {  width: 80%; }

.input-label { 
  font-size: 1.5rem; 
  color: #ffffff;
  letter-spacing: 2px;
  padding-bottom: 15px;
}

.cg-plane-image{
  margin: auto;
    max-width: 200px; /* MM */
    margin-right: 40px; /* MM */
    min-width: 150px; /* MM */
}

ul#airport_results1 {
  position: absolute;
  min-width:350px;
  text-align: left;
  list-style-type: none;
  padding: 0;
  line-height: 1;
  background-color: #cccccc;
  z-index: 3;
  max-height: 300px;
  overflow: scroll;
  overflow-x: hidden;
}
ul#airport_results2 {
  position: absolute;
  min-width:350px;
  text-align: left;
  list-style-type: none;
  padding: 0;
  line-height: 1;
  background-color: #cccccc;
  z-index: 3;
  max-height: 300px;
  overflow: scroll;
  overflow-x: hidden;
}

#headline{
  color: #ffffff;
  margin: 0.5em 0 0 0; /* MM */
  text-align: left; 
}


.distance-p, .duration-hour, .duration-min{
  font-size: 40px;
}

.calculation #distance,
.calculation #duration{
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #ccc; 
  padding-bottom: 8px; /* MM */
  padding-top: 30px; 
  letter-spacing: 2px;
}

.calculation #distance span,
.calculation #duration span {
  font-weight: bold;
  margin-right: 10px; 
}

#duration-components, #distance-components{
  display: flex;
  font-weight:600;
}

.airports h3{
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 30px;
}

.airports p{
  font-size: 12px;
}

.airports:hover{
  cursor: pointer;
  background-color: #dbd7d3;
}

#arrive-input.arrive, #depart-input.depart {
  margin-right: 10px;
  color: white;
  background-color: transparent;
  border: none; 
  border-radius: 0px;
  border-bottom: 2px solid white; 
  letter-spacing: 2px;
}

.airport-inputs {
  display: flex;
  justify-content: space-between;
}

.input-blocks-one-and-two {
  flex: 1;
  padding-bottom: 15px;
}

#one > input, #two > input { font-size:14px; }

.depart,
.arrive {
  display: block;
  box-sizing: border-box;
  margin-top: 10px;
}


#arrow{
  color: #999999;
}

.calculation span{
  color: #7f7b77;
}



.flex-calc { display:flex;flex-direction:row; }
.flex-btn { display:flex; justify-content: flex-start; width: 100%;  margin-top: 40px;}
ul#airport_results1 > li, ul#airport_results2  > li {
  padding:10px;
}



/* Smartphones (portrait *goes below max-width: 1100px) ----------- */
@media only screen and (max-width: 1100px) {
    .flex-calc { 
        display: flex; 
        flex-direction: column; 
    }
    .cg-plane-image {
        margin: auto;
        padding: 20px 10px 30px 10px;
        max-width: 200px;
        min-width: 150px; /* MM */
    }
    #airport-inputs {
        display: flex;
        flex-direction: column; 
        justify-content: space-between;
    }
    #arrive-input.arrive, #depart-input.depart {
        width: 100%;
        margin-right: 10px;
        color: white;
        background-color: transparent;
        border: none;
        border-radius: 0px;
        border-bottom: 2px solid white;
    }
    .flex-btn { display:flex; justify-content: flex-start; width: 100%; }
    .calculation { 
        background-color: #f0f0f0;
        width: 400px;
        margin: 0 auto;
        padding: 5px 50px 30px 50px !important;
        color: black;
        white-space: nowrap; 
    }
    #disclaimer {
        width: 350px;
        margin: 0 auto;
    }
    .calculator {
        grid-column: 1 / span 1;
        padding-top: 40px;
        min-width: 450px;
        margin: 0 auto;
    }
    .image-calculation {
        grid-column: 2 / span 1; 
        display: block;
        margin:initial; /* MM */
    }
    #headline{
        color: white;
        margin: 0.5em 0 0 0; /* MM */
        text-align: center; 
    }
}

@media only screen and (max-width: 1600px) {
    .calculation {
      background-color: #f0f0f0;
      min-width: 200px;
      padding: 45px 50px 70px 50px;
      color: black;
      margin: auto;
      white-space: nowrap;
  }
  .calc_inner { 
    width: auto;
    margin: 0 auto;
  }
  .calculator {
    grid-column: 1 / span 1;
    padding-top: 40px;
    min-width: 550px;
  }
}
@media only screen and (max-width: 1300px) {
  .calculation {
    background-color: #f0f0f0;
    min-width: 150px;
    padding: 45px 20px 70px 20px;
    color: black;
    margin: auto;
    white-space: nowrap;
}
.calculator {
  grid-column: 1 / span 1;
  padding-top: 40px;
  min-width: 450px;
}
}



/* Smartphones (portrait *goes below max-width: 40em) ----------- */
   @media only screen and (max-width: 40em) {
    .calculation { 
            background-color: #f0f0f0;
            width: 100%!important;
            padding: 5px 20px 30px 20px !important;
            color: black;
            margin: auto;
            white-space: nowrap; 
        }
    #headline{
        color: white;
        margin: 0.5em 0 0 0; /* MM */
        text-align: center; 
    }
    
    .calculator {
      grid-column: 1 / span 1;
      padding-top: 40px;
      min-width: 100%;
      margin: 0 auto;
  }
  .flex-btn { display:flex; justify-content: center; width: 100%; }

  ul#airport_results1 {
    position: absolute;
    min-width: 100%;
    text-align: left;
    list-style-type: none;
    padding: 0;
    line-height: 1;
    background-color: #cccccc;
    z-index: 3;
    max-height: 300px;
    overflow: scroll;
    overflow-x: hidden;

  }
  ul#airport_results2 {
    position: absolute;
    min-width: 100%;
    text-align: left;
    list-style-type: none;
    padding: 0;
    line-height: 1;
    background-color: #cccccc;
    z-index: 3;
    max-height: 300px;
    overflow: scroll;
    overflow-x: hidden;
  }

  #distance, #duration {
    flex-direction: column !important;
    margin: 5px;
  }
  
  #distance-components, #duration-components{
    margin-top: 5px;
  }

}

