.time-line {
  background: #ffffff;
  /* box-shadow: 0 0 80px #e7e7e7; */
  z-index: 0;
  position: relative;
}

.image-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 60px auto 0;
  aspect-ratio: 4 / 1.85;
  overflow: hidden;
}

.left-0 {
  left: 0;
}

.timeline-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* height: 100%;
      object-fit: cover; */
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.timeline-image.active {
  opacity: 1;
  z-index: 1;
}

.age-markers {
  margin: 0px -10px 0;
  position: relative;
  z-index: 4;
  min-height: 40px;
  align-items: center;
}

.age-markers::after {
  content: " ";
  width: 100%;
  height: 5px;
  position: absolute;
  left: 0;
  top: 17px;
  background: #e7e7e7;
  z-index: -1;
  border-radius: 5px;
}

.age-marker {
  cursor: pointer;
  font-weight: 500;
  padding: 3px 3px;
  border-radius: 28px;
  background: #e7e7e7;
  transition: all 0.6s;
  height: 30px;
  width: 30px;
  text-align: center;
}

.age-marker.active {
  background-color: #709a08;
  color: white;
  font-weight: 600;
  font-size: 18px;
  width: 40px;
  height: 40px;
  padding-top: 7px;
  margin-top: -5px;
}

.range-wrap {
  max-width: 800px;
  margin: 0 auto 30px;
}

.bubble-wrap {
  position: relative;
  /* max-width: 800px; */
  margin: 0 auto -30px;
  z-index: 10;
}

.bubble-wrap .row {
  max-width: 800px;
  margin: 0 auto;
}

.bubble {
  position: relative;
}

.bubble-title {
  background-image: linear-gradient(to right,
      rgb(188, 224, 0) 0%,
      rgb(112, 154, 8) 100%);
  color: white;
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 16px;
  align-items: center;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 0 #fff;
  text-align: center;
  line-height: 1.2em;
  font-weight: 600;
  /* height: 60px; */
  width: 180px;
}

.range-wrap .form-range {
  display: none;
}

.bubble-wrap .col-6 {
  height: 380px;
}

.bubble span {
  content: "";
  position: absolute;
  bottom: -7px;
  right: 110px;
  width: 15px;
  height: 15px;
  background: #fff;
  transform: rotate(45deg);
  z-index: -1;
}

.bubble-1 span {
  left: 110px;
  right: auto;
}

.bubble-info {
  position: absolute;
  background: #f9f8f6;
  color: #000000;
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  top: 250px;
  right: 0;
  left: auto;
  opacity: 0;
  text-align: left;
  font-weight: 300;
  font-size: 15px;
  transition: all 0.6s;
  transform: translateY(20px);
  box-shadow: 2px 2px 2px #00000033;
}

.bubble-wrap .col-6:hover .bubble-info {
  opacity: 1;
  transform: translateY(0px);
}

.bubble-1 .bubble-info {
  left: 0;
  right: auto;
}

.time-line .container:nth-child(2) {
  box-shadow: 0 0 20px #00000044;
  border-radius: 20px;
  padding: 60px 40px 0;
  margin: 20px auto 50px;
  max-width: 600px;
}

@media (max-width: 800px) {
  .bubble {
    padding: 10px;
    /* max-width: 170px; */
  }

  .bubble span {
    bottom: 5px;
  }

  .bubble-wrap .col-6 {
    height: 220px;
  }

  .bubble-info {
    line-height: 1.1;
    top: 150px;
    background: #fff;
  }

  .bubble-wrap {
    margin: 0px auto -10px;
  }

  .time-line .container:nth-child(2) {
    padding: 60px 20px 0;
    margin: 20px 5% 50px;
    width: 90%;
  }

  .bubble-title {
    padding: 10px;
    font-size: 14px;
  }

  .range-wrap {
    margin: 0 auto 10px;
  }
}

@media (max-width: 500px) {
  .bubble {
    padding: 10px;
    /* max-width: 170px; */
  }

  .bubble span {
    bottom: 5px;
  }

  .bubble-wrap .col-6 {
    height: 220px;
  }

  .image-container {
    margin: 70px auto 0;
  }

  .age-marker {
    font-size: 14px;
  }

  .bubble-info {
    line-height: 1.1;
    top: 150px;
    background: #fff;
  }


  .bubble-title {
    width: 100%;
  }

  .time-line .container:nth-child(2) {
    margin: 20px 3% 50px;
    width: 94%;
  }
}