@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,700;1,700&display=swap");

body {
  font-family: "Nunito", cursive;
  color: #efefef;
  text-align: center;
  padding: 4em 0;
  background-color: #212123;
  margin: 0;
  
}

.conteudo__geral {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1d1e22;
}

img {
  display: block;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.container-carrossel {
  --widthItem: 150px;
  --heightItem: 100px;
  width: var(--widthItem);
  height: var(--heightItem);
  perspective: 1000px;
}

.carrossel {
  --rotatey: 0;
  font-size: 4rem;
  position: relative;
  transform: rotatey(var(--rotatey));
  transform-style: preserve-3d;
  user-select: none;
  cursor: grab;
  
}

.carrossel-item {
  opacity: 0.5;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  transition: opacity 0.5s;
  transition: opacity 0.5s, border 0.5s;
  border: 4px solid transparent;
  width: 100%; /* Ensures items take full width */
  height: 100%;
  
}

.carrossel-item:hover,
.carrossel-item.active {
  opacity: 1;
  border-image: linear-gradient(45deg, #fbd52d, #ef3a7b) 1;
}
.carrossel,
.carrossel-item {
  width: 100%;
  height: 100%;
}
/* background: linear-gradient(-229deg, #642B73, #C6426E); */

.carrossel-item:nth-child(1) {
  --rotatey: 0;
  transform: rotatey(var(--rotatey)) translatez(var(--tz));
  background: linear-gradient(-229deg, #fbd52d, #ef3a7b);
}

.carrossel-item:nth-child(2) {
  --rotatey: 0;
  transform: rotatey(var(--rotatey)) translatez(var(--tz));
  background: linear-gradient(-229deg, #ff70af, #5fa8f5);
}

.carrossel-item:nth-child(3) {
  --rotatey: 0;
  transform: rotatey(var(--rotatey)) translatez(var(--tz));
  background: linear-gradient(-229deg, #0cebeb, #29ffc6);
}
.carrossel-item:nth-child(4) {
  --rotatey: 0;
  transform: rotatey(var(--rotatey)) translatez(var(--tz));
  background: linear-gradient(-229deg, #88f7f9, #048fff);
}

.carrossel-item:nth-child(5) {
  --rotate: 0;
  transform: rotatey(var(--rotatey)) translatez(var(--tz));
  background: linear-gradient(-229deg, #0093e9, #80d0c7);
}

.carrossel-item:nth-child(6) {
  --rotatey: 0;
  transform: rotatey(var(--rotatey)) translatez(var(--tz));
  background: linear-gradient(-229deg, #cf91ff, #5782f5);
}

@media screen and (min-width: 576px) {
  .container-carrossel {
    --widthItem: 250px;
    --heightItem: 200px;
  }
}
 
/* * Add specific gradients for the border */ 
.carrossel-item:nth-child(2):hover,
.carrossel-item:nth-child(2).active {
  border-image: linear-gradient(45deg, #ff70af, #5fa8f5) 1;
}

.carrossel-item:nth-child(3):hover,
.carrossel-item:nth-child(3).active {
  border-image: linear-gradient(45deg, #0cebeb, #29ffc6) 1;
}

.carrossel-item:nth-child(4):hover,
.carrossel-item:nth-child(4).active {
  border-image: linear-gradient(45deg, #88f7f9, #048fff) 1;
}

.carrossel-item:nth-child(5):hover,
.carrossel-item:nth-child(5).active {
  border-image: linear-gradient(45deg, #0093e9, #80d0c7) 1;
}

.carrossel-item:nth-child(6):hover,
.carrossel-item:nth-child(6).active {
  border-image: linear-gradient(45deg, #cf91ff, #5782f5) 1;
}
img{
  height: 300px;
}
.img1{
  height: 200px;
}
.img2{
  height: 200px;
}
.img3{
  height: 200px;
}
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  color: #212123;
}

.nav-button.left-button {
  left: -100px;
}

.nav-button.right-button {
  right: -100px;
}

.nav-button:hover {
  background-color: #efefef;
}