*{
	margin: 0;
	padding: 0;
    font-size: 100%;
    font-family: "Arial", sans-serif;
	font-weight: normal;

	/* this makes it so that when we insert padding to the divs, we dont screw up the percentages */
	/* from http://css-tricks.com/box-sizing/ */
	-webkit-box-sizing: 	border-box; /* Safari/Chrome, other WebKit */
	-moz-box-sizing: 		border-box; /* Firefox, other Gecko */
	box-sizing: 			border-box;	/* Opera/IE 8+ */
}



/*
nice trick:
google
CSS, animate background image
https://davidwalsh.name/background-animation-css
    https://davidwalsh.name/demo/background-animation-css.php
*/
@keyframes animatedBackground {
    from { background-position: 0 3%; }
    to { background-position: 50% -10%; }
}


body
{
    color:white;
    /* nice tricks */
    background-color:black; /* prevents the white flash when refreshing */
    background-image: url("./images/earthrise.jpg");
    background-repeat: no-repeat;

    /* these are ignored while animation is going on
    BUT when it end (i.e. not using "inifinite"
    they do matter. To prevent a sudden jump-back
    match the position to the initial/final position of the animation */
    background-position: 0 3%; /* ignored during animation */
    background-attachment: fixed; /* ignored during animation */
    background-size: 150% auto;

    padding:15px;

    animation: animatedBackground 60s linear infinite;


    /* google
    CSS animation frames
    https://css-tricks.com/snippets/css/keyframe-animation-syntax/
    */
    animation-direction: alternate; /* or: normal */
    animation-timing-function: ease-out; /* or: ease, ease-in, ease-in-out, linear, cubic-bezier(x1, y1, x2, y2) */
    animation-iteration-count: 2; /* two iterations bring it back to the original position thanks to the "alternate" option */

}

label
{
    margin-right:4px;
    white-space: nowrap;
}

/*
google
HTML labels above input
1)
https://stackoverflow.com/questions/6046110/styling-form-with-label-above-inputs
 --> https://jsfiddle.net/ua61vq4u/
*/
.single_input_box
{
    max-width:220px;
    float:left;


}


.clearfix
{
	clear:both;
}

.javascript_on
{
    display:none;

}

/* START: javascript OFF warning */

/* the purpose of the fadein is this:
  if Javascript is ON and we refresh the page, we still see a flicker
  of that about-to-be-hidden item of class ".javascript_off"
  which is not cosmoetically nice.
  So, instead we fade it in so that
  at the time it would have come up fully
  it is already hidden by JS
  */

/* https://stackoverflow.com/questions/11679567/using-css-for-fade-in-effect-on-page-load */
@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}


.javascript_off
{
    display:block;
    font-size:40px;
    animation: fadein 3s;
}
/* END: javascript OFF warning */

.buttonbar
{
    position:relative;
    padding:5px;
    left: 0px;
    border:1px solid rgb(170,170,170);
    border-left-width:0px;
    border-right-width:0px;

    padding-left:15px;
    padding-right:15px;

    background: rgb(140,140,140);

    opacity:0.9;

    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;

}

button
{
    width:60px;
    height:60px;

}

.material-icons
{
    font-size:40px !important;
}

.ctrl
{
    padding:5px;
    font-size:30px;
    border:1px solid white;
    margin-right:10px;


    margin-top:3px; /* in case they wrap */
    margin-bottom:3px; /* in case they wrap */

    border-radius:5px;
}

.ctrl_whileEditing
{
    background-color:red !important;
}

.btn
{
    background-color:black;
    color:white;
    padding:5px 10px 5px 10px;
}

.textinput
{
    background-color: rgb(220,220,220);
    color:black;
    width:200px;
}

#text_nrr_switch_schedule
{
    width:100%;
}

.subheader
{
    font-size:30px;
    margin-top:12px;
    margin-left:7px;
    margin-bottom:3px;
    color: gray;
}

.rangeinput
{
    max-width:220px;
    border:none;
}

.mainHeader
{
    font-size:40px;
    margin-top:0px;
    margin-bottom:20px;
    margin-left:10px;
    color: #58D500;
    letter-spacing:1px;
    font-weight:bold;
}

.mainHeader .author
{
    color: #DA003B;
    font-weight:inherit;
}

.specialAnchorTag
{
    color: inherit;
    font-weight:inherit;
}

.version
{
    color: #3A34D3;
    font-weight:inherit;
}

.bar_graph
{
    margin:10px;
    padding:10px;
    background-color: rgb(220,220,220);
    border-radius:5px;
    height:300px;
}

.graph_area
{
    position:relative; /* only to provide the nearest positioning context */
    border: 1px solid white;
    width:100%;
    height:100%;
}

.graph_area_bar
{
    position:absolute;
    bottom:0px;


    width:1%; /* set in JS */
    left: 0%; /* set in JS */
    height:0%; /* set in JS */
    background-color:black;
    border-right: 1px solid white;
    border-top: 1px solid white;
    overflow:hidden;
}

.reproductive_bar
{
    background-color:rgb(0,0,120);
}



/* https://davidwalsh.name/css-vertical-text */
/*     https://davidwalsh.name/demo/css-vertical-text.php  */
/* https://developer.mozilla.org/en-US/docs/Web/CSS/text-orientation */
/*   https://stackoverflow.com/questions/4264527/vertical-text-direction */
.vertical_text {
    position:absolute;

    /* bottom and left are corrective offsets applying AFTER the rotation */
    bottom:15px; /* provides vertical standoff from bottom */
    left:80%; /* centers it in horizontal direction */
    font-size:10px;



    transform:rotate(270deg);
    transform-origin: bottom left;

    white-space:nowrap; /* prevent wrapping of text around white space */


    font-family: monospace; /* turns off justification .  text-justify:none  does not work.*/
}




/*
nice trick:
google
CSS, set input that is not readonly
https://stackoverflow.com/questions/9207304/css-pseudo-classes-inputnotdisablednottype-submitfocus
*/

input[type='text']:not([readonly]),
p[contenteditable],
select:not([disabled])
{
    background-color: #F1B700;
}








