/* image slider css */
/* Authored by Boaz James Otieno */

#slider-main{
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    position: relative;
}
#slider{
    width: 100%;
    overflow: hidden;
}
#slider .img-slide{
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
}
.img-slide{
    width: 100%;
    height: 80vh;
    z-index: 5;
    overflow: hidden;
    object-fit: cover;
}
#prev{
    z-index: 10;
    color: #000;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    margin: 0;
    margin-left: 1%;
    font-size: 60px !important;
    cursor: pointer;
    opacity: 0.8;
}
#next{
    color: #000;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: transparent;
    border: none;
    margin: 0;
    margin-right: 1%;
    font-size: 60px !important;
    cursor: pointer;
    opacity: 0.8;
}
.circle{
    border: #ccc 3px solid;
    width: 20px;
    height: 20px;
    border-radius: 20px;
    background: transparent;
    display: inline-block;
    cursor: pointer;
}
#circles{
    bottom: 15px;
    left: 0;
    right: 0;
    margin: 0;
    margin-top: -15vh;
    text-align: center;
    position: absolute;
    z-index: 9000;
}
.image-animated{
    animation: animateImage 5s ease-in-out; /* change time according to interval set */
}

@keyframes animateImage {
    0%{
        opacity: .2;
        transform: scale(1.2,1.2);
    }
    20%{
        opacity: 1;
        transform: scale(1,1);
    }
    80%{
        opacity: 1;
        transform: scale(1,1);
    }
    95%{
        opacity: .8;
        transform: scale(1.2,1.2);
    }
    100%{
        opacity: .8;
        transform: scale(1.2,1.2);
    }
}

@media (max-width: 767px) {
    .img-slide{
        height: 45vh;
        min-height: 280px;
    }
    #prev{
        font-size: 28px !important;
        margin-left: 5px;
    }
    #next{
        font-size: 28px !important;
        margin-right: 5px;
    }
    .circle{
        width: 12px;
        height: 12px;
        border-radius: 12px;
    }
    #circles{
        margin-top: -12vh;
    }
}
@media (max-width: 480px) {
    .img-slide{
        height: 35vh;
        min-height: 220px;
    }
    #prev{ font-size: 22px !important; }
    #next{ font-size: 22px !important; }
}
