body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7fb;
  margin: 20px;
  color: #222;
  line-height: 1.6;
}

.container{margin-left:auto;margin-right:auto;max-width:940px;border:1px solid #dedede;background:#ffffff;padding:12px;}

.header{text-align:center;}

.header img {
  height: 30px;
}

h1 {
  text-align: center;
  margin-bottom: 15px;
  color: #004080;
}

p.intro {
  max-width: 750px;
  margin: 0 auto 40px;
  text-align: center;
  color: #555;
  font-size: 1.1rem;
}

.calculator-section {
  background: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 35px;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.05);
}

.calculator-section h2 {
  color: #004080;
  margin-top: 0;
}

.calculator-section p {
  margin-bottom: 50px;
}

form {
  margin-top: 10px;
}

form label {
  font-weight: 600;
}

form input[type="number"],
form select {
  padding: 7px 10px;
  margin-top: 6px;
  margin-bottom: 20px;
  font-size: 1rem;
  width: 100%;
  max-width: 180px;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-sizing: border-box;
}

form input[type="submit"] {
  padding: 8px 20px;
  background-color: #004080;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

form input[type="submit"]:hover {
  background-color: #002d5a;
}

.calculator-nav {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  border: 2px solid #f0f0f0;
  background: #fafafa;
  border-radius: 10px;
}

.calculator-nav h2 {
  font-size: 1.5em;
  margin-bottom: 15px;
}

.calculator-nav ul {
  list-style-type: none;
  padding-left: 0;
  column-count: 2;
  gap: 20px;
}

.calculator-nav li {
  margin: 5px 0;
  padding-bottom: 10px;
}

.calculator-nav a {
  text-decoration: none;
  color: #0077cc;
}

.calculator-nav a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #95a5a6;
}

/* Additional styles for tables and formulas */
.formula {
  background: #f8f9fa;
  border-left: 4px solid #004080;
  padding: 10px 15px;
  margin: 15px 0;
  font-style: italic;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th, table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #004080;
}

.random-links {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.random-links h3 {
  color: #004080;
  margin-bottom: 10px;
}

.random-links ul {
  list-style-type: none;
  padding-left: 0;
}

.random-links li {
  margin: 5px 0;
}

.random-links a {
  color: #0077cc;
  text-decoration: none;
}

.random-links a:hover {
  text-decoration: underline;
}

.answer-1{padding:6px;font-size:25px;background:#ffffff;}