

html{
padding:0;
margin:0;

}

body{
margin:0;

}

.iframe-border{
border-radius: 4px; 
width: 500px; 
overflow: hidden;
-webkit-box-shadow: 2px 2px 4px 2px #847a7a;
box-shadow: 2px 2px 4px 2px #847a7a;
display:none;
}

#loading {
   width: 100%;
   height: 100%;
   top: 0;
   left: 0;
   position: fixed;
   display: block;
   opacity: 0.81;
   background-color: #3a465c;
   z-index: 999;
   text-align: center;
   
}

#loading-image {
  position: absolute;
  top: 0;
  left: 0;
  right:0;
  bottom:0;
  margin:auto;
  z-index: 1000;
  
}

#allscene{
	display:none;
	background-image:url('images/sky-new.jpg'); 
	background-size:cover;
}

#parentContainer{
	
	width:550px;
}

img.uccelli {
    width: 100%;
	position: absolute;
    bottom: 40vh;
}

img.letter {
    width: 30vw;
	display:none;
	filter: drop-shadow(4px 4px 8px #000);
}

.rsvpify-container{
	
	width:500px;
	height: 404px;
	 
	
}

.girl{
	position: fixed;
    bottom: 130%;
	left: 67px;
    width: 267px;
    height: 402px;
   

	-webkit-transform-origin: 65% 0% 0;
    transform-origin: 65% 0% 0;
    -webkit-animation: swinging 3.5s ease-in-out forwards infinite;
    animation: swinging 3.5s ease-in-out forwards infinite;
	
	-webkit-transition: bottom 6s ease;
    transition: bottom 6s ease;
	z-index:50;
	
}


.landscape{
	
	width:100%;
	height:100%;
	position:absolute;
	background-image:url(images/portrait-mode.jpg);
	background-size:cover;
	z-index:200;
	display: none;

}


.notransition {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
}

#descend{
	bottom: 0;
    width: 100px;
    height: 230px;
   
    position: absolute;
}

#boy{

width: 98px;
    height: 319px;
    background-image: url(images/carlo-body.png);
    position: absolute;
    bottom: 10%;
    left: 263px;
    z-index: 5;
	
}

@-webkit-keyframes swinging{
    0%{-webkit-transform: rotate(10deg);}
    50%{-webkit-transform: rotate(-5deg)}
    100%{-webkit-transform: rotate(10deg);}
}
 
@keyframes swinging{
    0%{transform: rotate(10deg);}
    50%{transform: rotate(-5deg)}
    100%{transform: rotate(10deg);}
}
/* 
 #container{
background-image:url("sky.jpg");
}
*/


#stars1,#stars2,#stars3{
width:98vw;
height:auto;
position:absolute;
}

.panel{
 

}

.ground{
height: 100vh;
  overflow: hidden;
position: relative;
}

 
  
    #stars1 {
         animation: blinker-one 4.5s linear infinite;
       }
	#stars2 {
         animation: blinker-two 4.5s linear infinite;
       }
	#stars3 {
         animation: blinker-three 4.5s linear infinite;
       }   
    @keyframes blinker-one {  
         0% { opacity: 0; }
		 50% { opacity: 1; }
		 100% { opacity: 0; }
       }
    @keyframes blinker-two {
		0% { opacity: 0.5; }
         25% { opacity: 1; }
		 50% { opacity: 0.5; }
		 75% { opacity: 0; }
		 
       }
    @keyframes blinker-three { 
		0% { opacity: 1; }
         25% { opacity: 0.5; }
		 50% { opacity: 0; }
		 75% { opacity: 0.5; }
       }    

.titolo{
	width:39vw;
	height:auto;
	position:absolute;
	z-index:5;
	margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

}

#scrolling-watermark{
		display:none;
}

div#swiping {
    position: absolute;
    right: 10vw;
    bottom: 16vh;
    margin: auto;
	display:none;
}	 

.finger
{
    -webkit-animation: swipe 1s ease infinite;
    -moz-animation: swipe 1s ease infinite;
    animation: swipe 1s ease infinite;
    position: relative;
    MARGIN-BOTTOM: -70px;
}

.arrow{
	
	    position: relative;
}

@keyframes swipe {
	
	0%{bottom:0px;}
	
	100%{bottom:20px;}
}

@-webkit-keyframes swipe {
	
	0%{bottom:0px;}
	
	100%{bottom:20px;}
}

@-moz-keyframes swipe {
	
	0%{bottom:0px;}
	
	100%{bottom:20px;}
}
/* inizio mouse scroll */  

#arrows{
  padding-top:10px;
  
}

#scrolling span
{
    display: block;
    width: 18px;
    height: 17px;
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    border-right: 4px solid white;
    border-bottom: 4px solid white;
    margin-left: 5px;
}

.unu
{
  margin-top: 6px;
}

.unu, .doi, .trei
{
    -webkit-animation: mouse-scroll 1s infinite;
    -moz-animation: mouse-scroll 1s infinite;
}

.unu
{
  -webkit-animation-delay: .1s;
  -moz-animation-delay: .1s;
  -webkit-animation-direction: alternate;
}

.doi
{
  -webkit-animation-delay: .2s;
  -moz-animation-delay: .2s;
  -webkit-animation-direction: alternate;
}

.trei
{
  -webkit-animation-delay: .3s;
  -moz-animation-delay: .3s;
  -webkit-animation-direction: alternate;
}


.mouse
{
	height: 52px;
    width: 39px;
    border-radius: 20px;
    transform: none;
    border: 2px solid white;
    top: -50px;
    left: -5px;
    position: absolute;
}

.wheel
{
    height: 9px;
    width: 3px;
    display: block;
    margin: 5px auto;
    background: white;
    position: relative;;
}

.wheel
{
  -webkit-animation: mouse-wheel 1.2s ease infinite;
  -moz-animation: mouse-wheel 1.2s ease infinite;
}

@-webkit-keyframes mouse-wheel
{
   0% {
    opacity: 1;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    -webkit-transform: translateY(6px);
    -ms-transform: translateY(6px);
    transform: translateY(6px);
  }
}

@-moz-keyframes mouse-wheel
{
  0% { top: 1px; }
  50% { top: 2px; }
  100% { top: 3px;}
}

@-webkit-keyframes mouse-scroll {

  0%   { opacity: 0;}
  50%  { opacity: .5;}
  100% { opacity: 1;}
}
@-moz-keyframes mouse-scroll {

  0%   { opacity: 0; }
  50%  { opacity: .5; }
  100% { opacity: 1; }
}
@-o-keyframes mouse-scroll {

  0%   { opacity: 0; }
  50%  { opacity: .5; }
  100% { opacity: 1; }
}
@keyframes mouse-scroll {

  0%   { opacity: 0; }
  50%  { opacity: .5; }
  100% { opacity: 1; }
}

div#scrolling {
    position: absolute;
    right: 5vw;
    bottom: 6vh;
    margin: auto;

}

/*  fine mouse scroll */


/* inizio nuvole */

#background-wrap {
    bottom: 0;
	left: 0;
	padding-top: 50px;
 /*	position: absolute;*/
	right: 0;
	top: 0;
	z-index: -1;
	overflow:hidden; /*fix per android*/
}

/* KEYFRAMES */

@-webkit-keyframes animateCloud {
    0% {
        
		-webkit-transform: translate(-2272px);
    }
    100% {
        -webkit-transform: translate(2272px);
    }
}

@-moz-keyframes animateCloud {
    0% {
        
		-moz-transform: translate(-2272px);
    }
    100% {
        -moz-transform: translate(2272px);
    }
}

@keyframes animateCloud {
    0% {
        
		transform: translate(-2272px);
    }
    100% {
        transform: translate(2272px);
    }
}





/* ANIMATIONS */

#nuvola1 {
	-webkit-animation: animateCloud 800s linear infinite;
	-moz-animation: animateCloud 800s linear infinite;
	animation: animateCloud 800s linear infinite;
	
	 animation-delay: -440s;
	
	
}

#nuvola2 {
	-webkit-animation: animateCloud 350s linear infinite;
	-moz-animation: animateCloud 350s linear infinite;
	animation: animateCloud 350s linear infinite;

	 animation-delay: -190s;
}

#nuvola3 {
	-webkit-animation: animateCloud 800s linear infinite;
	-moz-animation: animateCloud 800s linear infinite;
	animation: animateCloud 800s linear infinite;

	 animation-delay: -340s;
}

#nuvola4 {
	-webkit-animation: animateCloud 350s linear infinite;
	-moz-animation: animateCloud 350s linear infinite;
	animation: animateCloud 350s linear infinite;
	
 animation-delay: -152s;
}

#nuvola5 {
	-webkit-animation: animateCloud 400s linear infinite;
	-moz-animation: animateCloud 400s linear infinite;
	animation: animateCloud 400s linear infinite;
	
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	transform: scale(1);
	
	
}



/*fine nuvole*/

.scrollifyWrapper{
overflow: hidden;
position:relative;
width: 100%;
height:100vh;

}



.info-box{

	width: 30vw;
    position: absolute;
    z-index: 5;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-image: url(insegna.png); */
    /* background-color: #ffff7c; */
    background-size: cover;
	height:70vh;
	z-index:20;

}

.letter{
	
	display:none;
	
}

.letter-front {
    position: absolute;
    z-index: 2;
	background-image:url(images/letter-front.png);
	background-size:cover;
	height: 100%;
    width: 100%;
	filter: drop-shadow(12px 12px 25px rgba(0,0,0,0.5));
	 -webkit-filter: drop-shadow(12px 12px 25px rgba(0,0,0,0.5));
}

.letter-inside {
    position: absolute;
    z-index: 1;
	background-image:url(images/letter-inside.png);
	background-size:cover;
	height: 100%;
    width: 100%;
	filter: drop-shadow(12px 12px 25px rgba(0,0,0,0.5));
	 -webkit-filter: drop-shadow(12px 12px 25px rgba(0,0,0,0.5));
	
	   -webkit-animation: trilling 3.5s ease-in-out forwards infinite;
    animation: trilling 3.5s ease-in-out forwards infinite;
-webkit-transition: top 1s ease-in-out;
  -moz-transition: top 1s ease-in-out;
  -o-transition: top 1s ease-in-out;
  transition: top 1s ease-in-out;
}

@-webkit-keyframes trilling{
    0%{-webkit-transform: rotate(0deg); top:5%;}
    15%{-webkit-transform: rotate(3deg); top:0%;}
    50%{-webkit-transform: rotate(0deg); top:5%;}
	75%{-webkit-transform: rotate(-3deg); top:0%;}
	100%{-webkit-transform: rotate(0deg); top:5%;}
}
 
@keyframes trill{
    0%{-webkit-transform: rotate(0deg); top:5%;}
    15%{-webkit-transform: rotate(3deg); top:0%;}
    50%{-webkit-transform: rotate(0deg); top:5%;}
	75%{-webkit-transform: rotate(-3deg); top:0%;}
	100%{-webkit-transform: rotate(0deg); top:5%;}
}

.letter-back {
    position: absolute;
	background-image:url(images/letter-back.png);
	background-size:cover;
	height: 100%;
    width: 100%;
	filter: drop-shadow(12px 12px 25px rgba(0,0,0,0.5));
	 -webkit-filter: drop-shadow(12px 12px 25px rgba(0,0,0,0.5));
}

#background-bottom{
    width: 100%;
    height: 482px;
    position: absolute;
    bottom: 0;
    margin: auto;
    left: 0;
    right: 0;
	background-image:url("images/bottom-new.png");
	background-size: cover;
	background-position: right;
}


@-webkit-keyframes Floatingx{
    from {-webkit-transform:translate(0, 0px);}
    65% {-webkit-transform:translate(0, 15px);}
    to {-webkit-transform: translate(0, -0px);    }    
}
    
@-moz-keyframes Floating{
    from {-moz-transform:translate(0, 0px);}
    65% {-moz-transform:translate(0, 15px);}
    to {-moz-transform: translate(0, -0px);}    
}


#head {

    width: 50px;
    height: 67px;
    background-image: url(images/carlo-head.png);
    background-size: contain;
    margin-top: 2px;
    background-repeat: no-repeat;
    transform: rotate(55deg);
    transform-origin: 50% 90% 0;
    margin-left: 30px;
}




div#title-container {
    position: absolute;
    margin: auto;
    right: 0;
    bottom: 0;
    top: 0;
    height: fit-content;
    left: 0;
}

#title-container img {
    width: 40%;
    height: auto;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

svg#title {
    display: flex;
    width: 40vw;
    height: auto;
    margin-right: 10vw;
}

svg#subtitle {
    position: absolute;
    right: 0;
    width: 20vw;
    height: auto;
    margin-right: 10vw;
}



div#animation_container {
    width: 342px;
    height: 430px;
   
    position: absolute;
    bottom: 10%;
    left: 66px;
    z-index: 5;
	display:none;
}


.mongolfiera {
    position: absolute;

    background-size: cover;

    z-index: 2;
    
}





#mf1{


	width: 14%;
    height: auto;
    margin: auto;
    top: 0;
    left: 0;
    right: 20%;
    bottom: 50%;
	
	 -webkit-animation-name: Floatingx;
    -webkit-animation-duration: 3s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    -moz-animation-name: Floating;
    -moz-animation-duration: 3s;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: ease-in-out;

}


#mf2{


	width: 10%;
    height: auto;
    left: 5vw;
	top:18%;
	
	
	 -webkit-animation-name: Floatingx;
    -webkit-animation-duration: 5s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    -moz-animation-name: Floating;
    -moz-animation-duration: 5s;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: ease-in-out;
	    FILTER: blur(0.5px);

}

#mf3{


	width: 10%;
    height: auto;
    bottom: 15vh;
    right: 15%;
	
	
	    -webkit-animation-name: Floatingx;
    -webkit-animation-duration: 4s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    -moz-animation-name: Floating;
    -moz-animation-duration: 4s;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: ease-in-out;
	    FILTER: blur(0.5px);;

}

#mf4{

	
    width: 10%;
    height: auto;
    right: 5vw;
	top: 0;
	
	    -webkit-animation-name: Floatingx;
    -webkit-animation-duration: 6s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    -moz-animation-name: Floating;
    -moz-animation-duration: 6s;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: ease-in-out;
	    FILTER: blur(0.5px);

}

.moon{
	width: 13%;
    height: auto;
    position: absolute;
    margin: auto;
    top: 10%;
    right: 0;
    left: 50%;
    FILTER: blur(1px);

}

.nuvole {
    position: absolute;
}


.left-flowers{
position: absolute;
margin:auto;
bottom:0;
left:0;
z-index: 50;
filter: blur(2px);
top:85%;
width:20%;
}

.right-flowers{
position: absolute;
margin: auto;
bottom: 60vh;
right: 0;
z-index: 50;
filter: blur(2px);
width: 20%;
}

.nuvole img {
    
    height: 94%;
}

.quando{

    bottom: 20%;
    position: absolute;
    width: 32%;
    height: auto;
    right: 47%;
	
    z-index: 50;

}

.dove{

    position: absolute;
    width: 32%;
    height: auto;
    right: 15%;
    top: 20%;
	
    z-index: 50;	
}

.rsvp-title img {
    width: 180px;
    margin: 30px;
    left: 0;
    right: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
	
	
}



@media (max-width: 1024px) and (orientation: landscape) {
	
	div#swiping {

    bottom: 36vh;

	}
	
	.mouse{
		display:none;
	}
	
	#parentContainer{
	
	width:450px;
	
	}
	
	.girl{

    width: 218px;
    height: auto;
  
	}
	
	#boy{

		width: 80px;
		height: 261px;
		background-size: cover;
		left: 226px;
	}

	#head {

    width: 41px;
    height: 54.8px;
    margin-left: 27px;
	}
	
	.info-box {
        width: 270px;
    height: 290px;
	}

	img.letter {
    width: 20vw;
	}
}


/* 
  ##Device = Desktops
  ##Screen = 1281px to higher resolution desktops
*/

	.moved{
		bottom: 9%;
		
	}
	
	

@media (min-width: 1281px) {
  
	
	
	

  
}

/* 
  ##Device = Laptops, Desktops
  ##Screen = B/w 1025px to 1280px
*/

@media (min-width: 1025px) and (max-width: 1280px) {
  
 	
	
		
		


	
	#mf1{
	
    width: 210px;
    height: 358px;
    margin: auto;
    top: 0;
    left: -70px;
    right: 0;
    bottom: 0;	
		
	}
	
	#mf3 {
   
	width: 84px;
    height: 150px;
    bottom: 5vh;
    right: 15vw;
	}
	
	.moon {
    left: 46%;
	top: 10%;
	}
	
	.quando {
    bottom: 10%;

    right: 54%;
    
	}
 
}

/* 
  ##Device = Tablets, Ipads (portrait)
  ##Screen = B/w 768px to 1024px
*/

@media (min-width: 768px) and (max-width: 1024px) {
  
  //CSS
  
}

/* 
  ##Device = Tablets, Ipads (landscape)
  ##Screen = B/w 768px to 1024px
*/



@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
  
  //CSS
  
}

/* 
  ##Device = Low Resolution Tablets, Mobiles (Landscape)
  ##Screen = B/w 481px to 767px
*/

@media (min-width: 481px) and (max-width: 767px) {
  
  //CSS
  
}

/* 
  ##Device = Most of the Smartphones Mobiles (Portrait)
  ##Screen = B/w 320px to 479px
*/

@media (min-width: 320px) and (max-width: 480px) {
  
  //CSS
  
}

@media (orientation : portrait), @media (min-width: 320px) and (max-width: 480px){
	
	#scrolling span
	{
    
    width: 35px;
    height: 35px;
	
	}
	
	.mouse{
		
		display:none;
	}
	
	div#scrolling{
		
	
    bottom: 16vh;
    
	} 
	
	.right-flowers{

	bottom: 30vh;
	}
	
	
	#title-container img {
		width: 80%;
	}
	
	.rsvpify-container
	{
	 width:500px;
	/* height:550px; */
	 
	}
	
		.info-box
	{
	
	 height: 410px;
    width: 390px;
	
	}
	
	#mf1 {
    
    width: 240px;
    height: 448px;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 10vh;
	}
	
	#mf2{
		
    width: 154px;
    height: 280px;
    bottom: 15vh;
    right: 5vw;
    left: 80vw;
    top: 4vh;
	}
	
	#mf3{
		

	
	width: 104px;
    height: 190px;
    left: 5vw;
	top: 0vh;
	
	}
		
	#mf4{
		
    width: 112px;
    height: 190px;
    right: 23vw;
    top: 77vh;

	

	}
	
	.dove {
    position: absolute;
    width: 50vw;
    height: auto;
    
    right: 0;
    top: 63vh;
    left: 0;
    margin: auto;
	}
	
	.quando {
	bottom: 57vh;
    position: absolute;
    width: 50vw;
    height: auto;
    right: 0;
  
    top: 0;
    left: 0;
    margin: auto;
	}
 

}


@media (min-aspect-ratio: 1/3) and (max-aspect-ratio: 1/2) and (orientation: portrait) { 
	
	
	}
