@import url(https://fonts.googleapis.com/css?family=Lato:400,300,700);
@import url(https://fonts.googleapis.com/css?family=Rubik:400,900);
*{box-sizing: border-box;}
body, html { height: 100%; min-height: 100%; }
body {
background: linear-gradient(#f6f7fc 0%, #d5e1e8 40%);
transform-style: preserve-3d;
transform: perspective(800px);
font-family: 'Lato', sans-serif;
}
#card-container{
width: 700px;
height: 350px;
position:absolute;
top: 50%; left: 50%;
margin: -175px 0 0 -350px;
}
#card{
animation: backAn 60s infinite;
color:#fff;
padding:30px;
width:100%;
height:100%;
position:absolute;
z-index:1;
background:url(http://riccardotartaglia.it/img/deadpool/back.jpg) 100% bottom;
box-shadow:
0px 45px 100px rgba(0, 0, 0, .4),
inset 0 0 0 1000px rgba(156,27,27,.6);
}
#card .text-block{position:relative;z-index:2;text-shadow: 0px 3px 10px rgba(0, 0, 0, .7)}
#card .text-block h1{font-family: 'Rubik', sans-serif; font-size:3em; margin:0; text-transform:uppercase; font-weight:700;}
#card .text-block h1 small{font-size:.4em;color:#ccc;position:relative;bottom:10px}
#card .text-block h3{margin:0;font-weight:700;}