/* Picture Slideshow Attributes */
#picture-slideshow {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.slide-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.7)
  );
  padding: 30px 50px;
  border-radius: 10px;
  z-index: 2;
}

.slide-text h2 {
  font-size: 48px;
  margin: 0 0 15px 0;
  font-family: "Stencil", "Stencil Std", sans-serif;
  font-weight: lighter;
}

.slide-text span {
  font-size: 24px;
  margin: 0;
  font-family: "Lato", sans-serif;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 30px;
  padding: 15px 20px;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s;
  border-radius: 8px;
}

.slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
  top: 55%;
  left: 20px;
}

.next-btn {
  top: 55%;
  right: 20px;
}

#about-us-button {
  margin: 20px auto;
}

/* Projects containers */

#main-projects-container {
  margin: 150px 100px 150px 100px;
  padding: 60px 0 60px 0;
  border: none;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.project-containers-all {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  margin: 0 0 25px 0;
}

.project-containers {
  flex: 1;
  max-width: 400px;
  font-weight: lighter;
  font-size: xx-large;
  background-color: white;
  position: relative;
  z-index: 1;
}

.projects-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 0;
  background: none;
  color: white;
  text-align: center;
}

.projects-text h2 {
  margin: 0;
  font-size: 60px;
  font-weight: 700;
  color: white;
  text-shadow:
    3px 3px 8px rgba(0, 0, 0, 1),
    6px 6px 16px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 0, 0, 0.8);
  letter-spacing: 1px;
}

.project-containers img {
  display: block;
  margin: 0 auto;
  height: 350px;
  width: 350px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-containers img:hover {
  transform: scale(1.05);
  transition: transform 0.9s ease;
}

#experts-title {
  font-size: 50px;
  text-align: center;
  margin: 0 0 0 0;
}

#about-us-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

#right-about-us {
  background-color: rgb(255, 205, 58);
  flex-direction: column;
  padding: 50px 50px 50px 50px;
}

#about-us-description {
  color: #3d3d3d;
}

#peter-text {
  display: block;
  text-align: center;
  font-size: 25px;
  margin: 5vh 0 0 0;
}

#owner-text {
  display: block;
  font-style: italic;
  text-align: center;
  font-size: 20px;
  margin: 2vh 0 0 0;
}

@media screen and (max-width: 1400px) {
  #picture-slideshow {
    height: 600px;
  }

  .slide-text h2 {
    font-size: 32px;
  }

  .slide-text span {
    font-size: 18px;
  }

  .slide-text {
    padding: 20px 30px;
    position: absolute;
    top: 40%;
    left: 50%;
  }

  #main-projects-container {
    margin: 50px 50px 50px 50px;
  }

  .project-containers-all {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .slider-btn {
    font-size: 20px;
    padding: 10px 15px;
  }

  .prev-btn {
    top: 35%;
    left: 5px;
  }

  .next-btn {
    top: 35%;
    right: 5px;
  }
}
