.slider{
    position: relative;
    width: 100%;
}

.myslider {
    height: 655px;
    display: block;
    overflow: hidden;
    transition: opacity 1.5s ease; /* Update the transition property */
}


.dotsbox{
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    bottom: 20px;
    cursor: pointer;
}

.dot{
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 3px solid #fff;
    border-radius: 50%;
    margin: 0 10px;
    cursor: pointer;
}
.active, .dot:hover{
    border-color: #3498db;
}
.fade{
    -webkit-animation-name: fade;
    -webkit-animation-duration: 8s;
    animation-name: fade;
    animation-duration: 8s;
}

@-webkit-keyframes fade {
    from {opacity: 1}
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: 1}
    to {opacity: 1}
}

.txt{
    position: absolute;
    color: white;
    letter-spacing: 2px;
    line-height: 35px;
    top: 30%;
    left: 5%;
    -webkit-animation-name: posi;
    -webkit-animation-duration: 2s;
    animation-name: posi;
    animation-duration: 2s;
    z-index: 1;
}

@keyframes posi{
     from{left: 25%;}
     to{left: 5%;}
}

.txt h1 {
    color: white;
    font-size: 50px;
    margin-bottom: 20px;
    
}

.txt p{
    font-weight: bold;
    font-size: 20px;
}
.btn{
    padding: 10px;
    top: 50%;
    left: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    background: linear-gradient(90deg, #3603ff, #320847);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    letter-spacing: 1px;
    transform: 5s;
    cursor: pointer;
}

.btn:hover{
    background: linear-gradient(90deg, #3603ff, #691792);
}

.myslider img{
    transform: scale(1.5, 1.5);
    -webkit-animation-name: zoomin;
    -webkit-animation-duration: 3s;
    animation-name: zoomin;
    animation-duration: 3s;
}

@-webkit-keyframes zoomin {
    from {transform: scale(1, 1);}
    to {transform: scale(1.5, 1.5);}
}

@keyframes zoomin {
    from {transform: scale(1, 1);}
    to {transform: scale(1.5, 1.5);}
}

@media screen and (max-width: 800px){
    .myslider{
        height: 500px;
    }
    .txt{
        line-height: 25px;
        top: 50%;
        left: 40%;
        transform: translate(-50%, -50%);
        -webkit-animation-name: posi2;
        -webkit-animation-duration: 2s;
        animation-name: posi2;
        animation-duration: 2s;
    }
    @-webkit-keyframes posi2 {
        from {top: 35%}
        to {top: 50%}
    }
    @keyframes posi2 {
        from {top: 35%}
        to {top: 50%}
    }
    .txt h1 {
        font: 40px;
    }
    .txt p{
        font-size: 13px;
    }
}

@media screen and (max-width: 520px){
     .txt h1 {
        font-size: 22px;
        left: 5%;
     }
}