/* Base Styles */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  padding: 20px;
  text-align: center;
}

/* Family Tree Layout */
.tree ul {
  padding-top: 20px;
  position: relative;
  display: table;
  margin: 0 auto;
}

.tree li {
  display: table-cell;
  text-align: center;
  position: relative;
  padding: 20px 5px 0 5px;
  vertical-align: top;
}

.tree li::before,
.tree li::after {
  content: '';
  position: absolute;
  top: 0;
  border-top: 2px solid #ccc;
  width: 50%;
  height: 20px;
}

.tree li::before {
  left: -50%;
  border-right: 2px solid #ccc;
}

.tree li::after {
  right: -50%;
  border-left: 2px solid #ccc;
}

.tree li:only-child::before,
.tree li:only-child::after {
  display: none;
}

.tree li:only-child {
  padding-top: 0;
}

.tree li:first-child::before,
.tree li:last-child::after {
  border: none;
}

/* Node Styling */
.tree span {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: #e0f7fa;
  border: 1px solid #00acc1;
  color: #006064;
  font-weight: bold;
}

.ancestor {
  background: #ffe0b2;
  border-color: #fb8c00;
  color: #e65100;
}

.parent {
  background: #dcedc8;
  border-color: #8bc34a;
  color: #33691e;
}

.child {
  background: #f8bbd0;
  border-color: #ec407a;
  color: #880e4f;
}

.highlight {
  background: #fff59d !important;
  border-color: #fbc02d !important;
  color: #f57f17 !important;
}

/* Tribute Section */
.tribute {
  background-color: #fff;
  border: 2px solid #ccc;
  padding: 30px;
  border-radius: 10px;
  display: inline-block;
}

.tribute h1 {
  color: #b22222;
}

.tribute p {
  font-size: 1.2em;
}

.flag {
  font-size: 3em;
  margin-bottom: 20px;
}

/* Footer Styling */
.family-footer {
  background-color: #f0f4f8;
  color: #333;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  border-top: 2px solid #ccc;
  margin-top: 40px;
}

.family-footer a {
  color: #006064;
  text-decoration: none;
  font-weight: bold;
}

.family-footer a:hover {
  text-decoration: underline;
}

/* 🇺🇸 Corner Flag */
.corner-flag {
  position: fixed;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  z-index: 1000;
}
.usa-highlight {
  background: #fff3e0;
  border: 2px solid #ff9800;
  color: #bf360c;
  font-weight: bold;
  position: relative;
  padding-right: 2.5em;
}

.usa-highlight::after {
  content: '🇺🇸';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
}
.ancestor.usa-highlight {
  background: #fff3e0;
  border-color: #ff9800;
  color: #bf360c;
}



