.wheather-slide {
  width: 100%;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background-color: white;
  padding: 60px 16px 200px;
}

.wheather-slide h1 {
  text-align: center;
  color: #c1121f;
}

.weather-header {
  width: 100%;
  text-align: center;
  color: #0f172a;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.weather-kicker {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: #475569;
}

.weather-title {
  margin: 8px 0 6px;
  font-size: 32px;
  color: #0f172a;
}

.weather-subtitle {
  margin: 0;
  color: #475569;
  font-size: 15px;
}

.weather-slide {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.wheather-slide {
  overflow: auto;
}

.container {
  position: relative;
  width: 100%;
  height: 90vh;
  margin: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  border-radius: 20px;
}

.slider {
  max-width: 100%;
  position: absolute;
  inset: 40px 160px 80px 200px;
  border-radius: 20px;
}

.slider .slides {
  position: absolute;
  top: 80%;
  transform: translate(30%, -50%);
  width: 180px;
  height: 250px;
  background: var(--img);
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  transition: 0.5s;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: flex-start; /* Here gonna change text from top to bottom */
  align-items: flex-end; /* Here gonna change text from top to bottom */
  overflow: hidden;
}

.slides .slide-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  filter: brightness(0.9);
  z-index: 0;
}

.slider .slides:nth-child(1),
.slider .slides:nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(0);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0);
  background-size: cover;
}

.slider .slides:nth-child(3) {
  left: calc(50% + 200px);
  background-size: cover;
}

.slider .slides:nth-child(4) {
  left: calc(50% + 420px);
  background-size: cover;
}
.slider .slides:nth-child(5) {
  left: calc(50% + 640px);
  background-size: cover;
}
.slider .slides:nth-child(6) {
  left: calc(50% + 860px);
  background-size: cover;
  opacity: 0;
}

.buttons {
  position: absolute;
  bottom: 15px;
  display: flex;
  gap: 20px;
}

.buttons span {
  position: relative;
  width: 50px;
  height: 50px;
  background: #111;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}
.buttons span::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-top: 4px solid #fff;
  border-left: 4px solid #fff;
  transform: rotate(315deg) translate(2px, 2px);
}

.buttons span:nth-child(2)::before {
  transform: rotate(135deg) translate(2px, 2px);
}

.buttons span:active {
  opacity: 0.5;
}

.content {
  position: relative;
  padding-left: 40px;
  padding-bottom: 50px;
  max-width: 560px;
  transition: 0.25s;
  transition-delay: 0s;
  transform: translateY(40px);
  z-index: 10000;
  opacity: 0; /*here gonna be text opacity */
  background: none;
}

.content h2 {
  font-size: 3em;
  color: #fff;
  padding-bottom: 8px;
  margin: 0;
}

.content h2 span {
  font-size: 26px;
}

.content p {
  margin: 0;
  color: #f9fafb;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.65);
  line-height: 1.6;
}

.wheather-text-t {
  display: inline-block;
  background: rgba(0, 0, 0, 0.65);
  padding: 12px 14px;
  border-radius: 12px;
  backdrop-filter: blur(2px);
}

.slider .slides:nth-child(1) .content,
.slider .slides:nth-child(2) .content {
  opacity: 1;
  transform: translateY(0px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (max-width: 479px) {
  .wheather-slide {
    margin-bottom: 150px;
  }

  .container {
    height: 90vh;
  }

  .content h2 {
    font-size: 28px;
    color: #fff;
    line-height: 1.5;
  }

  .content span {
    font-size: 14px !important;
  }

  .content p {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
  }

  .content {
    padding-left: 10px;
    padding-bottom: 10px;
  }
}

@media (min-width: 480px) {
  .content {
    padding-left: 10px;
    padding-bottom: 10px;
  }
}

/* responsive design */
@media (max-width: 900px) {
  .slider {
    position: absolute;
    inset: 40px 40px 200px 40px;
  }

  .slider .slides {
    width: 100px;
    height: 100px;
    top: initial;
    bottom: -170px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  }

  .slider .slides:nth-child(1),
  .slider .slides:nth-child(2) {
    top: initial;
    bottom: 0px;
  }

  .slider .slides:nth-child(3) {
    left: 0;
  }
  .slider .slides:nth-child(4) {
    left: 120px;
  }
  .slider .slides:nth-child(5) {
    left: 240px;
  }
  .slider .slides:nth-child(6) {
    left: 360px;
  }
}
