@-webkit-keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(1000px);
            transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slide-in-bottom {
  0% {
    -webkit-transform: translateY(1000px);
            transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}

@-webkit-keyframes fade-in {
  0% {
    opacity: 0;
    -webkit-transform: translateX(10px);
            transform: translateX(10px);    
  }
  100% {
    opacity: 1;
    -webkit-transform: translateX(0);
            transform: translateX(0);    
  }
}
@keyframes fade-in {
  0% {
    opacity: 0;
    -webkit-transform: translateX(10px);
            transform: translateX(10px);    
  }
  100% {
    opacity: 1;
    -webkit-transform: translateX(0);
            transform: translateX(0);    
  }
}

@-webkit-keyframes just-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes just-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

body,html{
	position:relative;
	height:100%;
	width:100%;
	background:#F5F5F5;
}

.l{display:none;}
.s {display:block;}

#background {
	background-image: url("../img/runa_khan.png");
	
	
	/*background-size: 260%;*/
	background-size: calc(100vh + 50%);
    background-position: 47% bottom;	
    
	background-repeat:no-repeat;
	width:100%;
	height:100%;
	position:absolute;
	display:block;
	bottom: -20px;
	right:-20px;
    width: 100%;

    max-width: 1200px;	
	opacity:0;
	
	width: calc(100% + 30px);
    height: calc(100% + 20px);	
	
}

.active #background.fade {
	-webkit-animation: fade-in 1s ease both;
	animation: fade-in 1s ease  both;	
}

#background.move{
opacity:1;
}

#body{
	opacity:0;
}

#body {overflow:hidden;}

#body.active{
	opacity:1;
}

#titolo {
	position:absolute;
	width:100%;
	top:30%;
	transform:translateY(-50%);
	margin:0 auto;
	text-align:left;
	overflow:hidden;
	padding: 0px;
	padding-left:20px;
	padding-right:20px;
    box-sizing: border-box;	
}
#t1,#t2{
overflow:hidden;
display:inline-block;
}
#t1{margin-right:10px;}
#t1 span,#t2 span{
	display:inline-block;
	font-family: 'Aventa';
	opacity:0;
	
	font-size: 60px;
    line-height: 60px;
    color: #DF8E8E;
    letter-spacing: 0.02px;

    text-align: left;	
	
}

.active #t1 span{
	transition-delay: 0s;
	-webkit-animation: slide-in-bottom 1.2s cubic-bezier(.15,.85,.45,1) forwards;
	animation: slide-in-bottom 1.2s cubic-bezier(.15,.85,.45,1)  forwards;
}
.active #t2 span{
	-webkit-animation: slide-in-bottom 1.2s cubic-bezier(.15,.85,.45,1) forwards;
	animation: slide-in-bottom 1.2s cubic-bezier(.15,.85,.45,1)  forwards;
	animation-delay: .2s;
	-webkit-animation-delay: .2s;
}


#socials {
	position:absolute;
	bottom: 18%;
    left: 6%;	
	z-index:999;
	overflow:hidden;
}
#socials a {
	display:inline-block;
	color:#7C7C7C;
	transition:1.2s ease all;
	margin:10px;
	font-size:25px;
	opacity:0;
	margin-bottom:0;
	
}
.active #credits {
	left:6%;
	margin-left:10px;
	-webkit-animation: just-fade-in 1.5s ease both;
	animation: just-fade-in 1.5s ease  both;	
	animation-delay: .2s;
	-webkit-animation-delay: .2s;	

}
#socials a:hover {
	color:#DF8E8E;
	transition:.5s ease all;
}
.active #s1{
	-webkit-animation: slide-in-bottom 1.2s cubic-bezier(.15,.85,.45,1) forwards;
	animation: slide-in-bottom 1.2s cubic-bezier(.15,.85,.45,1)  forwards;
	animation-delay: .4s;
	-webkit-animation-delay: .4s;
}
.active #s2{
	-webkit-animation: slide-in-bottom 1.2s cubic-bezier(.15,.85,.45,1) forwards;
	animation: slide-in-bottom 1.2s cubic-bezier(.15,.85,.45,1)  forwards;
	animation-delay: .6s;
	-webkit-animation-delay: .6s;
}
.active #s3{
	-webkit-animation: slide-in-bottom 1.2s cubic-bezier(.15,.85,.45,1) forwards;
	animation: slide-in-bottom 1.2s cubic-bezier(.15,.85,.45,1)  forwards;
	animation-delay: .8s;
	-webkit-animation-delay: .8s;
}
#wrap{
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    max-width: 1500px;
    overflow:hidden;
}
#credits {
	font-family: 'Aventa';
    position: absolute;
    bottom: 12px;
    opacity: .50;
    font-size: 11px;
    color:#7C7C7C;
 
    line-height:15px;
}

/*MEDIO*/
@media only screen and (min-width: 40.063em){
.l{display:block;}
.s {display:none;}

	#background{
		background-size:contain;
		background-position:right bottom;	
			right:0px;
		width: 100%;
	    height: 100%;				
	}
	#t1 span,#t2 span{
		font-size: 120px;
		line-height:80px;
		letter-spacing: 0.04px;
		margin: 20px;
	}
	#titolo {
		text-align:left;
		top:50%;
	}	
	#socials {
		bottom:10%;
		left:12%;
	}
	.active #credits {
		left:12%;
	}	
	#credits{
		font-size:12px;
	}
	#socials a {
		font-size:22px;
	}
}
/*LARGE*/
@media only screen and (min-width: 64.063em){
	#titolo {
		text-align:center;
	}	
	#t1 span,#t2 span{
		font-size: 140px;
		line-height:90px;
		letter-spacing: 0.04px;
		margin: 20px;
		margin-bottom:0px;
	}	
}
/*XLARGE*/
@media only screen and (min-width: 2000px){
	#t1 span,#t2 span{
		font-size: 180px;
		line-height:150px;
	}
	#background {

	    max-width: 1400px;	
	}	
}

/*IPADS PORTRAIT*/
@media only screen 
   and (min-device-width : 768px) 
   and (max-device-width : 1024px) 
   and (orientation : portrait) {

	#background{
		background-size: 160%;
	    background-position: 47% bottom;	
	width: calc(100% + 30px);
    height: calc(100% + 20px);	
	}
	#titolo {
	top:30%;}
	#t1 span,#t2 span{
		font-size: 140px;
		line-height:90px;
		letter-spacing: 0.04px;
		margin: 20px;
	}	

}