.slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--section-width);

  position: relative;
}
.slide.active {
  display: flex;
}
.slide {
  display: none;
  align-items: end;
  /* justify-content: center; */
  width: 100%;
  height: 80vh;
  /* background-clip: 50px; */
  background-position: right;
  background-repeat: no-repeat;
  background-color: #485563;
}

.slide-content {
  display: flex;
  width: 45%;
  gap: 10px;
  flex-direction: column;
  margin-left: 80px;
  margin-bottom: 10px;
  padding: 2rem;
  background: rgba(250, 250, 250, 0.438);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  /* border: 1px solid rgba(255, 255, 255, 0.49); */
  -webkit-box-shadow: 8px 8px 24px 0px rgb(121, 121, 121);
  -moz-box-shadow: 8px 8px 24px 0px rgb(90, 90, 90);
  box-shadow: 8px 8px 24px 0px rgb(75, 75, 75);
  animation: fade 0.2s linear 0.3s backwards;
}

.slide-content a {
  text-decoration: none;
}

.slide-content a:visited {
  color: var(--secondary-color);
}

.slide-content h1 {
  text-align: center;
}

.slide-content span {
  font-size: 1.2rem;
  animation: fadeLeft 0.3s linear 0.3s backwards;
  color: var(--primary-color);
}

.slide-content h1 {
  color: var(--primary-color);
  font-size: 1.7rem;
  width: 90%;
  animation: fadeLeft 0.3s linear 0.4s backwards;
}

.slide-content a {
  font-size: 1.1rem;
  animation: fadeLeft 0.3s linear 0.6s backwards;
}

.slide img {
  animation: fadeUp 0.3s linear backwards;
  max-height: 400px;
  -webkit-filter: drop-shadow(5px 5px 5px #2222228c);
  filter: drop-shadow(10px 20px 20px #22222273);
}

#next-slide,
#prev-slide {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 20px;
  text-align: center;
  background-color: rgb(255, 255, 255);
  font-size: 1.1rem;
  color: black;
  cursor: pointer;
  border-radius: 5px;
  box-shadow: rgb(40, 53, 66) 0px 10px 20px -10px;
}

#next-slide:hover,
#prev-slide:hover {
  color: #cd1220;
  transition: all 0.3s ease;
}

#prev-slide {
  left: 1rem;
}

#next-slide {
  right: 1rem;
}

@media (max-width: 800px) {
  #next-slide,
  #prev-slide {
    top: 90%;
    font-size: 0.9rem;
  }

  #prev-slide {
    left: calc(100% - 8rem);
  }

  .slide {
    padding: 1rem;
    height: 85vh;
  }

  .slide-content {
    gap: 5px;
  }

  .slide-content span {
    font-size: 1rem;
  }

  .slide-content h1 {
    font-size: 1.5rem;
  }

  .slide-content a {
    font-size: 1rem;
  }
}
