/* mortgage.css | Jarvis Wong | 2024 */
/* ------------ banner --------------*/
.hero {
	height: 100px;
	font-size: 1.5em;
}
.hero-image {
  /* Use "linear-gradient" to add a darken background effect to the image (photographer.jpg). This will make the text easier to read */
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/img/hero-banner.jpg');
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
/* Place text in the middle of the image */
.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}
.mortgage-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  text-align: center;
}
@media (max-width:700px) {
	.mortgage-grid {
		grid-template-columns: auto;
	}
}
/* ------------ form --------------*/
input[type=text], select, textarea {
  width: 100%;
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 2px;
  margin-bottom: 8px;
  resize: vertical;
  text-align: center;
}
input[type=number], select, textarea {
  width: 100%;
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 2px;
  margin-bottom: 8px;
  resize: vertical;
  text-align: center;
}
#mortgageAmount {
  background-color: #ccc;
}
#downPaymentAmount {
  background-color: #ccc;
}
input[type=submit] {
  background-color: #013228;
  color: white;
  padding: 16px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}
input[type=submit]:hover {
  background-color: #001614;
  color: #ec9d0a;
}
/* ------------ results --------------*/
.calculator-results {
  background-color:#cad4d2;
  padding: 40px;
  border-radius:25px;
  text-align: center;
}
#paymentResult {
  font-size: 2em;
  font-weight: bold;
}
#paymentAmount {
  font-size: 2em;
  font-weight: bold;
  padding:20px;
}
#paymentPlanTitle {
  font-size: 1.5em;
  font-weight: bold;
  padding: 1em;
}
#paymentPlan {
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.payments-grid-header {
	padding: 20px 5px 5px;
	display: grid;
  font-size: 1.2em;
  font-weight: bold;
	grid-template-columns: 3fr 2fr 1fr;
	gap: 1rem;
  border-bottom: 1px solid #000;
}
.payments-grid {
	padding: 3px 5px;
	display: grid;
	grid-template-columns: 3fr 2fr 1fr;
	gap: 1rem;
}
/* END */
