hr.light-green {
  border: none;
  border-top: 1px solid #dbf0c7;
}
#chart-container {
  position: relative;
  height: 2400px;
}

.step {
  height: 50px;
  position: relative;
  z-index: 0;
}

.page { overflow: visible; }



#chart {
  top: 10px;
  left: 0;
  position: -webkit-sticky;
  position: sticky;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);

  font-family: "FF Meta W03","Helvetica Neue",Helvetica,Arial,sans-serif;
  line-height: 1.2;
  font-weight: 400;
  min-width: 720px;
  max-width: 100%;
  font-size: 13px;
  height: 900px;
  margin-top: 2rem;
  text-align: left;
  width: 100%;
  z-index: 1;
}
#chart ul {
  margin: 0;
  padding: 0 0 0 16px;
  font-size: 90%;
  list-style:none;
}
#chart li {
  margin: 6px 0;
  padding: 0;
  position: relative;
}
#chart li::before {
  content:"▸";
  left: -4px;
  right: 0;
  position: relative;
}

figure.arabic #chart li::before {
  content:"◂";
  right: -8px;
  left: 0;
  position: absolute;
}


.circle {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    background: #dbf0c7;
}
.profile-pic {
  display: inline;
  margin: 0 auto;
  height: 100%;
  width: auto;
}
.center .circle { 
  margin: 0 auto;
}
.position {
  font-family: "FF Meta W03","Helvetica Neue",Helvetica,Arial,sans-serif;
  font-weight: bold;
  color: #000;
}
.profile {
  text-align: center;
  width: 150px;
  padding-right: 10px;
  margin-bottom: 1rem;
  -webkit-transition: all 1s ease-in-out;
  -moz-transition: all 1s ease-in-out;
  -o-transition: all 1s ease-in-out;
  transition: all 1s ease-in-out;
}

.row {
  width: 100%;
  clear: both;
}

.hed span {
  font-weight: bold;
}
.hed {
  font-size: 26px;
  color: #060;      
  position: absolute;
  top: 0px;
  -webkit-transition: opacity 1s ease-in-out, top 1s ease-in-out;
  -moz-transition: opacity 1s ease-in-out, top 1s ease-in-out;
  -o-transition: opacity 1s ease-in-out, top 1s ease-in-out;
  transition: opacity 1s ease-in-out, top 1s ease-in-out;
}
.after #hed1, #hed2 { opacity: 0; top: 25px; }
.after #hed2 { opacity: 1; top: 0px; }

.arabic #hed1, .arabic #hed2 { left: auto; right: 0; }

.profile, .ray { position: absolute; }

#king-salman { left: 39%; }
#mohammed-bin-nayef-1 { top: 160px; left: 39%;  }

.subhed {
  font-family: "FF Meta W03","Helvetica Neue",Helvetica,Arial,sans-serif;
  color:#060;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  padding-bottom: 10px;
}
#subhed {
  position:absolute;
  text-shadow: -4px -4px 3px #fff,  -4px 4px 3px #fff,  4px -4px 3px #fff,  4px 4px 3px #fff;
  width: 150px;
  left: 39%;
  top: 320px;
  text-align:center;
}

.sentence {
   font-style: italic;
   color: #666; 
   opacity: 0;
   transition: 1s opacity; 
}

#mohammed-bin-nayef { top: 370px; left: 10%; }
.after #mohammed-bin-nayef-1,
.after #mohammed-bin-nayef { top: 550px; left: 0px; 
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%); -o-filter: grayscale(100%);
  filter: url('data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale');
  filter: gray;
  -webkit-filter: grayscale(1);    
}
.after #mohammed-bin-nayef-1 { opacity: 0; }
.after #mohammed-bin-nayef .position { display:none; }
.after #mohammed-bin-nayef .name { display:none; }
.after #mohammed-bin-nayef .bullets { display:none; }
.after #mohammed-bin-nayef .sentence { opacity: 1; }

.after #mutaib-bin-abdullah .position { display:none; }
.after #mutaib-bin-abdullah .name { display:none; }
.after #mutaib-bin-abdullah .bullets { display:none; }
.after #mutaib-bin-abdullah .sentence { opacity: 1; }

.after #ahmed-al-assiri .position { display:none; }
.after #ahmed-al-assiri .name { display:none; }
.after #ahmed-al-assiri .bullets { display:none; }
.after #ahmed-al-assiri .sentence { opacity: 1; }


#mohammed-bin-salman-2 { top: 370px; left: 30%; }

#mohammed-bin-salman-1 {  top: 370px; left: 26.6%; opacity: 0; }
.after #mohammed-bin-salman-1 { top: 160px; left: 39%; opacity: 1}

#mutaib-bin-abdullah { top: 370px; left: 50%; }
#ahmed-al-assiri { top: 550px; left: 70%; }

#khalid-bin-ali-al-humaidan { top: 370px; left: 70%; }

.after #mutaib-bin-abdullah { top: 550px; left: 64%; opacity: 1; 
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%); -o-filter: grayscale(100%);
  filter: url('data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale');
  filter: gray;
  -webkit-filter: grayscale(1);        
}
.after #ahmed-al-assiri {
  left: 80%;
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%); -o-filter: grayscale(100%);
  filter: url('data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale');
  filter: gray;
  -webkit-filter: grayscale(1);        

}

#abdulaziz-bin-saud-bin-nayef { opacity: 0; }
#abdulaziz-bin-mohammed-al-huwairini { opacity: 0; }
#saud-bin-abdullah-al-mujib { opacity: 0; }
#abdallah-bin-bandar { opacity: 0; }

#r4 {
  top: 210px;
  left: 10%;
  width: 30%;
  height: 220px; 
  border-top: 1.5px solid #090;
  border-left: 1.5px solid #090;
  border-right: none;
  -webkit-transition: all 1s ease-in-out;
  -moz-transition: all 1s ease-in-out;
  -o-transition: all 1s ease-in-out;
  transition: all 1s ease-in-out;
}
.after #r4 {
  left: 0;
  width: 40%;
  height: 400px; 
  opacity: 0;
}

#abdulaziz-bin-saud-bin-nayef { top: 370px; left: 0px; opacity: 0;}
#abdulaziz-bin-mohammed-al-huwairini { top: 370px; left: 16%; opacity: 0;}
#saud-bin-abdullah-al-mujib { top: 370px; left: 48%; opacity: 0;}
#abdallah-bin-bandar { top: 370px; left: 64%; opacity: 0;}
.after #abdulaziz-bin-saud-bin-nayef { top: 370px; left: 0px; opacity: 1;}
.after #abdulaziz-bin-mohammed-al-huwairini { top: 370px; left: 16%; opacity: 1;}
.after #mohammed-bin-salman-2 { top: 370px; left: 32%; opacity: 1;}
.after #saud-bin-abdullah-al-mujib { top: 370px; left: 48%; opacity: 1;}
.after #abdallah-bin-bandar { top: 370px; left: 64%; opacity: 1;}
.after #khalid-bin-ali-al-humaidan { top: 370px; left: 80%; opacity: 1;}

.ray {
  border-top: 1px #090 dotted;
  border-left: 1px #090 dotted;
  border-right: 1px #090 dotted;
  border-radius: 10px;
  opacity: 1;
  transition: 1s opacity;
  margin-left: 75px;
} 
#r1 { top: 190px; left: 0%; width: 80%; height: 235px; }
#r2 { top: 200px; left: 16%; width: 48%; height: 235px; }
#r3 { top: 210px; left: 40%; width: 8%; height: 235px; border-left: none; }
#r1, #r2, #r3 { opacity: 0; }


#r5 {
  top: 210px;
  left: 30%;
  width: 7%;
  height: 230px; 
  border-top: 1.5px solid #090;
  border-left: 1.5px solid #090;
  border-right: none;
  opacity: 0;
  -webkit-transition: all 1s ease-in-out;
  -moz-transition: all 1s ease-in-out;
  -o-transition: all 1s ease-in-out;
  transition: all 1s ease-in-out;
}
.after #r5 { 
  left: 32%;
   opacity: 1
}
.after #r1, .after #r2, .after #r3 { opacity: 1; }



#r6 {
  top: 450px;
  left: 70%;
  width: 1px;
  height: 200px;
  margin-left: 75px;
  border-left: 1px dotted #090;
  position: absolute;
  -webkit-transition: all 1s ease-in-out;
  -moz-transition: all 1s ease-in-out;
  -o-transition: all 1s ease-in-out;
  transition: all 1s ease-in-out;
}
.after #r6 { 
   left: 80%;
   opacity: 0;
   height: 1px;
}


@media (min-width:64em){
  figure#chart-container {
    width: 1400px;
  }
}


/* very large desktop */
@media (min-height: 800px) {

  #chart { top: 50px; }
  #mohammed-bin-nayef-1 { top: 200px; }
  #r4 { top: 250px; }
  #subhed { top: 380px; }

  #mohammed-bin-nayef,
  #mohammed-bin-salman-2,
  #mohammed-bin-salman-1,
  #mutaib-bin-abdullah { top: 450px; }

  .after #mohammed-bin-nayef,
  .after #mutaib-bin-abdullah,
    #ahmed-al-assiri { top: 680px; }
  #r6 { top: 500px; }
  
  .after #mohammed-bin-salman-1 { top: 200px; }

  #khalid-bin-ali-al-humaidan,
  #abdulaziz-bin-saud-bin-nayef,
  #abdulaziz-bin-mohammed-al-huwairini,
  #saud-bin-abdullah-al-mujib,
  #abdallah-bin-bandar,
  .after #khalid-bin-ali-al-humaidan,
  .after #abdulaziz-bin-saud-bin-nayef,
  .after #abdulaziz-bin-mohammed-al-huwairini,
  .after #saud-bin-abdullah-al-mujib,
  .after #abdallah-bin-bandar,
  .after #mohammed-bin-salman-2 { top: 450px; }

  .after #r1 { top: 230px; }
  .after #r2 { top: 240px; }
  .after #r3 { top: 250px; }
   #r5 { top: 250px; }
  .after #r5 { top: 250px; }
  
  
}


/* mobile */

@media (max-width: 768px) {
  #chart {
    max-width: 100%;
    min-width: 0;
  } 

  .ray, #r6 { margin-left: 25px; }

  .circle, .profile-pic { width: 50px; height: 50px; }
  .profile { width: 50px; font-size: 11px; }

  #chart .ray { height: 210px; }

  .after #mohammed-bin-salman-1 { top: 178px; }

  #chart ul { padding-left: 8px; }
  #chart li {
    margin: 4px 0;
    padding: 0;
    position: relative;
  }
  #chart li::before { left: -8px; }
  #hed1, #hed2  {
    width: 10%;
    line-height: 1;
  }

  #r4 {
    top: 190px;
  }
  #subhed {
    top: 330px;
    margin-left: -50px; 
  }
  #r6 { height: 100px; }

  .after #r5 { 
     left: 32%;
     opacity: 1
  }

  .bullets { display:none; }


  @media (min-height: 800px) {
    #chart .ray {  height: 260px; }
    #chart #r1 { top: 200px; }
    #chart #r2 { top: 210px; }
    #chart #r3 { top: 220px; }
    #chart #r5 { top: 220px; }

    #chart #r4 { top: 225px; }
    #chart #r6 { top: 500px; height: 240px;  }
  }
}






/* timeline */
#timeline-container {
  text-align:left;
  font-family: "MetaPro-Norm"; 
}
#timeline-container h2,
#timeline-container h3,
#timeline-container h4,
#timeline-container b {
  font-family: 'MetaPro-Bold';
  font-weight: normal;
  margin: .5rem 0;
}

.timeline-year {
  clear: both;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ded;
  display: table;
  width: 100%;
}
.timeline-left {
  width: 20%;
  display: table-cell;
  padding-right: 16px;
}
.timeline-right {
  width: 80%;
  display: table-cell;
}
.timeline-profile {
  clear: both;
  margin: 16px 0;
  overflow: hidden;
}
#timeline-container .circle {
  margin: 0 10px 0 0;
  float: left;
}
.timeline-profile img {
  float: left;
  padding-right: 10px;
  height: 100px;
  width: 100px;
}
.timeline-cases {
  color: #363;
}

@media (max-width: 768px) {
  .timeline-profile img {
    height: 50px;
    width: 50px;
  }
}