/******************

Template stylesheet

******************/

/* BODY */

body {      
    margin: 0;    
    font: 16px/1.4 'Open Sans', sans-serif;    
    background: transparent url(../img/bg1.png) top left repeat;    
}

/* MAIN CONTENT */

#main {
    margin: 40px 0 0 80px;    
    display: inline-block;
    vertical-align: middle;
}

/* HEADINGS */

h1 {
    padding-top: 10px;
    font-size: 64px;
    line-height: 64px;
    font-weight: 800;    
}

#subheading {
    font-size: 48px;
    font-weight: 300;    
}

/* DESCRIPTION */

#description {
    padding-top: 54px;
    padding-bottom: 60px;
    max-width: 767px;    
}

/* SUBSCRIPTION FORM */

#subscribe-form {
    position: relative;
    display: inline-block;
    margin: 0 0 60px;
    padding: 8px;    
    border-radius: 6px;     
}

#subscribe-email {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    width: 377px;
    font-size: 16px;
    padding: 10px 6px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;  
}

#subscribe-email:focus {
    outline: none;
    background: #fff;
}

#subscribe-submit {
    cursor: pointer;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;    
    font-size: 16px;
    font-weight: 400;
    padding: 10px;
}

#subscribe-tooltip {
    position: absolute;  
    top: 100%;
    left: 50%;
    margin-top: 10px;  
    visibility: hidden;     
}

#subscribe-tooltip p {
    position: relative;
    padding: 10px 20px;
    border-radius: 3px;    
}

#subscribe-tooltip p:before {
    content: "";
    display: inline-block;
    position: absolute;
    top: -20px;
    left: 50%;
    margin-left: -10px;   

    border-width: 10px;
    border-color: transparent;
    border-style: solid;    
}

/* COUNTDOWN */

#countdown > div {
    display: inline-block;
    margin: 0 60px 40px 0;    
}

.countdown-number {
    display: inline-block;    
    width: 64px;
    height: 64px;
    padding: 8px;
    line-height: 64px;
    text-align: center;
    font-weight: 700;
    font-size: 32px;
    border-radius: 3px;
}

.countdown-text {
    margin-top: 8px;
    font-weight: 300;
    font-size: 18px;
    text-align: center;
}

/* Fix elements sizes while animated */

body.magnetic-animated h1, body.magnetic-animated #subheading, body.magnetic-animated #subscribe-form {
    white-space: nowrap;
}

/* Responsive magic */

@media only screen and (max-width: 767px) {
    #main {
        margin: 20px;
    }

    h1 {
        font-size: 36px;
        line-height: 36px;
    }

    #subheading {
        font-size: 32px;
    }

    #subscribe-email, #subscribe-submit {
        padding: 8px;
        font-size: 16px;
    }

    #subscribe-email {
        width: 300px;
    }
}

@media only screen and (max-width: 479px) {
    #h1 {
        font-size: 15px;
        line-height: 15px;
    }

    #subheading {
        font-size: 15px;
    }

    #subscribe-form {
        padding: 5px;
    }

    #subscribe-email, #subscribe-submit {
        padding: 5px;
        font-size: 12px;
    }

    #subscribe-email {
        width: 215px;
    }

    #countdown {
        text-align: center;
    }
}