@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-100%); opacity: 0; }
}

@keyframes zoomIn {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.slideshow-container {
  position: relative;
  max-width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  animation: fade 1s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoomIn 10s ease-in-out forwards;
}

.text, .textnew, .textnew2 {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 20px;
  font-weight: bold;
  line-height: 1.6;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  word-wrap: break-word;
  animation: slideIn 1s forwards;
}

.text {
  top: 30%;
  left: 5px;
  font-family: "Anton", sans-serif;
  font-size: 40px;
  max-width: 60%;
  color: #0b3a5a;
  background: rgba(0, 0, 0, 0.02);
}

.textnew {
  top: 25%;
  right: 5%;
  font-size: 14px;
  max-width: 45%;
  text-align: left;
}
@media (max-width: 1024px) {
  .text {
    font-size: 28px;
    max-width: 90%;
    left: 5%;
  }

  .textnew {
    top: 65%; /* Push further down */
    font-size: 13px;
    max-width: 90%;
    left: 5%;
    right: 5%;
  }
}

/* Mobile view */
@media (max-width: 600px) {
  .text {
    font-size: 24px;
    top: 20%;
    max-width: 90%;
  }

  .textnew {
    top: 70%; /* Push even more down */
    font-size: 12px;
    max-width: 90%;
    left: 5%;
    right: 5%;
  }
}

.textnew2 {
  top: 25%;
  right: 15%;
  font-size: 16px;
  max-width: 40%;
  text-align: left;
  border-radius: 20px;
}

.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #bbb;
  cursor: pointer;
}

.active {
  background: #fff;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  .text {
    font-size: 32px;
    max-width: 80%;
  }
  .textnew,
  .textnew2 {
    max-width: 70%;
    font-size: 14px;
    top: 20%;
  }
}

@media screen and (max-width: 768px) {
  .text {
    font-size: 24px;
    max-width: 90%;
    top: 20%;
  }
  .textnew,
  .textnew2 {
    max-width: 90%;
    font-size: 12px;
    padding: 15px;
    top: 15%;
    left: 5%;
    right: auto;
  }
}

@media screen and (max-width: 480px) {
  .slideshow-container {
    height: 70vh;
  }
  .text {
    font-size: 18px;
    max-width: 95%;
    top: 15%;
  }
  .textnew,
  .textnew2 {
    font-size: 12px;
    max-width: 95%;
    top: 10%;
    left: 5%;
    right: auto;
    padding: 10px;
  }
}
