
.slider{
    position: relative;
    width: 100%;
    height: 570px;
    overflow: hidden;
   
    
}
 .item {
    position: absolute;
    width: 220px;
    height: 320px;
    background: linear-gradient(160deg, #1a1a40, #3f0d12);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.4), 0 0 20px rgba(255, 20, 147, 0.2);
    border-radius: 10px;
    padding: 20px;
    transition: 0.5s;
    left: 50%; /* Position the items from the center */
    top: 0;
    transform: translateX(-50%) scale(0.6); /* Centered and scaled down by default */
    z-index: 1; /* Default z-index */
    opacity: 0.6;
}

.item.active {
    opacity: 1;
    transform: translateX(-50%) scale(1.0); /* Full size and visible */
    z-index: 3; /* The active item is on top */
}

.item.next {
    opacity: 0.6;
    transform: translateX(150px) scale(0.8); /* Move right and slightly smaller */
    z-index: 2;
}

.item.prev {
    opacity: 0.6;
    transform: translateX(-350px) scale(0.8); /* Move left and slightly smaller */
    z-index: 2;
}
.item:hover {
    transform: translateX(subtle); /* Move 5 pixels to the right on hover */
    /* Or for a slight "forward" feel (subtle): */
    /* transform: scale(1.02); /* Scale up slightly */
    /* box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15); /* Add a subtle shadow */
  }
.slider a {
	text-decoration: none;
}

/* #next, #prev{
    position: absolute;
    top: 30%;
    color: #fff;
    background-color: transparent;
    border: none;
    font-size: xxx-large;
    font-family: monospace;
    font-weight: bold;
    left: 50px
}

#next{
    left: unset;
    right: 50px;
}
 */

 #next, #prev {
  position: absolute;
  top: 38%; /* Center vertically */
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%; /* This makes the circle */
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex; /* Flexbox for centering the arrow */
  justify-content: center;
  align-items: center;
  background-color: transparent; /* Initially transparent */
}

#next {
  right: 20px;
}

#prev {
  left: 20px;
}

/* Gradient background for the circle */
#next::before, #prev::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,26,64,0.8) 0%, rgba(63,13,18,0.8) 100%);
  transition: all 0.3s ease;
  z-index: -1;
}

/* Arrow shape using a border trick */
#next::after, #prev::after {
  content: '';
  width: 15px; /* Adjust size */
  height: 15px;
  border-right: 8px solid white;
  border-bottom: 8px solid white;
  transition: all 0.3s ease;
}

#next::after {
  transform: rotate(-45deg);
}

#prev::after {
  transform: rotate(135deg);
} 

#next:hover::before, #prev:hover::before {
  background: radial-gradient(circle, rgba(255, 20, 147, 0.8) 0%, rgba(138, 43, 226, 0.8) 100%);
}

#next:hover::after, #prev:hover::after {
  border-right-color: #f2f2f2;
  border-bottom-color: #f2f2f2;
} 