*{
    margin: 0;
    padding: 0;
    font-family: "Sofia", sans-serif;
}
body{
    background-image: linear-gradient(rgba(4,9,30,0.8),rgba(4,9,30,0.8)),url(Images/background.png);
    background-repeat: repeat;
}
nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}
nav img{
    width:100px;
    border-radius: 50%;
    border: solid 4px rgb(244, 16, 16,0.6);
}
.nav-links{
    flex: 1;
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display:inline-block;
    padding: 8px 20px;
    margin-left: 20px;
    margin-right: 0;
    position: relative;
    background-image: linear-gradient(rgb(252, 252, 121,0.2),rgb(208, 160, 69,0.3),rgb(218, 23, 23,0.2));
    border-radius: 45%;
}
.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 25px;
}
.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after{
    width:100%;
}

/* Timeline */
.loverTimeLine {
    padding: 50px 0;
  }
  
  .timepage{
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
  }
  
  .timepage h1 {
    font-size: 120px;
    color: rgb(238, 245, 231);
    transition-duration: 2s;
  }
  
  .timepage h1:hover
  {
    text-shadow: 2rem 2rem 10rem #FFE4F2;
    text-shadow: rgb(200, 230, 28) 10px 3px;
  }
  
  .timeline h3 {
    color: rgb(230, 164, 198);
    font-size: 40px;
    transition-duration: 2s;
  }

  .timeline h3:hover
  {
    text-shadow: 4px 2px 5px rgb(255, 255, 255);
  }

  
  .timeline ul {
    padding: 50px 0;
    list-style: none;
  }
  
  .timeline li {
    position: relative;
    width: 6px;
    padding-top: 50px;
    margin: 0 auto;
    background: rgba(7, 31, 170, 0.611);
    list-style-type: none;
  }
  
  .timeline li::before {
    content: " ";
    position: absolute;
    bottom: 50%;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border: 6px solid rgb(75, 5, 253);
    border-radius: 500%;
    background: rgba(247, 250, 250, 0.868);
    transition: all 500ms ease-in-out
  }
  
  .timeline div {
    position: relative;
    width: 400px;
    padding: 20px;
    background-color: transparent;
  }
  
  .timeline li:nth-child(odd) div {
    left: 45px;
  }
  
  .timeline li:nth-child(even) div {
    left: -484px;
  }
  
  .timeline time {
    display: block;
    margin-bottom: 10px;
    font-size: 40px;
    font-weight: bold;
    color: #cfee06;
  }
  
  .timeline div::after {
    content: "";
    position: absolute;
  }
  
  /* animation  */
  
  .timeline li::before {
    transition: background ease-in .7s;
  }
  
  .timeline div {
    transition: all ease-in-out .7s;
    visibility: hidden;
    opacity: 0;
    border: solid 2px rgb(255, 255, 255);
    background-color: rgba(245, 245, 245, 0.612);
    border-radius: 45px;
  }
  
  .timeline li:nth-child(odd) div {
    transform: translateX(200px);
  }
  
  .timeline li:nth-child(even) div {
    transform: translateX(-200px);
  }
  
  .timeline li.in-view::before {
    background: rgb(255, 0, 0); 
  }
  
  .timeline li.in-view div {
    transform: none;
    visibility: visible;
    opacity: 1;
  }

  /* end of timeline*/

