﻿/*Now the CSS*/
* {
    margin: 0;
    padding: 0;
}

.Yk-tree {
    width: auto;
    margin-left: auto;
    margin-right: auto;
    width: 600px;
    max-width: 100%;
}

    .Yk-tree ul {
        padding-top: 20px;
        position: relative;
        transition: all 0.5s;
        -webkit-transition: all 0.5s;
        -moz-transition: all 0.5s;
        margin-left: 0;
    }

    .Yk-tree li {
        float: left;
        text-align: center;
        list-style-type: none;
        position: relative;
        padding: 20px 5px 0 5px;
        transition: all 0.5s;
        -webkit-transition: all 0.5s;
        -moz-transition: all 0.5s;
    }

        /*We will use ::before and ::after to draw the connectors*/

        .Yk-tree li::before, .Yk-tree li::after {
            content: '';
            position: absolute;
            top: 0;
            right: 50%;
            border-top: 3px solid #f28036;
            width: 50%;
            height: 20px;
        }

        .Yk-tree li:after {
            right: auto;
            left: 50%;
            border-left: 3px solid #f28036;
        }

        /*We need to remove left-right connectors from elements without
any siblings*/
        .Yk-tree li:only-child::after, .Yk-tree li:only-child::before {
            display: none;
        }

        /*Remove space from the top of single children*/
        .Yk-tree li:only-child {
            padding-top: 0;
        }

        /*Remove left connector from first child and
right connector from last child*/
        .Yk-tree li:first-child::before, .Yk-tree li:last-child::after {
            border: 0 none;
        }
        /*Adding back the vertical connector to the last nodes*/
        .Yk-tree li:last-child::before {
            border-right: 3px solid #f28036;
        }

        .Yk-tree li:first-child::after {
        }

    /*Time to add downward connectors from parents*/
    .Yk-tree ul ul::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        border-left: 3px solid #f28036;
        width: 0;
        height: 20px;
        margin-left: -1px;
    }

    .Yk-tree li .yk_item {
        border: 3px solid #f28036;
        padding: 5px 5px;
        text-decoration: none;
        color: #666;
        font-family: 'VerbBlack';
        font-size: 12px;
        display: inline-block;
        -webkit-transition: all 0.5s;
        -moz-transition: all 0.5s;
        width: 165px;
    }

        /*Time for some hover effects*/
        /*We will apply the hover effect the the lineage of the element also*/
        .Yk-tree li .yk_item:hover, .Yk-tree li a:hover + ul li .yk_item {
            /*background: #f28036;
            color: white;*/
        }
            /*Connector styles on hover*/
            .Yk-tree li .yk_item:hover + ul li::after,
            .Yk-tree li .yk_item:hover + ul li::before,
            .Yk-tree li .yk_item:hover + ul::before,
            .Yk-tree li .yk_item:hover + ul ul::before {
                /*border-color: black;*/
            }

li a.just-line {
    display: none;
}

a.just-line + ul {
    padding-top: 74px;
}

    a.just-line + ul:before {
        height: 74px;
    }

.btnCvdetail {
    clear: both;
    display: block;
    font-size: 12px;
    text-decoration: underline;
    color: #f28036;
    cursor: pointer;
}

.yk_title {
    font-style: italic;
    margin-bottom: 0;
    text-align: center !important;
}

.cv_detail {
    font-family: 'verbcondregular';
    display: none;
    position: relative;
    padding: 15px;
    /* background: #eaeaea; */
    border: 1px solid rgba(220, 220, 220, 0.54);
    margin-top: 15px;
    margin-bottom: 15px;
}

    .cv_detail h3 {
        font-family: 'VerbBlack';
        font-size: 14px;
    }

.btnCloseCvdetail {
    position: absolute;
    right: -1px;
    top: -31px;
    /* background: #cecece; */
    font-size: 20px;
    color: red;
    padding: 5px 8px;
    font-weight: bold;
    text-decoration: underline;
    background: gainsboro;
    cursor: pointer;
}

.cv_detail_img {
    width: 90px;
    padding: 10px;
    padding-left: 0;
    padding-top: 0;
    padding-right: 0;
}

@media only screen and (max-width : 640px) {
    .Yk-tree li {
        float: none;
        padding-top: 0;
    }

        .Yk-tree li:after, .Yk-tree li::before, .Yk-tree li::after {
            display: none;
        }

    .Yk-tree ul ul ul li {
        margin-bottom: 10px;
    }
}

@media only screen and (max-width : 450px) {
    .Yk-tree > ul > li > .yk_item {
        margin-top: 10px;
    }
}