body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f4f4f4;
  color: #222;
}

.wrapper {
  width: 80%;
  max-width: 900px;
  margin: 40px auto;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

h1 {
  color: #1f4e79;
  margin-top: 0;
}

h2 {
  color: #333;
}

p {
  line-height: 1.6;
}

.nav-list {
  list-style: none;
  padding: 0;
}

.nav-list li {
  margin: 12px 0;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

nav a {
  display: inline-block;
  color: #1f3c88;
  background: #f4f7fb;
  line-height: 1.4;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

nav a:hover {
  background: #e8f0fe;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

a {
  color: #1f4e79;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

.result-box {
  margin-top: 20px;
  padding: 15px;
  background-color: #eef5fb;
  border-left: 5px solid #1f4e79;
  border-radius: 6px;
}

.back-link {
  display: inline-block;
  margin-top: 25px;
}

.info-box {
  margin-top: 20px;
  padding: 15px;
  background-color: #fff7e6;
  border-left: 5px solid #ff9800;
  border-radius: 6px;
}

.result-box h2,
.info-box h2 {
  margin-top: 0;
}

.output-label {
  font-weight: bold;
  margin-bottom: 10px;
}

.back-button {
  display: inline-block;
  margin-top: 25px;
  padding: 10px 16px;
  background-color: #1f4e79;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.back-button:hover {
  background-color: #163a5a;
  transform: translateY(-1px);
}

footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid #dbe3ec;
  padding-top: 1rem;
  margin-top: 2rem;
}

footer a {
  display: inline-block;
  color: #1f3c88;
  background: #f4f7fb;
  line-height: 1.4;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

footer a:hover {
  background: #e8f0fe;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

@media screen and (min-width: 768px) {
  nav,
  footer {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  nav :first-child,
  footer :first-child {
    margin-right: auto;
  }
}