@import url(http://fonts.googleapis.com/css?family=Lato:400,700);

body{
    margin: 0;
}
/*** Pop Up ***/

@import url(http://fonts.googleapis.com/css?family=Lato:400,700);

#main-wrapper{
    height: auto;
    position: fixed;
    top: -150%;
    right: 40px;
    text-align: right;
    width: 360px;
    z-index: 10000;
}
#main-wrapper.active-box{
    top: 0%;
    -webkit-animation: openpop 0.8s linear alternate forwards;
    -moz-animation: openpop 0.8s linear alternate forwards;
    -ms-animation: openpop 0.8s linear alternate forwards;
    -o-animation: openpop 0.8s linear alternate forwards;
    animation: openpop 0.8s linear alternate forwards;
}
#wrapper-pop{
    background-image:url(/assets/images/cereal-pop.jpg);
    background-repeat: no-repeat;
    background-size: 100%;
    display: inline-block;
    font-family: 'Lato', Arial, sans-serif;
    height: 100%;
    max-width: 360px;
    width: 100%;
    z-index:15;
    position: relative;
}

/*#main-wrapper.closepop{
    -webkit-animation: closepop 0.8s linear alternate forwards;
    -moz-animation: closepop 0.8s linear alternate forwards;
    -ms-animation: closepop 0.8s linear alternate forwards;
    -o-animation: closepop 0.8s linear alternate forwards;
    animation: closepop 0.8s linear alternate forwards;
}*/

#wrapper-pop .title{
    background-color: #2c9cc9;
    display: block;
    position: relative;
    width:100%;
}

#wrapper-pop .title h2{
    /*font-size: 3.164375em;*/
    font-size: 12px;
    font-weight: normal;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    color: #fff;
    padding: 8px 0;
    box-sizing: border-box;
}

#wrapper-pop .closebtn {
    background-image:url(/assets/images/btn-close.jpg);
    background-repeat: no-repeat;
    background-size: 100%;
    width: 30px;
    height: 30px;
    display: inline-block;
    position: absolute;
    margin: 0px;
    padding: 0px;
    cursor: pointer;
    top: 0;
    right: -30px;
}

#wrapper-pop .content-pop {
    width: 100%;
    float: left;
    position: relative;
}

#wrapper-pop .content-pop p{
    /*font-size: 1.75em;*/
    font-size: 13px;
    line-height: 1.6em;
    width: 42.5%;
    float: right;
    box-sizing:border-box;
    padding-right: 20px;
    margin-top: 8.3%;
    margin-bottom: 5%;
    text-align: left;
    color: #444444;
    font-family: 'Lato', Arial, sans-serif;
}

#wrapper-pop .content-pop p b{
    font-weight: bold;
    letter-spacing: -.03em;
}

#wrapper-pop .content-pop .learn-more{
    background-color: #2c9cc9;
    float: right;
    height: 40px;
    margin-right: 5%;
    margin-bottom: 10%;
    margin-left: 5%;
    width: 57%;
    max-width: 172px;
    clear: both;
    transition:all 0.3s ease 0s;
    -webkit-transition:all 0.3s ease 0s;
    -moz-transition:all 0.3s ease 0s;
    -ms-transition:all 0.3s ease 0s;
    -o-transition:all 0.3s ease 0s;
}

#wrapper-pop .content-pop .learn-more:hover{
      background: #146180;
}

#wrapper-pop .content-pop .learn-more h3{
    /*font-size: 2.3125em;*/
    font-size: 18px;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    color: #fff;
    display: table;
    width: 100%;
    height: 100%;
}

#wrapper-pop .content-pop .learn-more h3 a{
    text-decoration: none;
    color: #fff;
    border: none;
    outline: none;
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}
#wrapper-pop .content-pop .learn-more h3 b,
#wrapper-pop .content-pop .learn-more h3 strong{
    font-weight:bold;
}

.overlay{
    background-color: black;
    opacity: 0.6;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 10;
    display: block;
}


@-webkit-keyframes openpop {
    from {    
        max-height: 589px;
        margin-top: -589px;
    }
    to {    
        max-height: 589px;
        margin-top: 1em;
    }
}
@keyframes openpop {
    from {    
        max-height: 589px;
        margin-top: -589px;
    }
    to {    
        max-height: 589px;
        margin-top: 1em;
    }
}


@-webkit-keyframes closepop {
    from {
        max-height: 589px;
        margin-top: 1em;    
    }
    to {    
        max-height: 589px;
        margin-top: -650px;
    }
}
@keyframes closepop {
    from {
        max-height: 589px;
        margin-top: 1em;    
    }
    to {    
        max-height: 589px;
        margin-top: -700px;
    }
}

@media only screen and (max-device-width : 736px){
    /* #main-wrapper{display: none !important;} */
}

@media only screen and (max-width : 736px) and (orientation : portrait){
    
    #main-wrapper{
        width: 80%;
        max-width: 200px;
        top: -150%;
    }
    #main-wrapper.active-box{
        top: 8%;
    }

    #wrapper-pop .closebtn {
        background-repeat: no-repeat;
        width: 28px;
        height: 28px;
        right: -28px;
    }

    #wrapper-pop .content-pop p{
        font-size: 8px;
    }

    #wrapper-pop .content-pop .learn-more{
        height: 22px;
    }

    #wrapper-pop .content-pop .learn-more h3{
        font-size: 10px;
    }
}

@media only screen and (max-width : 736px) and (orientation : landscape){
    
    #main-wrapper{
        width: 77%;
        margin-top: 0;
        top: -3%;
    }

    #wrapper-pop .title h2{
        font-size: 25px;
    }

    #wrapper-pop .closebtn {
        background-size:36px 34px;
        background-repeat: no-repeat;
        width: 36px;
        height: 34px;
    
        right: -36px;
}

    #wrapper-pop .content-pop p{
        font-size: 13px;
        line-height: 1.6em;
    }

    #wrapper-pop .content-pop .learn-more h3{
        font-size: 18px;
    }

    .overlay{
        height: 130%;
    }
}


@media only screen and (max-width : 480px){
    #wrapper-pop{
        background-size: cover;
        background-position: center;
    }
}


@media only screen and (max-width : 480px) and (orientation : landscape){
    #wrapper-pop .content-pop p{
          font-size: 13px;
    }
}