*,
*:after,
*:before {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
	padding: 0;
	border: 0;
}

html,
body {
	width: 100%;
	height: 100%;
}

body {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 12px;
}

.container {
	height: 100%;
	overflow: hidden;
	background: rgba(44, 86, 157, 0.2);
}

.main {
	float: left;
	height: 100%;
	overflow: auto;
	width: 60%;
	background: #ccc;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	position: relative;
}
.main-in {
	float: left;
	vertical-align: top;
	padding: 40px;
	white-space: nowrap;
	-webkit-transform: scale(1);
	transform: scale(1);
	-webkit-transform-origin: left top;
	transform-origin: left top;
}

.photo {
	-ms-interpolation-mode: nearest-neighbor;
	image-rendering: -moz-crisp-edges;
	image-rendering: -o-pixelated;
	image-rendering: pixelated;
	position: relative;
}
.photo .photo-image {
	display: none;
	vertical-align: top;
}
.photo-in {
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
}
.photo.cursor-pointer {
	cursor: pointer;
}
.photo.cursor-crosshair {
	cursor: default;
}
.photo.cursor-crosshair .box.active {
	background: rgba(127, 186, 0, 0.5);
}
.photo.cursor-default .box:hover {
	background: rgba(127, 186, 0, 0.5);
}
.photo.cursor-default .spot-in:hover {
	border-color: white;
}
.photo .spot-in:hover {
	border-color: white;
}
.photo .active .spot-in {
	border-color: white;
}

.menu {
	float: right;
	width: 40%;
	padding: 20px;
}

.box {
	position: absolute;
	background: rgba(44, 86, 157, 0.5);
}
.box.active:before,
.box.active:after {
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
}
.box.active:after {
	border: 1px dashed black;
}
.box.active:before {
	border: 1px solid white;
}
.box .point {
	display: none;
}
.box.active .point {
	display: block;
	position: absolute;
	width: 8px;
	height: 8px;
	background: white;
	border: 1px solid black;
	z-index: 1;
}
.box.active .point.p-t {
	top: -4px;
	left: 50%;
	margin: 0 0 0 -4px;
}
.box.active .point.p-r {
	top: 50%;
	right: -4px;
	margin: -4px 0 0 0;
}
.box.active .point.p-l {
	top: 50%;
	left: -4px;
	margin: -4px 0 0 0;
}
.box.active .point.p-b {
	bottom: -4px;
	left: 50%;
	margin: 0 0 0 -4px;
}

.box-button {
	display: none;
}

.spot {
	position: absolute;
	width: 1px;
	height: 1px;
}
.spot-in {
	background: rgba(44, 86, 157, 0.8);
	border: 2px solid transparent;
	border-radius: 999px;
	position: absolute;
	left: 50%;
	top: 50%;
	width: 28px;
	height: 28px;
	margin: -14px 0 0 -14px;
}
.spot-in:after {
	content: attr(data-id);
	width: 100%;
	height: 100%;
	line-height: 24px;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	position: absolute;
	color: white;
	left: 50%;
	top: 50%;
	border-radius: 999px;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}
.spot.has-info .spot-in:before {
	content: '';
	width: 8px;
	height: 8px;
	position: absolute;
	right: -4px;
	top: -4px;
	background: #ff4b3c;
	font-size: 0;
	border-radius: 999px;
}

.line {
	overflow: hidden;
	position: relative;
	padding: 10px 0 0;
}
.line .line-in {
	overflow: hidden;
	font-size: 0;
	margin: -10px 0 0 -10px;
}
.line .col {
	font-size: 12px;
	width: 50%;
	display: inline-block;
	vertical-align: top;
	padding: 10px 0 0 10px;
}
.line .coordinates {
	font-family: 'Courier New', sans-serif;
	font-size: 14px;
}
.line .col-wide {
	width: 100%;
}
.line:first-child {
	padding: 0;
}

.size {
	padding: 10px 0 0;
	display: none;
}

.label {
	display: block;
	padding: 0 0 5px;
}

.input {
	display: block;
	font-family: 'Courier New', sans-serif;
	font-size: 14px;
	border: 1px solid #ccc;
	padding: 5px;
	resize: none;
	background: white;
	width: 100%;
}
.input:focus {
	outline: none;
	border: 1px solid #ff4b3c;
}

.info,
.generate,
.download-link {
	display: none;
}

.colors ul {
	overflow: hidden;
}
.colors ul li {
	width: 30px;
	height: 30px;
	float: left;
	margin-right: 8px;
	display: block;
	position: relative;
}
.colors ul li input {
	opacity: 0;
}
.colors ul li input:checked + label {
	border-color: white;
}
.colors ul li label {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
	font-size: 0;
}

.generate {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 10;
	font-size: 18px;
}
.generate button {
	font-size: 18px;
	padding: 12px;
}
.generate button:focus {
	outline: none;
}
.generate .download-link {
	padding: 0 12px;
}

button {
	padding: 4px 8px;
	background: white;
	border: 1px solid #ccc;
}
button.active {
	background: #2c569d;
	color: white;
	border: 1px solid #2c569d;
}
button:active {
	background: #ccc;
	color: black;
	border: 1px solid #ccc;
}
button:focus {
	outline: none;
}

.adi-cr {
	display: block;
	vertical-align: top;
	overflow: hidden;
	position: relative;
	margin: 10px 0 0;
}
.adi-cr:first-child {
	margin: 0;
}

.adi-cr label {
	padding-left: 34px;
	position: relative;
	display: block;
	min-height: 24px;
	line-height: 24px;
}

.adi-cr input {
	position: absolute;
	left: -999px;
	top: 0;
}

.adi-cr-radio label:after {
	width: 24px;
	height: 24px;
	position: absolute;
	content: '';
	border: 1px solid #ccc;
	background: white;
	left: 0;
	top: 0;
	margin: 0;
	border-radius: 999px;
}

.adi-cr-radio input:checked + label:before {
	width: 8px;
	height: 8px;
	position: absolute;
	content: '';
	background: #2c569d;
	left: 8px;
	top: 8px;
	border-radius: 999px;
	z-index: 1;
}

.adi-cr-checkbox label:after {
	width: 24px;
	height: 24px;
	position: absolute;
	content: '';
	border: 1px solid #ccc;
	background: white;
	left: 0;
	top: 0;
	margin: 0;
}

.adi-cr-checkbox input:checked + label:before {
	-webkit-transform: rotate(-135deg);
	transform: rotate(-135deg);
	width: 8px;
	height: 12px;
	position: absolute;
	content: '';
	border-top: 3px solid #2c569d;
	border-left: 3px solid #2c569d;
	left: 8px;
	top: 5px;
	z-index: 1;
}

.adi-cr-checkbox input:disabled + label {
	opacity: 0.6;
}
