.slide-in-left {
	-webkit-animation: slide-in-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: slide-in-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

 @-webkit-keyframes slide-in-left {
  0% {
    -webkit-transform: translateX(-1000px);
            transform: translateX(-1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slide-in-left {
  0% {
    -webkit-transform: translateX(-1000px);
            transform: translateX(-1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
}


.slide-in-right {
	-webkit-animation: slide-in-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: slide-in-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}


 @-webkit-keyframes slide-in-right {
  0% {
    -webkit-transform: translateX(1000px);
            transform: translateX(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slide-in-right {
  0% {
    -webkit-transform: translateX(1000px);
            transform: translateX(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
    opacity: 1;
  }
}


.slide-in-blurred-left {
	-webkit-animation: slide-in-blurred-left 0.8s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
	        animation: slide-in-blurred-left 0.8s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
}

 @-webkit-keyframes slide-in-blurred-left {
  0% {
    -webkit-transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);
            transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);
    -webkit-transform-origin: 100% 50%;
            transform-origin: 100% 50%;
    -webkit-filter: blur(40px);
            filter: blur(40px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0) scaleY(1) scaleX(1);
            transform: translateX(0) scaleY(1) scaleX(1);
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
    -webkit-filter: blur(0);
            filter: blur(0);
    opacity: 1;
  }
}
@keyframes slide-in-blurred-left {
  0% {
    -webkit-transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);
            transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);
    -webkit-transform-origin: 100% 50%;
            transform-origin: 100% 50%;
    -webkit-filter: blur(40px);
            filter: blur(40px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0) scaleY(1) scaleX(1);
            transform: translateX(0) scaleY(1) scaleX(1);
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
    -webkit-filter: blur(0);
            filter: blur(0);
    opacity: 1;
  }
}


.slide-in-blurred-right {
	-webkit-animation: slide-in-blurred-right 0.8s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
	        animation: slide-in-blurred-right 0.8s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
}

 @-webkit-keyframes slide-in-blurred-right {
  0% {
    -webkit-transform: translateX(1000px) scaleX(2.5) scaleY(0.2);
            transform: translateX(1000px) scaleX(2.5) scaleY(0.2);
    -webkit-transform-origin: 0% 50%;
            transform-origin: 0% 50%;
    -webkit-filter: blur(40px);
            filter: blur(40px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0) scaleY(1) scaleX(1);
            transform: translateX(0) scaleY(1) scaleX(1);
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
    -webkit-filter: blur(0);
            filter: blur(0);
    opacity: 1;
  }
}
@keyframes slide-in-blurred-right {
  0% {
    -webkit-transform: translateX(1000px) scaleX(2.5) scaleY(0.2);
            transform: translateX(1000px) scaleX(2.5) scaleY(0.2);
    -webkit-transform-origin: 0% 50%;
            transform-origin: 0% 50%;
    -webkit-filter: blur(40px);
            filter: blur(40px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0) scaleY(1) scaleX(1);
            transform: translateX(0) scaleY(1) scaleX(1);
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
    -webkit-filter: blur(0);
            filter: blur(0);
    opacity: 1;
  }
}


.hero-mid {
  width: 95%;
  display: flex;
  height: 100vh;
}

.hero-mid__left {
  background:linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/projekti-left.png);
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
}
.hero-mid__left:hover, .hero-mid__right:hover {
  cursor: pointer;
  
}
.hero-mid__left.active  {
  background: url(../images/projekti-left.jpg);

  cursor: pointer;
  transition: 0.3s;
  background-size: cover;
}


.hero-mid__right {
  background:linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/projekti-right.jpg);
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  transition: 0.3s;

}

.hero-mid__right.active  {
  background: url(../images/projekti-right.jpg);

  cursor: pointer;
  transition: 0.3s;
  background-size: cover;
}

.hero-mid__left h1,
.hero-mid__right h1 {
  color: #fff;
  font-size: 50px;
  letter-spacing: 8px;
  font-weight: 400;
  text-shadow: 4px 4px 4px #00000046;
  margin-top: 15vh;
}

@media (max-width: 1600px) {
  .hero-mid__left h1,
  .hero-mid__right h1 {
    font-size: 45px;
  }
}
@media (max-width: 1400px) {
  .hero-mid__left h1,
  .hero-mid__right h1 {
    font-size: 40px;
  }
}
@media (max-width: 1200px) {
  .hero-mid__left h1,
  .hero-mid__right h1 {
    font-size: 36px;
  }
}

.timeline-section {
  padding: 0 5%;
  position: relative;
  display: flex;
}

.timeline-section-left {
  width: 50%;
  justify-content: center;
  align-items: center;
  padding-top: 26vh;
  padding-left: 10vw;
}


.timeline-section-right {
  width: 50%;
  justify-content: center;
  align-items: center;
  padding-top: 69vh;
  padding-left: 0vw;
}

#timeline {
  position: absolute;
  left: 50%;
  top: -20vh;
  transform: translateX(-50%);
  height: 285vh;
  width: auto;
}

.timeline-event {
  width: 56vh;
  position: relative;
  z-index: 10;
  height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 2vh;
  margin: 0 0 26.7vh 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.timeline-event::before {
  content: attr(data-date);
  position: absolute;
  top: -23%;
  transform: translateY(-50%);
  padding: 5px 10px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 4px;
  z-index: 999;
}

#timeline-year {
  position: absolute;
  top: 30px;
  left: 49%;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 4px;
  rotate: 90deg;
}

.event1::before,.event2::before,.event3::before {
  right:-10%;
}


/* .event1 {
  background: url(../images/project-img.png);
  background-size: cover;
}

.event2 {
  background: url(../images/moraca.png);
  background-size: cover;
}

.event3 {
  background: url(../images/milenijum.png);
  background-size: cover;
}

.event4 {
  background: url(../images/montenegro-hub.png);
  background-size: cover;
}

.event5 {
  background: url(../images/vila-moraca.png);
  background-size: cover;
} */

.content h3 {
  font-size: 32px;
  color: #fff;
  letter-spacing: 4px;
  font-weight: 500;
  padding-left: 60px;
  position: relative;
}

.content p {
  font-size: 18px;
  color: #fff;
  letter-spacing: 2px;
  font-weight: 400;
}

.content a {
  position: relative;
  font-size: 18px;
  padding-left: 60px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 4px;
  font-weight: 600;
}

@media (max-width: 1600px) {
  .content h3 {
    font-size: 28px;
  }

  .content p {
    font-size: 16px;
  }

  .content a {
    font-size: 16px;
  }
  .timeline-event::before {
   font-size: 16px;
  }
  #timeline-year {
    font-size: 16px;
  }
}
@media (max-width: 1400px) {
  .content h3 {
    font-size: 26px;
  }

  .content p {
    font-size: 14px;
  }

  .content a {
    font-size: 14px;
  }
  .timeline-event::before {
    font-size: 14px;
   }
   #timeline-year {
    font-size: 14px;
  }
}
@media (max-width: 1200px) {
  .content h3 {
    font-size: 22px;
  }

  .content p {
    font-size: 12px;
  }

  .content a {
    font-size: 12px;
  }
  .timeline-event::before {
    font-size: 12px;
   }
   #timeline-year {
    font-size: 12px;
  }
}

.content h3::before {
  content: url("../images/whitehorizontal.png");
  position: absolute;
  top: 25%;
  margin-left: -60px;
  transform: translateY(-50%);
}

.content a::before {
  content: url("../images/whitehorizontal.png");
  position: absolute;
  top: 25%;
  margin-left: -60px;
  transform: translateY(-50%);
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .hero-mid {
    width: 100%;
    display: flex;
    height: 80vh;
  }

  .hero-mid__left {
    background:linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/projekti-left.png);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
  }

  .hero-mid__right {
    background:linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/projekti-right.jpg);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
  }
  .hero-mid__left.active  {
    background: url(../images/projekti-left.jpg);
    cursor: pointer;
    transition: 0.3s;
    background-size: cover;
  }
  
  .hero-mid__right.active  {
    background: url(../images/projekti-right.jpg);
    cursor: pointer;
    transition: 0.3s;
    background-size: cover;
  }

  .hero-mid__left h1,
  .hero-mid__right h1 {
    color: #fff;
    font-size: 60px;
    text-align: center;
    letter-spacing: 8px;
    font-weight: 400;
    text-shadow: 4px 4px 4px #00000046;
    margin-top: 15vh;
  }

  .timeline-section {
    padding: 0;
    position: relative;
    display: flex;
    gap: 0;
    margin-bottom: -20vh;
  }

  .timeline-section-left {
    width: 50%;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    padding-left: 0;
  }

  .timeline-section-right {
    width: 50%;
    justify-content: center;
    align-items: center;
    padding-top: 27vh;
    padding-left: 0vw;
  }

  #timeline {
    display: none;
  }

  .timeline-event {
    position: relative;
    width: 98%;
    height: 33vh;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 5px;
    margin: 0 0 27vh 0;
  }

  .timeline-event::before {
    content: attr(data-date);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    padding: 5px 10px;
    font-weight: bold;
  }

  .timeline-event::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 2px;
    background-color: black;
  }

  .event1 {
    background-image: url("../images/project-img.png");
  }

  .event1::before {
    right: -80%;
  }

  .event1::after {
    left: 100%;
  }

  .event2 {
    background-image: url("../images/moraca.png");
  }

  .event2::before {
    right: -80%;
  }

  .event2::after {
    right: -50%;
  }

  .event3 {
    background-image: url("../images/milenijum.png");
  }

  .event3::before {
    right: -80%;
  }

  .event3::after {
    left: 100%;
  }

  .event4 {
    background-image: url("../images/montenegro-hub.png");
  }

  .event4::before {
    left: -80%;
  }

  .event4::after {
    right: 100%;
  }

  .event5 {
    background-image: url("../images/vila-moraca.png");
  }

  .event5::before {
    left: -80%;
  }

  .event5::after {
    left: -50%;
  }

  .content {
    padding: 10px;
  }

  .content h3 {
    font-size: 30px;
    color: #fff;
    letter-spacing: 4px;
    font-weight: 500;
    padding-left: 60px;
  }

  .content p {
    font-size: 16px;
    color: #fff;
    letter-spacing: 2px;
    font-weight: 400;
  }

  .content a {
    position: relative;
    font-size: 16px;
    padding-left: 60px;
    color: #fff;
    text-decoration: none;
    letter-spacing: 4px;
    font-weight: 600;
  }

  .content h3::before {
    content: url("../images/whitehorizontal.png");
    position: absolute;
    top: 25%;
    margin-left: -60px;
    transform: translateY(-50%);
  }

  .content a::before {
    content: url("../images/whitehorizontal.png");
    position: absolute;
    top: 25%;
    margin-left: -60px;
    transform: translateY(-50%);
  }
  #timeline-year {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-mid {
    width: 100%;
    display: flex;
    height: 80vh;
    overflow: hidden;
  }

  .hero-mid__left {
    background:linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/projekti-left.png);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
  }

  .hero-mid__right {
    background:linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/projekti-right.jpg);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
  }

  .hero-mid__left.active  {
    background: url(../images/projekti-left.jpg);
    cursor: pointer;
    transition: 0.3s;
    background-size: cover;
  }
  
  .hero-mid__right.active  {
    background: url(../images/projekti-right.jpg);
    cursor: pointer;
    transition: 0.3s;
    background-size: cover;
  }


  .hero-mid__left h1,
  .hero-mid__right h1 {
    color: #fff;
    font-size: 30px;
    text-align: center;
    letter-spacing: 8px;
    font-weight: 400;
    text-shadow: 4px 4px 4px #00000046;
    margin-top: 15vh;
  }

  .timeline-section {
    padding: 0;
    position: relative;
    display: flex;
    gap: 0;
    margin-bottom: -20vh;
  }

  .timeline-section-left {
    width: 50%;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    padding-left: 0;
  }

  .timeline-section-right {
    width: 50%;
    justify-content: center;
    align-items: center;
    padding-top: 27vh;
    padding-left: 0vw;
  }

  #timeline {
    display: none;
  }
  #timeline-year {
    display: none;
  }

  .timeline-event {
    position: relative;
    width: 95%;
    height: 26vh;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 5px;
    margin: 0 0 27vh 0;
  }

  .timeline-event::before {
    content: attr(data-date);
    position: absolute;
    top: 50%;
    
    transform: translateY(-50%);
    background-color: white;
    padding: 5px 10px;
    font-weight: bold;
  }

  .timeline-event::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30%;
    height: 1px;
    background-color: black;
  }

  .event1 {
    background-image: url("../images/project-img.png");
  }

  .event1::before {
    right: -85%;
  }

  .event1::after {
    left: 100%;
  }

  .event2 {
    background-image: url("../images/moraca.png");
  }

  .event2::before {
    right: -85%;
  }

  .event2::after {
    right: -30%;
  }

  .event3 {
    background-image: url("../images/milenijum.png");
  }

  .event3::before {
    right: -85%;
  }

  .event3::after {
    left: 100%;
  }

  .event4 {
    background-image: url("../images/montenegro-hub.png");
  }

  .event4::before {
    left: -85%;
  }

  .event4::after {
    right: 100%;
  }

  .event5 {
    background-image: url("../images/vila-moraca.png");
  }

  .event5::before {
    left: -85%;
  }

  .event5::after {
    left: -30%;
  }
  .content {
    padding: 5px;
  }

  .content h3 {
    font-size: 18px;
    color: #fff;
    letter-spacing: 4px;
    font-weight: 500;
    margin: 0;
    padding-left: 0;
  }

  .content p {
    font-size: 10px;
    color: #fff;
    margin: 0;
    letter-spacing: 2px;
    font-weight: 400;
  }

  .timeline-event .content p {
    display:none;
}

  .content a {
    position: relative;
    font-size: 10px;
    padding-left: 60px;
    color: #fff;
    text-decoration: none;
    letter-spacing: 4px;
    font-weight: 600;
  }

  .content h3::before {
    display: none;
  }

  .content a::before {
    content: url("../images/whitehorizontal.png");
    position: absolute;
    top: 25%;
    margin-left: -60px;
    transform: translateY(-50%);
  }
}


.timeline-line{
    position: absolute;
  left: 50%;
  top: -20vh;
  transform: translateX(-50%);
  height: 100%;
  width: 1px;
  background-color: #000;
}

.timeline-section-left{
  position: relative;
  padding-top: 0;
  margin-top: 26vh;
  padding-left: 0;
}

.timeline-section-left::before{
  content: "";
  position: absolute;
  top: -9%;
  right: 0;
  width: 50%;
  height: 1px;
  background-color: #000;
}
.timeline-section-left::after{
  content: "";
  position: absolute;
  top: -9%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 9%;
  background-color: #000;
}

.timeline-section-right{
  padding-top: 0;
  margin-top: 69vh;
  position: relative;
}

.timeline-section-right::before{
  content: "";
  position: absolute;
  top: -9%;
  left: 0;
  width: 50%;
  height: 1px;
  background-color: #000;
}
.timeline-section-right::after{
  content: "";
  position: absolute;
  top: -9%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 9%;
  background-color: #000;
}

.timeline-section-right .timeline-event{
  margin-left: auto;

}

@media only screen and (max-width: 1024px){
  .timeline-section-right::after, .timeline-section-right::before, .timeline-section-left::before, .timeline-section-left::after{
    display: none;
  }

  .timeline-line{
    display: none;
  }

  .timeline-section-right{
    margin-top: 0;
    padding-top: 27vh;
  }

  .timeline-section-left{
    margin-top: 0;
  }

  .timeline-section-right .timeline-event::after{
    right: 100%;
    left: auto;
  }

   .timeline-section-right .timeline-event::before{
    left: -80%;
    right: auto;
   }
}

.timeline-event-overlay{
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 100%;
  z-index: 0;
}

.timeline-event .content{
  position: relative;
  z-index: 1;
}
.timeline-section-right .timeline-event::before{
  left: -10%;
  right: auto;
}

@media only screen and (max-width: 768px){
  .timeline-section-right .timeline-event::before{
    left: -93%;
  }
}