@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;700&display=swap');

.mortgage-calculator {
  font-family: 'Lexend', sans-serif;
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f2e1d0;
  color: #7f5a83;
}

.mortgage-info, .payoff-results {
  width: 48%;
}

h2 {
  color: #7f5a83;
  margin-bottom: 20px;
}

.input-group, .result-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
}

input[type="number"],
input[type="date"],
select {
  width: 100%;
  padding: 8px;
  border: 1px solid #7f5a83;
  border-radius: 3px;
  font-family: 'Lexend', sans-serif;
}

button {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: rgba(25, 204, 163, 1.0);
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #99cffa;
}

.result-group {
  background-color: #ffae99;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.result-group h3 {
  margin-top: 0;
  color: #7f5a83;
}

canvas {
  width: 100%;
  height: 200px;
  margin-top: 15px;
}

#savings-message {
  font-weight: 700;
  font-size: 1.2em;
  text-align: center;
}

@media (max-width: 768px) {
  .mortgage-calculator {
    flex-direction: column;
  }
  
  .mortgage-info, .payoff-results {
    width: 100%;
  }
}

.money-input {
  text-align: left;
  padding-right: 5px;
  width: 100%; /* Ensure full width */
  box-sizing: border-box; /* Include padding in width calculation */
  font-family: 'Lexend', sans-serif;
}

.input-group input[type="text"],
.input-group input[type="number"],
.input-group input[type="date"],
.input-group select {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;