.maincaroucel {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20%;

    p {
        color: white;
        font-family: 'Poppins', sans-serif;
        font-size: 3vw;
        z-index: 1;
        font-weight: bold;
        margin: 0;

    }
}

#carousel-container {
    perspective: 1000px;
    width: 25%;
    min-width: 220px;
    height: 300px;
    margin-bottom: 10%;

}

#carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: center;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
    border: 1.53px solid rgba(165, 162, 162, 0.688);
    background: rgba(181, 249, 253, 0.42);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    cursor: grab;
    user-select: none;
    flex-direction: column;

    img {
        height: 60%;
        width: 90%;
        margin-bottom: 10%;
        border-radius: 15px;
        -webkit-user-drag: none;
    }

    a {
        position: absolute;
        bottom: 0;
        width: 100%;

        button {
            background-color: #1f1f6599;
            width: 100%;
            border: none;
            border-radius: 0px 0px 10px 10px;
            padding: 10px 0px;
            cursor: pointer;
            font-weight: bold;
            font-size: large;
            color: aliceblue;
            
        }
        button:hover{
            background-color: #08084299;
        }
    }
}




@media (max-width: 1100px) {

}



/*cuando se oculta la  barra lateral y se coloca encima*/

@media (max-width: 900px) {
    .maincaroucel {
        p {
          font-size: 5vw;
    
        }
    }
}


@media (max-width: 600px) {
    .maincaroucel {
        gap: 10%;
        p {
          font-size: 6vw;
    
        }
    }

}

@media (max-width: 500px) {
    .maincaroucel {
        p {
          font-size: 8vw;
          width: 70%;
          text-align: center;
    
        }
    }

    .carousel-item{
        width: 88%;
    }

    #carousel-container{
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(5.5%);
    }

}