/******************************

SLIDER

*******************************/

.mySlides {
  display: none;
}

.slideshow-container {
  width: 100%;
  height: 650px !important;
  position: relative;
  margin: 88px auto;
  border-bottom: 2px solid var(--color-primary);
}

.slide {
  width: 100%;
  height: 650px !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.slideshow-container .prev, .slideshow-container .next {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--color-one);
  cursor: pointer;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transition: 0.3s;
}

.slideshow-container .prev:hover, .slideshow-container .next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.slideshow-container .prev {
  left: 10px;
}

.slideshow-container .next {
  right: 10px;
}

.fade {
  animation-name: fade;
  animation-duration: 2.5s;
}

@keyframes fade {
  from {opacity: 0} 
  to {opacity: 1}
}

.caption {
  position: absolute;
  padding: 12px 62px;
  text-align: center;
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.8);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: slide-up 3s forwards;
  z-index: 1;
}

.caption h1,
.caption h2,
.caption h3 {
  font-size: 28px;
  color: var(--color-primary-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.caption p {
  font-size: 18px;
  color: #f6f6f6;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-page {
  position: relative;
  margin: 120px auto;
  padding: 20px 0px 0px 0px;
  background-color: #f6f6f6;
}

.section-page h1 {
  text-align: center;
  font-size: 28px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-page span {
  color: var(--color-primary);
}

.section-page h5 {
  text-align: center;
  width: 90%;
  margin: auto;
  font-size: 18px;
  font-weight: 400;
  opacity: 0.5;
}

.section-page h5 span {
  font-weight: 700;
  color: #222;
}

.section-page h6 {
  text-align: center;
  width: 90%;
  margin: auto;
  font-size: 18px;
  font-weight: 400;
  opacity: 0.5;
  color: #f0f0f0;
}

.section-page .bor {
  background: var(--color-primary);
  height: 2px;
  width: 280px;
  margin: -20px auto;
  position: relative
}

.section-page .bor-2 {
  background: var(--color-primary);
  height: 2px;
  width: 220px;
  margin: 30px auto;
  position: relative
}

@keyframes slide-up {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30%;
    opacity: 1;
  }
}

.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 1%;
  background-color: var(--color-primary) !important;
  width: 380px !important;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.popup-content {
  text-align: center;
  font-size: 16px;
  color: #000;
}

.waves {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 90px;
z-index: 1;
}

.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5)     infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
   transform: translate3d(-90px,0,0);
  }
  100% { 
    transform: translate3d(85px,0,0);
  }
}

@media only screen and (max-width: 1080px) {

  .slideshow-container {
    height: 360px !important;
  }
  
  .slide {
    height: 360px !important;
  }
  
  .caption {
    padding: 6px 30px;
    left: 2%;
    right:2%;
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(145%);
  }
  
  @keyframes slide-up {
    from {
      bottom: 0;
      opacity: 0;
  }
    to {
      bottom: 50%;
      opacity: 1;
    }
  }
}

@media only screen and (max-width: 767px) {

  .slideshow-container {
    height: 260px !important;
  }
  
  .slide {
    height: 260px !important;
  }
  
  .caption {
    padding: 6px 30px;
    left: 2%;
    right:2%;
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(160%);
  }
  
  @keyframes slide-up {
    from {
      bottom: 0;
      opacity: 0;
  }
    to {
      bottom: 50%;
      opacity: 1;
    }
  }
  
  .caption h1,
  .caption h2,
  .caption h3 {
    font-size: 18px;
  }
  
  .caption p {
    font-size: 16px;
  }
  
  .previous_btn {
    left: 50px;
  }
  .next_btn {
    right: 50px;
  }
  
  .popup {
    width: 320px !important;
  }
  
  .waves {
	  display: none;
  }

}