@font-face {
	font-family: "Roboto Cn";
	src: url("../fonts/robotocn.ttf");
}

@font-face {
	font-family: "Roboto";
	src: url("../fonts/roboto.ttf");
}

* {
	margin: 0;
	padding: 0;
}

body {
	background-color: #dadada;
	font-size: 12px;
	font-family: "Roboto Cn";
}

img {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
}

h1 {
	font-size: 24px;
	margin-bottom: 24px;
}

h2 {
	font-size: 18px;
	margin-bottom: 24px;
}

p, tbody td, .paragraph {
	font-family: Roboto;
	margin-bottom: 16px;
	line-height: 1.4em;
}

strong {
	font-family: "Roboto Cn";
	font-weight: normal;
}

#container {
	position: relative;
}

.clear {
	clear: both;
}


/* FORMS & BUTTONS */
button, input[type="text"], input[type="password"], input[type="submit"], .button, textarea, select, .select-box {
	-webkit-appearance: none;
	-moz-appearance: none;
	-ms-appearance: none;
	-o-appearance: none;
	appearance: none;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	-ms-border-radius: 0;
	-o-border-radius: 0;
	border-radius: 0;
	outline: none;
	box-sizing: border-box;
	padding: 0 12px;
	border: 0;
	text-decoration: none;
	background-color: #FFFFFF;
}

button, input[type="text"], input[type="password"], input[type="submit"], textarea, select, .select-box {
	width: 100%;
	font-size: 16px;
	font-family: "Roboto Cn";
	height: 50px;
}

select, .select-box {
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
	user-select: none;
}

label.select, .select-box {
	position: relative;
}

label.select:after, .select-box:after {
	content: '<>';
	font-family: "Consolas", monospace;
	font-size: 16px;
	font-weight: bold;
	position: absolute;
	top: -2px;
	right: 12px;
	-webkit-transform:rotate(90deg);
	-moz-transform:rotate(90deg);
	-ms-transform:rotate(90deg);
	-o-transform:rotate(90deg);
	transform:rotate(90deg);
}

.select-box:after {
	top: 50%;
	-webkit-transform:translateY(-50%) rotate(90deg);
	-moz-transform:translateY(-50%) rotate(90deg);
	-ms-transform:translateY(-50%) rotate(90deg);
	-o-transform:translateY(-50%) rotate(90deg);
	transform:translateY(-50%) rotate(90deg);
}

.select-box .text-holder {
	position: relative;
	top: 50%;
	-webkit-transform:translateY(-50%);
	-moz-transform:translateY(-50%);
	-ms-transform:translateY(-50%);
	-o-transform:translateY(-50%);
	transform:translateY(-50%);
}

.select-box-dropdown {
	font-family: "Roboto Cn";
	font-size: 16px;
	display: none;
	box-sizing: border-box;
	position: absolute;
	background-color: #e5e5e5;
	border: 1px solid #fff;
	z-index: 50;
}

.select-box-dropdown ul {
	padding: 10px 0;
	max-height: 200px;
	overflow-y: scroll;
}

.select-box-dropdown ul li {
	cursor: pointer;
	padding: 5px 15px;
	font-size: 12px;
	color: #000;
}

.select-box-dropdown ul li:hover {
	background: #efefef;
}

.select-box-dropdown ul li[disabled=disabled], .select-box-dropdown ul li[data-disabled=true] {
	cursor: auto;
	color: #666;
}

.select-box-dropdown ul li[disabled=disabled]:hover, .select-box-dropdown ul li[data-disabled=true]:hover {
	background: transparent;
}

input.select-box-dropdown-search {
	background: #efefef;
	font-size: 12px;
	height: 40px;
	padding: 15px;
}

textarea {
	height: auto;
	min-height: 200px;
	min-width: 100%;
	max-width: 100%;
	padding: 12px;
}

button, input[type="submit"] {
	background: #e3004a;
	color: #fff;
	cursor: pointer;
	text-transform: uppercase;
}

.button {
	font-family: "Roboto";
	padding: 8px 14px;
	cursor: pointer;
}

.orange-button {
	background: #e3004a;
	color: #fff;
}

.green-button {
	background-color: #54ad98;
	color: #fff;
}

.red-button {
	background-color: #e30e14;
	color: #fff;
}

.button.inactive {
	background-color: #dadada;
	cursor: default;
}

.errors {
	margin-bottom: 30px;
}

.errors p {
	color: #e30e14;
}

.success {
	margin-bottom: 30px;
}

.success p {
	color: #e3004a;
}

/* TABLES */
table {
	border-collapse: collapse;
	border-spacing: 0;
}

table thead {
	background-color: #ffffff;
	font-size: 14px;
}

table tbody {
	background-color: #e4e4e4;
}

table td {
	border: 1px solid #cfcfcf;
	padding: 14px;
}

/* TOP BAR */
#top-bar {
	position: relative;
	width: 100%;
	background-color: #ffffff;
	box-sizing: border-box;
	padding: 9px;
}

#top-bar .menu {
	list-style: none;
	position: absolute;
	top: 26px;
	right: 20px;
}

#top-bar .menu li {
	display: inline-block;
}

#top-bar .menu li a {
	text-decoration: none;
	color: #000000;
	padding: 14px 20px;
	text-transform: uppercase;
}

#top-bar .menu li a:hover {
	color:#e3004a;
}

/* LOGIN BOX */
#login-box {
	position: absolute;
	left: 50%;
	top: 20vh;
	margin-left: -20vw;
	width: 40vw;
}

/* ITEM & ICON & MESSAGE LIST */
#item-list, #icon-list, #message-list, .list {
	position: absolute;
	left: 50%;
	top: 50px;
	margin-left: -30vw;
	margin-bottom: 50px;
	width: 60vw;
}

#item-list table, #icon-list table, #message-list table, .list table {
	width: 100%;
}

#item-list #add-button, #icon-list #add-button, #message-list #add-button, .list .add-button {
	position: absolute;
	right: 0;
	top: 8px;
}

/** ITEM & MESSAGE EDIT **/
#item-edit, #message-edit {
	position: absolute;
	left: 50%;
	top: 50px;
	margin-left: -30vw;
	margin-bottom: 50px;
	width: 60vw;
}

#item-edit .left, #item-edit .right, #message-edit .left, #message-edit .right {
	float: left;
}

#item-edit .left, #message-edit .left {
	width: 70%;
}

#item-edit .right, #message-edit .right {
	margin-left: 5%;
	width: 25%;
}

#item-edit #image-preview, #item-edit #image-preview img, #message-edit #image-preview, #message-edit #image-preview img {
	width: 100%;
	margin-bottom: 16px;
}

/** ICON & SPLASH EDIT **/
#icon-edit, #splash-edit {
	position: absolute;
	left: 50%;
	top: 50px;
	margin-left: -30vw;
	margin-bottom: 50px;
	width: 60vw;
}

/** SPLASH EDIT **/
#splash-edit .left, #splash-edit .right {
	float: left;
	width: 47%;
}

#splash-edit .right {
	margin-left: 6%;
}

#splash-edit #image-preview img {
	width: 100%;
	margin-bottom: 16px;
}

/** CROP OVERLAY **/
#crop-overlay-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.75);
}

#crop-overlay {
	position: absolute;
	top: 40px;
	left: 50%;
	margin-left: -30vw;
	width: 60vw;
	background-color: #fff;
	padding: 20px;
	z-index: 2;
}

#crop-overlay .button {
	display: inline-block;
	margin-top: 10px;
}

#crop-overlay .button:last-child {
	margin-left: 10px;
}

#crop-overlay .close-button {
	font-family: monospace;
	font-size: 16px;
	position: absolute;
	top: 26px;
	right: 20px;
	cursor: pointer;
}