/* Drugs Action Landing Page 

0. Type, links and clears
1. Poster
2. Help
3. Form
4. Footer
5. Browser specifics 
6. Mobile shenanigans

 -------- 0. Type, links & clears ------------------------ */

/* Links */

a{
    font-family: 'Open Sans', sans-serif;
}

a, .btn{
    -webkit-transition: all 0.3s ease-out;  /* Android 2.1+, Chrome 1-25, iOS 3.2-6.1, Safari 3.2-6  */
    transition: all 0.3s ease-out;      /* Chrome 26, Firefox 16+, iOS 7+, IE 10+, Opera, Safari 6.1+  */
    color: #2e2c74;
}

.scroll::after:hover{
    -webkit-transition: all 0.3s ease-out;  /* Android 2.1+, Chrome 1-25, iOS 3.2-6.1, Safari 3.2-6  */
    transition: all 0.3s ease-out;      /* Chrome 26, Firefox 16+, iOS 7+, IE 10+, Opera, Safari 6.1+  */
}

.btn:hover, .scroll:hover{
    color: #f1bc1b;
}

a:hover{
    color: #f1bc1b;
}

a.scroll, .btn a{
    text-decoration: none;
}

a.scroll::after{ 
    vertical-align: -40%;
    display: inline-block;
    background-image: url('/assimg/arrow-white.png');
    background-size: 35px 35px;
    width: 35px; height: 35px;
    margin-left: 12px; margin-left: 1.2rem;
    content:"";
}

/* Type */

h1, h2, h3, h4{
    font-family: 'Open Sans Condensed', sans;
}

h1{
    font-size: 82px;
    font-weight: 700;
    letter-spacing: -2px;
    color: #FFF;
    line-height: 0.9em;
    margin-bottom: 0.4em;
    text-transform: uppercase;
}

h2{
    color: #2e2c74;
    font-size: 24px;
    margin-bottom: 0.875em;
}

h3{
    font-family: 'Open Sans', sans;
    color: #2e2c74;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5em;
}

h4{
    font-family: 'Open Sans', sans-serif;
    color: #2e2c74;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

p, ul{
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    margin-bottom: 1.2em;
}

strong{
    font-weight: 700;
}

/* Clearfix */

.clear:before,
.clear:after {
    content: " ";
    display: table;
}

.clear:after {
    clear: both;
}
.narrow{
    max-width: 800px;
}

/* -------- 1. POSTER ------------------------ */

.poster{
    position: relative;
    background: #47022e url('/rgu/assets/img/alcohol.jpg') 50% 50% no-repeat;   
    background-size: cover;
    width: 100%;
    height: 100%;
}

    .logos{
        position: absolute;
        bottom: 16px;
        left: 16px;
    }
    
        .ada-logo{
            max-height: 120px;
            display: inline-block;
            line-height: 120px;
            vertical-align: middle;
        }

        .rgu-logo{
            max-height: 120px;
            display: inline-block;
            line-height: 120px;
            vertical-align: middle;
        }

        .logos span{
            color: #FFF;
            display: inline-block;
            line-height: 120px;
            padding: 0 16px;
            vertical-align: middle;
        }

    .outer{
        height: 100%;
        width: 1280px;
        margin: 0 auto;
    }

        .inner{
            position: relative;
            top: 50%;
            -webkit-transform: translateY(-50%);  /* Chrome, Opera 15+, Safari 3.1+ */
            -ms-transform: translateY(-50%);        /* IE 9 */
            transform: translateY(-50%);
            text-align: center;
        }
    
        .inner .wrap{
            float: right;
        }
        
            .inner a.scroll{
                display: block;
                font-size: 28px; 
                font-weight: 700;
                letter-spacing: -1px;
                color: #FFF;
            }

            .inner a::after{
                background-image: url('/rgu/assets/img/arrow-white.png');
            }

            .inner a:hover{
                color: #f1bc1b;
            }

            .inner a:hover::after{
                background-image: url('/rgu/assets/img/arrow-yellow.png');
            }

    
    
/* -------- 2. HELP ------------------------ */
    
.help{
    padding: 84px 0;
    text-align: center;
}

    .help h2{
        font-size: 64px;
        font-weight: 700;
        letter-spacing: -2px;
        text-align: center;
        text-transform: uppercase;
        margin: 0.3em;
        line-height: 1;
    }
    
    .help .statement h2{
        font-size: 80px;
    }
    
    .help .wrap{
        margin-bottom: 32px;
    }

    .help a{
        text-decoration: none;
    }
    
    .help a.quiz{
        font-size: 24px;
    }
    
    .help .scroll::after{
        background-image: url('/rgu/assets/img/arrow-right-blue.png');
    }
    
    .help .scroll:hover::after{
        background-image: url('/rgu/assets/img/arrow-right-yellow.png');        
    }

    
/* -------- 3. FORM ------------------------ */

.form{
    display: none;
    padding: 84px 0;
    background: #fcfcfc;
}

.units img{
    max-width: 160px;
}

    .form .question{
        display: none;
    }

    .form .question.active{
        display: block;
    }

    .form fieldset{
        border: none;
    }
    
    .form label{
        display: inline-block;
    }
    
    .form input[type="radio"]{
        margin-right: 8px;
    }

/* Slider */

.slider-wrapper{
    margin-bottom: 16px;
}

    #slider{
        width: 50%;
    }

    #amount[readonly]{
        background: none;
        border: none;
        font-weight: 700;
		color: #EC5D15;	
		font-size: 16px
    }
                                 

/* Buttons */

.btn.next, .btn.submit{
    float: right;
}

.btn.primary, .skiplink.primary{
    background: #2e2c74;
    border: none;
    border-radius: 8px;
}

.btn.primary:hover{
    background: #f1bc1b;
}

.btn a:hover{
    color: #FFF;
}

/* Feedback area */

.feedback{
    display: none;
    padding-top: 8px;
}

    .results{
        display: none;
    }

    .visible{
        display: block !important;
    }

    .feedback h2{
        font-size: 48px;
        font-weight: 700;
        text-transform: uppercase
    }

    .feedback h3{
        color: #555555;
    }

    .error p{
        margin-bottom: 0px; 
        padding: 12px; 
        background: #f0b8b8;
    }

.calories > p {
	color: #EC5D15;	
	font-weight: bold;
	font-size: 20px
}

/* Loading Bar */

.meter { 
    position: relative;
    background: #f9f9f9;
    margin-bottom: 16px;
}

.meter > span {
    display: block;
    height: 100%;
    height: 10px;
    background-color: #f1bc1b;
}
    
/* -------- 4. FOOTER ------------------------ */

.legals{
    background: #F9F9F9;
    padding: 64px 0;
}

    .legals p{
        text-align: center;
        margin: initial;
    }

.nightline{
    display: table;
}

.nightline div{
    display: table-cell;
    vertical-align: middle;
}

.nightline p{
    text-align: left;
    margin: 0 0 0 32px;
}

.nightline div{
    float: none !important;
}

/* -------- 4.1 FOOTER LOGOS ------------------------ */

.footer-logos ul{
    margin: 24px auto;
    text-align: center;
}

.footer-logos li{
    display: inline-block;
    margin: 0 8px;
}

.footer-logos img{
    max-height: 100px;
}
    
/* -------- 5. BROWSER SPECIFICS ------------------------ */

.ie8 .outer{
    display: table;
}

    .ie8 .inner{
        position: relative;
        top: 0px;
        display: table-cell; 
        vertical-align: middle;
    }
    
/* -------- 6. MOBILE SHENANIGANS ------------------------ */

@media screen and (max-width: 1280px){   
    .outer{width: 100%;}
}

@media screen and (max-width: 767px){
    .help a{display: block;}
    body, html{height: auto;}
    .poster{background: #47022e;}
    .logos{background: #fff; position: relative; padding: 16px 0; left: auto; bottom: auto; text-align: center;}
    .logos span{ display: block; color: #555; line-height: 16px; margin-bottom: 16px; }
    .help{padding: 32px 0;}
    .outer{height: auto;}
    .logo{position: relative; left: initial; bottom: initial; margin: 24px auto; text-align: center;}
    .logo span{display: none;}
    .inner{padding: 24px 0; top: initial; transform: none;-webkit-transform: none; -ms-transform: none; transform: none;}
    .inner .wrap{float: none;}
}