* {
	/* Prevent text highlight */
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

body {
	margin: 0;
	padding: 0;
	font-family: sans-serif;
	font-size: 16px;
}
html, body { width: 820px; height: 100%; overflow-x: hidden; }

#app {
	width: 780px;
	height: 400px;
	background-color: #F0F0F0;
	font-size: 20px;
	padding: 20px;
}
h1 {
	font-family: sans-serif;
	font-weight: bold;
	margin: 0;
	padding: 0;
	font-size: 1.5em;
	text-align: center;
}

.upperpanel {
	margin: 10px 5px;
	position: relative;
	height: 300px;
}

.lowerpanel {
	margin: 10px 5px;
	position: relative;
}

.graph {
	position: absolute;
	outline: 1px solid #CCC;
	position: absolute;
	top: 0;
	left: 0;
}
#graph { z-index: 0; }
#overlay { z-index: 1; }

#numpeople_slider {
	width: 615px;
	margin: 0;
}

#numpeople_value {
	margin: 0;
	width: 60px;
	height: 22px;
	padding: 5px;
}

input, button {
	vertical-align: middle;
}
input[type="range"] {
	color: #000000;
	width: 300px;
	height: 50px;
}
input[type="number"] {
	color: #000000;
	width: 75px;
	height: 20px;
	padding: 5px;
	text-align: left;
	font-size: 1em;
}


#bt_compute {
	position: absolute;
	left: 540px;
	top: 185px; 
	display: block;
	width: 180px;
	height: 70px;
	font-size: 1em;
	text-align: center;
	background-color: #8E8;
	border: 3px solid;
	font-weight: bold;
	color: #282;
	border-color: #E0FFE0 #4A4 #4A4 #E0FFE0;
	z-index: 10;
}
#bt_compute:active {
	border-color: #4A4 #E0FFE0 #E0FFE0 #4A4;
}
#bt_compute:disabled {
	opacity: 0.5;
}

#bt_show {
	position: absolute;
	left: 540px;
	top: 185px; 
	display: none;
	width: 180px;
	height: 70px;
	font-size: 1em;
	text-align: center;
	background-color: #88E;
	border: 3px solid;
	font-weight: bold;
	color: #228;
	border-color: #E0E0FF #44A #44A #E0E0FF;
	z-index: 9;
}
#bt_show:active {
	border-color: #44A #E0E0FF #E0E0FF #44A;
}
#bt_show:disabled {
	opacity: 0.5;
}

#probability {
	position: absolute;
	left: 540px;
	top: 150px; 
	width: 160px;
	height: 30px;
	padding: 0 9px;
	line-height: 30px;
	border: 1px solid #CCC;
	background-color: #FFF;
	z-index: 11;
}


/* ------- SLIDER -------- */
input[type=range].slider {
  -webkit-appearance: none;
  margin: 0px 0;
  background-color: transparent;
}
input[type=range].slider:focus {
  outline: none;
}
input[type=range].slider:disabled {
  opacity: 0.5;
}
input[type=range].slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 32px;
  cursor: pointer;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  background: #e8e8e8;
  border-radius: 0px;
  border: 0px solid #010101;
}
input[type=range].slider::-webkit-slider-thumb {
  box-shadow: 0.8px 0.8px 1.9px rgba(0, 0, 62, 0.67), 0px 0px 0.8px rgba(0, 0, 88, 0.67);
  border: 1.9px solid rgba(0, 30, 0, 0.57);
  height: 32px;
  width: 32px;
  border-radius: 4px;
  background: #cccccc;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: 0px;
}
input[type=range].slider:focus::-webkit-slider-runnable-track {
  background: #fcfcfc;
}
input[type=range].slider::-moz-range-track {
  width: 100%;
  height: 32px;
  cursor: pointer;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  background: #e8e8e8;
  border-radius: 0px;
  border: 0px solid #010101;
}
input[type=range].slider::-moz-range-thumb {
  box-shadow: 0.8px 0.8px 1.9px rgba(0, 0, 62, 0.67), 0px 0px 0.8px rgba(0, 0, 88, 0.67);
  border: 1.9px solid rgba(0, 30, 0, 0.57);
  height: 32px;
  width: 32px;
  border-radius: 4px;
  background: #cccccc;
  cursor: pointer;
}
input[type=range].slider::-ms-track {
  width: 100%;
  height: 32px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
input[type=range].slider::-ms-fill-lower {
  background: #d4d4d4;
  border: 0px solid #010101;
  border-radius: 0px;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range].slider::-ms-fill-upper {
  background: #e8e8e8;
  border: 0px solid #010101;
  border-radius: 0px;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range].slider::-ms-thumb {
  box-shadow: 0.8px 0.8px 1.9px rgba(0, 0, 62, 0.67), 0px 0px 0.8px rgba(0, 0, 88, 0.67);
  border: 1.9px solid rgba(0, 30, 0, 0.57);
  width: 32px;
  border-radius: 4px;
  background: #cccccc;
  cursor: pointer;
  height: 32px;
}
input[type=range].slider:focus::-ms-fill-lower {
  background: #e8e8e8;
}
input[type=range].slider:focus::-ms-fill-upper {
  background: #fcfcfc;
}
