/* Layout & centering */
body {
  margin: 0;
  font-family: sans-serif;
  background: #001f3f;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Centered navbar with evenly spaced links */
.navbar {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background: #002b5c;
  padding: 0.5rem;
}
.navbar a, .navbar button {
  color: #fff;
  text-decoration: none;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

/* Search/input centering */
.search-container,
.lookup-controls,
#splitter h2,
#split-form {
  width: 100%;
  max-width: 600px;
  margin: 1rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.search-container input,
.lookup-controls input,
.lookup-controls select,
#split-form input,
#split-form button {
  width: 100%;
  max-width: 400px;
  padding: 0.5rem;
  margin: 0.5rem 0;
}
.lookup-controls {
  flex-direction: row;
  gap: 0.5rem;
}
.lookup-controls input,
.lookup-controls select {
  flex: 1;
}

/* Profit splitter heading centered */
#splitter h2 {
  text-align: center;
}

/* Results & cards */
.lookup-card {
  background: #003366;
  border-radius: 8px;
  padding: 1rem;
  margin: 0.5rem 0;
  width: 100%;
  max-width: 600px;
}
.lookup-card h3 {
  margin-top: 0;
}
.lookup-card p {
  margin: 0.3rem 0;
}
#payouts-table {
  width: 100%;
  max-width: 600px;
  margin: 1rem auto;
  border-collapse: collapse;
}
#payouts-table th,
#payouts-table td {
  border: 1px solid #fff;
  padding: 0.5rem;
  text-align: center;
}
