@import "fonts.css";

*{
  box-sizing: border-box;
}

#main-content {
  background-color: #fff;
}

/* The actual timeline (the vertical ruler) */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border:1px solid transparent;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: rgba(142,205,238,0.5);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content */
.container {
  padding: 10px 40px;
  position: relative;
  top:100px;
  background-color: inherit;
  width: 50%;
  margin-left: 0px;
}

/* The circles on the timeline */
.container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid #FF9F55;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

/* Place the container to the left */
.left {
  left: -5px;
}

/* Place the container to the right */
.right {
  left: 50.4%;
}

/* Add arrows to the left container (pointing right) */
.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid #FF9F55;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #FF9F55;
}

/* Add arrows to the right container (pointing left) */
.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid #FF9F55;
  border-width: 10px 10px 10px 0;
  border-color: transparent #FF9F55 transparent transparent;
}

/* Fix the circle for containers on the right side */
.right::after {
  left: -16px;
}

/* The actual content */
.content {
  /*padding: 20px 30px;*/
  /*background-color: rgba(142,205,238,0.5);*/
  position: relative;
  top: -50px;
  border-radius: 6px;
  font-family: 'IRANYekanLight';
  text-align: right;
  min-height: 200px;
  clear: both;
}
.content h2 {
  font-family: 'IRANYekanBold';
  font-size: 1.5em;
}
.content img {
    padding:20px 10px;
}
.timeline>div:last-child { 
  margin-bottom: 200px;
}












/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 640px) {
  #gradiant-BG{
    background-image: radial-gradient(circle, #FFF , #8ecdee);
  }

  #latest-cer img {
      margin: auto;
  }

  #latest-cer h2{
      text-align: center;
      font-family: 'IRANYekanBold';
      line-height: 2.5em;
      margin-top: 10px;
      font-size: 1.5em;
  }
  #latest-cer span{
    font-size: 3em;
  }
  /* Media queries - Responsive timeline on screens less than 600px wide */

  /* Place the timelime to the left */
  .timeline::after {
  left: 30px;
  }

  /* Full-width containers */
  .container {
  width: 100%;
  padding-left: 70px;
  padding-right: 25px;
  }

  /* Make sure that all arrows are pointing leftwards */
  .container::before {
  left: 60px;
  border: medium solidrgba(142,205,238,0.5);
  border-width: 10px 10px 10px 0;
  border-color: transparent rgba(142,205,238,0.5) transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .left::after, .right::after {
  left: 20px;
  }

  /* Make all right containers behave like the left ones */
  .right {
  left: 0%;
  }
  .content img {
    display: none;
  }
    
    
    
}














/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 641px) and (max-width:1023px) {
  #gradiant-BG{
    background-image: radial-gradient(circle, #FFF , #8ecdee);
  }

  #latest-cer img {
      margin:auto;
  }

  #latest-cer h2{
      text-align: center;
      font-family: 'IRANYekanBold';
      line-height: 2.5em;
      margin-top: 10px;
      font-size: 1.5em;
  }
  #latest-cer span{
    font-size: 3em;
  }
  /* Media queries - Responsive timeline on screens less than 600px wide */

  /* Place the timelime to the left */
  .timeline::after {
  left: 30px;
  }

  /* Full-width containers */
  .container {
  width: 100%;
  padding-left: 70px;
  padding-right: 25px;
  }

  /* Make sure that all arrows are pointing leftwards */
  .container::before {
  left: 60px;
  border: medium solidrgba(142,205,238,0.5);
  border-width: 10px 10px 10px 0;
  border-color: transparent rgba(142,205,238,0.5) transparent transparent;
  }

  /* Make sure all circles are at the same spot */
  .left::after, .right::after {
  left: 20px;
  }

  /* Make all right containers behave like the left ones */
  .right {
  left: 0%;
  }
  .content img {
    display: none;
  }   
} 




@media only screen and (min-width: 1024px) and (max-width:1279px) {
   

  #gradiant-BG{
    background-image: radial-gradient(circle, #FFF , #8ecdee);
}

#latest-cer img {
    margin-left: 100px;
}

#latest-cer h2{
    text-align: right;
    font-family: 'IRANYekanBold';
    line-height: 3em;
    margin-top: 100px;
    font-size: 1.5em;
}
#latest-cer span{
    font-size: 3em;
}







} 





/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1280px) {
    
    #gradiant-BG{
        background-image: radial-gradient(circle, #FFF , #8ecdee);
    }

    #latest-cer img {
        margin-left: 100px;
    }

    #latest-cer h2{
        text-align: right;
        font-family: 'IRANYekanBold';
        line-height: 3em;
        margin-top: 100px;
        font-size: 1.5em;
    }
    #latest-cer span{
        font-size: 3em;
    }









    
      

}
  