/* #Reset & Basics (Inspired by E. Meyers)
================================================== */
	html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
		margin: 0;
		padding: 0;
		border: 0;
		font-size: 100%;
		font: inherit;
		vertical-align: baseline; }
	article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
		display: block; }
	body {
		line-height: 1; }
	ol, ul {
		list-style: none; }
	blockquote, q {
		quotes: none; }
	blockquote:before, blockquote:after,
	q:before, q:after {
		content: '';
		content: none; }
	table {
		border-collapse: collapse;
		border-spacing: 0; }


body {
    font-family: 'Inconsolata', Monaco, "Lucida Console", Consolas, "Courier New";
}
a {
    font-style: normal;
    text-decoration: underline;
    color: #000;
}
#main-wrapper {
    width: 100%;
    max-width: 670px;
    margin: 0px auto;
}
#chart-wrapper {
    
}
#header {
    margin-bottom: 10px;
}


.clr { clear: both; }
.centered { text-align: center; }
.hidden  { 
    display: none; 
    pointer-events: none;
}
.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

/* Text
============================ */

h1 {
	font-family: 'Inconsolata', Monaco, "Lucida Console", Consolas, "Courier New";
	font-size: 26px;
	font-style: normal;
/*	text-transform: uppercase;*/
    margin: 0 0 6px 0px;
}
h3 {
	text-transform: uppercase;
	font-size: 1em;
	padding: 3px 0px;
/*    margin: -5px 0 0px 0;*/
	font-style: normal;
}
.subheader text {
	font-size: 14px;
	text-transform: uppercase;
	font-weight: bold;
}
#summary {
    width: 100%;
    max-width: 500px;
    font-size: 1.1rem;
}
#summary .mainval {
    background: #000;
    color: #fff;
}
#summary .val {
    border-bottom: 1px solid #000;
}


/* Controls
============================ */

#update {
    width: 100%;
	margin: 0px 0 10px 0;
}
.buttons {
    float: left;
}
.button {
	width: 100px;
	padding: 6px 6px;
	margin-right: 8px;
    margin-bottom: 8px;
	cursor: pointer;
	text-align: center;
	font-size: 1em;
	border: 1px solid #e0e0e0;
	float: left;
	-moz-border-radius: 6px;
	border-radius: 6px;
}
.button:hover {
	background: #e0e0e0;
}
.button.current {
	background: #000;
	color: #fff;
}
.sentence {
    float: left;
    margin-right: 1rem;
    font-size: 1.1rem;
}

.slider {
    float: left;
    margin-right: 14px;
    margin-bottom: 0px;
}
.slider .uservalue {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    width: 155px;
}

.dropdown-wrapper {
    /* Size and position */
    position: relative; /* Enable absolute positioning for children and pseudo elements */
    width: 125px;
    padding: 0px 16px 12px 5px;
    float: left;
    margin: 0px 14px 0px 0;

    /* Styles */
    background: #fff;
    border-bottom: 6px solid #000;
    cursor: pointer;
    outline: none;
    font-weight: bold;
    font-size: 1.1rem;
}

@media only screen and (min-width: 731px) and (max-width: 959px) {
    .slider { margin-bottom: 0; }
    .dropdown-wrapper { margin-bottom: 20px; }
    #samesexdropdown.dropdown-wrapper { margin-top: 0px; }
}

@media only screen and (max-width: 730px) {
    .dropdown-wrapper {
        width: 120px;
        font-size: 1.0rem; 
        margin-bottom: 20px; 
    }
    .slider .uservalue { font-size: 1.0rem; }
    .slider { margin-bottom: 5px; }
    .linebreak { clear:both; }    
    #samesexdropdown.dropdown-wrapper { margin-bottom: 4px; }
}

/*#method.dropdown-wrapper { width: 90px; }*/

    .dropdown-wrapper:after {
        content: "";
        width: 0;
        height: 0;
        position: absolute;
        right: 5px;
        top: 50%;
        margin-top: -5px;
        border-width: 6px 6px 0 6px;
        border-style: solid;
        border-color: #000 transparent;
    }
    .dropdown-wrapper .dropdown {
        /* Size & position */
          position: absolute;
          top: 100%;
          left: -5px;
          right: 0px;

          /* Styles */
          background: white;
          transition: all 0.3s ease-out;
          list-style: none;
          
          /* Hiding */
          opacity: 0;
          pointer-events: none;
    }
    .dropdown-wrapper .dropdown li  {
        display: block;
        text-decoration: none;
        color: #000;
        border-left: 3px solid;
        padding: 5px 8px;
        transition: all 0.2s ease-out;
    }
    .dropdown-wrapper .dropdown li:hover  {
        color: #00525A;
        background: #e0e0e0;
    }
    .dropdown-wrapper .dropdown li.current {
        display: none;
    }
    .dropdown-wrapper.active:after {
        border-width: 0 6px 6px 6px;
    }
    .dropdown-wrapper.active .dropdown {
        opacity: 1;
        pointer-events: auto;
    }

.dropdown-wrapper.disabled {
    opacity: .15;
    pointer-events: none;
}



/* Chart
============================ */

#chart-wrapper {
    width: 100%;
    margin: 0 auto;
}


#chart {
    width: 100%;
    margin-top: 0px;
    margin: 0 auto;
    float: left;
}
#chart svg {}

#person rect.body {
    stroke: #000;
    stroke-width: 2px;
}

/*** Axes ***/
    
.axis text {
    font-family: 'Inconsolata', Monaco, "Lucida Console", Consolas, "Courier New";
    font-size: 1rem;
    fill: #000;
}
.axis text.axistitle {
    text-transform: uppercase;
}
.axis path,
.axis line {
  fill: none;
  stroke: #666;
  stroke-width: 1px;
  shape-rendering: crispEdges;
}
.x.axis path {
  display: none;
}
.x.axis line { stroke: #e0e0e0; }
.y.axis line { stroke: #e0e0e0; }
.y.axis path {
  display: none;
}


/*** Reference line ***/

.refline line {
    stroke: #000;
    stroke-width: 1.5px;
}
.bmiline line {
    stroke: #ccc;
    stroke-width: 1px;
}



/* Annotation
============================ */

#tooltip {
    text-transform: uppercase;
    text-anchor: middle;
    font-size: 1.0em;
    font-family: 'Inconsolata', Monaco, "Lucida Console", Consolas, "Courier New";
    pointer-events: none;
    z-index: 101;
    text-shadow: 0 1px 0 #fff, 1px 0 0 #fff, 0 -1px 0 #fff, -1px 0 0 #fff;
/*    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);*/
}
#tooltip h3 { 
  font-size: 14px; margin: 0 0 4px 0; 
  line-height: 1.2em;
}

.desc {
    font-family: "Mercury SSm A", "Mercury SSm B";
    font-weight: 400;
	font-size: 1em;
	line-height: 1.4em;
}

.focus text {
    
}

line.annotation {
    stroke: #ccc;
	stroke-dasharray: 5,2;
	stroke-width: 1.2px;
}
text.annotation {
    font-family: 'Inconsolata', Monaco, "Lucida Console", Consolas, "Courier New";
    font-size: 14px;
    fill: #444;
    text-anchor: end;
}
text.descrip {
    font-family: "Mercury SSm A", "Mercury SSm B";
    font-style: italic;
    font-weight: 400;
	font-size: 13px;
	line-height: 1.4em;
}


