


* {margin: 0; padding: 0;}

.familyinfo {
    display: grid;
    grid-template-columns: 550px 550px;
    grid-gap: 50px;
    position: relative;
}


.catinfo {
    text-align: left;
    background-color: #EEE;
    overflow: hidden;
    min-height: 740px;

    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;

    color: #5E2A4A;
}

#info_img {
    width: 250px;
    height: 250px;
    margin-bottom: -250px;
    position: relative;
    left: 270px;
}

@media (max-width: 1300px) {
    .familyinfo {
        grid-template-columns: 550px;
    }
}

#info_name {
    font-size: 50px;
    position: relative;
    margin-left: 50px;
    margin-top: 20px;
}

#info_gender {
    margin-top: 20px;
    margin-left: 50px;
    line-height: 1.5;
}

#info_age  {
    margin-left: 50px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .familyinfo {
        grid-template-columns: 100%;
        width: 100%;
        margin-left: 0;
        left: 0;
    }

    #info_img {
        right: auto;
        left: 20px;
        top: 60px;
    }

    #info_gender {
        margin-top: 220px;
    }
}

#info_text  {
    line-height: 1.5;
    margin-left: 50px;
}

.family {
    height: 220px;

    background-color: #EEE;
    overflow: hidden;

    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
}

.info {
    color: #AAA;
    position: relative;
    margin-top: -40px;
    top: 50px;
    left: 150px;
    text-align: center;
}

#euphee {
    background-color: #5E2A4A;
    color: white;
}

.connection {
    position: relative;
    border: 1px dashed;
    border-color: #5E2A4A;
    width: 150px;
    height: 0;
    top: 152px;
    left: 250px;
}

.tree {
    pointer-events: none;
    z-index: 10;
    position: relative;
}

.tree+.tree {
    position: relative;
    top: -20px;
}

.topul {
    position: relative;
    top: 290px;
}

.tree ul {
    padding-top: 20px;
    position: relative;

    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;

    pointer-events: none;
}

.tree li {
    pointer-events: none;
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 30px 10px 0 5px;
    top: -130px;

    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}

/*We will use ::before and ::after to draw the connectors*/
.tree li::before, .tree li::after{
    content: '';
    position: absolute;
    top: 30;
    right: 50%;
    border-bottom: 1px solid #5E2A4A;
    width: 50%;
    height: 35px;
    z-index: -1;
}

.tree li::after{
    right: auto;
    left: 50%;
    border-left: 1px solid #5E2A4A;
}

/*We need to remove left-right connectors from elements without
 any siblings*/
.tree li:only-child::after, .tree li:only-child::before {
    display: none;
}

/*Remove space from the top of single children*/
.tree li:only-child{ padding-top: 0;}

/*Remove left connector from first child and
 right connector from last child*/
.tree li:first-child::before, .tree li:last-child::after{
    border: 0 none;
}

/*Adding back the vertical connector to the last nodes*/
.tree li:last-child::before{
    border-right: 1px solid #5E2A4A;
    border-radius: 0 5px 0 0;

    -webkit-transform: translateX(1px);
    -moz-transform: translateX(1px);
    transform: translateX(1px);

    -webkit-border-radius: 0 5px 0 0;
    -moz-border-radius: 0 5px 0 0;
    border-radius: 0 5px 0 0;
}

.tree li:first-child::after{
    border-radius: 5px 0 0 0;
    -webkit-border-radius: 5px 0 0 0;
    -moz-border-radius: 5px 0 0 0;
}

/*Time to add downward connectors from parents*/
.tree ul ul::before{
    content: '';
    position: absolute;
    top: -44px; left: 50%;
    border-left: 1px solid #5E2A4A;
    width: 0;
    height: 32px;
    z-index: -1;
}

.tree li a{
    pointer-events: auto;
    border: 1px solid #5E2A4A;
    padding: 5px 10px;
    text-decoration: none;
    color: #5E2A4A;
    font-size: 12px;
    display: inline-block;
    background: white;
    position: relative;

    -webkit-border-radius: 1px;
    -moz-border-radius: 1px;
    border-radius: 1px;

    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
    cursor: pointer;
}

.tree li a+a {
    margin-left: 20px;
    position: relative;
}

.tree li a+a::before {
    z-index: -1;
    content: '';
    position: absolute;
    border-top: 1px solid #5E2A4A;
    top: 50%;
    left: -30px;
    width: 40px;
}

.aunt {
    position: relative;
    margin-left: 20px;
    left: 43px;
}

.sibling {
    position: relative;
    margin-left: 20px;
}

.tree a:hover {
    background-color: #5E2A4A;
    color: white;
}


