*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

html, body {
    width: 100%;
    overflow: hidden;
}

body {
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: whitesmoke;
}

@media screen and (max-width: 1200px) {
    body {
        overflow-x: hidden;
    }
}

.slider-container {
    width: 50%;
    margin: auto;
    position: relative;
}

.slider-items {
    height: 45vw;
    margin: 50px 0 0;
    list-style-type: none;
    position: relative;

}

.slider-items li {
    position: absolute;
    width: 30%;
    height: 50%;
    top: 15%;
    left: 50%;
    cursor: pointer;
    z-index: 1;

    transition: transform 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.slider-items li img {
    width: 100%; /* Increase size of the image */
    height: auto;
    margin: 10px auto 80px; /* Adjust margin to move images slightly upward */

    display: block; /* Ensure image takes up full width */
    transform: scale(1) rotate(20deg); /* Reset any previous transformations */
    transition: transform 0.25s;
    border-radius: 2px;

}



.slider-items li::after {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    background-repeat: no-repeat;
    background-position: 50% 85%;
    background-size: 100% auto;
    transition: 0.3s;
}

.slider-items li:hover::after{
    scale: 90%;
}

.slider-items li.item-1 {
    z-index: 2;
    transform: translateX(-50%) scale(1.5) translate3d(0, 0, 0);
}

.slider-items li.item-1 img {
    transform: scale(1.26);
    border: 1px #000 outset;

}

@media screen and (max-width: 900px) {
    .slider-items li.item-1 img{
        transform: scale(4);
    }
    .slider-dots {
        top: 500px !important; /* Adjusted position for mobile devices */
    }

    .slider-nav.next {
        width: 30px; /* Adjusted width for mobile devices */
        height: 30px; /* Adjusted height for mobile devices */
        top: -85%; /* Align at the top for mobile devices */
    }
    .slider-nav.prev{
        width: 30px; /* Adjusted width for mobile devices */
        height: 30px; /* Adjusted height for mobile devices */
        top: 165%; /* Align at the top for mobile devices */
    }
    .slider-items li img {
        margin: -15px auto 100px; /* Adjust margin to move images slightly upward */

    }
}
@media screen and (max-width: 1200px) {
    .slider-items li.item-1 img{
        transform: scale(3);
    }
    .slider-dots {
        top: 850px !important; /* Adjusted position for mobile devices */
    }

    .slider-nav.next {
        width: 30px; /* Adjusted width for mobile devices */
        height: 30px; /* Adjusted height for mobile devices */
        top: -75%; /* Align at the top for mobile devices */
    }
    .slider-nav.prev{
        width: 30px; /* Adjusted width for mobile devices */
        height: 30px; /* Adjusted height for mobile devices */
        top: 145%; /* Align at the top for mobile devices */
    }
    .slider-items li img {
        margin: -10px auto 100px; /* Adjust margin to move images slightly upward */

    }
}

@media screen and (max-width: 900px) and (orientation: landscape) {
    /* Adjustments for landscape mode on devices up to 900px wide */
    .slider-items li.item-1 img {
        transform: scale(1);
    }
    .slider-dots {
        top: 500px !important;
    }
    .slider-nav.next,
    .slider-nav.prev {
        width: 30px;
        height: 30px;
        top: 10px;
    }
    .slider-nav.next {
        left: calc(100% + 100px); /* Align next button to the right */
    }
    .slider-items li img {
        margin: -15px auto 100px;
    }
}

@media screen and (max-width: 1200px) and (orientation: landscape) {
    /* Adjustments for landscape mode on devices up to 1200px wide */
    .slider-items li.item-1 img {
        transform: scale(1);
    }
    .slider-dots {
        top: 850px !important;
    }
    .slider-nav.next,
    .slider-nav.prev {
        width: 30px;
        height: 30px;
        top: 10px;
    }
    .slider-nav.next {
        left: calc(100% + 100px); /* Align next button to the right */
    }
    .slider-items li img {
        margin: -10px auto 100px;
    }
}




.slider-items li.item-2 {
    z-index: 1;
    transform: translateX(-50%) scale(0.7) translate3d(240%, -10%, 0);
}

.slider-items li.item-3 {
    z-index: 0;
    transform: translateX(-50%) scale(0.5) translate3d(180%, -31%, 0);
}

.slider-items li.item-4 {
    z-index: 0;
    transform: translateX(-50%) scale(0.5) translate3d(-180%, -31%, 0);
}

.slider-items li.item-5 {
    z-index: 1;
    transform: translateX(-50%) scale(0.7) translate3d(-240%, -10%, 0);
}


.slider-nav{
    position: absolute;
    width: 50px;
    height: 50px;
    top: 45%;
    border-top: 4px solid rgb(114, 4, 4);
    border-right: 4px solid red;
    border-left: none;
    border-bottom: none;
    background-color: transparent;
    cursor: pointer;
    z-index: 1;
}

.slider-nav.next {
    right: -35%;
    transform: rotate(45deg);
}

.slider-nav.prev {
    left: -35%;
    transform: rotate(-135deg);
}

.slider-dots {
    position: absolute;
    bottom: 20px; /* Adjust the position of the dots */
    width: 100%;
    z-index: 3; /* Increase the z-index to bring them to the forefront */
}
.slider-dots ul {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.slider-dots ul li {
    width: 10px;
    height: 10px;
    display: inline-block;
    background-color: #ccc;
    cursor: pointer;
    margin: 0 11px; /* Adjust the margin for spacing */
    border-radius: 50%;

}


.slider-dots ul li.active {
    background-color: rgb(141, 2, 2);
}


.circlee {
    height: 24px;
    width: 24px;
    border-radius: 24px;
    background-color: #111;
    position: fixed; 
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999999;
}
@media screen and (max-width: 1200px) {
    .circlee{
        display: none;
    }
}

.back {
    color: #000;
    font-size: 20px;
    font-weight: 800;
    margin-top: 20px;
    transition: 1 ease;
    align-items: flex-start;
    border-radius: 50px;
    padding: 8px 10px;
    border: 2px solid #111;
    justify-content: flex-start;
    position: fixed; /* Ensure the element remains fixed on the viewport */
    top: 10px; /* Adjust the top position as needed */
    left: 10px; /* Adjust the left position as needed */
    z-index: 9999; /* Set a high z-index value to ensure it's on top of everything */
}
.back a{
    text-decoration: none;

    color: #222;
    transition: 0.5s ease;
}

.back a:hover{
    color: rgb(4, 4, 145);

}
