﻿.tree {
      display: flex;
      justify-content: center;
      padding: 40px 0;
    }

    .tree ul {
      position: relative;
      padding-top: 20px;
      display: flex;
      justify-content: center;
    }

    .tree ul ul::before {
      content: '';
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 2px;
      height: 20px;
      background-color: #ccc;
    }

    .tree li {
      list-style-type: none;
      text-align: center;
      position: relative;
      padding: 20px 5px 0 5px;
    }

    .tree li::before,
    .tree li::after {
      content: '';
      position: absolute;
      top: 0;
      width: 50%;
      height: 20px;
      border-top: 2px solid #607d8b;
    }

    .tree li::before {
      right: 50%;
      border-right: 2px solid #607d8b;
    }

    .tree li::after {
      left: 50%;
      border-left: 2px solid #607d8b;
    }

    .tree li:only-child::before,
    .tree li:only-child::after {
      display: none;
    }

    .tree li:first-child::before,
    .tree li:last-child::after {
     /* border: none;*/
    }
    .tree li:first-child::after, .tree li:last-child::before
    {
	
	border-top:none !important;
}

    .node {
      display: inline-block;
      padding: 5px 13px;
      border: 2px solid #858585;
      border-radius: 5px;
      font-weight: bold;
      position: relative;
      z-index: 1;
      background: white;
    }

    /* Color-coded levels */
   .level-1 { background-color: #0059b3; color: white;box-shadow:4px 4px 9px -4px rgba(0, 0, 0, 0.4) }
    .level-2 { background-color: #286abc; color: white;box-shadow:4px 4px 9px -4px rgba(0, 0, 0, 0.4) }
    .level-3 { background-color: #5a8ccd; color: white;box-shadow:4px 4px 9px -4px rgba(0, 0, 0, 0.4) }
    .level-4	 { background-color: #cceeff; color: #14487d;box-shadow:4px 4px 9px -4px rgba(0, 0, 0, 0.4) }
    .level-5 { background-color: #F0F8FF;border-color:#0f4780 !important;  color: #004d9b!important ;box-shadow:4px 4px 9px -4px rgba(0, 0, 0, 0.4); }
    /* Responsive styles */
    @media (max-width: 768px) {
      .tree ul {
        flex-direction: column;
        padding-top: 30px;
      }

      .tree li {
        padding: 20px 0 0 0;
      }

      .tree li::before,
      .tree li::after,
      .tree ul ul::before {
        display: none;
      }
    }
    @media (max-width: 768px) {
  .tree ul {
    flex-direction: column;
    padding-top: 30px;
  }

  .tree li {
    padding: 20px 0 0 0;
  }

  .tree li::before,
  .tree li::after,
  .tree ul ul::before {
    border-color: #ddd;
    height: 15px;
  }
}