*,
*:before,
*:after {
	box-sizing: border-box;
}

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
main,
article,
aside,
figure,
footer,
header,
menu,
nav,
section,
time,
mark,
audio,
video,
details,
summary {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font-weight: normal;
	vertical-align: baseline;
	background: transparent;
}

article,
aside,
figure,
header,
footer,
nav,
img,
section,
details,
summary,
main {
	display: block;
}

address {
	font-style: normal;
}

blockquote,
q {
	quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: "";
}

pre,
code,
kbd,
samp {
	font-family: monospace, sans-serif; /* standardize monospaced elements */
	white-space: pre; /* CSS 2 */
	white-space: pre-wrap; /* CSS 2.1 */
	white-space: pre-line; /* CSS 3 (and 2.1 as well) */
	word-wrap: break-word; /* IE */
}

del {
	text-decoration: line-through;
}

abbr[title],
dfn[title] {
	border-bottom: 2px dashed blue;
	text-decoration: none;
	color: blue;
}

abbr[title]:hover,
dfn[title]:hover {
	cursor: help;
}

abbr[title]::after,
dfn[title]::after {
	content: ' (' attr(title) ')';
}

@media only all and (min-width: 900px) {
	abbr[title]::after,
	dfn[title]::after {
		content: "";
	}
}

big { /* same as .big-text */
	font-size: 140%;
}

small { /* same as .small-text */
	font-size: 80%;
}

strong,
b {
	font-weight: bold;
}

sub,
sup { /* Make sure sup and sub don't mess with line-heights:http://gist.github.com/413930 */
	position: relative;
	font-size: 75%;
	line-height: 0;
}

sub {
	bottom: -0.25rem;
}

sup {
	top: -0.5rem;
}

img,
object,
embed {
	display: block;
	max-width: 100%;
}

hr {
	display: block;
	height: 1px;
	margin: 0;
	padding: 0;
}

a {
	color: inherit;
}

a:link,
a:visited {
	text-decoration: none;
}

a:hover,
a:active {
	text-decoration: underline;
}

html {
	box-sizing: border-box;
	overflow-y: scroll; /* force a vertical scrollbar to prevent a jumpy page */
	overflow-wrap: break-word;
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: baseline;
	font-size: 100%; /* This means 16px by default */
	font-weight: normal;
	background: transparent;
}

body {
	width: 100%;
	min-width: 320px;
	font-family: 'Roboto', sans-serif;
	background-color: white;
}

header {
	width: 100%;
	padding: 10px;
	background-color: #000;
}

h1 {
	font-size: 1.4em;
	font-weight: bold;
	line-height: 2;
	text-transform: uppercase;
	text-align: center;
	color: #fff35c;
}

main {
	min-height: 500px;
	padding: 10px;
}

@media only all and (min-width: 800px) {
	main {
		padding: 0 20px;
	}
}

footer {
	padding: 10px;
	text-align: center;
	color: #fff;
	background-color: #000;
}

p {
	margin: 0 0 20px;
	font-size: 1.2em;
	line-height: 1.5;
}

button,
input,
select,
textarea {
	margin: 0; /* Webkit browsers add a 2px margin outside the chrome of form elements */
}

button,
input[type = "button"] {
	width: auto;
	overflow: visible;
}

button[type = "button"] {
	padding: 10px 20px;
	border-radius: 5px;
	border: 0;
	font-weight: bold;
	line-height: 1;
	color: #fff;
	background-color: #ff7840;
}

button[type = "button"]:hover {
	background-color: red;
	cursor: pointer;
}

#matrix-creator {
	padding: 20px;
	background-color: lightgrey;
}

#matrix-creator label {
	cursor: pointer; /* hand cursor on clickable elements */
}

#matrix-creator select {
	width: 120px;
	padding: 5px;
	border: 1px solid transparent;
	color: #000;
}

#matrix-creator select:focus {
	border-color: #f00;
	background-color: #fff;
}

#matrix-creator input[type="text"] {
	width: 120px;
	padding: 5px;
	border: 1px solid #ccc;
}

#matrix-creator input[type="text"]:focus {
	border-color: #f00;
	background-color: #fff;
}

#matrix-container {
	margin: 40px 0;
	max-height: 600px;
	overflow: auto;
	border-collapse: collapse;
}

#matrix-container td {
	padding: 0;
	border: 1px solid #ccc;
}

#matrix-container input[type="text"] {
	width: 100px;
	padding: 10px;
	border: none;
	text-align: center;
	font-size: 0.9em;
}

#matrix-container input[type="text"]:focus {
	background-color: #f00;
	color: #fff;
	text-align: left;
	font-weight: bold;
}

#matrix-controls {
	margin: 20px 0;
}

#matrix-error {
	margin: 20px 0;
	color: #fff;
	background-color: #f00;
}

#matrix-error > p {
	margin: 0;
}

.clear-floats:before,
.clear-floats:after {
	display: block;
	height: 0;
	overflow: hidden;
	visibility: hidden;
	content: "\0020";
}

.clear-floats:after {
	clear: both;
}

.clear-floats {
	zoom: 1;
}

.hilight {
	font-weight: bold;
	color: #fff35c;
}

.small-text {
	font-size: 85% !important;
}

.large-text {
	font-size: 150% !important;
}

.right-align {
	text-align: right !important;
}

.center-align {
	text-align: center !important;
}

.margin-bottom {
	margin-bottom: 20px;
}