/* Reset default margins, paddings, and box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Tahoma, sans-serif;
}

/* Style for the body */
body {
    background: #eaeaea;
    overflow: hidden; /* Hide scrollbars */
}

/* Main container styling */
.container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers the container */
    width: 100%;
    height: 600px;
    background-color: #f5f5f5;
    box-shadow: 0 30px 50px #dbdbdb;
}

/* Styling for slide items */
.container .slide .item {
    width: 200px;
    height: 300px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 20px;
    box-shadow: 0 30px 50px #505050;
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: 0.5s;
    border-radius: 30px;
    border: 2px solid;
}

/* Special styles for the first two items */
.slide .item:nth-child(1),
.slide .item:nth-child(2) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}

/* Positioning the remaining items */
.slide .item:nth-child(3) {
    left: 50%;
}

.slide .item:nth-child(4) {
    left: calc(50% + 220px);
}

.slide .item:nth-child(5) {
    left: calc(50% + 440px);
}

/* For items beyond the 5th */
.slide .item:nth-child(n + 6) {
    left: calc(50% + 660px);
    opacity: 0;
}

/* Content inside each item */
.item .content {
    
    position: absolute;
    top: 50%;
    left: 100px;
    width: 300px;
    text-align: left;
    color: #fff;
    transform: translate(0, -50%);
    font-family: system-ui;
    display: none;
    background: rgba(0, 0, 0, 0.6); /* Adding a semi-transparent background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3); /* Adding shadow for better visibility */
}

/* Display content for the second item */
.slide .item:nth-child(2) .content {
    display: block;
    
}

/* Styling for text inside content */
.content .name {
    -webkit-text-stroke: 0.1px black;
    font-size: 25px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    animation: animate 1s ease-in-out 1 forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adding text shadow */
}

.content .des1 {
    -webkit-text-stroke: 0.1px black;
    font-size: 11px;
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adding text shadow */
}

.content button {
    padding: 10px;
    border: none;
    cursor: pointer;
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
    background-color: #089618;
    color: #fff;
    border-radius: 5px;
}

.content button:hover {
    background-color: #0BD622;
}

/* Animation keyframes */
@keyframes animate {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }
    to {
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

/* Styling for navigation buttons */
.button {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 20px;
}

.button button {
    width: 40px;
    height: 35px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border: 1px solid #000;
    transition: 0.3s;
}

.button button:hover {
    background: #ababab;
    color: #fff;
}

/* Styling for a smaller button */
.smButton {
    position: relative;
    bottom: 20px;
    left: 0;
    padding: 10px 20px;
    background-color: #089618;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.smButton:hover {
    background-color: #0BD622;
}

.item.blur {
    filter: blur(3px); /* Adjust the blur amount as needed */
}
