﻿
/* SLIDER STRUCTURE */

#slider 
{
	
	   background:#000;
	   height: 290px;
	   width: 200px;
	   overflow: visible;
	   position: relative;
	   
}
/* HIDE ALL OUTSIDE OF THE SLIDER */

#mask 
{
 
   overflow:visible;
   height: 290px;
   
}
/* IMAGE LIST */

#slider ul {
   margin: 0;
   padding: 0;
   position: relative;
}

#slider li { 
   width: 200px;  /* Width Image */
   height: 290px; /* Height Image */
   position: absolute;
   top: -325px;	/* Original Position - Outside of the Slider */
   list-style: none;
}

#slider li.firstanimation 
{
    -webkit-animation: cycle 25s linear infinite;
    -moz-animation: cycle 25s linear infinite;
    -ms-animation: cycle 25s linear infinite;
    -o-animation: cycle 25s linear infinite;
    animation: cycle 25s linear infinite;		
}

#slider li.secondanimation 
{
    -webkit-animation: cycletwo 25s linear infinite;
    -moz-animation: cycletwo 25s linear infinite;
    -ms-animation: cycletwo 25s linear infinite;
    -o-animation: cycletwo 25s linear infinite;
    animation: cycletwo 25s linear infinite;	
}

#slider li.thirdanimation 
{
   -webkit-animation: cyclethree 25s linear infinite;
   -moz-animation: cyclethree 25s linear infinite;
   -ms-animation: cyclethree 25s linear infinite;
   -o-animation: cyclethree 25s linear infinite; 
   animation: cyclethree 25s linear infinite;		
}

#slider li.fourthanimation 
{
    -webkit-animation: cyclefour 25s linear infinite;
   -moz-animation: cyclefour 25s linear infinite;
   -ms-animation: cyclefour 25s linear infinite;
   -o-animation: cyclefour 25s linear infinite; 
   animation: cyclefour 25s linear infinite;		
}

#slider li.fifthanimation 
{
    -webkit-animation: cyclefive 25s linear infinite;
   -moz-animation: cyclefive 25s linear infinite;
   -ms-animation: cyclefive 25s linear infinite;
   -o-animation: cyclefive 25s linear infinite; 
   animation: cyclefive 25s linear infinite;		
}

/* ANIMATION */

@keyframes cycle {
   0%  { top: 0px; } /* When you start the slide, the first image is already visible */
   4%  { top: 0px; } /* Original Position */
   16% { top: 0px; opacity:1; z-index:0; } /* From 4% to 16 % = for 3 seconds the image is visible */
   20% { top: 325px; opacity: 0; z-index: 0; } /* From 16% to 20% = for 1 second exit image */
   21% { top: -325px; opacity: 0; z-index: -1; } /* Return to Original Position */
   92% { top: -325px; opacity: 0; z-index: 0; }
   96% { top: -325px; opacity: 0; } /* From 96% to 100% = for 1 second enter image*/
   100%{ top: 0px; opacity: 1; }
}

@keyframes cycletwo {
   0%  { top: -325px; opacity: 0; } /* Original Position */
   16% { top: -325px; opacity: 0; }/* Starts moving after 16% to this position */
   20% { top: 0px; opacity: 1; }
   24% { top: 0px; opacity: 1; }  /* From 20% to 24% = for 1 second enter image*/
   36% { top: 0px; opacity: 1; z-index: 0; }   /* From 24% to 36 % = for 3 seconds the image is visible */
   40% { top: 325px; opacity: 0; z-index: 0; } /* From 36% to 40% = for 1 second exit image */
   41% { top: -325px; opacity: 0; z-index: -1; }   /* Return to Original Position */
   100%{ top: -325px; opacity: 0; z-index: -1; }
}

@keyframes cyclethree {
   0%  { top: -325px; opacity: 0; }
   36% { top: -325px; opacity: 0; }
   40% { top: 0px; opacity: 1; }
   44% { top: 0px; opacity: 1; } 
   56% { top: 0px; opacity: 1; } 
   60% { top: 325px; opacity: 0; z-index: 0; }
   61% { top: -325px; opacity: 0; z-index: -1; } 
   100%{ top: -325px; opacity: 0; z-index: -1; }
}

@keyframes cyclefour {
   0%  { top: -325px; opacity: 0; }
   56% { top: -325px; opacity: 0; }
   60% { top: 0px; opacity: 1; }
   64% { top: 0px; opacity: 1; }
   76% { top: 0px; opacity: 1; z-index: 0; }
   80% { top: 325px; opacity: 0; z-index: 0; }
   81% { top: -325px; opacity: 0; z-index: -1; }
   100%{ top: -325px; opacity: 0; z-index: -1; }
}
@keyframes cyclefive {
   0%  { top: -325px; opacity: 0; }
   76% { top: -325px; opacity: 0; }
   80% { top: 0px; opacity: 1; }
   84% { top: 0px; opacity: 1; }
   96% { top: 0px; opacity: 1; z-index: 0; }
   100%{ top: 325px; opacity: 0; z-index: 0; }
}

/* PROGRESS BAR */

.progress-bar { 
   position: relative;
   top: -5px;
   width: 680px; 
   height: 5px;
   background:black;
   animation: fullexpand 25s ease-out infinite;
}

@keyframes fullexpand {
   /* In these keyframes, the progress-bar is stationary */
   0%, 20%, 40%, 60%, 80%, 100% { width: 0%; opacity: 0; }

   /* In these keyframes, the progress-bar starts to come alive */
   4%, 24%, 44%, 64%, 84% { width: 0%; opacity: 0.3; }

   /* In these keyframes, the progress-bar moves forward for 3 seconds */
   16%, 36%, 56%, 76%, 96% { width: 100%; opacity: 0.7; }

   /* In these keyframes, the progress-bar has finished his path */
   17%, 37%, 57%, 77%, 97% { width: 100%; opacity: 0.3; }

   /* In these keyframes, the progress-bar will disappear and then resume the cycle */
   18%, 38%, 58%, 78%, 98% { width: 100%; opacity: 0; }
}

#slider .tooltip {
   position: relative;
   bottom: 80px;
   border-radius:10px;
   opacity:0.5;
}

#slider .tooltip h1 {
   color: #000;
   font-size: 24px;
   font-weight: 300;
   line-height: 0px;
   margin-top:45px;
   padding: 10px 0 0 10px;
   background:#F2B807;
 height:20px;  
}

#slider .tooltip:hover{
   opacity:1;
   cursor:pointer;
}


#slider .tooltip {
   transition: all 0.3s ease-in-out; 
}

#slider li#first: hover .tooltip, 
#slider li#second: hover .tooltip, 
#slider li#third: hover .tooltip, 
#slider li#fourth: hover .tooltip, 
#slider li#fifth: hover .tooltip {
   left: 0px;
}

