/* ----- Basic Reset ----- */
html, body {
	margin: 0;
	padding: 0;
	height: 100%;
}

/* ----- Border Box Sizing ----- */

html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }


/* ----- Default Font Definition ----- */

html {
	font-family: Roboto, Helvetica, Arial, Geneva, sans-serif;
	font-size: 16px;
}

/* ----- Layout ----- */

html { background: #fffefb; }

.container {
	width: 1200px;
	margin: 0 auto;
}

.left  { float: left;  }
.right { float: right; }
.clear { clear: both;  }

.upper-controls, .lower-controls {
	margin: 10px 0;
}

.riglist-meta { width: 390px; background: #e5e4e4; padding: 10px; font-size: 14px; line-height: 1.2; }
.riglist-meta h3 { margin: 0; }
.riglist-description { height: 175px; overflow-y: auto; }

/* ----- UI Restyling ----- */

.btn {
	display: inline-block;
	background: #eee;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 12px;
	line-height: 1.2;
	padding: 6px 12px;
	color: black;
}
.btn:hover {
	background: #ddd;
	border-color: #bbb;
}
.btn:active {
	background: #ccc;
	box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
	color: black;
}

.btn-output {
	background: #5cb85c;
	border-color: #4cae4c;
	color: white;
}
.btn-output:hover {
	background: #449d44;
	border-color: #398439;
}
.btn-output:active {
	background: #449d44;
	border-color: #398439;
	color: white;
}

.select {
	display: inline-block;
	background: #eee;
	font-size: 12px;
	line-height: 1.2;
	border: 1px solid #ccc;
	border-radius: 5px;
	height: 28px;
}

/* ----- Title Page ----- */

.main-title {
	background-color: white;
	background-image: url("../graphics/main-title.jpg");
	background-position: center center;
	background-repeat: no-repeat;
	width: 1200px;
	height: 810px;
	font-family: Tekton, sans-serif;
	text-transform: uppercase;
	position: relative;
	padding: 150px 180px 100px;
}
.main-title__inline {
	border: 3px solid rgba(0, 0, 0, 0.5);
	text-align: center;
	height: 100%;
	position: relative;
	padding: 160px 0;
}
.main-title__line {
	font-size: 5em;
}
.main-title__line--top {
	font-size: 2.5em;
	letter-spacing: 10px;
}

.free-text{
	margin-top: 0px;
	margin-bottom: 50px;
	margin-left: 170px;
	margin-right: 170px;
	padding-bottom: 50px;
}

.meta {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 0;
	padding: 0;
	font-size: 1.5em;
	list-style-type: none;
	border-top: 2px solid rgba(0, 0, 0, 0.5);
}
.meta__item {
	display: block;
	float: left;
	width: 33.333%;
	font-size: 1em;
	padding: 20px;
	height: 3.5em;
	border-left: 2px solid rgba(0, 0, 0, 0.5);
}
.meta__item:first-child {
	text-align: left;
	border-left: none;
}
.meta__item:last-child {
	text-align: right;
}

.artemis-logo {
	position: absolute;
	top: 2px;
	right: 65px;
	width: 85px;
	opacity: 0.8;
	margin: 0px;
	padding: 0px;
}
.main-title .artemis-logo {
	top: 10px;
	right: 10px;
	width: 145px;
}

.tabs {
	position: absolute;
	left: 165px;
	right: 165px;
	bottom: 0;
	margin: 0;
	padding: 0;
	font-size: 0;
	font-family: Tekton, sans-serif;
	text-transform: uppercase;
	list-style-type: none;
}
.tabs--top {
	position: relative;
	top: -4px;
	left: 0;
	right: 0;
}
.tabs__tab {
	display: inline-block;
	width: 16.6%;
	height: 30px;
	font-size: 0.75rem;
	background-color: #e5e4e4;
	background-position: center top;
	background-repeat: no-repeat;
	padding-top: 10px;
	text-align: center;
}
.tabs__link, .tabs__title {
	color: black;
	text-decoration: none;
	font-size: 1.5em;
}
.tabs__title {
	color: #787;
}

/* ----- Editor ----- */

.eng { width: 1200px; font-family: RobotoCondensed, sans-serif; }

.eng table { border-collapse: collapse; width: 100%; }
.eng__preset-row { transition: background-color 1s; }
.eng__preset-row:nth-child(even) { background: #eee; }
.ui-sortable-dragging .eng__preset-row { background: #f4f4f4; }
.eng__preset-row.selected, .ui-sortable-dragging .eng__preset-row.selected { background: #ff9; }

.eng__preset-row td { padding: 4px; border-top: 1px solid #ccc; }
.ui-sortable-helper { box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); }
.ui-sortable-helper .eng__preset { width: 330px; }
.eng__preset-row.ui-sortable-placeholder { height: 41px; }
.eng__preset-row.ui-sortable-placeholder td { border-color: transparent; }

.eng__key {
	display: inline-block;
	padding: 4px;
	width: 20px;
	background: white;
	border: 1px solid #ccc;
	border-radius: 5px;
	box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
	text-align: center;
}
.eng__preset-row               .eng__key:before { content: "?"; }
.eng__preset-row:nth-child(1)  .eng__key:before { content: "1"; }
.eng__preset-row:nth-child(2)  .eng__key:before { content: "2"; }
.eng__preset-row:nth-child(3)  .eng__key:before { content: "3"; }
.eng__preset-row:nth-child(4)  .eng__key:before { content: "4"; }
.eng__preset-row:nth-child(5)  .eng__key:before { content: "5"; }
.eng__preset-row:nth-child(6)  .eng__key:before { content: "6"; }
.eng__preset-row:nth-child(7)  .eng__key:before { content: "7"; }
.eng__preset-row:nth-child(8)  .eng__key:before { content: "8"; }
.eng__preset-row:nth-child(9)  .eng__key:before { content: "9"; }
.eng__preset-row:nth-child(10) .eng__key:before { content: "0"; }
.ui-sortable-dragging .eng__preset-row .eng__key:before { content: "?"; }

.eng .row-handle {
	width: 20px;
	background-image: url("../graphics/handle.png");
	background-position: center center;
	background-repeat: no-repeat;
}
.eng__key-cell, .eng__input-cell { width: 50px; text-align: center; }
.eng input {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.eng th { font-weight: bold; }
.eng th.label__ec { font-weight: normal; }

.system th:nth-child(2n+4),
.label th:nth-child(4n),
.label th:nth-child(4n+5),
.eng__input-cell:nth-child(4n),
.eng__input-cell:nth-child(4n+1) {
	background: rgba(0, 0, 0, 0.05);
}

.saveForm { display: inline; }

.show-system-heat [data-heat=hot11] { box-shadow: inset 0 0 10px #850042; }
.show-system-heat [data-heat=hot10] { box-shadow: inset 0 0 10px #940943; }
.show-system-heat [data-heat=hot9]  { box-shadow: inset 0 0 10px #a31545; }
.show-system-heat [data-heat=hot8]  { box-shadow: inset 0 0 10px #b32447; }
.show-system-heat [data-heat=hot7]  { box-shadow: inset 0 0 10px #a31545; }
.show-system-heat [data-heat=hot6]  { box-shadow: inset 0 0 10px #b32447; }
.show-system-heat [data-heat=hot5]  { box-shadow: inset 0 0 10px #c2344c; }
.show-system-heat [data-heat=hot4]  { box-shadow: inset 0 0 10px #d14753; }
.show-system-heat [data-heat=hot3]  { box-shadow: inset 0 0 10px #e05c5c; }
.show-system-heat [data-heat=hot2]  { box-shadow: inset 0 0 10px #f07873; }
.show-system-heat [data-heat=hot1]  { box-shadow: inset 0 0 10px #ff968c; }
.show-system-heat [data-heat=none]  { box-shadow: inset 0 0  5px #cccccc; }
.show-system-heat [data-heat=cold1] { box-shadow: inset 0 0 10px #94bbe8; }
.show-system-heat [data-heat=cold2] { box-shadow: inset 0 0 10px #7eaee6; }
.show-system-heat [data-heat=cold3] { box-shadow: inset 0 0 10px #6a8ad4; }
.show-system-heat [data-heat=cold4] { box-shadow: inset 0 0 10px #5765c2; }
.show-system-heat [data-heat=cold5] { box-shadow: inset 0 0 10px #4846b0; }
.show-system-heat [data-heat=cold6] { box-shadow: inset 0 0 10px #42379e; }
.show-system-heat [data-heat=cold7] { box-shadow: inset 0 0 10px #3c2a8c; }
.show-system-heat [data-heat=cold8] { box-shadow: inset 0 0 10px #371f7a; }

/* ----- Change Log ----- */

.changelog > li { margin-top: 10px; }
.changelog li {
	text-indent: -1em;
	margin-left: 1em;
	padding-left: 1em;
}
.release-date { font-weight: bold; }
.release-version { font-style: italic; }

/* ----- Dialog ----- */

.dialog {
	display: none;
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, .8);
	z-index: 3;
}
.dialog__panel {
	position: relative;
	width: 80%;
	min-height: 300px;
	margin: 150px auto 0px;
	padding: 25px;
	background: white;
	border: 1px solid #a2958a;
	border-radius: 3px;
	text-align: center;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, .2);
}
.dialog__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 15px;
	height: 15px;
	background-image: url("../graphics/dialog-close.png");
	background-repeat: no-repeat;
	cursor: pointer;
}

#dialog-json {
	font-family: Consolas, Inconsolata, Monaco, "Courier New", monospace;
	width: 100%;
	height: 300px;
    -moz-tab-size : 4;
    -o-tab-size : 4;
    tab-size : 4;
}
.json-error {
	display: none;
	background: #fee;
	border-top: 2px solid #f00;
	border-bottom: 2px solid #f00;
	margin: 5px 0;
	padding: 5px 0;
	color: #300;
}
.json-instructions {
	text-align: left;
	width: 50%;
}

.preset-summary {
	display: inline-block;
	width: 215px;
	text-align: center;
	border: 1px solid black;
	padding:4px;
	margin-top:15px;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}
.preset-summary__key {
	font-size: 1.2em;
	font-weight: bold;
	display: block;
}
