#header {
    height: 380px;
}

@media (max-width: 1160px) {
    #header {
        height: 340px;
    }
}

@media (max-width: 840px) {
    #header {
        height: 260px;
    }

}

@media (max-width: 650px) {
    #header {
        height: 180px;
    }

}

#header .image {
    background: none;
    position: absolute;
}

#header .image .bg-Image {
    animation: imageAnimation 30s linear infinite 0s;
    -moz-animation: imageAnimation 30s linear infinite 0s;
    -ms-animation: imageAnimation 30s linear infinite 0s;
    -o-animation: imageAnimation 30s linear infinite 0s;
    -webkit-animation: imageAnimation 30s linear infinite 0s;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    color: transparent;
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
    -webkit-backface-visibility: hidden;
}

#header .image .textWrapper {
    color: #fff;
    left: 0;
    position: absolute;
    text-align: center;
    top: 0;
    width: 100%;
    /*opacity: 0;*/
    z-index: 1000;
    /*    -webkit-animation: titleAnimation 36s linear infinite 0s;
        -moz-animation: titleAnimation 36s linear infinite 0s;
        -o-animation: titleAnimation 36s linear infinite 0s;
        -ms-animation: titleAnimation 36s linear infinite 0s;
        animation: titleAnimation 36s linear infinite 0s;*/
}

#header .image:nth-child(1) .bg-Image {
    background-image: url(../asts/header-01.jpg)
}

#header .image:nth-child(2) .bg-Image {
    animation-delay: 5s;
    -moz-animation-delay: 5s;
    -ms-animation-delay: 5s;
    -o-animation-delay: 5s;
    -webkit-animation-delay: 5s;
    background-image: url(../asts/header-02.jpg);
}

#header .image:nth-child(3) .bg-Image {
    animation-delay: 10s;
    -moz-animation-delay: 10s;
    -ms-animation-delay: 10s;
    -o-animation-delay: 10s;
    -webkit-animation-delay: 10s;
    background-image: url(../asts/header-03.jpg);
}

#header .image:nth-child(4) .bg-Image {
    animation-delay: 15s;
    -moz-animation-delay: 15s;
    -ms-animation-delay: 15s;
    -o-animation-delay: 15s;
    -webkit-animation-delay: 15s;
    background-image: url(../asts/header-04.jpg);
}

#header .image:nth-child(5) .bg-Image {
    animation-delay: 20s;
    -moz-animation-delay: 20s;
    -ms-animation-delay: 20s;
    -o-animation-delay: 20s;
    -webkit-animation-delay: 20s;
    background-image: url(../asts/header-05.jpg);
}

#header .image:nth-child(6) .bg-Image {
    animation-delay: 25s;
    -moz-animation-delay: 25s;
    -ms-animation-delay: 25s;
    -o-animation-delay: 25s;
    -webkit-animation-delay: 25s;
    background-image: url(../asts/header-06.jpg);
}


/* Animation for the slideshow images */
@-webkit-keyframes imageAnimation {
    0% {
        opacity: 0;
        -webkit-animation-timing-function: ease-in;
    }
    1% {
        opacity: 1;
        -webkit-animation-timing-function: ease-out;
    }
    17% {
        opacity: 1
    }
    25% {
        opacity: 0
    }
    100% {
        opacity: 0
    }
}

@-moz-keyframes imageAnimation {
    0% {
        opacity: 0;
        -moz-animation-timing-function: ease-in;
    }
    2% {
        opacity: 1;
        -moz-animation-timing-function: ease-out;
    }
    17% {
        opacity: 1
    }
    25% {
        opacity: 0
    }
    100% {
        opacity: 0
    }
}

@-o-keyframes imageAnimation {
    0% {
        opacity: 0;
        -o-animation-timing-function: ease-in;
    }
    2% {
        opacity: 1;
        -o-animation-timing-function: ease-out;
    }
    17% {
        opacity: 1
    }
    25% {
        opacity: 0
    }
    100% {
        opacity: 0
    }
}

@-ms-keyframes imageAnimation {
    0% {
        opacity: 0;
        -ms-animation-timing-function: ease-in;
    }
    2% {
        opacity: 1;
        -ms-animation-timing-function: ease-out;
    }
    17% {
        opacity: 1
    }
    25% {
        opacity: 0
    }
    100% {
        opacity: 0
    }
}

@keyframes imageAnimation {
    0% {
        opacity: 0;
        animation-timing-function: ease-in;
    }
    2% {
        opacity: 1;
        animation-timing-function: ease-out;
    }
    17% {
        opacity: 1
    }
    25% {
        opacity: 0
    }
    100% {
        opacity: 0
    }
}