/* General styling for the body */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

h1 {
    color: #333;
    padding: 20px;
}

/* Ensure Flexbox positioning */
.tree {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Generation containers */
.generation {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.parent, .children {
    display: flex;
    justify-content: center;
    position: relative;
}

/* Vertical line connecting parents and children */
.parent::after, .children::before {
    content: '';
    width: 2px;
    height: 40px;
    background-color: #000;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.children::before {
    top: -40px;
}

/* Person container */
.children .person {
    margin: 0 20px;
    position: relative;
    z-index: 1;
}

/* Horizontal line between second-generation siblings - aligned with images */
.children .person::before {
    content: '';
    height: 2px;
    width: 100%;
    background-color: #000;
    position: absolute;
    top: 40px; /* Adjusted to align perfectly with images in second generation */
    left: -20px;
    z-index: -1;
}

.children .person:first-child::before {
    width: 50%;
    left: 50%;
}

.children .person:last-child::before {
    width: 50%;
}

/* Horizontal line between third-generation siblings */
.third-gen .children .person::before {
    content: '';
    height: 2px;
    width: 100%;
    background-color: #000;
    position: absolute;
    top: 30px; /* Align horizontal line higher to center with the image */
    left: -20px;
    z-index: -1;
}

.third-gen .children .person:first-child::before {
    width: 50%;
    left: 50%;
}

.third-gen .children .person:last-child::before {
    width: 50%;
}

/* Styling for each person */
.person img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #ccc;
    z-index: 1;
}

.person p {
    margin-top: 10px;
    font-weight: bold;
    z-index: 1;
    background-color: #f9f9f9;
    padding: 5px;
}

/* Ensure horizontal lines are under the images, not the text */
.no-lines .person::before {
    content: none;
}

/* Link styling */
a {
    display: inline-block;
    margin-top: 30px;
    color: #555;
    text-decoration: none;
}

a:hover {
    color: #000;
}
/* Change the carousel control arrows' background and icon color */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    border-radius: 50%; /* Make it circular */
}

.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
    color: white; /* Change arrow icon to white */
}
.cava-inu-banner {
    background-color: black;
    color: white;
    text-align: center;
    height: 40px; /* Adjusted for extra space */
    line-height: 40px; /* Line height to match height for vertical centering */
}

.cava-inu-banner a {
    color: white;
    text-decoration: none;
    display: block; /* Ensures the link fills the space */
}

.container.my-4 p, ul, li {
    text-align: left;
}
.container.my-4 h3, h4 {
	margin-top: 20px;
	text-align: left;
	font-weight: bold;
}
.affiliate-box {
	background-color: #f8f9fa;
	border: 1px solid #ccc;
	padding: 15px;
	margin: 20px 0;
	text-align: center;
}
/* Explicitly remove transitions from the navbar to prevent flashes */
.navbar, .navbar * {
    transition: none !important;
}


