html,
body {
  height: 100%;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 15px;
}

/* pozadina */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
}

/* dio koji se mice */
::-webkit-scrollbar-thumb {
  background: black;
}


.container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  flex-direction: column;
}


.timeline {
  width: 100%;
  background-color: #fff;
  box-shadow: 0 10px 35px 10px rgba(0, 0, 0, 0.2);
  height: auto;
  width: 100%;
  position: relative;
}
.swiper-container {
  height: 900px;
  width: 100%;
  position: relative;
}
.timeline .swiper-wrapper {
  transition: 2s cubic-bezier(0.68, -0.4, 0.27, 1.34) 0.2s;
}
.timeline .swiper-slide {
  position: relative;
  color: #fff;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;

}
.timeline .swiper-slide::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: -115%;
  bottom: -10%;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: -230px 0 150px 60vw rgba(0, 0, 0, 0.7);
  border-radius: 100%;
font-family: 'Heebo', sans-serif;
}
.timeline .swiper-slide-content {
  position: absolute;
  text-align: center;
  width: 80%;
  max-width: 310px;
  right: 40%;
  top: 13%;
  transform: translate(50%, 0);
  font-size: 12px;
  z-index: 2;
  margin-right: 100px;
}
.timeline .swiper-slide .timeline-year {
  display: block;
  font-style: italic;
  font-size: 42px;
  margin-bottom: 50px;
  transform: translate3d(20px, 0, 0);
  color: white;
  font-weight: 300;
  opacity: 0;
  transition: 0.2s ease 0.4s;
}
.timeline .swiper-slide .timeline-title {
  font-weight: 800;
  font-size: 34px;
  margin: 0 0 30px;
  margin-left: 60px;
  opacity: 0;
  transform: translate3d(20px, 0, 0);
  transition: 0.2s ease 0.5s;
  font-family: 'Anton', sans-serif;
}
.timeline .swiper-slide .timeline-text {
  line-height: 1.5;
  opacity: 0;
  transform: translate3d(20px, 0, 0);
  transition: 0.2s ease 0.6s;
  margin-left: 60px;
}
.timeline .swiper-slide-active .timeline-year {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: 0.4s ease 1.6s;
}
.timeline .swiper-slide-active .timeline-title {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: 0.4s ease 1.7s;
  font-family: 'Anton', sans-serif;

}
.timeline .swiper-slide-active .timeline-text {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: 0.4s ease 1.8s;
  font-size: 17px;
font-family: 'Heebo', sans-serif;
margin-left: 60px;
}
.timeline .swiper-pagination {
  right: 15%;
  height: 100%;
  display: none;
  flex-direction: column;
  justify-content: center;
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  z-index: 1;
}
.timeline .swiper-pagination::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 0;
  height: 100%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}
.timeline .swiper-pagination-bullet {
  width: auto;
  height: auto;
  text-align: center;
  opacity: 1;
  background: transparent;
  color: white;
  margin: 15px 0 !important;
  position: relative;
  font-size: 25px;
  font-family: 'Heebo', sans-serif;
}
.timeline .swiper-pagination-bullet::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -32.5px;
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background-color: white;
  transform: scale(0);
  transition: 0.2s;
font-family: 'Heebo', sans-serif;
}
.timeline .swiper-pagination-bullet-active {
  text-decoration: underline;
  font-size: 30px;
font-family: 'Heebo', sans-serif;
}
.timeline .swiper-pagination-bullet-active::before {
  transform: scale(1);
font-family: 'Heebo', sans-serif;
}
.timeline .swiper-button-next,
.timeline .swiper-button-prev {
  background-size: 30px 30px;
  top: 15%;
  width: 30px;
  height: 30px;
  margin-top: 0;
  z-index: 2;
  transition: 0.2s;
  color: white;
}
.timeline .swiper-button-prev {
  left: 8%;
  background-image: url(slike/strelica.png);
}

.timeline .swiper-button-prev:hover {
  transform: translateX(-3px);

}
.timeline .swiper-button-next {
  right: 8%;
  background-image: url(slike/strelica.png);
}
.timeline .swiper-button-next:hover {
  transform: translateX(3px);
}

@media screen and (min-width: 300px) {
  .timeline .swiper-button-prev {
    left: 8%;
    top: 40%;
    background-image: url(slike/lijevo.png);
  }


  .timeline .swiper-button-next {
    right: 8%;
    top: 40%;
    background-image: url(slike/desno.png);
  }

}


@media screen and (min-width: 768px) {
  .timeline .swiper-slide::after {
    right: -30%;
    bottom: -8%;
    width: 240px;
    height: 50%;
    box-shadow: -230px 0 150px 800px rgba(0, 0, 0, 0.7);

  }
  .timeline .swiper-slide-content {
    right: 30%;
    top: 50%;
    transform: translateY(-50%);
    width: 310px;
    font-size: 11px;
    text-align: right;
  }
  .timeline .swiper-slide .timeline-year {
    margin-bottom: 0;
    font-size: 32px;
  }
  .timeline .swiper-slide .timeline-title {
    font-size: 60px;
    margin: 0;
    font-family: 'Anton', sans-serif;
  }
  .timeline .swiper-pagination {
    display: flex;
  }
  .timeline .swiper-button-prev {
    top: 15%;
    left: auto;
    right: 15%;
    transform: translate(0, 10px);
    color: white;
    background-image: url(slike/strelica.png);
  }
  .timeline .swiper-button-prev:hover {
    transform:  translate(-3px, 10px);
  }
  .timeline .swiper-button-next {
    top: auto;
    bottom: 15%;
    right: 15%;
    transform: rotate(180deg) translate(0, 10px);
    background-image: url(slike/strelica.png);
  }
  .timeline .swiper-button-next:hover {
    transform: rotate(180deg) translate(3px, 10px);
  }
}
@media screen and (min-width: 1024px) {
  .timeline .swiper-slide::after {
    right: -20%;
    bottom: -12%;
    width: 240px;
    height: 50%;
    box-shadow: -400px 0 150px 39vw rgba(0, 0, 0, 0.8);

  }
  .timeline .swiper-slide-content {
    right: 25%;
  }


}
