@font-face {
    font-family: '29LT Azer';
    src: url('../fonts/29LTAzerBold.woff2') format('woff2'), url('../fonts/29LTAzerBold.woff') format('woff'), url('../fonts/29LTAzerBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: '29LT Azer';
    src: url('../fonts/29LTAzer.woff2') format('woff2'), url('../fonts/29LTAzer.woff') format('woff'), url('../fonts/29LTAzer.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* Body */

html,
body {
    margin: 0px;
    padding: 0px;
}

body {
    font-family: '29LT Azer', sans-serif;
    background-image: url(../images/bg-shape.png);
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.ogchart-container {
    font-family: '29LT Azer', sans-serif;
    background-image: url(../images/bg-shape.png);
    background-repeat: repeat;
    direction: rtl;
    padding: 20px 40px;
    margin-right: auto;
    margin-left: auto;
}

.ogchart-container .disc {
    color: #000;
    #font-weight: bold;
    text-align: center;
    margin: 0 auto;
    width: 50%;
    line-height: 1.7;
}

.ogchart-container h1 {
    text-align: center;
    color: #000;
    font-size: 3em;
    margin: 40px 0px 20px;
}

.ogchart-container h2 {
    text-align: center;
    color: #000;
    font-size: 2em;
    margin-bottom: 40px;
}

.ogchart-container h4 {
    text-align: center;
    color: #000;
    font-size: 1.3em;
    margin: 40px 0px 30px;
    font-weight: normal;
}

.ogchart-container h3 {
    text-align: center;
    color: #FF5C35;
    font-size: 2em;
    margin: 0px 0px 50px;
}

.ogchart-container .ogchart-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    /* justify-content: center; */
    /* max-width: 1366px; */
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: auto;
}

.ogchart-container .ogchart-content .og-details {
    width: 25%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    /* border: 1px solid; */
}

.ogchart-container .ogchart-content .og-details .item {
    position: relative;
    margin-bottom: 20px;
}

.ogchart-container .ogchart-content .og-details .item h4 {
    font-weight: normal;
    font-size: 18px;
    position: relative;
    padding-right: 30px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: baseline;
    -ms-flex-align: baseline;
    align-items: baseline;
    margin: 0px;
    cursor: pointer;
    -webkit-transition: all .3s linear;
    -o-transition: all .3s linear;
    transition: all .3s linear;
}


/**
* Tooltip Styles
*/


/* Add this attribute to the element that needs a tooltip */

.active-tooltip {
    /* position: absolute !important; */
    z-index: 2;
    cursor: pointer;
    top: -35px;
    right: -40px;
}


/* Hide the tooltip content by default */

.active-tooltip:before,
.active-tooltip:after {
    visibility: visible;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=0);
    opacity: 1;
    pointer-events: none;
}


/* Position tooltip above the element */

.active-tooltip:before {
    position: absolute;
    bottom: 150%;
    left: 0;
    margin-bottom: 5px;
    margin-left: -80px;
    padding: 7px;
    width: 140px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    background-color: rgba(255, 239, 171, 0.8);
    color: #000;
    content: attr(data-tooltip);
    text-align: center;
    font-size: 14px;
    line-height: 1.3;
    box-shadow: 4px 4px 4px 0px #d2d2d2;
}


/* Triangle hack to make tooltip look like a speech bubble */

.active-tooltip:after {
    position: absolute;
    bottom: 150%;
    left: 50px;
    margin-left: 0;
    width: 0;
    border-top: 5px solid rgba(255, 239, 171, 0.8);
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    content: " ";
    font-size: 0;
    line-height: 0;
}


/* Show tooltip content on hover */

.active-tooltip:hover:before,
.active-tooltip:hover:after {
    visibility: visible;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=100);
    opacity: 1;
}

.ogchart-container .ogchart-content .og-details .item h4 span {
    z-index: 3;
    position: relative;
}

.ogchart-container .ogchart-content .og-details .item h4::before {
    content: "";
    position: absolute;
    right: 0px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    z-index: 2;
}

.ogchart-container .ogchart-content .og-details .item h4::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    opacity: .5;
    transform: scale(0);
    z-index: 1;
}

.ogchart-container .ogchart-content .og-details .item h4.tooltip::after,
.ogchart-container .ogchart-content .og-details .item h4:hover:after {
    animation: mymove 2s infinite;
    transform: scale(0);
}

@keyframes mymove {
    from {
        transform: scale(0.0);
    }
    to {
        transform: scale(3);
    }
}

.ogchart-container .ogchart-content .og-details .item h4.bleu-white:before,
.ogchart-container .ogchart-content .og-details .item h4.bleu-white:after {
    background-color: rgb(88, 126, 192);
}

.ogchart-container .ogchart-content .og-details .item h4.mirts:before,
.ogchart-container .ogchart-content .og-details .item h4.mirts:after {
    background-color: rgb(43, 154, 139);
}

.ogchart-container .ogchart-content .og-details .item h4.work:before,
.ogchart-container .ogchart-content .og-details .item h4.work:after {
    background-color: rgb(189, 170, 131);
}

.ogchart-container .ogchart-content .og-details .item h4.shas:before,
.ogchart-container .ogchart-content .og-details .item h4.shas:after {
    background-color: rgb(255, 210, 74);
}

.ogchart-container .ogchart-content .og-details .item h4.right:before,
.ogchart-container .ogchart-content .og-details .item h4.right:after {
    background-color: rgb(70, 72, 146);
}

.ogchart-container .ogchart-content .og-details .item h4.likud:before,
.ogchart-container .ogchart-content .og-details .item h4.likud:after {
    background-color: rgb(241, 94, 60);
}

.ogchart-container .ogchart-content .og-details .item h4.home:before,
.ogchart-container .ogchart-content .og-details .item h4.home:after {
    background-color: rgb(148, 146, 199);
}

.ogchart-container .ogchart-content .og-details .item h4.unit:before,
.ogchart-container .ogchart-content .og-details .item h4.unit:after {
    background-color: rgb(160, 165, 79);
}

.ogchart-container .ogchart-content .og-details .item p {
    height: 100px;
    opacity: 0;
    margin-bottom: 20px;
    margin-top: 10px;
    padding-right: 30px;
    max-width: 90%;
}

.ogchart-container .ogchart-content .og-details .item.active p {
    opacity: 1;
    -webkit-transition: all .3s linear;
    -o-transition: all .3s linear;
    transition: all .3s linear;
}

.chart svg .default,
.chart svg path {
    display: inline;
    fill: #8A898A;
    font-family: '29LT Azer';
    font-size: 65.04px;
    -webkit-transition: all .3s linear;
    -o-transition: all .3s linear;
    transition: all .3s linear;
}

.chart svg .text {
    fill: #000;
    font-family: '29LT Azer';
    text-anchor: middle;
    font-size: 30px;
    font-weight: bold;
    -webkit-transition: all .3s linear;
    -o-transition: all .3s linear;
    transition: all .3s linear;
}

.chart svg .hint {
    fill: #F15E3C;
    font-family: '29LT Azer';
    text-anchor: middle;
    font-size: 20px;
    font-weight: bold;
    -webkit-transition: all .3s linear;
    -o-transition: all .3s linear;
    transition: all .3s linear;
}

.chart svg .text.number {
    font-size: 50px;
}

.chart svg .bleu-white {
    fill: #587EC0;
}

.chart svg .mirts {
    fill: #2B9A8B;
}

.chart svg .work {
    fill: #BDAA83;
}

.chart svg .shas {
    fill: #FFD24A;
}

.chart svg .right {
    fill: #464892;
}

.chart svg .likud {
    fill: #F15E3C;
}

.chart svg .home {
    fill: #9492C7;
}

.chart svg .unit {
    fill: #A0A54F;
}

.ogchart-container .ogchart-content .chart {
    width: 50%;
    padding: 110px 50px;
    /* padding-right: 0px; */
}

@media (min-width: 992px) {
    .ogchart-container {
        width: 970px;
    }
}

@media (min-width: 1200px) {
    .ogchart-container {
        width: 1170px;
    }
}

@media (min-width: 1366px) {
    .ogchart-container {
        width: calc(1366px - 40px);
    }
    .second-title {
        margin: 50px auto -70px;
    }
}

@media(max-width:991px) {
    .ogchart-container .ogchart-content {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .ogchart-container .ogchart-content .og-details .item p {
        /* height: 130px; */
        font-size: 14px;
    }
    .ogchart-container .ogchart-content .og-details,
    .ogchart-container .ogchart-content .chart {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
    }
    .ogchart-container .ogchart-content .og-details .item {
        width: 25%;
    }
    .ogchart-container .ogchart-content .og-details,
    .ogchart-container .ogchart-content .chart {
        width: 100%;
        padding: 30px;
    }
    .ogchart-container .ogchart-content .chart svg {
        width: 70%;
        margin: auto;
    }
    .ogchart-container .ogchart-content .og-details .item p {
        display: none;
        height: auto;
    }
    .ogchart-container .ogchart-content .og-details .item.active p {
        display: block;
    }
}

.header {
    width: 100%;
    height: 82px;
    background-color: #ffffff;
    padding: 0px;
    border-bottom: 1px solid;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .logo img {
    width: 150px;
    float: right;
    margin-right: 30px;
}

.header .twitter {
    width: 50px;
    float: left;
    margin-left: 30px;
    /* margin-top: 15px; */
}

.header .facebook {
    width: 50px;
    float: left;
    margin-left: 5px;
    /* margin-top: 15px; */
}

.second-title {
    width: 40%;
    margin: 30px auto 0px;
}

@media(max-width:768px) {
    .second-title {
        width: 60%;
        margin-bottom: 0px;
    }
    .header {
        height: 60px;
    }
    .header .logo img {
        width: 100px;
    }
    .header .twitter,
    .header .facebook {
        width: 30px;
    }
    .ogchart-container {
        padding: 20px;
    }
    .ogchart-container .disc {
        width: 100%;
        font-weight: normal;
        font-size: 14px;
    }
    .ogchart-container h1 {
        font-size: 2em;
    }
    .ogchart-container h2 {
        font-size: 1.5em;
    }
    .ogchart-container h4 {
        font-size: .9em;
        margin: 0px 0px 30px;
    }
    .ogchart-container h3 {
        font-size: 1.2em;
    }
    .ogchart-container .ogchart-content .og-details {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .ogchart-container .ogchart-content .og-details.first {
        order: 1;
        padding: 30px 10px 0px;
    }
    .ogchart-container .ogchart-content .og-details.second {
        order: 2;
        padding: 0px 10px 30px;
    }
    .ogchart-container .ogchart-content .og-details .item {
        width: 50%;
    }
    .ogchart-container .ogchart-content .og-details .item h4 {
        font-size: 16px;
    }
    .ogchart-container .ogchart-content .og-details .item p {
        font-size: 11px;
    }
    .ogchart-container .ogchart-content .chart {
        padding: 0px !important;
        height: auto !important;
        min-height: 300px;
        display: block;
        margin-bottom: 30px;
        /* overflow: hidden; */
    }
    .ogchart-container .ogchart-content .chart svg {
        width: 100%;
    }
}

@media(max-width:580px) {
    .second-title {
        width: 70%;
    }
    .ogchart-container .ogchart-content .og-details .item {
        /* width: 100%; */
    }
}


/* tree Content */


/*Now the CSS*/

* {
    margin: 0;
    padding: 0;
}

.tree-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    min-height: 100%;
    /* padding-bottom: 150px; */
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.tree {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.tree ul {
    padding-top: 20px;
    position: relative;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    /* justify-content: center; */
    /* flex: 1 1 0px; */
}

.tree li {
    /* float: left; */
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 5px 0 5px;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0px;
    flex: 1 1 0px;
    width: 50%;
}

.tree li.first-node {
    /* display: none; */
    width: 300px;
}

@media(max-width:1024px) {
    .tree li.first-node {
        width: 33.333%;
    }
    .tree .root.active li.first-node.active li {
        width: auto !important;
    }
}

.tree li.first-node.active::after,
.tree li.first-node.active::before {
    border-top: 0px !important;
}


/*We will use ::before and ::after to draw the connectors*/

.tree li::before,
.tree li::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-top: 1px solid #999;
    width: 50%;
    height: 20px;
}

.tree li:after {
    left: auto;
    right: 50%;
    border-right: 1px solid #999;
}

.target-same-way {
    border-top: 1px solid #999;
    margin-top: 20px;
    width: 50% !important;
}

.target-same-way::before {
    display: none;
}

.target-same-way span.indicator {
    position: absolute;
    top: -20px;
    display: block;
    width: 100%;
}

.target-same-way .indicator::before,
.target-same-way .indicator::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0%;
    border-left: 1px solid #999;
    width: 50%;
    height: 20px;
}

.target-same-way .indicator::after {
    left: auto;
    right: 0px;
    border-right: 1px solid #999;
    border-left: 0;
}

.target-same-way>li {
    margin-top: -20px;
}

.target-same-way>li::before {
    border-top: 0px;
}


/*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-left: 1px solid #999;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
}

.tree li:first-child::after {
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
}


/*Time to add downward connectors from parents*/

.tree * {
    -webkit-transition: all .3s linear;
    -o-transition: all .3s linear;
    transition: all .3s linear;
}

.tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-right: 1px solid #999;
    width: 0;
    height: 20px;
    margin-right: -1px;
}

.tree li a,
.tree li .no-dropdown {
    cursor: pointer;
    border: 1px solid #E4E3E4;
    padding: 5px 10px;
    text-decoration: none;
    background: #fff;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 120px;
    width: 120px;
    border-radius: 50%;
    -moz-border-radius: 5px;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
}

.tree li.first-node>a {
    border: 1px solid #E4E3E4;
    background: #E4E3E4;
    font-size: 18px;
}

@media(max-width:500px) {
    .tree li a,
    .tree li .no-dropdown {
        font-size: 14px !important;
        height: 70px;
        width: 70px;
    }
    .tree .root.active li a,
    .tree .root.active li .no-dropdown {
        font-size: 13px !important;
        height: 85px;
        width: 85px;
    }
    .dropdown-section .tree-drop-down,
    .dropdown-section .tree-drop-down.r-drop {
        width: auto !important;
        min-width: 12em !important;
        left: -4em !important;
        top: 100% !important;
        bottom: auto !important;
        font-size: 14px !important;
    }
    .dropdown-section .tree-drop-down:before {
        transform: rotate(90deg);
        top: -20px !important;
        left: 5.2em;
    }
    .dropdown-section .tree-drop-down p {
        padding: 5px
    }
    .reset-tree {
        width: 100% !important;
        font-size: 18px !important;
    }
}

.tree li.first-node.active>a,
.tree li a:hover,
.tree li a:focus,
.tree li .no-dropdown:focus .dropdown-section.active a {
    border: 1px solid #FF5C35;
    background: #FF5C35;
    color: #fff;
}

.tree .root {
    min-width: 70%;
    margin: auto;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.tree .root.active .first-node,
.tree ul.first-content-node,
.first-content-node ul {
    display: none;
}

.tree .root.active li.first-node.active li {
    width: 300px;
}

.tree .root.active li.first-node.active,
.tree .root.active li.first-node.active .first-content-node,
.tree .root.active li.first-node.active .first-content-node ul.active {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    opacity: 1;
}

.tree .root.active li.first-node.active .first-content-node ul.active .deactive,
.tree .root.active li.first-node.active .first-content-node ul.active .deactive::before {
    display: none;
    opacity: 0;
}

.tree .root.active li.first-node.active .first-content-node ul.active .active-branch::before,
.tree .root.active li.first-node.active .first-content-node ul.active .active-branch::after {
    border-top: 0px;
    margin-right: -1px;
}


/*Time for some hover effects*/


/*We will apply the hover effect the the lineage of the element also*/


/* .tree li a:hover,
.tree li a:hover+ul li a {
background: #c8e4f8;
color: #000;
border: 1px solid #94a0b4;
} */


/*Connector styles on hover*/

.tree li a:hover+ul li::after,
.tree li a:hover+ul li::before,
.tree li a:hover+ul::before,
.tree li a:hover+ul ul::before {
    border-color: #94a0b4;
}

li a.just-line {
    display: none;
}

a.just-line+ul {
    padding-top: 74px;
}

a.just-line+ul:before {
    height: 74px;
}


/* dropDown */

.dropdown-section {
    position: relative;
}

.tree-drop-down {
    display: none;
    border: 1px solid #999;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 14rem;
    padding: .5rem 0;
    margin: .125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: right;
    list-style: none;
    background-color: #fff;
    margin: 10px;
}

.dropdown-section.active .tree-drop-down,
.dropdown-section .tree-drop-toggle:hover~.tree-drop-down,
.dropdown-section .tree-drop-toggle:focus~.tree-drop-down {
    display: block;
}

.tree-drop-down::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 30px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 25px solid #CCCCCC;
}

.tree-drop-down.r-drop {
    left: 140px;
    right: auto;
}

.tree-drop-down.l-drop {
    right: 140px;
    left: auto;
}

.tree-drop-down.l-drop::before {
    right: -20px;
    left: auto;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid #CCCCCC;
    border-right: 0px;
}

.tree-drop-down p {
    padding: 10px;
}

.reset-tree {
    background-color: #E4E3E4;
    color: #000;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 30px;
    position: relative;
    width: 250px;
    text-align: center;
    margin: 60px auto 30px;
    text-decoration: none;
    -webkit-transition: all .3s linear;
    -o-transition: all .3s linear;
    transition: all .3s linear;
}

.reset-tree:hover {
    background: #FF5C35;
    color: #fff;
}

.reset-tree::after {
    content: "";
    position: absolute;
    left: calc(50% - 15px);
    top: -15px;
    width: 30px;
    height: 5px;
    background-color: #E4E3E4;
}

.reset-tree::before {
    content: "";
    position: absolute;
    left: calc(50% - 15px);
    top: -45px;
    width: 0;
    height: 0;
    border-bottom: 25px solid #E4E3E4;
    border-right: 15px solid transparent;
    border-top: 0;
    border-left: 15px solid transparent;
}

.reset-tree:hover::after {
    background: #FF5C35;
}

.reset-tree:hover::before {
    border-bottom: 25px solid #FF5C35;
}