/* Container for each generation section */

article {
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;

  background-image: url(../img/Autumn1000x1294.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.gen-box {
    background-color: rgba(244, 244, 249, 0.80);
  /* background: white; */
  border: 2px solid #333;
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 20px;
  width: 90%;
  max-width: 400px; /* Prevents becoming too wide */
  text-align: center;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
}

.individual-carpenter {
  font-weight: bold;
  margin-bottom: 10px;
  color: #008204;
  text-transform: uppercase;
  font-size: 1em;
}

.gen-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #555555;
  text-transform: uppercase;
  font-size: 0.8em;
}

.person-male-link {
  display: block;
  color: #007bff;
  text-decoration: none;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 5px 0;
  transition: background 0.3s;
}

.person-male-link:hover {
  background-color: #e0f0ff;
}

.person-female-link {
  display: block;
  color: #ff00ff;
  text-decoration: none;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 5px 0;
  transition: background 0.3s;
}

.person-female-link:hover {
  background-color: #ffe0fe;
}

.person-unknown {
  display: block;
  color: #888;
  text-decoration: none;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 5px 0;
  transition: background 0.3s;
}

.person-notAdopted {
  display: block;
  color: #888;
  text-decoration: none;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 5px 0;
  transition: background 0.3s;
}

/* Connecting Line */
.gen-box:not(:last-child)::after {
  content: "⬇";
  display: block;
  margin-top: 10px;
  color: #888;
}

.notes {
  background: white;
  border: 2px solid #333;
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 20px;
  width: 90%;
  max-width: 400px; /* Prevents becoming too wide */
  text-align: center;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
}

.identity {
  font-weight: bold;
  color: #9e0e0e;
  font-size: 0.8em;
  text-align: left;
  padding-top: 0.5rem;
  margin-bottom: -0.5rem;
}  

.identity span {
  color: gray;
  font-size: 0.7rem;
  font-style: italic;
}

.adopt {
  font-size: 0.8em;
}

.source {
  color: #999;
  font-size: 0.75em;
  text-align: left;
}

.source a {
  color: #999;
  text-decoration: none;
}
