body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0
}

.container {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px
}

h1 {
  text-align: center
}

.form-group {
  margin-bottom: 20px
}

.form-control {
  display: block;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 5px;
  border: 1px solid #ced4da
}

.no-bullets {
  list-style-type: none;
  padding-left: 0;
}

.alert.alert-success.text-center {
  overflow-y: auto; /* This will ensure that if the content does exceed the container, it will be scrollable */
  max-height: none; /* Remove any max-height restrictions */
}

.alert {
  padding: 20px;
  border-radius: 5px;
  margin-top: 20px
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb
}

.btn {
  padding: 10px;
  border: none;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  display: block;
  width: 100%;
  margin-top: 10px
}

.btn-primary {
  background-color: #007bff
}

.btn-secondary {
  background-color: #6c757d
}

.btn-success {
  background-color: #28a745
}

.btn-info {
  background-color: #17a2b8
}

.btn:hover {
  opacity: .85
}

.text-center {
  text-align: center
}

.calculator-container {
  background-color: #adcfdc;
  width: 90%;
  max-width: 400px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 15px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
  background: linear-gradient(to right, #f8f9fa, #e0eafc);
  padding: 20px;
  text-align: center;
}

.calculator-title {
  font-size: 22px;
  color: #ffffff; /* keep color to white */
  text-align: center;
  font-weight: 600;
  padding: 10px;
  margin-top: 0;
  margin-bottom: 30px;
  /* Updated the gradient to transition from lighter blue to lighter green */
  background: linear-gradient(to right, #053b7d, #066ba5); 
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
  border: .5px solid #084288;
  font-family: Arial, sans-serif;
}


.input-group {
  border: 1px solid #817f7f;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 15px;
  background-color: #f8f9fadd; /* light grey background */
}


.calculator-container .btn,
.calculator-container .form-control {
  display: block;
  max-width: 300px;
  margin: 5px auto;
  border: 1px solid #817f7f
}

.input-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px
}

.input-container label {
  font-size: 18px;
  font-weight: 600;
  color: #334d50;
  margin-right: 10px
}

.input-container input,
.input-container select {
  width: 45%;
  padding: 8px;
  font-size: 14px;
  border: 2px solid #89a19c;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
  outline: 0;
  transition: box-shadow .3s ease;
  background-color: #e8f0f2
}

.input-container input:focus,
.input-container select:focus {
  box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
  border-color: #667eea
}

#button-container {
  display: flex;
  justify-content: center;
  margin-top: 40px
}

#button-container button {
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  background: linear-gradient(90deg, #667eea 0, #764ba2 100%);
  box-shadow: 0 10px 20px rgba(102, 126, 234, .2), 0 20px 40px rgba(118, 75, 162, .2);
  transition: all .3s ease;
  cursor: pointer;
  margin: 0 10px
}

#button-container button:hover {
  transform: translateY(-3px)
}

#result {
  border: none;
  padding: 20px;
  margin-top: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  border-radius: 5px;
  background-color: #e8f0f2
}

.errorMessage {
  color: #ff4b5c;
  text-align: center;
  margin-top: 10px
}

@media screen and (max-width:480px) {
  .input-container {
    flex-direction: column;
    align-items: flex-start
  }

  .input-container label {
    margin-bottom: 10px
  }

  .input-container input,
  .input-container select {
    width: 100%
  }
}

.disclaimer {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 15px;
  width: 300px;
  z-index: 1;
  white-space: normal;
  max-width: 40vw;
  left: 50%
}

@media screen and (max-width:480px) {
  .calculator-container {
    padding: 10px;
    border-radius: 10px;
    max-width: 350px !important
  }
}

.smaller-button {
  padding: 3px 6px;
  font-size: 10px
}

.disclaimer-text {
  font-size: 16px;
  color: #888;
  margin-bottom: 3px;
  padding: 3px;
  text-align: center
}

table {
  border-collapse: collapse;
  width: 75%;
  margin: auto
}

table td,
table th {
  font-size: 15px
}

td,
th {
  border: 1px solid #ddd;
  padding: 5px;
  text-align: center
}

th {
  padding-top: 5px;
  padding-bottom: 5px;
  text-align: center;
  background-color: #3c638a;
  color: #fff
}

::placeholder {
  font-size: 14px
}

.disclaimer-text {
  font-size: 14px;
  color: #515050;
  margin-bottom: 0
}

body,
button,
div,
input,
label,
select,
span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

.calculator-container {
  background-color: #fff;
  width: 0%;
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 0 5px #ccc
}

.input-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px
}

.input-container label {
  width: 25%;
  text-align: right;
  margin-right: 5%;
  font-size: 12px;
  font-weight: 700;
  margin-left: 25px
}

#button-container {
  display: flex;
  justify-content: center;
  margin-top: 20px
}

#result {
  border: 1px solid #ccc;
  padding: 10px;
  margin-top: 20px;
  margin-left: 20px;
  margin-right: 20px;
  overflow-y: auto;
  max-height: 300px
}

input[type=text],
select {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 1em;
  color: #333;
  box-sizing: border-box
}

.humid-input {
  width: 30%
}

#new-buttons {
  display: flex;
  justify-content: center;
  margin-top: 5px
}

.smaller-button {
  width: 35%;
  padding: 5px;
  font-size: 12px;
  margin: 0 2.5% !important
}

#loanChart {
  display: none;
}