@import url('https://fonts.googleapis.com/css?family=Nunito:300,400,600,700&display=swap');
body{
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    cursor: crosshair;
}
.envelope{
    position: absolute;
    bottom: 20px;
    right: 20px;
    width:60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    cursor: pointer;
    transition: .5s;
}
.envelope:hover{
    background: #00bcd4;
}
.overlay{
    position: absolute;
    /* top:0; */
    /* left: 0; */
    bottom: 50px;
    right: 50px;
    width:100%;
    height: 100vh;
    background: #011423;
    transition: .5s;
    /* display: none;lastly added */
    transform: scale(0);
    transform-origin: bottom right;

    /* after bottom right .active */
    border-radius: 50%;

}

/* last added after display none */
.overlay.active{
    /* after border-radius overlay */
    border-radius: 0;
    /* after overlay bottom right */
    bottom: 0;
    right: 0;
    transform: scale(1);
}
.newsletter{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    width:50%;
    min-height: 300px;
    background: #262164;
    box-shadow: 0 10px 15px rgba(0,0,0,.5);
    padding:40px 60px 60px;
    box-sizing: border-box;
}
.newsletter .close{
    position: absolute;
    top:-24px;
    right: -24px;
    color:#fff;
    cursor: pointer;
    background: #e91e63;
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 50%;
    line-height: 40px;
    font-size: 20px;
    border: 4px solid #fff;
}
.icon{
    color:#fff;
    font-size: 80px;
    text-align: center;
}
.icon-white{
    color:#fff;
}
.newsletter h1{
    margin:0;
    padding: 0;
    text-align: center;
    color:#fff;
    font-weight: 300;
    font-size: 48px;
    text-transform: uppercase;
}
.newsletter p{
    margin: 0;
    padding: 0;
    text-align: center;
    color:#fff;
    font-size: 20px;
    font-weight: 300px;
}
.subscribe-form{
    position: relative;
    margin-top:40px;

}
.subscribe-form input[type="email"]{
    width: 100%;
    height: 60px;
    border-radius: 60px;
    border:none;
    outline: none;
    padding:20px;
    padding-right: 200px;
    box-sizing: border-box;
    font-size: 24px;
    background: rgba(255,255,255,0.1);
    color:#fff;
    font-weight: 300;
}
.subscribe-form input[type="email"]::placeholder{
    color:rgba(255,255,255,.5);
}
.subscribe-form input[type="submit"]{
    width: 200px;
    height: 60px;
    border-radius: 60px;
    outline: none;
    border:none;
    position: absolute;
    top: 0;
    right: 0;
    background: #00bcd4;
    color:#fff;
    font-weight: 300;
    cursor: pointer;
    transition: .5s;
    font-size: 24px;
}
.subscribe-form input[type="submit"]:hover{
    background: #e91e63;
}


/* Page */
section{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url(1.jpg);
    background-size: cover;
}
section div{
    max-width: 800px;
    font-family: 'Nunito', sans-serif;
}

section div h2{
    margin: 0;
    padding: 0;
    color:#fff;
    font-size: 4em;
}
section div p{
    color:#fff;
    font-size: 1.2em;
    opacity: 0.5;
}
.scrolldown{
    position: absolute;
    bottom: 20px;
    left: 50%;
    width: 40px;
    height:40px;
    /* background: #fff; */
    transform: translateY(-80px) translateX(-50%) rotate(45deg);
}
.scrolldown span{
    position: absolute;
    top: 0;
    left:0;
    display: block;
    width:100%;
    height: 100%;
    border-bottom: 2px solid#fff;
    border-right: 2px solid #fff;
    animation: animate 1.5s linear infinite;
    opacity:0;
}
.scrolldown span:nth-child(1){
    transform: translate(-15px,-15px);
    animation-delay: -0.4s;
}
.scrolldown span:nth-child(2){
    transform: translate(0,0);
    animation-delay: -0.2s;
}
.scrolldown span:nth-child(3){
    transform: translate(15px, 15px);
    animation-delay: 0;
}
@keyframes animate{
    0%{
        top:-5px;
        left:-5px;
        opacity:0;
    }
    25%{
        top:0px;
        left:0px;
        opacity:1;
    }
    50%, 100%{
        top: 5px;
        left: 5px;
        opacity:0;
    }
}