/* Styles for the page */
body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  padding: 0;
  color: #333;
}

.header {
  background-color: #00203FFF;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.container {
  max-width: 960px;
  margin: auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
  color: #00203FFF;
}

form {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
}

input {
  width: 100%;
  padding: 8px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box; /* Ensures padding doesn't affect width */
}

button {
  background-color: #4ECDC4;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s; /* Smooth transition on hover */
}

button:hover {
  background-color: #008C76; /* Darker shade on hover */
}

/* Chart container */
.chart-container {
  position: relative;
  margin: 20px auto;
  height: 300px;
  width: 300px;
}

/* Amortization Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: center;
}

th {
  background-color: #4ECDC4;
  color: white;
}

/* Footer Section */
footer {
  text-align: center;
  padding: 20px;
  background-color: #00203FFF;
  color: white;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* Responsive Styles */
@media (max-width: 600px) {
  .container {
    padding: 10px;
  }

  .chart-container {
    height: 200px;
    width: 200px;
  }

  button {
    width: 100%; /* Full-width buttons on mobile */
    margin: 10px 0; /* Spacing between buttons */
  }

  input {
    margin-bottom: 15px; /* Adjusted margin for smaller screens */
  }

  table {
    font-size: 14px; /* Smaller font size for better fit */
  }
}

/* Additional Styles for Visual Appeal */
h1 {
  font-size: 2em; /* Larger heading size */
}

h2 {
  font-size: 1.5em; /* Slightly larger subheadings */
}

h3 {
  font-size: 1.25em; /* Standard size for smaller headings */
}

p {
  line-height: 1.5; /* Improved readability */
}
