.video-carousel {
    display: flex;
    overflow: hidden;
    position: relative;
}

.carousel-item {
    opacity: 0;
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
    width: 100%;
    position: absolute; 
    visibility: hidden;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease-in-out;
    position: relative;
}

.video-text h1{
    position: absolute;
    text-align: center;
}

.carousel-item .center-button {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 123, 255, 0.301);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 16px;
  }
  
  .carousel-item .center-button:hover {
    background-color: rgba(0, 123, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 1;
  }