/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

[type=text] {
    color: #222;
	margin: 0px;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

img {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ===== Initializr Styles ==================================================
   Author: Jonathan Verrecchia - verekia.com/initializr/responsive-template
   ========================================================================== */
.wrapper {
    width: 90%;
    margin: 0 5%;
}

/* ===================
    ALL: Orange Theme
   =================== */

.header-container {
    border-bottom: 20px solid #e44d26;
}

.footer-container,
.main aside {
    border-top: 20px solid #e44d26;
}

.header-container,
.footer-container,
.main aside {
    background: white;
}

.title {
    color: white;
	margin-left: 1em;
}
.subtitle {
	font-family: 'Duru Sans', sans-serif;
	font-size: 1.2em;
	line-height: 1.5em;
/*	color: #899BA6;	*/
	color: #747580;
	margin: 0 1.5em 1em 1.5em;
	text-align:left;
	display: block;
	clear:both;
}

/* ==============
    MOBILE: Menu
   ============== */
	nav {
		display:none;
	}
	
	div#nav {
		display: block;	
	}


/* ==============
    MOBILE: Main
   ============== */

.main {
    padding: 0px;
}

.main article h1 {
    font-size: 2em;
}

.main aside {
    color: white;
    padding: 0px 5% 10px;
}

.footer-container footer {
    color: white;
    padding: 20px 0;
}
.mainfooter {
	
	padding: 10px;	
}
/* ===============
    ALL: IE Fixes
   =============== */

.ie7 .title {
    padding-top: 20px;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

.healthquestion {
	float:left;
	margin-right: 30px;
}
.healthanswer {
	float:left;
	width: 120px;
}  

#logo {
	width: 250px;
	max-width: 100%;
	border-width: 0px;
	float: left;
}

#chartcontainer {
	display: none;	
}

.casecontainer {
	border: 2px solid #064598;
	padding: 2px;
}
.casepanel {
	float: left;
	margin-left: 2px;
	margin-bottom: 10px;
	text-align:center;
}
.casebody {
	padding: 7px;
	border: 1px solid #064598;	
}
.casebody img {
	max-width: 100%;	
}
.casetitle {
	color: white;
	background-color: #064598;
}

.adaptiveimg {
	max-width: 100%;	
}

.maincontentbox {
	BORDER-RIGHT: #bbb 1px solid; BORDER-TOP: #bbb 1px solid; BACKGROUND: #fff; BORDER-LEFT: #bbb 1px solid;  BORDER-BOTTOM: #bbb 1px solid; voice-family: inherit;
}
.maincontentboxtitle {
	PADDING-RIGHT: 10px; PADDING-LEFT: 10px; BACKGROUND: #29528f; PADDING-BOTTOM: 10px; COLOR: #fff; PADDING-TOP: 10px; BORDER-BOTTOM: #bbb 1px solid; height: 52px; 
}
.maincontentboxtitle UL {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; TEXT-ALIGN: right;
}
.maincontentboxtitle UL LI {
	DISPLAY: inline; WHITE-SPACE: nowrap;
}
.maincontentboxtitle UL LI.left {
	FLOAT: left;
}
.maincontentboxtitle UL LI A {
	FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #fff;
}
.maincontentboxtitle UL LI A:link {
	FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #fff;
}
.maincontentboxtitle UL LI A:visited {
	FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #fff;
}
.maincontentboxtitle UL LI A:active {
	FONT-WEIGHT: normal; FONT-SIZE: 11px; COLOR: #fff;
}
.maincontentboxtitle UL LI A:hover {
	COLOR: #fff;
}
.maincontentboxtext {
	PADDING-RIGHT: 17px; PADDING-LEFT: 17px; BACKGROUND: #fff; PADDING-BOTTOM: 10px; PADDING-TOP: 10px;
}
.shadedArea {
	background-color: #EAEEF4;
	padding: 10px;
}
.inputpage .shadedArea {
	padding: 0px;	
}
.shadedArea img {
	max-width: 100%;
}	
.inputpage .padleftright {
	padding: 0 10px;	
}

/* index questions */
.questionleft {
	float:left;
	max-width: 85%;
}
.questionright {
	clear: both;
	margin-left: 20px;
}
.questiondivider {
	border-bottom: 1px dotted #CCC;
	height:10px;
	margin-bottom:10px;
	clear:both;
}

#percentagegrid, #percentagegrid2 {
		border-left:1px solid #CCC;
		border-top: 1px solid #ccc;
		background-color:white;
		width: 100%;
		max-width:100%;
}

#percentagegrid td, #percentagegrid2 td {
		text-align: center;
		padding: 0px;
		width: 20px;
		height: 40px;	
		border-right:1px solid #ccc;
		border-bottom: 1px solid #ccc;
		background-repeat: no-repeat;
		background-position: 10px 3px;
}

/* home page question and answer */
.question {
	float: left;	
}
.answer {
	clear: both;
	margin-left: 20px;
}

.reloadlink {
	margin-left: 20px;	
}

h2 {
	color: black;
	font-size: 1.5em;
	padding: 10px 30px 10px 30px;
	margin: 0;		
}

h3 {
	color: black;
    font-weight: 600;
	font-size: 1.2em;
	padding: 10px 30px 10px 30px;
	margin: 0;		
}

#pagecontent {
	padding: 30px; 
	background-color: #EAEFF1;	
}
#pagecontent.calculatorspage {
	padding: 0;
	background-color: #EAEFF1;
}
#pagecontent.inputpage {
	padding: 20px;	 
}
#pagecontent.inputpage h2,
#pagecontent.inputpage h3 {
	padding: 15px 0 0 15px;	
}
#pagecontent.inputpage .healthquestion, 
#pagecontent.inputpage .healthanswer {
	padding-left: 10px;
}

#pagecontent h2,
#pagecontent h3 {
	padding: 10px 30px 10px 0px;
}

#pagecontent a {
/*	color: #1C72A9;	*/
	color: #1C46A9;
	text-decoration: underline !important;
}

#pagecontent a:hover {
	text-decoration: none !important;
}

.maincontentbox {
	width: 100%;
	margin: 0;	
}
div#nav {
	border-top: 2px solid #B7B9B9;
	border-bottom: 	2px solid #B7B9B9;
	background: #f5f6f6; 
}

div#nav ul {
	margin: 0;
	padding: 0;	
	list-style: none;
}

div#nav ul li {
	float: left;
	display: flex;
	width: 25%;
	box-sizing: border-box;
	text-align: center;	
	padding: 0px;
	border-left: 1px solid #B7B9B9;
	background: #f5f6f6 url('../img/navmobile.jpg') bottom repeat-x; 
}

@media ( max-width: 625px ) {
	div#nav ul li {
		width: 100%;	
		border: none;
	}
}

div#nav ul li.submenu {
	width: 100%;
	text-align: left;
	background: #E8EDF0 url('../img/navsubmobile.jpg') bottom repeat-x; 
	border-left: 0px;
	border-top: 1px solid #b7b9b9;	
}
div#nav ul li.submenu a {
	padding: 5px 0 5px 60px;	
}

div#nav ul li:first-child {
	border-left: 0px;	
}

div#nav ul li a {
	padding: 5px 0px;
	text-decoration: none;
	color: #243F6E;	
	display: block;
}

div#nav ul li a:hover {
	background: #f5f6f6 url('../img/navmobilehover.jpg') bottom repeat-x;
	text-decoration: underline;
	color: black;
}

div#nav ul li a.selected {
	color: #616363;	
}

#mainfooter {
	border:0px;
	margin: 0px;	
	background-color: #616363;
	padding: 20px;
	font-size: 0.8em;
	color: #c6c9c8;
	line-height: 1.4em;	
}

#mainfooter strong { color: white; }

#mainfooter a {
	color: #c6c9c8;
}
#mainfooter a:hover {
	color: #98B2CC;	
}

#footersocial {
	padding: 20px;	
}
#footerbottom {
	padding: 20px;	
	border-top: 2px solid #B7B9B9;
	background: #f5f6f6 url('../img/navmobile.jpg') left bottom repeat-x;
}

.footerleft {
	float: left;	
}
.footerright {
	float: right;	
}
.mobilepadding {
	padding: 0 30px 30px 30px;	
}
.infopage {
	padding-top: 20px;	
}

.submitarea input {
	display: block;
	margin: 0 40px 10px 0px;
}

.appspot_mobile {
	text-align: center;
	width: 140px;
	font-size: 12px;
	line-height: 12px;
	float: left;	
	padding-bottom: 50px;
}
.appspot_mobile a {
	color: black;
	text-decoration: none;	
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media only screen and (min-width: 300px) {
	#percentagegrid td, #percentagegrid2 td {
		padding: 1px;	
	}
}
@media only screen and (min-width: 400px) {
	#percentagegrid, #percentagegrid2 {
		width: 380px;
	}
	#percentagegrid td, #percentagegrid2 td {
		padding: 5px;	
	}

}
@media only screen and (min-width: 480px) {

	.mobilepadding {
		padding: 0px;	
	}
	.infopage {
		padding-top: 0px;	
	}
	
	h2,
    h3 {
		padding: 10px 30px 10px 0px;		
	}
	div#nav {
		margin-left: 10px;
		margin-right: 10px;
	}

	#wrap {
		width: 90%;
		margin: 1em 5%;
		border: 1px solid #d1d1d1;
		border-radius:15px;
		-moz-border-radius:15px;
		background-color: #F4F4F4;	
	}
	
		
	.main {
		border:1px solid #064598;
		margin: 10px;
		border-radius:15px;
		-moz-border-radius:15px;	
		background-color: #EAEFF1;
		padding: 20px;	
	}
	#pagename {
		padding: 0 0 20px 0;	
	}
	#pagecontent, #pagecontent.calculatorspage {
		padding: 0px;
		background-color: #EAEFF1;
	}
	
	#mainfooter {
		border:0px;
		margin: 10px;
		border-radius:15px;
		-moz-border-radius:15px;	
		background-color: #616363;
		padding: 20px;
		font-size: 0.8em;
		color: #c6c9c8;
		line-height: 1.4em;	
	}
	#footerbottom {
		background: none;	
	}
	
	/* homepage */
	.questionblock {
		margin-bottom: 20px;
	}
	
	#percentagegrid td, #percentagegrid2 td {
		padding: 3px 10px;
	}

}

@media only screen and (min-width: 768px) {

/* ====================
    WIDE: CSS3 Effects
   ==================== */
	
    .header-container,
    .main aside {
        -webkit-box-shadow: 0 5px 10px #aaa;
           -moz-box-shadow: 0 5px 10px #aaa;
                box-shadow: 0 5px 10px #aaa;
    }
	
    .title {
        float: left;
    }

    .main article {
        float: left;
        width: 100%;
    }

    .main aside {
        float: right;
        width: 28%;
    }
	
	.casecontainer {
		display: table;
	}
	.casebody {
		padding: 7px;
		border: 0px;	
	}
	.casepanel {
		float: none;
		display: table-cell;
		width: 33.33%;
		border: 1px solid #064598;
		
	}
	
	.submitarea input {
		display: inline;
	}
}

/* bigger than tablet landscape */
@media only screen and (min-width: 1050px) {
	
	div#nav {
		display: none;	
	}
	
	nav {
		display: block;
		margin: 10px;
		border: 0px;
		background-color: #e5e5e5;	
		border-radius:15px;
		-moz-border-radius:15px;
		background-image: url(../img/navbg.jpg);
		background-repeat:repeat-x;
	}

    nav a {
		display: block;
    	text-align: center;
	    text-decoration: none;
    	color: #194483;
	    background: #E5E5E5;
        float: left;
        margin: 0 0 5px 0;
        padding: 5px 10px;
		border-right: 1px solid #ccc;
    }
	
	nav a.selected {
		color: #616363;	
	}
	
	nav a:hover {
    	color: black;
    	text-decoration: underline;
	}


	nav ul {
    	margin: 0 0 0 15px;
 	   padding: 0;
	}
	
	nav ul li {
		border-bottom: 0px;	
	}
	
    nav li:first-child a {
        margin-left: 0;
    }

    nav li:last-child a {
        margin-right: 0;
		border-right: 0;
    }
	
    nav ul li {
        display: inline;
    }

	nav ul li a {
		background-image:url(../img/navbg.jpg);
		background-repeat:no-repeat;
	}
	nav ul li a:hover {
		background-position: bottom;	
	}

	/* index question */
	.questionright {
		clear: none;
		float:right;	
	}
}

@media only screen and (min-width: 1140px) {

/* ===============
    Maximal Width
   =============== */
#logo {
	width: auto;
	height: auto;	
}

#chartcontainer {
	display: block;	
}
   
#wrap {
	border: 1px solid #d1d1d1;	
	width: 1026px; /* 1140px - 10% for margins */
    margin: 2em auto;
	border-radius:15px;
	-moz-border-radius:15px;
	background-color: #F4F4F4;	
}

	.subtitle {
		clear:none;
		float: left;
		text-align: left;
		padding: 1em 0 1em 1em;
		margin: 1em 0 0 2em;
		border-left: 4px solid #E4EAEE;
		font-size: 1.5em;	
	}
	
	.answer {
		clear: none;
		float: left;
	}
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}


.profile, .news {
	font-size: 14px;
	line-height: 1.5em;	
}
.profile:after {
	content: " ";
    display: table;
	clear:both;	
}
.profile img {
	float:left;
	margin-right: 20px;	
    max-width: 130px;
}
.profile a, .profile a:visited {
	color: #002B77;	
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

/* foundation override */
[type='checkbox'], [type='radio'] {
	margin-bottom: 0;	
}
label {
    font-size:  1em;
	line-height: 1.4em;
}

/* style for new redesign */
#pagecontent {
	max-width: 1200px;
	margin: 0 auto;	
	padding: 20px !important;
}
#pagecontent select {
	max-width: 250px;	
	min-width: 150px;
}
.hideme {
	display: none;	
}

/* ucsf banner */
#ucsf-banner-nav {
  	overflow: hidden;
  	font-family: "Helvetica Neue", "arial", sans-serif;
  	background: #052049;
  	padding-top: 5px;
	padding-bottom: 5px;
}
#ucsf-banner-nav .top-header-container ul.menu-ucsf {
    padding: 0;
    margin: 0;
	width: 100%;
}
#ucsf-banner-nav .no-logo .top-header-container ul.menu-ucsf li.first {
    background: none;
    text-indent: 0%;
    padding-left: 0;
}

#ucsf-banner-nav .top-header-container {
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 1230px; 
}
#ucsf-banner-nav .top-header-container ul.menu-ucsf li.first {
    display: inline-block;
    float: left;
    padding: 6px 0px 6px 0px;
	margin-left: 6px;
}
#ucsf-banner-nav .top-header-container ul.menu-ucsf li.right {
    display: inline-block;
    float: right;
	margin-right: 20px;
	margin-left: 20px;
    padding: 6px 0px 6px 0px;
}

@media (max-width: 600px) {
    #ucsf-banner-nav .top-header-container ul.menu-ucsf li.first {
        white-space: nowrap;
        overflow: hidden;
    } 
    #ucsf-banner-nav .top-header-container ul.menu-ucsf li.right {
        display: none; 
    } 
}

#ucsf-banner-nav .top-header-container ul.menu-ucsf li {
	display: inline-block;
    align-items: flex-end;
    font-size: 14px;
    padding: 6px 10px 6px;
}
@media (max-width: 830px) {
    #ucsf-banner-nav .top-header-container ul.menu-ucsf li {
        display: none; 
    } 
}
#ucsf-banner-nav .top-header-container ul.menu-ucsf li a {
    text-decoration: none;
    color: #fff; 
}
#ucsf-banner-nav .top-header-container ul.menu-ucsf li a:hover {
    text-decoration: underline ;
}

#ucsf-banner-nav.arial {
    font-family: arial,sans-serif;
}

.lang-button {
    border: thin solid #222;
    color: #222;
    border-radius: 8px;
    background-color: #FFF;
    padding: 10px;
}

.lang-active,
.lang-active:hover,
.lang-button:active,
.lang-button:hover {
    border: thin solid #222;
    border-radius: 8px;
    color: #fff !important;
/*    background-color: #1c72a9;	*/
	background-color: #1C46A9;
    padding: 10px;
}

.risk-button {
/*    border: thin solid #D61212;	*/
    border: thin solid #b20f0f;
    color: #FFF;
    border-radius: 8px;
/*    background-color: #D61212;	*/
    background-color: #b20f0f;
    padding: 5px;
}

.risk-button:active,
.risk-button:hover {
/*    border: thin solid #D61212;
    color: #D61212;	*/
    border: thin solid #b20f0f;
    color: #b20f0f;
    border-radius: 8px;
    background-color: #FFF;
    padding: 5px;
}

.home-button {
/*	background: #3997d3;	*/
	background: #0179cf;
	color: #FFF !important;
	font-weight: bold;
	font-size: 18px;
	text-decoration: none;
	padding: 10px;
	border-radius: 8px;
	display: inline-block;
}

.home-button:focus,
.home-button:hover {
	opacity: .7;
}

article a,
article a:visited {
    color: #223971;
    text-decoration: underline;
}

article a:hover {
    text-decoration: none;
}

.center {
    text-align:  center;
    font-family: "Helvetica Neue", "arial", sans-serif;    
     width: 100%;
}

table.result {
    padding: 2px;
    border: 1px;
    width: 100%;
}

td.result {
    text-align: center;
}

.red {
    text-align: center;
    color:#F00;
}

.two-column {
    width: 50%;
}

.three-column {
    width: 33%;
}

.fifteen-percent {
    width: 15%;
}

p.topline {
	padding-top: 15px;
	padding-right: 20px;
	padding-bottom: 15px;
	padding-left: 5px;
	display: block;
}

p.topline2 {
	padding-top: 15px;
	padding-right: 20px;
	line-height: 1.6em;
}

p.topline3 {
	padding-right: 20px;
	margin-bottom: 10px;
	line-height: 1.6em;
}

.blue {
	background-color: #aeceff;
	border-bottom: solid white 1px;
	text-align: center;
}

.green {
	background-color: #dbe9eb;
	border-bottom: solid white 1px;
	text-align: center;
}

.lightblue {
	background-color: lightblue;
	border-bottom: solid white 1px;
	text-align: center;
}

#irregular {
	background-color: #EAEEF4;
	padding: 0px;
}

#irregular tr th {
	font-weight: normal;
	text-align: center;
}

#irregular tr th.right {
	font-weight: normal;
	text-align: right;
}

.lower {
	color: green;
}

.higher {
	color: #D61212;
}

.width25 {
	width: 25%;
}

.width12 {
	width: 12%;
}

ul.plus {
	list-style-image: url("/img/plus.png");
}

ul.minus {
	list-style-image: url("/img/minus.png");
}

@media only screen and (max-width: 600px) {
		
	#irregular table {width:100%;}
	#irregular th {font-size: 10px;}
	#irregular td {font-size: 10px;}
 
}

.button {
	color: #fff !important;
}
