﻿html {
	-webkit-text-size-adjust: 100%;
}

.mob, .tab { /* mobile only */
    display:none;
}
#mobilemenu {
    display:none;
}
.bookmarks {
    z-index:1;
}
/* font-sizer */
#font-sizer {
    width: 98px; height: 24px; position: relative;
}
    #font-sizer .label {
        height: 1em; margin-top: -.5em;float: left;position:  absolute;top: 50%;
    }
    #font-sizer .buttons {
        width: 42px; height: 24px; float: right; white-space:nowrap;
    }
@media only screen and (-webkit-device-pixel-ratio:2) and (orientation:landscape) {
    #search .txt_search {
         Width:200px !important;
    }
}
@media only screen and (-webkit-device-pixel-ratio:2) and (orientation:landscape) and (max-width:700px) {
    /* phone/tablet horizontal */
    #tagline {
        display:none;
    }    
    .dt { /* desktop only */
        display:none;
    }
    .mob {
        display:block;
    }
    #buttons {
        display:none;
    }
    .submenu {
        display:none;
    }
    
}
@media (max-width: 1000px) {

    #container {
        width: 95%;
    }

    #fontsizer {
        width: 65px;
    }

    .tab {
        display: block;
    }

    .dtab {
        display: none;
    }

    #logo {
        margin: 10px 0 10px 10px;
    }

    #header {
        height: 140px;
    }

    #font-sizer {
        padding-right: 10px;
        width: auto;
    }

        #font-sizer .label {
            top: 0;
        }

        #font-sizer .label, #font-sizer .buttons {
            float: right;
            position: relative;
        }

        #font-sizer .buttons {
            padding-top: 5px;
        }


    #tagline {
        width: auto;
        position: absolute;
        left: 10px;
        top: 30px;
        margin-left: 0;
    }

    #social {
        bottom: 0px;
        right: 10px;
    }

    /* HOME PAGE CONTENT STYLES */

    #slideshow, #slideshow .slides, #slideshow .slides li {
        width: 100% !important;
    }

    #maincontent {
        width: auto;
        padding: 10px 0 0 0;
    }

    #content {
        height: auto !important;
        padding-left: 0px;
    }

        #content p {
            padding-left: 20px;
        }

        #content DIV {
            margin-left: 10px !important; /* this may screw up the slider */
        }

    #supplements {
        float: left !important;
    }

    #section-header {
        width: 94.8% !important;
    }

    .fsl-col1 {
        width: 100%;
    }
    .readinglevel {
        font-size:14px;
    }
    .center .pnlImg div {
        width: 150px !important;
    }
    .pnlImg div p {
        font-size:12px !important;
    }
    .cat-img {
        position: relative;
        clear: both;
    }
    .pnlImg img {
        width: 150px;
    }
        /* FOOTER STYLES */
        .bookmarks ul li:first-child {
        padding-left: 0px;
    }
    #footer {
        padding-left: 20px;
        padding-bottom: 10px;
        text-align:center;
        width:94%;
    }

    #footertext {
        width:440px !important;
    }
        #footertext ul {
            width: auto !important;
        }
    #footerimages {
        clear:both;
        padding-bottom: 20px;
    }

    #topnav {
        display:none; /* will be reworked for mobile */
    }    
    #mobilemenu {
        display:block;
    }
    #topnav {
        top: 1px !important;
        left: auto;
        bottom: auto;
        height: auto;
        width: 100vw;
        max-width: 100vw;
        margin: 0 calc(-50vw + 50%);
        z-index: 5;
        background-image: linear-gradient(to bottom, #2C72B7 0%, #104273 100%);
        background-color: #2C72B7;
    }

        #topnav ul {
            height: 100%;
        }
        #topnav ul ul {
            margin-left: 30px;
            margin-top: 10px;
        }
        #gnav {
            width:100vw;
            max-width:100vw;
            border-radius:0;
            background-image:none;
        }
        #gnav li {
            float: none;
            position: inherit;
            border:none;
        }

        #gnav li a, #gnav li a:visited {
            color:#fff;
        }
            #gnav .hover-on {
                background-color: inherit !important;
                color:#fff !important;
            }
            #gnav li li span {
                float: none;
                color: #a3a3a3;
            }

        #topnav #tab-first, #topnav #tab-second, #topnav #tab-third, #topnav #tab-fourth {
            background: none;
            top: inherit;
            left: inherit;
            width: 100%;
        }

        #topnav li:hover li, #topnav li.ie6hover li {
            padding-left: 0px;
        }

        #topnav #tab-first:hover, #topnav #tab-second:hover, #topnav #tab-third:hover, #topnav #tab-fourth:hover,
        #topnav li:hover div,
        #topnav #tab-first a, #topnav #tab-second a, #topnav #tab-third a, #topnav #tab-fourth a,
        #topnav #tab-first a:visited, #topnav #tab-second a:visited, #topnav #tab-third a:visited, #topnav #tab-fourth a:visited,
        #topnav #tab-first a:hover, #topnav #tab-second a:hover, #topnav #tab-third a:hover, #topnav #tab-fourth a:hover,
        #topnav #tab-first a:active, #topnav #tab-second a:active, #topnav #tab-third a:active, #topnav #tab-fourth a:active,
        #topnav #tab-first, #topnav #tab-second, #topnav #tab-third, #topnav #tab-fourth {
            top: inherit !important;
            left: inherit !important;
            clear: both !important;
            width: inherit !important;
        }

        #gnav li .atab {
            position: relative;
            top: 0px;
            width: auto;
            height: auto;
            z-index: inherit;
            background: none;
            box-shadow: none;
            border: none;
        }
        .hover-on {
            border:none !important;
            border-radius:0 !important;
        }
        #gnav .hover-on div.atab a {
            color:#fff !important;
        }
        #gnav ul ul {
            z-index: inherit;
            height: auto;
            float: left;
            border-bottom: 1px solid #fff;
            width: 100%;
        }

            #topnav ul ul li, #topnav ul ul li:hover, #topnav ul li:hover ul li {
                padding-left: 40px;
            }

        #topnav li li {
            z-index: inherit;
            height: auto;
        }
        #gnav .hover-on {
            border:none !important;
        }
        #gnav .megamenu {
            position:relative;
            top:inherit;
            left:inherit;padding:5px;
            width:100%;
            background:inherit;
            border:none;
            display:block;
            box-shadow:none;
            padding:0;
            border-bottom-left-radius:inherit;
            border-bottom-right-radius:inherit;
        }
            #gnav .megamenu .leftcol, #gnav .megamenu .wide {
                margin-top: 10px;
            }
            #gnav .megamenu .leftcol, #gnav .megamenu .rightcol, #gnav .megamenu .wide {
                clear: both;
                float: left;
                padding-left: 0px;
                width: 95%;
                height: auto !important;
                border: none;
                background-color: #757575;
            }
        #gnav .megamenu::after {
            border:none;
        }
        #gnav #tab-first .megamenu, #gnav #tab-second .megamenu, #gnav #tab-third .megamenu, #gnav #tab-fourth .megamenu {
            width:100%;
        }
}
@media (max-width:800px) {
    #home #main, #home #sidemenus {
        width:100% !important;
        float:left !important;
        margin-left: 0px !important;
    }
    #AMRM_SEARCH_img, #AMRM_SEARCH_img_credit {
		display:none;
	}
    #AMRM_right {
        top:0px;
    }
    .bookmarks {
    }
    #search {
        left:10px;
    }
    #header {
        border-bottom:none;
    }
}
@media (max-width: 700px) {
    #supplements {
        clear: both;
    }
    .slides .caption {
        display:none;
    }

    #main, #sidemenus {
        width:100% !important;
        float:left !important;
        margin-left: 0px !important;
    }
}
@media (max-width: 480px) {
    #footertext {
        width:340px !important;
    }
}
@media (max-width: 440px) {
    #search {
        width: 300px;
        margin: 10px auto;
        position:relative;
    }
    .video_es {
        float:left !important;
        width:280px !important;
        padding-left:0px !important;
    }
    #header .social {
        display:none;
    }
    #fstitleborder {
        padding:20px 0 10px 10px !important;
    }
    .center {
        padding: 15px 5px 0 5px !important;
    }
    .video_es IFRAME {
        width: 280px !important;
    }

    .dt { /* desktop only */
        display:none;
    }
    .mob {
        display:block;
    }
    .bookmarks {
        position: absolute;
        top: -40px;
        left: 17%;
        border: 0;
    }
    .bookmarks.home {
        position:relative;
        clear:both;
        left:0;
        top:0;
    }
    .find.home {
        clear: both;
        margin: 0 auto;
        width: 240px;
    }
    .social span {
        margin-left: 0;
    }
    .find.home a {
        float: left;
    }
    .social {
        width: 210px;
        margin: 0 auto;
    }
    #header {
        height: 100px;
        border-bottom: none;
        padding-bottom: 20px;
    }
    .submenu {
        display:none;
    }
    .slides {
        height:139px !important;
    }
    /* HEADER STYLES */
    #banner ul#nihribbon {
        left: 5px;
    }

    #logo, #logo img {
        width:250px !important;
        height: auto !important;
    }

    #tagline {
        display:none !important; /* show on mobile? */
    }

    .bookmarks ul {
        float:left;
        padding-bottom:10px;
    }
    /* HOME PAGE CONTENT STYLES */
    #slideshow p, #slideshow h3, #slideshow h4, #slideshow h2, #slideshow h1 {
        margin-left:10px !important;
        padding-top:10px !important;
        font-weight: 600;
        font-size: 12px;
        line-height: 14px;
    }
    .slides a img {
        width:37%;
        height: auto;
    }
    
	#factsheets h2 {
	  line-height: 1.2em;
	}
    .excerpt-left, .excerpt-right {
        width:100% !important;
    }
    .excerpt-right {
        float:left !important;
        padding-top:10px;
    }
    .factsheet-toc {
        width: 97% !important;
        clear:both;
    }

    /* PAGE STYLES */
    #section-header {
        width: 97.2% !important;
        padding: 15px 0 15px 10px !important;
    }
    .buttons-block {
        display:none; 
    }
    .section {
        width:90% !important;
        position:relative !important;
        top:auto !important;
    }
    #alphanav {
        left: 0% !important;
    }
    #sidemenus {
        width: 100% !important;
        padding: 0px !important;
    }
        #sidemenus h3, #sidemenus ul {
            padding-left:20px !important;
            padding-right:10px !important;
        }
    #ctl00_ctl00_cphMain_divRevisedDate {
        padding-left:10px;
    }
    #content h1, #content img {
        clear:both;
        line-height:20px;
        padding-left:10px !important;
    }
    #slideshow {
        height:139px !important;
    }
        #slideshow .slides-nav {
            top:112px !important;
            right:1px !important;
        }
    #slideshow .slides img {
        /*
        z-index:1;
        position:absolute;
        top:0;*/
        margin-right:10px;
    }
    #slideshow p a {
        color: #000 !important;
    }
    #slideshow p, #slideshow h1 a, #slideshow h2 a, #slideshow h3 a, #slideshow h4 a {
        /*
        color: #000 !important;
        z-index: 5;
        float:left;
        position:relative;
        background-color:rgba(255, 255, 255, 0.6);       
        padding-left:5px;*/ 
        
    }
    input[type='text'], textarea {
        width:100%;
    }
    #AMRM_right {
        position:relative;
        clear:both;
        width:auto;
    }
    .resources ul {
        padding-left:0px;
        padding-top:20px;

    }
    #rightbar {
        min-height: 200px;
    }
    img[src="/images/content/VitDandHealth_190w.png"] {
        display:none;
    }
}
@media (max-width: 360px) {
    #logo, #logo img {
        width:230px !important;
        height: auto !important;
    }
}
@media (max-width: 320px) {
    #topnav {
        width:320px !important;
    }
        #topnav ul ul li, #topnav ul ul li:hover, #topnav ul li:hover ul li {
            padding-left:20px;
            width:290px;
        }
    #gnav div.atab a {
        padding-left:10px;
        padding-bottom:10px;
    }
    #gnav li li span {
        display:block;
    }
    #font-sizer {
        display:none;
    }
    #footertext {
        width:280px !important;
    }
    #rightbar {
        width:100% !important;
    }
	.related_pages_box {
		float: none;
		width: 94%;
		margin-left: 0px;
	}
	#container p:first-of-type {
		clear:both;
	}

	
}