﻿

/* ----------------------------------------------------------
MEDIA QUERIES:
execute these when screen width drops below max-width value 
------------------------------------------------------------ */

/* only load background image when screen width > 1000px */
@media all and (min-width: 1000px)
{
    #contentRegionBackgroundImage
    {
        /*background: url(../../content/images/home-bg.jpg) no-repeat 0 0;*/
    }
}


/* Under width 940px we set main containers to be fluid 100% width */
@media all and (max-width: 940px) 
{
    #header, 
    #footer,
    #pageContent, 
    .span-12
    {
        width: 100%;
        display: block;
        float: none;
        margin: 0;
        padding: 0;
    }
    
    .footerBox
    {
        border-left: 0;
        border-right: 0;
    }
    
    /* user account info header box set to width auto */
    .span-4,
    .headerAccountLabel
    {
        width: auto !important;
        min-width: 0;
    }
            
    #header
    {
        width: auto;
        margin: 0 20px 0 20px;
    }
         
    #footerAddress
    {
        width: auto;
        padding-right: 160px;
    }
}  


/* Under 708px we set inner grey box container (span-8 width) to be fluid 100% wide */
@media all and (max-width: 708px) 
{
    .span-8
    {
        width: auto !important;
        display: block;
        float: none;
        margin: 0;
    }

    .contentBox
    {
        border: 0;
    }
    
    /* co-branding logo is in a span-3, switch span-3 to occupy % of available width.
    TO DO: remove span-3 controllong co-branding container width and use a custom 
    co-branding container class instead to facilitate easier responsive styling 
    */
    .span-3
    {
        width: 30%;
    }
            
    .footerAddressAndLogoContainer
    {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}


/* Under 675px how much in plan wrapper changes to simplified mobile display */
@media all and (max-width: 675px) 
{ 
    /* hide co-branding logo */
    .span-3
    {
        display: none;
    }
}

/* Under 530px footer address occupies full width and logo moves underneath */
@media all and (max-width: 530px) 
{ 
    #footerAddress
    {
        padding-right: 0;
    }
            
    .footerAddressAndLogoContainer
    {
        padding-bottom: 90px;
    }

    #mainContent
    {
        padding-top: 0;
        padding-bottom: 20px;
    }

    .contentBox
    {
        border: 0;
        box-shadow: none;
    }
    
    /* Don't think header nav ever contains nav on account admin pages */
    #headerNav
    {
        display: none;
    }
    
    .headerAccountInfoUl
    {
        padding: 3px 0;
    }
    
    /* set medium or large textboxes to occupy 95% width */
    .medium,
    .large,
    .emailAddressTextbox
    {
        width: 95%;
    }
}

/* Account/index page columns should switch from % width to fluid 100% width */
@media all and (max-width: 474px) 
{  
    .progressBar li,
    .progressBar li.active
    {
        padding: 0.5em 0;
        width: 32%;
        margin-right: 2%;
    }
    
    .detailLabelColumn,
    .detailColumn,
    .changeDetailLinkColumn
    {
        float: none;
        width: 100%;
        padding: 0;
    }
}

        
/* 440 and below increase height of header section/spacing above logo.
switch form elements to occupy full width */
@media all and (max-width: 440px) 
{  
    #header
    {
        height: 120px;
    }
    
    .headerAccountInfoUl
    {
        color: #999;
    }
}
   

/* Under 630px how much in plan wrapper changes to simplified mobile display */
@media all and (max-width: 420px) 
{ 
    .progressBar li,
    .progressBar li.active
    {
        float: none;
        width: 98%;
        padding: 0.5em 0;
        margin-bottom: 1em;
    }
    
    .progressBar li.last
    {
        margin-bottom: 0;
    }
    
    .form33-66 label,
    .form33-66 .controls,
    .form33-66 .buttonRow,
    .form30-70 label,
    .form30-70 .controls,
    .form30-70 .buttonRow,
    .form33-66 .nonInputLabel,
    .form30-70 .nonInputLabel
    {   
        width: 100%;
        float: none;
        padding: 0;
        margin: 0;
    }
    
    label.required
    {
        padding-left: 8px;
        background-position: left top;
    }
    
    .help-block
    {
        padding-top: 3px;
    }
}

/* Under 430 remove background image from msg boxes and decrease left padding to 20px */
@media all and (max-width: 430px) 
{
    .validation-summary-errors,
    .warningBox,
    .successBox
    {
        background-image: none;
        padding-left: 20px;
    }
}
     
@media all and (max-width: 400px) 
{
    .contentBox
    {
        padding: 20px 15px;
    }
}
        
@media all and (max-width: 340px) 
{
    .footerBox a
    {
        font-size: 0.85em;
    }
    
    .contentBox
    {
        padding: 20px 10px;
    }
}