body{
    background-color: rgb(16,25,32);
    overflow-x: hidden;
}

.container-wrap{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    margin: 0 auto;
    width: 50%;
}

.container-slider{
    position: absolute;
    width: 1000px;
    height: 600px;
    background-color: rgb(16,25,32);
    box-shadow: 0 30px 50px rgb(255,231,21);
    border-radius: 15px;
}
#slide{
    width:max-content;
    margin-top:50px;
}
.item{
    width:150px;
    height:250px;
    background-position: 50% 50%;
    display: inline-block;
    transition: 0.5s;
    background-size: cover;
    position: absolute;
    z-index: 1;
    top:79%;
    transform: translate(20px, -50%);
    border-radius: 15px;
    box-shadow:  0 30px 50px rgb(255,231,21);
}

.item.image::before {
    content: "";
    background: rgba(0, 0, 0, 0.3); /* Adjust the RGBA values and opacity as needed */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place it behind the content */
    border-radius: 15px;
}

@media(max-width:1050px){
    .container-slider{
        width: 600px;
        height: 500px;
    }
}

@media(max-width: 605px){
    .container-slider{
        width: 500px;
    }
}

@media(max-height: 810px){
    .container-wrap{
        margin-top: 10%;
    }
}
@media(max-height: 600px){
    .container-wrap{
        margin-top: 20%;
    }
}

@media(max-height: 400px){
    .container-wrap{
        margin-top: 30%;
    }
}

.item:nth-child(1),
.item:nth-child(2){
    left:0;
    top:0;
    transform: translate(0,0);
    width:100%;
    height:100%;
    box-shadow: none;
    border-radius: 15px;
}

.item:nth-child(3){
    left:calc(50% + 330px);
}
.item:nth-child(4){
    left:calc(50% + 490px);
}
.item:nth-child(5){
    left:calc(50% + 650px);
}
.item:nth-child(n+6){
    left:calc(50% + 880px);
    opacity: 0;
}

.item .content{
    position: absolute;
    top:50%;
    left:100px;
    width:350px;
    text-align: left;
    padding:0;
    transform: translate(0,-50%);
    display: none;
    font-family: system-ui;
}

.item:nth-child(2) .content{
    display: block;
    z-index: 11111;
}
.item .name{
    font-size: 40px;
    font-weight: bold;
    opacity: 0;
    animation:showcontent 1s ease-in-out 1 forwards;
    color: rgb(255,231,21);
}
.item .info{
    margin:20px 0;
    opacity: 0;
    font-size: 20px;
    animation:showcontent 1s ease-in-out 0.3s 1 forwards;
    color: white;
}
.item button{
    padding:10px 20px;
    border:none;
    opacity: 0;
    animation:showcontent 1s ease-in-out 0.6s 1 forwards;
    background-color: rgb(16,25,32);
    color: white;
    border-radius: 15px;
    border: 2px solid rgb(255,231,21);
    cursor: pointer;
    transition: .3s;
}

.item button:hover{
    transition: .3s;
    font-size: 16px;
}

@keyframes showcontent{
    from{
        opacity: 0;
        transform: translate(0,100px);
        filter:blur(33px);
    }to{
        opacity: 1;
        transform: translate(0,0);
        filter:blur(0);
    }
}
.buttons{
    position: absolute;
    bottom:30px;
    z-index: 222222;
    text-align: center;
    width:100%;
}
.buttons button{
    width:50px;
    height:50px;
    border-radius: 50%;
    border:1px solid #555;
    transition: 0.5s;
}.buttons button:hover{
    background-color: rgb(255,231,21);
}
  
@media(max-width: 1700px){
    .container-slider{
        margin-top: 3%;

    }
}

@media(max-width: 1200px){
    .container-slider{
        margin-top: 3%;

    }

    .item:nth-child(3){
        left:calc(50% + 310px);
    }
    .item:nth-child(4){
        left:calc(50% + 480px);
    }
    .item:nth-child(5){
        left:calc(50% + 640px);
    }
    .item:nth-child(n+6){
        left:calc(50% + 880px);
        opacity: 0;
    }
}

@media(max-width: 1100px){
    .container-slider{
        margin-top: 5%;
        margin-bottom: 100px;
    }

    .item:nth-child(3){
        left:calc(50% + 290px);
    }
    .item:nth-child(4){
        left:calc(50% + 460px);
    }
    .item:nth-child(5){
        left:calc(50% + 610px);
    }
    .item:nth-child(n+6){
        left:calc(50% + 880px);
        opacity: 0;
    }
}

@media(max-width: 500px){
    .container-slider{
        width: 350px;
        overflow: hidden;
    }
    .item .content{
        position: relative;
        left: 10px;
        max-width: 95%;
    }
}
