html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: lightgray;
}
.form-gray-bg {
    background-color: #756d6d !important;
    min-height: 100vh;
}
.gray-form-container {
    background-color: lightgray;
    padding: 2rem;
    border-radius: 0.5rem;
}
.nav-link.active {
    background-color: white !important;
    color: black !important;
    border-radius: 0.25rem;
}



.family-tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.generation-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.person-pair {
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid #f9f9f9; /* #ccc */
    padding: 20px;
    border-radius: 15px;
    /* background-color: #cfeaff ;/* #f9f9f9; */ */
}

.parent-pair {
    display: flex;
    gap: 20px;
    align-items: center;
    border: 4px solid #f2556f; /* Green border for father */
    padding: 20px;
    border-radius: 15px;
    /* background-color: #e9fbe9; */ /* Optional light green background */
    margin-bottom: 20px;
}

.child-pair {
    display: flex;
    gap: 20px;
    align-items: center;
    border: 3px solid #28a745; /* Green border for children */
    padding: 20px;
    border-radius: 15px;
    /* background-color: #f9fff9; */ /* Optional subtle background */
    margin-top: 15px;
    justify-content: flex-start;
}

.grandchild-pair {
    display: flex;
    gap: 20px;
    align-items: center;
    border: 2px solid #ff9500; /* Blue border for grandchildren */
    padding: 20px;
    border-radius: 15px;
    /* background-color: #f0f8ff;  */ /* Optional light blue background */
    margin-top: 15px;
}

.person-card {
    text-align: center;
    width: 140px;
}

    .person-card img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 50%;
        border: 1px solid #999;
    }

.children-container {
    display: none;
    margin-top: 15px;
    margin-bottom: 40px;
    flex-direction: column;
    align-items: center;
    border: 1px solid dotted;
}

.toggle-node {
    cursor: pointer;
    color: brown; /* #007bff */
    margin-top: 5px;
    text-decoration: underline;
}

/* Smooth transition for all navbar links */
.navbar .nav-link {
    transition: background-color 0.3s ease, color 0.3s ease;
}

    /* Hover effect to match active bg-white */
    .navbar .nav-link:hover {
        background-color: white;
        color: black;
    }


    /*- new tre view relationship        */

.tree-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background: none;
    text-align: center;
    min-width: 120px;
    margin: 0 auto;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
}

    .tree-node.highlight {
        background: none;
        border: 2px solid #ff9800;
        font-weight: bold;
    }

.tree-children {
    display: flex;
    justify-content: center;
    gap: 40px; /* space between children */
    margin-top: 30px;
}

.form-container select,
.form-container button {
    margin-right: 10px;
    padding: 5px 10px;
}

.form-container {
    margin-bottom: 20px;
}


.tree-node {
    text-align: center;
    margin: 12px;
}

.children {
    display: flex;
    justify-content: center;
}

.highlight {
    background: none;
    padding: 8px;
    border-radius: 6px;
}
.tree-node img {
    width: 50px; /* your current size */
    height: 50px; /* make it square */
    border-radius: 50%; /* makes it a perfect circle */
    object-fit: cover; /* ensures image fills circle without stretching */
    border: 2px solid #ccc; /* optional border */
}

