:root {
  --primary-color: rgb(255, 255, 255);
  /* --secondary-color: #EBEBEB; */
  --secondary-color: #eee;
}

#timeline {
  background: var(--primary-color);
  padding: 50px 0;
}
/* Create Line */
#timeline ul li {
  border-radius: 10px;
  list-style: none;
  position: relative;
  width: 6px;
  margin: 0 auto;
  padding-top: 50px;
  background: rgb(0, 0, 0);
}

#timeline-h1{
    font-size: 30px;
    text-align: center;
}

#timeline ul li div  h3{
  text-align: left;
}

/* Boxes */
#timeline ul li div {
  border-radius: 5px;
  position: relative;
  bottom: 0;
  width: 400px;
  padding: 1rem;
  /* background: var(--secondary-color); */
  transition: all 0.5s ease-in-out;
  position: relative;
  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(0, 0, 0, 0.1) inset;
  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(0, 0, 0, 0.1) inset;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
  visibility: hidden;
  opacity: 0;
}

/* #timeline ul li div:hover {
  box-shadow: 1px 1px 15px 6px rgba(0, 0, 0, 0.3);
} */

/* Right Side */
#timeline ul li:nth-child(odd) div {
  left: 40px;
  transform: translate(200px, 0);
}

/* Left Side */
#timeline ul li:nth-child(even) div {
  left: -434px;
  transform: translate(-200px, 0);
}

/* Show Boxes */
#timeline ul li.show div {
  transform: none;
  visibility: visible;
  opacity: 1;
}
#timeline ul li.show:after {
  background: #000000;
}
/* Dots */
#timeline ul li:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 25px;
  height: 25px;
  background: inherit;
  transform: translateX(-50%);
  border-radius: 50%;
}

/* Arrows Base */
#timeline div:before {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 0;
  height: 0;
  border-style: solid;
}

/* Right Side Arrows */
#timeline ul li:nth-child(odd) div:before {
  left: -15px;
  border-width: 8px 16px 8px 0px;
  border-color: transparent var(--secondary-color) transparent transparent;
}

/* Left Side Arrows */
#timeline ul li:nth-child(even) div:before {
  right: -15px;
  border-width: 8px 0px 8px 16px;
  border-color: transparent transparent transparent var(--secondary-color);
}

@media (max-width: 900px) {
    #timeline-h1{
        font-size: 20px;
        text-align: center;
    }
  #timeline ul li div {
    width: 250px;
  }
  #timeline ul li:nth-child(even) div {
    left: -284px;
  }
}

@media (max-width: 600px) {
    #timeline-h1{
        font-size: 20px;
        text-align: center;
    }
  #timeline ul li {
    margin-left: 20px;
  }

  #timeline ul li div {
    width: calc(100vw - 120px);
  }

  #timeline ul li:nth-child(even) div {
    left: 40px;
  }

  /* Left Side Arrows */
  #timeline ul li:nth-child(even) div:before {
    left: -15px;
    border-width: 8px 16px 8px 0px;
    border-color: transparent var(--secondary-color) transparent transparent;
  }
}
