.specialties {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Times New Roman', Times, serif;
  /* border: 5px solid #00ff88; */
  padding: 20px;

}

.specialties h1 {
  font-size: 60px;
  opacity: 0.8;
  padding: 50px 0px;
  letter-spacing: 30px;
}

.descriptionServ {
  font-size: 25px;
  text-align: center;
  padding: 0px 300px 50px;
}

/* ==================================================================== */
.scene {
  /* border: 5px solid #00ff88; */
  position: relative;
  width: 420px;
  height: 300px;
  perspective: 1000px;
  margin: 100px 0px;
}

.carousel {
  /* border: 5px solid #2200ff; */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  transform: translateZ(-288px);
  transform-style: preserve-3d;
  transition: transform 1s;

}

.carousel__cell {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  opacity: 0.9;
  transition: 0.3s;
  font-family: "Raleway", serif;
  background-repeat: no-repeat;
  background-size: cover;
  /* cursor: grab; */
}

.carousel__cell:hover {
  opacity: 1;
  filter: brightness(1.1) contrast(1.1);
}

/* ======================================= cards =================================== */
.carousel__cell:nth-child(9n+1) {
  background-image: url("../img/carrousel/c1.jpg");
}

.carousel__cell:nth-child(9n+2) {
  background-image: url("../img/carrousel/c2.jpg");
}

.carousel__cell:nth-child(9n+3) {
  background-image: url("../img/carrousel/c3.jpg");
}

.carousel__cell:nth-child(9n+4) {
  background-image: url("../img/carrousel/c4.jpg");
}

.carousel__cell:nth-child(9n+5) {
  background-image: url("../img/carrousel/c5.jpg");
}

.carousel__cell:nth-child(9n+6) {
  background-color: #391bc001;
}

.carousel__cell:nth-child(9n+7) {
  background-color: #c90fad01;
}

.carousel__cell:nth-child(9n+8) {
  background-color: #db1e1e01;
}

.carousel__cell:nth-child(9n+9) {
  background-color: #28c33301;
}

.carousel__cell:nth-child(9n+10) {
  background-image: url("../img/logo-car.png");
  background-size: contain;
  filter: drop-shadow(2px 2px 2px #000000);
  display: flex;
  align-items: end;
}

.carousel__cell:nth-child(9n+11) {
  background-image: url("../img/logo-car-shadow.png");
  background-size: contain;
  filter: drop-shadow(2px 2px 2px #000000) blur(3px);
  display: flex;
  align-items: end;
}


.carousel__cell:nth-child(1) {
  transform: rotateY(0deg) translateZ(588px);
}

.carousel__cell:nth-child(2) {
  transform: rotateY(40deg) translateZ(588px);
}

.carousel__cell:nth-child(3) {
  transform: rotateY(80deg) translateZ(588px);
}

.carousel__cell:nth-child(4) {
  transform: rotateY(120deg) translateZ(588px);
}

.carousel__cell:nth-child(5) {
  transform: rotateY(160deg) translateZ(588px);
}

.carousel__cell:nth-child(6) {
  transform: rotateY(200deg) translateZ(588px);
}

.carousel__cell:nth-child(7) {
  transform: rotateY(240deg) translateZ(588px);
}

.carousel__cell:nth-child(8) {
  transform: rotateY(280deg) translateZ(588px);
}

.carousel__cell:nth-child(9) {
  transform: rotateY(320deg) translateZ(588px);
}

.carousel__cell:nth-child(10) {
  transform: rotateY(-90deg) translateZ(0px) translateY(60px);
}

.carousel__cell:nth-child(11) {
  transform: rotateY(-90deg) rotateX(90deg) translateZ(-203px) translateY(-135px) translateX(0px);
}

.containerBtnServ {
  text-align: center;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.specialties button {
  border: 0px;
  background-color: transparent;
}

.specialties button img {
  width: 50px;
  opacity: 0.5;
  transition: 0.3s;
  cursor: pointer;
}

.specialties button img:hover {
  opacity: 1;
}

@media (min-width: 280px) and (max-width: 320px) {
  .specialties {
    /* border: 5px solid #00ff88; */
    padding: 20px;
  }

  .specialties h1 {
    font-size: 20px;
    padding: 30px 0px;
    letter-spacing: 17px;
  }

  .descriptionServ {
    font-size: 20px;
    text-align: center;
    padding: 0px 0px 10px;
  }

  .scene {
    display: none;
  }

  .specialties button {
    display: none;
  }

}

@media (min-width: 321px) and (max-width: 360px) {
  .specialties {
    /* border: 5px solid #00ff88; */
    padding: 20px;
  }

  .specialties h1 {
    font-size: 20px;
    padding: 30px 0px;
    letter-spacing: 17px;
  }

  .descriptionServ {
    font-size: 20px;
    text-align: center;
    padding: 0px 0px 10px;
  }

  .scene {
    display: none;
  }

  .specialties button {
    display: none;
  }

}

@media (min-width: 361px) and (max-width: 390px) {
  .specialties {
    /* border: 5px solid #00ff88; */
    padding: 20px;
  }

  .specialties h1 {
    font-size: 20px;
    padding: 30px 0px;
    letter-spacing: 17px;
  }

  .descriptionServ {
    font-size: 20px;
    text-align: center;
    padding: 0px 0px 10px;
  }

  .scene {
    display: none;
  }

  .specialties button {
    display: none;
  }

}

@media (min-width: 391px) and (max-width: 480px) {
  .specialties {
    /* border: 5px solid #00ff88; */
    padding: 20px;
  }

  .specialties h1 {
    font-size: 30px;
    padding: 30px 0px;
    letter-spacing: 18px;
  }

  .descriptionServ {
    font-size: 22px;
    text-align: center;
    padding: 0px 0px 20px;
  }

  .scene {
    display: none;
  }

  .specialties button {
    display: none;
  }

}

@media (min-width: 481px) and (max-width: 600px) {
  .specialties {
    /* border: 5px solid #00ff88; */
    padding: 20px;
  }

  .specialties h1 {
    font-size: 40px;
    padding: 30px 0px;
    letter-spacing: 20px;
  }

  .descriptionServ {
    font-size: 22px;
    text-align: center;
    padding: 0px 0px 20px;
  }

  .scene {
    display: none;
  }

  .specialties button {
    display: none;
  }

}

@media (min-width: 601px) and (max-width: 768px) {
  .specialties {
    /* border: 5px solid #00ff88; */
    padding: 20px;
  }

  .specialties h1 {
    font-size: 40px;
    padding: 30px 0px;
    letter-spacing: 20px;
  }

  .descriptionServ {
    font-size: 22px;
    text-align: center;
    padding: 0px 0px 20px;
  }

  .scene {
    /* display: none; */
  }

  .specialties button {
    /* display: none; */
  }
}

@media (min-width: 769px) and (max-width: 1024px) {}

@media (min-width: 1200px) and (max-width: 1400px) {
  
  .specialties h1 {
    font-size: 50px;
    padding: 50px 0px;
  }
  
  .descriptionServ {
    font-size: 25px;
    padding: 0px 30px 50px;
  }
  
 
}