﻿
.cb-slideshow,
.cb-slideshow:after {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
}

.cb-slideshow {
    z-index: -1;
}

    .cb-slideshow:after {
        content: '';
        background-color: rgba(0, 0, 0, 0.25);
        z-index: 0;
    }

    .cb-slideshow li span {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0px;
        left: 0px;
        color: transparent;
        background-size: cover;
        background-position: 50% 50%;
        background-repeat: no-repeat;
        opacity: 0;
        z-index: 0;
        animation: imageAnimation 18s linear infinite 0s;
        -webkit-backface-visibility: hidden;
        -webkit-animation: imageAnimation 18s linear infinite 0s;
    }

.cb-slideshow-texto {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .cb-slideshow-texto li {
        margin: 0;
        padding: 0;
    }

        .cb-slideshow-texto li div {
            z-index: -1;
            position: absolute;
            width: 100%;
            text-align: right;
            opacity: 0;
            color: #fff;
            text-shadow: 1px 1px #000;
            animation: titleAnimation 18s linear infinite 0s;
            -webkit-animation: titleAnimation 18s linear infinite 0s;
            padding-right: 25px;
            padding-top: 5px;
        }


.cb-slideshow li:nth-child(1) span {
    background-image: url(../img/fondos/londres1.jpg);
}

.cb-slideshow li:nth-child(2) span {
    background-image: url(../img/fondos/paris1.jpg);
    animation-delay: 6s;
    -webkit-animation-delay: 6s;
}

.cb-slideshow li:nth-child(3) span {
    background-image: url(../img/fondos/newyork1.jpg);
    animation-delay: 12s;
    -webkit-animation-delay: 12s;
}

.cb-slideshow-texto li:nth-child(2) div {
    animation-delay: 6s;
    -webkit-animation-delay: 6s;
}

.cb-slideshow-texto li:nth-child(3) div {
    animation-delay: 12s;
    -webkit-animation-delay: 12s;
}

/* Animation for the slideshow images */

@keyframes imageAnimation {
    0% {
        opacity: 0;
    }

    3% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    36% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@-webkit-keyframes imageAnimation {
    0% {
        opacity: 0;
        -webkit-animation-timing-function: ease-in;
    }

    3% {
        opacity: 1;
        -webkit-animation-timing-function: ease-out;
    }

    33% {
        opacity: 1;
    }

    36% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}


/* Animation for the title */

@keyframes titleAnimation {
    0% {
        opacity: 0;
    }

    3% {
        opacity: 0.25;
    }

    33% {
        opacity: 0.25;
    }

    36% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@-webkit-keyframes titleAnimation {
    0% {
        opacity: 0;
    }

    3% {
        opacity: 0.25;
    }

    33% {
        opacity: 0.25;
    }

    36% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}
/* Show at least something when animations not supported */
.no-cssanimations .cb-slideshow li span {
    opacity: 1;
    background-image: url(../img/fondos/londres1.jpg);
}
