﻿#hero2 {
  width: 100%;
  height: 75vh;
  position: relative;
}
#hero2:before {
  content: "";
  background: rgba(255, 255, 255, 0.6);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

#hero2 .main-content h1 span {
    color: #106eea;
}

/*#hero2 .container {
  position: relative;
}*/
.main-heading {
    font-family: "Roboto", sans-serif;
  opacity: 1;
  position: absolute;
  width: 100%;
  font-size: 4rem;
  z-index: 100;
  top: 2em;
  left: 1.5em;
  color: #FFFFFF;
}

.sub-heading {
    font-family: "Roboto", sans-serif;
  opacity: 1;
  position: absolute;
  width: 50%;
  font-size: 1.7rem;
  z-index: 100;
  top: 8em;
  left: 3.5em;
  color: #000;
}

.sub-button {
  font-family: "Roboto", sans-serif;
  opacity: 1;
  position: absolute;
  width: 100%;
  font-size: 1.5rem;
  z-index: 100;
  top: 12em;
  left: 4em;
  color: #000;
}

.btn-get-started2 {
    font-family: "Roboto", sans-serif;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-block;
    padding: 10px 28px;
    border-radius: 4px;
    transition: 0.5s;
    color: #fff;
    background: #106eea;
}

.slideshow {
  list-style-type: none;
}

/** SLIDESHOW **/
.slideshow,
.slideshow:after { 
    top: -16px; /*Not sure why I needed this fix*/
    width: 100%;
    height: 100%;
    left: 0px;
    z-index: 0; 
}

.slideshow li span { 
		position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    color: transparent;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    animation: imageAnimation 30s linear infinite 0s; 
}



.slideshow li:nth-child(1) span { 
    background-image: url("../hero_slider/hero_slide_1.jpg"); 
}
.slideshow li:nth-child(2) span { 
    background-image: url("../hero_slider/hero_slide_2.jpg");
    animation-delay: 6s; 
}
.slideshow li:nth-child(3) span { 
    background-image: url("../hero_slider/hero_slide_3.jpg");
    animation-delay: 12s; 
}
.slideshow li:nth-child(4) span { 
    background-image: url("../hero_slider/hero_slide_4.jpg");   
    animation-delay: 18s; 
}
.slideshow li:nth-child(5) span { 
    background-image: url("../hero_slider/hero_slide_5.jpg");
    animation-delay: 24s; 
}



@keyframes imageAnimation { 
    0% { opacity: 0; animation-timing-function: ease-in; }
    8% { opacity: 1; animation-timing-function: ease-out; }
    17% { opacity: 1 }
    25% { opacity: 0 }
    100% { opacity: 0 }
}


@keyframes titleAnimation { 
    0% { opacity: 0 }
    8% { opacity: 1 }
    17% { opacity: 1 }
    19% { opacity: 0 }
    100% { opacity: 0 }
}


.no-cssanimations .cb-slideshow li span {
	opacity: 1;
}

/* BG SLIDESHOW CSS */
/*.slideshow,
.slideshow::after {
  /*position: fixed;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  z-index: 0px;
  list-style:none;
}
.slideshow::after {
  content: '';
  background: linear-gradient(-70deg, rgba(0,0,0,0), rgba(0,0,0,1));
}
.img-bg-slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  color: transparent; /*hides span's text*/
  /*background-size: cover;*/ /* covers whole viewport */
  /*background-position: 100% 100%;
  background-repeat: none;
  opacity: 0;
  z-index: 0;
  animation: backgroundSlideshow 60s linear infinite 0s;
}
.slideshow li:nth-child(1) .img-bg-slide {
   background-image: url('../hero_slider/hero_slide_1.jpg');
}
.slideshow li:nth-child(2) .img-bg-slide { 
    background-image: url('../hero_slider/hero_slide_2.jpg');
    animation-delay: 10s; 
}
.slideshow li:nth-child(3) .img-bg-slide { 
    background-image: url('../hero_slider/hero_slide_3.jpg');
    animation-delay: 20s; 
}
.slideshow li:nth-child(4) .img-bg-slide { 
    background-image: url('../hero_slider/hero_slide_4.jpg');
    animation-delay: 30s; 
}
.slideshow li:nth-child(5) .img-bg-slide { 
    background-image: url('../hero_slider/hero_slide_5.jpg');
    animation-delay: 40s; 
}
.slideshow li:nth-child(6) .img-bg-slide { 
    background-image: url('../hero_slider/hero_slide_6.jpg');
    animation-delay: 50s; 
}
@keyframes backgroundSlideshow {
  0% { opacity: 0;}
  12.5% { opacity: 1;}
  25% { opacity: 1;}
  37.5% { opacity: 1;}
  50% { opacity: 1;}
  62.5% { opacity: 1;}
  100% { opacity: 0;} 
}*/
/* End of BG SLIDESHOW */