.slider {
    position: relative;
}

.slides {
    display: flex;
    position: relative;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    /*background: #f0f0f0;*/
    /*border: 1px solid #ddd;*/
    text-align: center;
    opacity: 0;
    width: 100%;
    transform: translateX(30px);
    transition: opacity 0.8s ease-in-out, transform 0.5s ease-in;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.tab {
    padding: 10px;
    margin: 0 5px;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tab.active {
    background: #333;
    color: #fff;
}