/*
Tutorial Name: Caption Hover Animation with CSS3 transform and transitions
Author: Samuel Dalusung
*/

/*= MAIN STYLES
--------------------------------------------------------*/


body {
    margin: 0;
    padding: 0;
    font-weight: 100;
    width: 100%;
}

.header h1 {
    text-align: center;
    font-size: 40px;
    font-family: 'Open Sans';
    color: #fff;
    font-weight: 400;
    text-shadow: 2px 2px 2px rgba(150,150,150,1);
}

.header h2 {
    text-align: center;
    font-size: 20px;
    font-family: Pacifico;
    color: #fff;
    font-weight: 400;
    text-shadow: 2px 2px 2px rgba(150,150,150,1);
    margin-top: -7px;
}

/*= NAV
--------------------------------------------------------*/
.menu a {
    background: transparent;
    display: inline-block;
    font-size: 17px;
    line-height: 100%;
    margin: 0 5px;
    text-decoration: none;
    color: #fff;
    font-family: 'Open Sans';
    border: 2px solid #fff;
}

.menu a.active,.menu a:hover {
    background: #fff;
    color: #f3b204;
}



/*= LIST
--------------------------------------------------------*/

ul {
    display: inline-block;
    height: auto;
    padding: 0;
}

ul li {
    display: inline-block;
    list-style: none;
    padding: 0;
}

ul li:nth-child(2) {
    margin-right: 4px;
    margin-left: 4px;
}



/*= FOOTER
--------------------------------------------------------*/

footer {
}

footer p {
    color: #fff;
    font-family: 'Open Sans';
    font-size: 14px;
}

footer span {
    margin: 0;
    color: #fff;
    font-family: 'Open Sans';
    font-size: 14px;
}

footer a {
    color: #747474;
}




img {
    width: 100%;
}

figure {
    margin: 0;
    padding: 1px;
    position: relative;
    display: block;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #dddede;
	text-align:center;
	margin-right:0px;
	margin-bottom:0px;
}

figure:hover figcaption {
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
    filter: alpha(opacity=100);
    opacity: 1;
    top: 0;
}

figcaption {
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
    filter: alpha(opacity=0);
    opacity: 0;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 250px;
    background: rgba(0,0,0,.5);
    color: #fff;
    -webkit-transition: all .9s ease;
    -moz-transition: all .9s ease;
    -o-transition: all .9s ease;
    -ms-transition: all .9s ease;
    transition: all .9s ease;
    -webkit-transition-delay: .5s;
    -moz-transition-delay: .5s;
    -o-transition-delay: .5s;
    -ms-transition-delay: .5s;
    transition-delay: .5s;
}

figcaption h3 {
    font-family: 'Open sans';
    font-weight: 400;
    color: #fff;
    padding: 10px 20px;
    margin-bottom: 0;
    position: relative;
    righ: 100%;
    margin-top: 37px;
    font-size: 20px;
    -webkit-transition: all .9s ease;
    -moz-transition: all .9s ease;
    -o-transition: all .9s ease;
    -ms-transition: all .9s ease;
    transition: all .9s ease;
}

figcaption p {
    font-family: 'Open sans';
    padding: 10px 20px;
    margin-bottom: 0;
    margin-top: 20px;
    position: relative;
    left: 100%;
    font-size: 13px;
    -webkit-transition: all .9s ease;
    -moz-transition: all .9s ease;
    -o-transition: all .9s ease;
    -ms-transition: all .9s ease;
    transition: all .9s ease;
}

figure:hover h3,figure:hover p {
	left: 0;
	font-family: "Open sans";
}

figcaption a {
    color: #fff;
    border: 2px solid #fff;
    padding: 4px 10px;
    text-decoration: none;
}

figcaption a:hover {
    color: #4f5856;
    background: #fff;
}
