/*use the universal selector to set some styles*/
.timeline-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ddd;
    --light-blue: rgb(153, 199, 214);
    --light-blue2: rgba(255,255,255,.2);
    --color-blue: rgb(39, 39, 95);
    --color-dark-grey: #222831;
}

/*Timeline section*/
.timeline-section img {
    width: 100%;
}
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@1,500&display=swap');

.timeline-banner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);;
    height: auto;
}
.timeline-section {
    background: var(--light-blue);
    margin: 0;
    padding: 0;

    float: left;
    width: 100%;
    /* overflow: hidden; */
}
.timeline-section div:not(:empty){
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
}

.timeline-section ul {

    background-size: 4008px;
    background-image: url('../img/ci-logoresim-transparent-bw10.png');
    background-repeat: no-repeat;
    background-position: center;

    padding: 30px 0px; /* padding top and bottom 5rem */
}

/*styling the list*/
.timeline-section ul li {
    list-style: none;
    position: relative;
    background: var(--color-blue);
}
.timeline-section ul li:nth-child(1) {
    width: 5px; /* set width to 5px then set background to lightblue for that width */
    margin: 0 auto; /* center text */
    padding-top: 50px; /* separate each list with a padding-top of 5rem = 5 x 10px= 50px */
    margin-left: 26px;
}
.timeline-section ul li:nth-child(2) {
    width: 5px; /* set width to 5px then set background to lightblue for that width */
    margin: 0 auto; /* center text */
    padding-top: 50px; /* separate each list with a padding-top of 5rem = 5 x 10px= 50px */
    margin-left: 26px;
}
.timeline-section ul li:nth-child(3) {
    width: 5px; /* set width to 5px then set background to lightblue for that width */
    margin: 0 auto; /* center text */
    padding-top: 45px; /* separate each list with a padding-top of 5rem = 5 x 10px= 50px */
    margin-left: 26px;
}
.timeline-section ul li:nth-child(4) {
    width: 5px; /* set width to 5px then set background to lightblue for that width */
    margin: 0 auto; /* center text */
    padding-top: 50px; /* separate each list with a padding-top of 5rem = 5 x 10px= 50px */
    margin-left: 26px;
}
.timeline-section ul li:nth-child(5) {
    width: 5px; /* set width to 5px then set background to lightblue for that width */
    margin: 0 auto; /* center text */
    padding-top: 60px; /* separate each list with a padding-top of 5rem = 5 x 10px= 50px */
    margin-left: 26px;
}
.timeline-section ul li:nth-child(6) {
    width: 5px; /* set width to 5px then set background to lightblue for that width */
    margin: 0 auto; /* center text */
    padding-top: 65px; /* separate each list with a padding-top of 5rem = 5 x 10px= 50px */
    margin-left: 26px;
}

/*use pseudo elements to style*/
/*This section will help us make the node-like structure - The circle*/
.timeline-section ul li::after {
    content: "";/* The content attribute is required for pseudo-elements to render */
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: inherit; /* inherits this property from its parent element */
}

/* Content box */
.timeline-section ul li div {
    width: calc(50vw - 91px);
    font-size: 13.5px;
    position: relative;
    bottom: 25;
    padding: 10px;
    /*glassmorphism effect*/
    background: rgba(255,255,255,.2);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    border-left: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Triangle */
.timeline-section ul li div::before {
    content: "";
    position: absolute;
    bottom: 7px;
    width: 0;
    height: 0;
    border-style: solid;
}

/*This is to select the divs at odd position so we can separate the divs to the right part*/
.timeline-section ul li div {
    left: 22px;  /* this style pushes the divs at odd number position to the right */
}
  
/*this showcases the triangle*/
.timeline-section ul li div::before {
    left: 2px;
    border-width: 8px 16px 8px 0;
    border-color: transparent var(--light-blue2) transparent transparent;
}
 
/*This is to select the divs at an even number position so we can separate the divs to the left part*/
.timeline-section ul li div {
    left: 45px;
}
  
/*this showcases the triangle*/
.timeline-section ul li div::before {
    left: -17px;
    border-width: 8px 16px 8px 0;
    border-color: transparent var(--light-blue2) transparent transparent;
}

/*style the time tag*/
time {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    margin-bottom: 7px;
}

.timeline-section ul li::after {
    transition: all 0.5s ease-in-out;
}  

/*this changes the node content..giving it a background of white and making the border thicker*/
.timeline-section ul li.slide-in::after {
    background: var(--white);
    border: 3px solid var(--light-blue);
}

/* Hide event card initially */
.timeline-section ul li div {
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}
  
.timeline-section ul li div {
    transform: translateX(100px);
}

.timeline-section ul li div {
    transform: translateX(-100px);
}

/* display the event card */
.timeline-section ul li.slide-in div {
    transform: none;
    visibility: visible;
    opacity: 1;
}
li.slide-in, li.slide-in:after{
    max-height: 13.5vh;
}

.timeline-rightside{
    width: 100%;
    height: 100%;
}
.timeline-rightside .slides{
    height: 100%;
    position: relative;
    overflow: hidden;
    animation: slide-show 12s infinite;
}
.timeline-rightside .slide{
    position: absolute;
    inset: 0;
    opacity: 0;
}
.timeline-rightside .slide--2{
    animation-delay: 4s;
}
.timeline-rightside .slide--3{
    animation-delay: 8s;
}
.timeline-rightside .slide__image{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@keyframes slide-show {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    20%,
    30% {
        opacity: 1;
        scale: 1.05;
    }
    50% {
        opacity: 0;
    }
}

/* Tablet Width */
@media screen and (max-width: 900px) {
    .timeline-section {
        width: 100%;
    }
    .timeline-section ul li div {
        width: calc(50vw - 91px);
    }
   .timeline-section ul li div {
      left: 45px;
    }
    .timeline-section ul li:nth-child(1) {
        padding-top: 50px; /* separate each list with a padding-top of 5rem = 5 x 10px= 50px */
    }
    .timeline-section ul li:nth-child(2) {
        padding-top: 30px; /* separate each list with a padding-top of 5rem = 5 x 10px= 50px */
    }
    .timeline-section ul li:nth-child(3) {
        padding-top: 35px; /* separate each list with a padding-top of 5rem = 5 x 10px= 50px */
    }
    .timeline-section ul li:nth-child(4) {
        padding-top: 40px; /* separate each list with a padding-top of 5rem = 5 x 10px= 50px */
    }
    .timeline-section ul li:nth-child(5) {
        padding-top: 65px; /* separate each list with a padding-top of 5rem = 5 x 10px= 50px */
    }
    .timeline-section ul li:nth-child(6) {
        padding-top: 55px; /* separate each list with a padding-top of 5rem = 5 x 10px= 50px */
    }
}

/* Mobile width */
@media screen and (max-width: 600px) {
    .timeline-rightside{
        display: none;
    }
    .timeline-banner {
        grid-template-columns: repeat(1, 1fr);;
    }
    .timeline-section {
        width: 100%;
    }
    .timeline-section ul li {
      margin-left: 26px;
    }
    .timeline-section ul li:nth-child(1) {
        padding-top: 80px; /* separate each list with a padding-top of 5rem = 5 x 10px= 50px */
    }
    .timeline-section ul li:nth-child(2) {
        padding-top: 70px; /* separate each list with a padding-top of 5rem = 5 x 10px= 50px */
    }
    .timeline-section ul li:nth-child(3) {
        padding-top: 75px; /* separate each list with a padding-top of 5rem = 5 x 10px= 50px */
    }
    .timeline-section ul li:nth-child(4) {
        padding-top: 80px; /* separate each list with a padding-top of 5rem = 5 x 10px= 50px */
    }
    .timeline-section ul li:nth-child(5) {
        padding-top: 95px; /* separate each list with a padding-top of 5rem = 5 x 10px= 50px */
    }
    .timeline-section ul li:nth-child(6) {
        padding-top: 95px; /* separate each list with a padding-top of 5rem = 5 x 10px= 50px */
    }
    .timeline-section ul li div {
      width: calc(100vw - 91px);
    }
  
    .timeline-section ul li div {
      left: 45px;
    }
  
    .timeline-section ul li div::before {
      left: -17px;
      border-width: 8px 16px 8px 0;
      border-color: transparent var(--light-blue2) transparent transparent;
    }
}