* {
	box-sizing: border-box;
}

html, body {
	max-width: 650px;
	margin: 0 auto;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	text-rendering: optimizeLegibility;
}

h1, h2, h3 {
	font-family: 'Roboto Slab', serif;
}

h1 {
	text-align: center;
}

body {
	padding: 3em 1em;
}

body > p {
	line-height: 160%;
}

ul.pages li {
	margin:0.5em 0;
}

p.important {
	font-weight: bold;
	font-size: 120%;
	text-align: center;
}

p.important > em {
	font-style: italic;
	font-size: 150%;
}

p.error {
	font-weight: bold;
	color: #bf263c;
}

form {
	margin: 1em 0;
}

fieldset {
	border: #e0e0e0 solid 1px;
	margin: 1em 0;
}

fieldset > ul {
	list-style-type: none;
	margin: 0.5em 0;
    line-height: 150%;
}

#distributions fieldset > ul {
    margin: 0;
}

fieldset > .left,
fieldset > .right {
    width:50%;
    float:left;
}

#distributions fieldset > .left {
    width:60%;
    float:left;
}

#distributions fieldset > .right {
    width:40%;
    float:right;
}

fieldset > ul > li {
    margin:7px 0;
}

textarea {
	width: 100%;
	height: 20em;

	font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;

	margin-top:2px;
    padding:0.5em;
}

#encoding textarea {
    height: 10em;
}

input:not([type="button"]), select {
	font-size: 100%;
    border: 1px solid #c0c0c0;
    border-radius: 2px;
    background-color: #fcfcfc;
    padding: 5px;
}

input[type="text"] {
    width: 6em;
}

input[type="number"] {
	text-align: center;
    width: 4em;
    padding: 3px;
    border: 1px solid #c0c0c0;
    border-radius: 2px;
}

#distributions input[type="number"] {
    margin-right: 0.5em;
    width: 6em;
}

#distributions #range input[type="number"] {
    margin-right: 0;
    width: 4em;
}

input#formula {
    width: 30em;
}

@media (max-width: 650px) {
	fieldset > ul {
		padding: 0;
	}
}

.button {
	font-size: 120%;
	font-weight: bold;
	padding: 0.2em 2em;
	width: 100%;
}

.form-table label {
	position: relative;
	display: block;
	margin-top: .5em;
	margin-left: 1em;
}

.form-table label > input, .form-table label > select, .form-table label > textarea {
	position: absolute;
	vertical-align: middle;
	left: 12em;
	top: -2px;
	font-size: 100%;
	width: 12em;
}

.stathat {
	text-align: center;
}

.stathat div {
	display: inline-block!important;
	margin: 0 auto;
	height: 94px;
}

.stathat p {
	font-size: 11px;
	margin: 0;
	margin-bottom:1em;
}

.stathat img {
	display:block;
}

.stathat.left {
	width: 50%;
	float: left;
}

.stathat.right {
	width: 50%;
	float: right;
}

.hide {
	display: none;
}

.clear {
	clear: both;
}

/*****************************************/

#metrics tr > td:first-of-type {
	text-align: right;
	padding-right: 0.5em;
}

#metrics tr > td ~ td {
	font-family: monospace;
}

#minify ul.mime-type {
    columns: 2;
}

#minify .options,
#distributions .options {
	display: none;
}

#minify #html-options,
#distributions .normal-options {
	display: block;
}

#minify .error,
#formula .error,
#distributions .error {
	display: none;
	font-size: bold;
    color: #bf263c;
}

svg {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 85%;
}

path {
	stroke: #34495e;
	stroke-width: 2;
	fill: none;
}

.axis path,
.axis line {
	fill: none;
	stroke: black;
	stroke-width: 1;
	shape-rendering: crispEdges;
}

#join {
	margin-bottom: 3em;
}

li.inactive {
	color: grey;
}

#saved {
    display: none;
    padding-bottom: 1em;
}

#saved > div {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 5px 0;
}

#saved > div:first-of-type {
    font-weight: bold;
    border-width: 2px;
}

#saved > div:not(:first-of-type) {
    font-family: monospace;
    font-size: 12px;
}

#saved > div > div {
    word-break: break-word;
}

#saved > div > div:nth-child(1) {
    width: 300px;
    margin-right: 18px;
}

#saved > div > div:nth-child(2) {
    width: 300;
}

#formula input {
    font-family: monospace;
}

#plot {
    text-align: center;
}

table.properties tr > td {
    text-align:right;
    width:50%;
}
