/* general definitions for background, <details>, etc*/
::-webkit-scrollbar-track {
  background-clip: padding-box;
  border: solid transparent;
  border-width: 0 0 0 4px;
}
details {
  position: absolute;
  top: 0;
  left: 1em;
  margin: 1em 0;
  padding: 10px;
  background: #fff;
  background:  rgba(155,155,155,0.1);
  border: 1px solid rgba(0,0,0,0.3);
  border-radius: 5px;
  max-width: 600px;
  font-size: 10pt;
  z-index: 100;
  background-color:rgba(247,247,247,0.8);
}
details > div {
  margin: 10px 0;
}
details > summary {
  cursor: pointer;
  white-space: nowrap;
}
/* Firefox workaround */
.no-details details > summary:before { float: left; width: 15px; content: '\25B6'; }
.no-details details.open > summary:before { content: '\25BC'; }


button {
  display: inline-block;
  background: -webkit-gradient(linear, 0% 40%, 0% 70%, from(#F9F9F9), to(#E3E3E3));
  background: -webkit-linear-gradient(#F9F9F9 40%, #E3E3E3 70%);
  background: -moz-linear-gradient(#F9F9F9 40%, #E3E3E3 70%);
  background: -ms-linear-gradient(#F9F9F9 40%, #E3E3E3 70%);
  background: -o-linear-gradient(#F9F9F9 40%, #E3E3E3 70%);
  background: linear-gradient(#F9F9F9 40%, #E3E3E3 70%);
  border: 1px solid #999;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  padding: 5px 8px;
  outline: none;
  white-space: nowrap;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  cursor: pointer;
  text-shadow: 1px 1px #fff;
  font-weight: 700;
  font-size: 10pt;
}
button:not(:disabled):hover,
button:not(:disabled).active {
  border-color: black;
}
button:not(:disabled):active,
button:not(:disabled).active {
  background: -webkit-gradient(linear, 0% 40%, 0% 70%, from(#E3E3E3), to(#F9F9F9));
  background: -webkit-linear-gradient(#E3E3E3 40%, #F9F9F9 70%);
  background: -moz-linear-gradient(#E3E3E3 40%, #F9F9F9 70%);
  background: -ms-linear-gradient(#E3E3E3 40%, #F9F9F9 70%);
  background: -o-linear-gradient(#E3E3E3 40%, #F9F9F9 70%);
  background: linear-gradient(#E3E3E3 40%, #F9F9F9 70%);
}


input[type="range"]{
  -webkit-appearance: none !important;  
  margin: -5px 0;	/*align with center line of buttons in FF*/
  background-color: rgba(255,255,255,0) 
}

input[type=range]::-webkit-slider-runnable-track {
  background-color: #555;
  box-shadow: 0 -1px 1px rgba(255,255,255,0.5) inset;
  border-radius: 10px;
}

input[type="range"]::-moz-range-track {
  border: 0px;
  background: #555;
  height: 7px;
  border-radius: 10px;
  top: 45px;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 7px;
  box-shadow: 1px 1px 5px rgba(0,0,0,1);
  border-radius: 2px;
  cursor: pointer;
  border-top: 1px solid #fff;
  background: #ccc -moz-linear-gradient(top, rgb(240, 240, 240), rgb(210, 210, 210));
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  width: 20px;
  height: 8px;
  box-shadow: 1px 1px 5px rgba(0,0,0,1);
  cursor: pointer;
  border-top: 1px solid #fff;
  background: #ccc -webkit-linear-gradient(top, rgb(240, 240, 240), rgb(210, 210, 210));
}
h2 {
  margin: 0;
  font-weight: 300;
}

html, body {
  margin: 0;
  padding: 0;
}
body > section {
  display: -webkit-flex;
  display: flex;
  
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-content: center;
  align-content: center;
  -webkit-align-items: center;
  align-items: center;
  box-sizing: border-box;
  height: 100%;
  -webkit-perspective: 900;
  -moz-perspective: 900px;
  perspective: 900px;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;

}
section > * {
  display: -webkit-flex;
  -webkit-align-items: center;
  -moz-align-items: center;
}

#pal {
    float: right;
	margin: 0;
	padding: 0;
}
.tooltip
{
    float: right;
	display: inline;
	position: relative;
	text-decoration: none;
	top: 15px;
	left: -10px;
	padding: 5px 15px;
	z-index: 101;

}
.tooltip:hover
{
    float: right;
	display: inline;
	position: relative;
	text-decoration: none;
	top: 3px;
	left: -10px;
	padding: 5px 15px;

}
.tooltip:hover:after
{
    float: right;
	display: inline;
	background: #333;
	background: rgba(254,233,192,.9);
	border: solid;
	border-width: 1px;
	border-radius: 5px;
	top: 5px;
	color: #000;
	content: attr(alt);
	left: -400px;
	padding: 5px 15px;
	position: absolute;
	z-index: 102;
	width: 350px;
}
.tooltip:hover:before
{
    float: right;
	display: inline;
	border: solid;
	border-color: transparent black;
	border-width: 6px 0px 6px 6px;
	top: 20px;
	content: "";
	left: -120px;
	position: relative;
	z-index: 102;
}

aside {
  position: absolute;
  left: 1em;
  top: 3em;
  z-index: 10;
}
label {
  cursor: pointer;
}

/* modal crap needed to satisfy Google Chrome's "autoplay" bullshit */
.modal-autoplay {
    display: none;
    position: fixed;
    z-index: 101;
    padding-top: 0px;
    left: 0;
    top: 0;
    width:  100%;
    height: 100%;
    overflow: auto; 
    background-color: rgb(0,0,0);
    background-color: rgba(1,0,0,0.4); 
}
.modal-autoplay-content {
		font-size: 18pt;
    background-color: #444;
		margin: 10px;
    padding: 10px;
    border: 1px solid #000;
    width: 500px;
}

